@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
:root{font-family:Cairo,Tahoma,sans-serif;color:#252a33;background:#f8f9fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{text-decoration:none;color:inherit}button,input,select{font:inherit}button{cursor:pointer}h1,h2,p{margin-top:0}.muted{color:#78828f;font-size:13px;line-height:1.95;margin:0 0 25px}.eyebrow,.form-kicker{display:block;color:#d9262d;font-size:12px;font-weight:800;letter-spacing:.02em;margin-bottom:8px}h1{font-size:27px;line-height:1.5;margin-bottom:7px}h2{font-size:17px;line-height:1.6;margin-bottom:15px}.layout{display:flex;min-height:100vh}.layout>aside{width:260px;flex-shrink:0;background:#fff;border-left:1px solid #edf0f3;padding:27px 17px 19px;display:flex;flex-direction:column;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:0 6px 23px;margin-bottom:15px;border-bottom:1px solid #f0f1f3;line-height:1.45;font-size:13px;font-weight:800}.brand img{width:45px;height:45px;object-fit:contain;border-radius:12px}.brand small{display:block;font-size:11px;font-weight:600;color:#929aa5;margin-top:5px}.layout nav{display:grid;gap:4px}.layout nav a,.logout{position:relative;display:flex;align-items:center;min-height:45px;padding:9px 16px;border-radius:11px;color:#58616d;font-size:12.5px;font-weight:700;transition:background .16s,color .16s}.layout nav a:hover,.layout nav a.active{background:#fff0f1;color:#c91b21}.layout nav a.active:before{content:'';position:absolute;right:0;top:11px;bottom:11px;width:3px;background:#db2229;border-radius:3px}.layout nav a:after{content:'‹';margin-right:auto;font-size:20px;font-family:Arial;color:#bec4cc}.layout nav a.active:after{color:#d6252b}.logout{margin-top:auto;border-top:1px solid #f0f1f3;border-radius:0;padding-top:19px;color:#a45257}.logout:hover{color:#ca2028}.workspace{flex:1;min-width:0}.workspace>header{height:77px;background:#fff;border-bottom:1px solid #edf0f3;display:flex;align-items:center;justify-content:space-between;padding:0 36px;font-size:14px;font-weight:800}.workspace>header span:last-child{color:#58616d;font-size:12px;background:#f5f6f8;border-radius:24px;padding:7px 13px}.workspace>main{max-width:1220px;margin:0 auto;padding:40px 36px 70px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.card{background:#fff;border:1px solid #edf0f2;border-radius:17px;padding:24px;box-shadow:0 8px 24px rgba(30,40,60,.025);margin-bottom:18px}.grid .card{min-height:132px;transition:transform .18s,border-color .18s}.grid .card:hover{transform:translateY(-2px);border-color:#f0cfd1}.grid .card h2{margin:0 0 18px}.grid .card small,.card small{color:#87919d;font-size:11px}.metric{font-size:28px;font-weight:800;color:#d9232b}.form{max-width:710px}.field{display:block;font-size:12.5px;font-weight:700;color:#3c4653;margin-bottom:18px}.field input,.field select{display:block;width:100%;height:46px;background:#fff;border:1px solid #dfe4e9;border-radius:10px;padding:9px 14px;margin-top:7px;outline:0;color:#2d3440;transition:border-color .18s,box-shadow .18s}.field input::placeholder{color:#a7aeb8}.field input:focus,.field select:focus{border-color:#d62830;box-shadow:0 0 0 3px rgba(214,40,48,.09)}.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}.button{border:1px solid #d9232b;background:#d9232b;color:#fff;border-radius:10px;padding:10px 19px;min-height:46px;font-size:12.5px;font-weight:800;transition:background .18s,transform .18s}.button:hover{background:#bb1820;transform:translateY(-1px)}.button.secondary{background:#fff;color:#d11d25;border-color:#efd3d5}.button.secondary:hover{background:#fff5f5}.notice{padding:12px 15px;border-radius:10px;background:#fff1f0;color:#af252b;border:1px solid #f5dddd;margin:15px 0;font-size:12px}.notice.ok{background:#eff9f2;color:#167042;border-color:#d8eddd}.small-link{color:#c91c24;font-size:12px;font-weight:700}.small-link:hover{text-decoration:underline}.check{display:flex;align-items:center;gap:8px;color:#58616d;font-size:12px;margin:12px 0 20px}.check input,.permission-grid input{accent-color:#d9232b}.tablewrap{overflow:auto}.table{border-collapse:collapse;width:100%;font-size:12.5px}.table th,.table td{text-align:right;border-bottom:1px solid #edf0f2;padding:14px 10px;white-space:nowrap}.table th{color:#919aa5;font-size:11px;font-weight:700}.table tr:last-child td{border-bottom:0}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.tag{background:#f4f5f7;border-radius:8px;padding:4px 9px;font-size:11px}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px;margin:10px 0 23px}.permission-grid label{background:#fbfbfc;border:1px solid #edf0f2;padding:10px 12px;border-radius:10px;font-size:12px}.menu{display:none;border:0;background:transparent;font-size:23px}.guest-body{background:#f8f9fb}.auth{min-height:100vh;max-width:460px;margin:auto;padding:50px 18px;display:flex;flex-direction:column;justify-content:center}.auth>.card{padding:33px}.auth-logo{width:58px;height:58px;border-radius:12px;margin-bottom:18px}.auth h1{font-size:24px}.auth .card form>.button{margin-top:4px}.auth .card>p:last-child{margin-bottom:0;margin-top:17px}.guest-body:has(.login-shell) .auth{max-width:none;margin:0;padding:0;display:block}.login-shell{display:grid;grid-template-columns:minmax(320px,43%) 1fr;min-height:100vh;max-width:1600px;margin:auto;background:#fff}.login-intro{background:#d71920;color:#fff;position:relative;display:flex;flex-direction:column;padding:45px 54px;overflow:hidden}.login-intro:after{content:'';position:absolute;left:-150px;bottom:-210px;width:570px;height:570px;border-radius:50%;border:1px solid rgba(255,255,255,.14);box-shadow:0 0 0 80px rgba(255,255,255,.035),0 0 0 160px rgba(255,255,255,.028);pointer-events:none}.login-brand{display:flex;align-items:center;gap:13px;font-size:15px;font-weight:800;line-height:1.5;z-index:1}.login-brand img{width:57px;height:57px;object-fit:contain;border-radius:14px;background:#fff;border:3px solid #fff}.login-brand small{display:block;font-size:11px;font-weight:600;opacity:.75;margin-top:4px}.login-intro-copy{z-index:1;margin:auto 0;max-width:510px}.login-kicker{font-size:11px;font-weight:800;letter-spacing:.17em;opacity:.8}.login-intro h2{font-size:clamp(32px,3.5vw,53px);line-height:1.55;margin:18px 0 15px;letter-spacing:-.035em}.login-intro-copy p{font-size:14px;line-height:2;color:rgba(255,255,255,.83)}.login-intro-footer{z-index:1;font-size:11px;color:rgba(255,255,255,.72)}.login-form-area{display:flex;align-items:center;justify-content:center;padding:50px 35px}.login-form{width:min(100%,400px)}.login-form h1{font-size:32px;margin-bottom:4px}.login-form .muted{margin-bottom:34px}.login-form .field{margin-bottom:21px}.login-form .field input{height:51px;background:#fbfcfd}.login-help{display:flex;justify-content:flex-end;margin:-6px 0 23px}.login-submit{width:100%;display:flex;justify-content:center;align-items:center;gap:13px;height:51px}.login-submit span{font-family:Arial;font-size:19px;font-weight:400}.login-footer{margin:31px 0 0;font-size:11px;text-align:center;color:#a1a8b1}.login-mobile-brand{display:none}@media(max-width:900px){.login-intro{padding:34px}.login-intro h2{font-size:34px}.login-form-area{padding:36px}}@media(max-width:760px){.layout>aside{position:fixed;z-index:10;right:-275px;top:0;bottom:0;box-shadow:0 10px 35px #0001;transition:right .2s}.nav-open .layout>aside{right:0}.menu{display:block}.workspace>header{padding:0 18px;height:65px}.workspace>main{padding:25px 17px 55px}h1{font-size:23px}.auth{padding:25px 18px}.auth>.card{padding:25px}.login-shell{display:block;min-height:100vh}.login-intro{display:none}.login-form-area{min-height:100vh;display:block;padding:26px 23px 45px}.login-mobile-brand{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:800;margin-bottom:clamp(65px,14vh,120px)}.login-mobile-brand img{width:45px;height:45px;border-radius:11px}.login-form{margin:auto}.login-form h1{font-size:28px}.login-form .muted{margin-bottom:29px}.login-footer{margin-top:25px}}

.login-intro{background:#fcf6f6;color:#30343c;border-left:1px solid #f1e9e9}.login-intro:after{border-color:rgba(213,32,40,.1);box-shadow:0 0 0 80px rgba(213,32,40,.025),0 0 0 160px rgba(213,32,40,.018)}.login-kicker{color:#d21d25;opacity:1}.login-intro-copy p{color:#747d87}.login-intro-footer{color:#9299a2}.login-brand small{color:#9299a2;opacity:1}.login-brand img{border-color:#fff;box-shadow:0 4px 18px #d3181d12}.login-intro h2:after{content:'';display:block;width:45px;height:3px;background:#d21d25;border-radius:4px;margin-top:24px}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}.page-head .muted{margin-bottom:0}.filterbar{display:flex;gap:10px;background:#fff;border:1px solid #edf0f2;border-radius:15px;padding:13px;margin-bottom:17px}.filterbar input,.filterbar select{font:inherit;border:1px solid #e0e4e9;border-radius:9px;padding:8px 12px;min-width:0}.filterbar input{flex:1}.filterbar select{min-width:160px}.table-link{color:#c91d25;font-weight:800}.empty-cell{text-align:center;color:#8c96a0;padding:38px}.event{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-top:1px solid #f0f1f3;font-size:12px}.event small{color:#929aa5;white-space:nowrap}.field textarea{display:block;width:100%;resize:vertical;border:1px solid #dfe4e9;border-radius:10px;margin-top:7px;padding:10px 13px;font:inherit}.field textarea:focus{outline:0;border-color:#d62830}.sale-form{max-width:820px}.catalog-picker{position:relative}.catalog-results{background:#fff;border:1px solid #edf0f2;border-radius:12px;box-shadow:0 14px 30px #19202b12;max-height:280px;overflow:auto;margin-top:-10px;margin-bottom:18px}.catalog-results:empty{display:none}.catalog-results button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:right;background:#fff;border:0;border-bottom:1px solid #f0f1f3;padding:12px 16px}.catalog-results button:hover{background:#fff7f7}.catalog-results small,.picked-item small{display:block;color:#98a0a8;font-size:10px}.catalog-results p{padding:10px 16px;font-size:12px}.picked-item{display:grid;grid-template-columns:1fr 95px 155px 28px;align-items:center;gap:11px;padding:12px 0;border-top:1px solid #edf0f2;font-size:12px}.picked-item input{width:100%;padding:7px;border:1px solid #e0e4e9;border-radius:8px}.picked-item label{font-size:10px;color:#8b949e}.remove-item{border:0;background:#fff1f1;color:#d22329;border-radius:8px;font-size:20px}.sale-total{display:flex;justify-content:space-between;padding:17px 0;margin:18px 0;border-top:1px solid #edf0f2;font-size:14px}.sale-total strong{color:#d31f26}@media(max-width:760px){.page-head,.filterbar{align-items:stretch;flex-direction:column}.picked-item{grid-template-columns:1fr 68px 100px 26px;gap:6px}.filterbar select{min-width:0}}
.mapping-section{padding:18px 0;border-top:1px solid #edf0f2}.mapping-section h2{margin-bottom:14px}.mapping-section>.field{max-width:360px}.mapping-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:0 14px}
.card-action{display:block;font-size:11px;font-weight:800;color:#d9232b;margin-top:15px}.card td small{display:block;color:#89939d;font-size:10px;white-space:normal}

.nav-caption{color:#a4abb4;font-size:10px;font-weight:800;padding:4px 16px 9px}.nav-caption-lower{margin-top:22px}.layout nav a{gap:12px}.layout nav a:after{content:none}.nav-icon{width:19px;height:19px;border:1.7px solid currentColor;border-radius:5px;display:inline-block;opacity:.72;position:relative;flex:none}.icon-dashboard{border-radius:4px;box-shadow:inset 7px 0 0 -5px currentColor}.icon-clients,.icon-users,.icon-profile{border-radius:50% 50% 5px 5px}.icon-sales:after,.icon-followups:after,.icon-review:after,.icon-qr:after,.icon-sync:after,.icon-settings:after{content:'';position:absolute;inset:4px;border:1px solid currentColor;border-radius:2px}.sidebar-bottom{margin-top:auto;border-top:1px solid #f0f1f3;padding-top:12px}.sidebar-bottom .logout{margin:0;border:0;padding:8px 15px}.sidebar-bottom small{display:block;padding:5px 15px;color:#a1aab3;font-size:10px}.nav-backdrop{display:none}.header-start{display:flex;align-items:center;gap:12px}.workspace>header .header-title{font-size:14px;color:#303945;background:transparent;padding:0}.workspace>header .header-user{font-size:12px}.dashboard-welcome{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:23px}.dashboard-welcome h1{margin:0}.dashboard-welcome p:last-child{font-size:13px;color:#7a8490;margin:4px 0 0}.customer-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}.customer-stats .card{margin:0;display:flex;flex-direction:column;gap:7px;min-height:120px}.customer-stats small{font-size:12px}.customer-stats strong{font-size:27px;line-height:1.4;color:#252c35}.customer-stats strong em{font-size:12px;font-style:normal}.customer-stats .status-word{font-size:19px}.customer-stats span{font-size:11px;color:#cb2029;margin-top:auto}.dashboard-sections{display:grid;grid-template-columns:1fr 1fr;gap:18px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}.section-title h2{margin:0}.section-title>a{font-size:11px;font-weight:800;color:#cc2029}.list-entry{display:flex;align-items:center;gap:11px;padding:12px 0;border-top:1px solid #f0f1f3;font-size:12px}.list-entry>div{min-width:0;flex:1}.list-entry b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-entry small{display:block;color:#8d97a1;font-size:10px;margin-top:3px}.list-entry time{font-size:10px;color:#89939d;white-space:nowrap}.list-dot{width:8px;height:8px;background:#df343b;border-radius:50%;flex:none}.avatar-letter{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#fff1f2;color:#cd242b;font-weight:800}.customer-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:18px}.customer-side{min-width:0}.info-list{display:grid;grid-template-columns:105px 1fr;gap:12px 8px;font-size:12px;margin:0 0 19px}.info-list dt{color:#909aa4}.info-list dd{margin:0;overflow-wrap:anywhere}.event strong,.event small{display:block}.event time{color:#929aa5;white-space:nowrap;font-size:10px}.registration-mini{border-top:1px solid #edf0f2;padding:12px 0;font-size:12px}.registration-mini strong,.registration-mini small{display:block}.registration-mini small{color:#919ba5;font-size:10px}.pill-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.pill-tabs a{padding:8px 15px;border:1px solid #e9ecef;border-radius:9px;background:#fff;font-size:11px;font-weight:700;color:#6e7884}.pill-tabs a.selected{color:#c91e26;background:#fff0f1;border-color:#f1d9db}.followup-card{padding:20px 23px}.followup-top,.followup-footer{display:flex;justify-content:space-between;gap:15px}.followup-top h2{margin:8px 0 3px}.followup-top p{margin:0;font-size:12px;color:#87919b}.followup-date{text-align:left;white-space:nowrap;font-size:12px;font-weight:800}.followup-date small{display:block;color:#9ba3ac;font-weight:600}.followup-footer{border-top:1px solid #f0f1f3;margin-top:18px;padding-top:14px;color:#89939d;font-size:11px}.followup-close{display:flex;align-items:end;gap:8px;border-top:1px solid #f0f1f3;margin-top:14px;padding-top:14px}.followup-close .field{flex:1;margin:0}.followup-close .button{white-space:nowrap}.empty-state{text-align:center;color:#8c96a0;padding:35px}.review-card .page-head{margin-bottom:8px}.review-card h2{margin:5px 0}.review-card .field{margin-bottom:9px}.qr-layout{display:grid;grid-template-columns:minmax(280px,420px) minmax(300px,1fr);gap:20px;align-items:start}.qr-paper{text-align:center;padding:28px}.qr-paper-brand{display:flex;gap:9px;align-items:center;justify-content:center;font-size:13px;margin-bottom:23px}.qr-paper-brand img{width:38px;height:38px;object-fit:contain}.qr-paper h2{font-size:24px;margin-bottom:3px}.qr-paper p{font-size:12px;color:#7b8590}.qr-paper #qr-code{display:flex;justify-content:center;margin:20px auto}.qr-paper #qr-code svg{max-width:240px;height:auto}.qr-paper small{color:#939ca6}.qr-tools .copy-link{display:block;width:100%;border:1px solid #dfe4e9;border-radius:10px;padding:11px;margin-bottom:16px;color:#525b65}.qr-note{border-radius:10px;background:#faf6f6;padding:14px;margin-top:24px;font-size:11px;color:#85686a;line-height:1.9}.guest-body:has(.join-shell) .auth{display:block;max-width:none;margin:0;padding:0;background:#faf8f8}.join-shell{max-width:620px;margin:auto;padding:26px 18px 45px}.join-head{display:flex;align-items:center;gap:10px;margin-bottom:24px;font-size:13px}.join-head img{width:45px;height:45px;object-fit:contain;background:white;border-radius:10px}.join-head small{display:block;color:#8e98a2;font-size:11px}.join-card{background:#fff;border:1px solid #ececef;border-radius:21px;padding:34px;box-shadow:0 15px 45px #372e3209}.join-card h1{font-size:27px}.join-card .muted{margin-bottom:23px}.join-submit{width:100%}.join-foot{text-align:center;font-size:10px;color:#959da6;margin-top:18px}.join-success{text-align:center;padding:30px 10px}.join-success span{display:grid;place-items:center;margin:0 auto 20px;width:64px;height:64px;background:#eff8f1;color:#23834a;border-radius:50%;font-size:27px}.join-success p{font-size:13px;line-height:2;color:#7a8490}.honey{position:absolute;left:-9999px;opacity:0}.catalog-results{font-size:12px}@media(max-width:980px){.customer-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-sections,.customer-columns{grid-template-columns:1fr}}@media(max-width:760px){.nav-open .nav-backdrop{display:block;position:fixed;inset:0;border:0;background:#13182070;z-index:9}.dashboard-welcome,.followup-top,.followup-footer{flex-direction:column;align-items:stretch}.followup-date{text-align:right}.followup-close{flex-wrap:wrap}.followup-close .field{flex-basis:100%}.qr-layout{grid-template-columns:1fr}.join-card{padding:25px 20px}.workspace>header .header-user{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@media print{.main-sidebar,.workspace>header,.nav-backdrop,.qr-tools,.page-head{display:none}.workspace>main{padding:0;max-width:none}.qr-layout{display:block}.qr-paper{border:0;box-shadow:none;max-width:500px;margin:0 auto;padding:40px}.qr-paper #qr-code svg{max-width:300px}}

:root{color:#211f24;background:#f5f6f8}.app-body{background:#f5f6f8}.layout{align-items:stretch}.layout>aside.main-sidebar{width:245px;min-width:245px;background:#fff;border-left:1px solid #eadfdf;padding:18px 11px 15px;box-shadow:none;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ead9d9 transparent}.main-sidebar .brand{min-height:66px;padding:0 8px 16px;margin:0 0 15px;border-color:#ecdfdf;font-size:12px;gap:10px}.main-sidebar .brand img{width:42px;height:42px;object-fit:contain;border-radius:8px}.main-sidebar nav{display:grid;gap:4px}.main-sidebar nav a{min-height:44px;padding:9px 13px;font-size:12.5px;font-weight:700;border-radius:11px;gap:12px;color:#615f67}.main-sidebar nav a:before{display:none}.main-sidebar nav a:hover,.main-sidebar nav a.active{background:#fbf1f1;color:#bf0006}.main-sidebar nav .logout{border:0;color:#b90009;margin:4px 0 0}.sidebar-spacer{flex:1;min-height:20px}.ui-icon{width:19px;height:19px;flex:none;display:inline-block}.workspace{min-width:0;flex:1}.workspace>header{height:74px;background:#fff;border-bottom:1px solid #ebdede;padding:0 28px;gap:20px;position:sticky;top:0;z-index:4}.header-start{flex:1;min-width:0}.header-search{display:flex;align-items:center;gap:9px;background:#fbf4f4;border-radius:11px;padding:0 14px;width:min(560px,100%);height:45px;color:#2b2226}.header-search .ui-icon{width:18px;height:18px}.header-search input{background:transparent;border:0;outline:0;width:100%;height:100%;min-width:0;color:#231f22;font:inherit;font-size:12px}.header-search input::placeholder{color:#ac9396}.workspace>header .header-title{display:none}.workspace>header .header-user{background:transparent;border-radius:0;color:#242026;font-size:12px;text-align:center;padding:0;min-width:86px;line-height:1.4}.workspace>header .header-user small{display:block;color:#a47f83;font-size:10px;font-weight:500}.workspace>main{max-width:none;width:100%;margin:0;padding:32px clamp(18px,2vw,38px) 65px}.page-head{margin-bottom:22px}.page-head h1,.dashboard-welcome h1{font-size:25px;color:#211d22}.page-head .muted{font-size:12px;margin:0;color:#987d81}.eyebrow{color:#c30009}.card{border:1px solid #ebdbdc;border-radius:17px;box-shadow:0 11px 30px #5e252509;padding:23px}.button{background:#c60008;border-color:#c60008;border-radius:10px;font-size:12px}.button:hover{background:#a90008}.button.secondary{border-color:#ead3d4;color:#a80008}.form,.sale-form{max-width:none}.form.card{max-width:1100px}.field{color:#30282b}.field input,.field select,.field textarea{border-color:#e9dcdc;border-radius:11px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#ca232b;box-shadow:0 0 0 3px #c5222d12}.filterbar{border-color:#ebdcdc;padding:20px;border-radius:17px;flex-wrap:wrap;box-shadow:0 11px 30px #5e252509}.filterbar input,.filterbar select{min-height:45px;border-color:#eadada;border-radius:10px}.table th,.table td{border-color:#ecdfdf}.table th{background:#fdf9f8;color:#886e72;padding:15px 12px}.table td{padding:17px 12px}.table-link,.small-link{color:#bd0009}.customer-stats .card{min-height:130px}.dashboard-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.pill-tabs a{border-color:#e9d8d9}.pill-tabs a.selected{background:#c60008;color:white;border-color:#c60008}.followup-card{border-color:#ebdcdc}.followup-close{border-color:#ebdcdc}.qr-layout{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1500px}.qr-paper{min-height:560px;display:flex;align-items:center;flex-direction:column;justify-content:center}.qr-tools{min-height:380px}.empty-state{border-style:dashed;min-height:185px;display:grid;place-items:center}.grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.permission-grid label{border-color:#eadcdc}.auth{background:#f5f6f8}@media(max-width:1100px){.qr-layout,.dashboard-sections{grid-template-columns:1fr}}@media(max-width:760px){.layout>aside.main-sidebar{width:270px;min-width:270px;right:-280px;z-index:11;padding:19px 12px}.nav-open .layout>aside.main-sidebar{right:0}.workspace>header{height:65px;padding:0 15px}.header-start{gap:8px}.header-search{height:40px;padding:0 9px}.header-search input{font-size:11px}.workspace>header .header-user{min-width:0;max-width:85px;font-size:11px}.workspace>header .header-user small{font-size:9px}.workspace>main{padding:22px 15px 45px}.page-head h1{font-size:23px}.form.card{max-width:none}.qr-paper{min-height:0}.customer-stats{gap:10px}.customer-stats .card{padding:17px;min-height:115px}}@media(max-width:420px){.workspace>header .header-user small{display:none}.header-search input::placeholder{font-size:10px}}@media print{.main-sidebar,.workspace>header{display:none}.workspace>main{padding:0}}
.client-create-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,280px);gap:22px;align-items:start}.client-create-layout .form.card{max-width:none}.client-create-layout aside .card{padding:23px;margin-bottom:15px}.client-create-layout aside h2{margin:10px 0 6px}.client-create-layout aside p{font-size:11px;color:#947f81;line-height:2;margin:0}.tip-icon{width:39px;height:39px;display:grid;place-items:center;background:#fbf1f1;border-radius:11px;color:#c60008;font-weight:800;font-size:11px}@media(max-width:900px){.client-create-layout{grid-template-columns:1fr}.client-create-layout aside{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}}@media(max-width:550px){.client-create-layout aside{grid-template-columns:1fr}}

.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.settings-card{text-align:right;display:flex;align-items:flex-start;flex-direction:column;gap:12px;min-height:220px;cursor:pointer;font:inherit;color:#231f22;transition:transform .18s,border-color .18s}.settings-card:hover{transform:translateY(-3px);border-color:#dda9ad}.settings-card-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:#fbf0f0;color:#c60008}.settings-card-icon .ui-icon{width:23px;height:23px}.settings-card strong{font-size:17px}.settings-card small{font-size:11px;color:#9b8185;line-height:1.9;min-height:41px}.settings-card-open{color:#bd0008;font-weight:800;font-size:11px;margin-top:auto}.settings-modal{width:min(1120px,calc(100vw - 34px));height:min(88vh,900px);max-height:88vh;padding:0;border:1px solid #ead9da;border-radius:20px;box-shadow:0 22px 70px #22131645;overflow:hidden;background:#f5f6f8}.settings-modal::backdrop{background:#2d1b20a8;backdrop-filter:blur(3px)}.settings-modal-bar{height:64px;background:#fff;border-bottom:1px solid #eadadb;display:flex;align-items:center;justify-content:space-between;padding:0 22px}.settings-modal-bar strong{font-size:17px}.settings-modal-bar button{background:#faf1f1;color:#9e252b;border:0;width:35px;height:35px;border-radius:9px;font-size:24px}.settings-modal iframe{display:block;width:100%;height:calc(100% - 64px);border:0}.modal-content{min-height:100vh;padding:28px;background:#f5f6f8}.modal-content .page-head{margin-bottom:20px}.recovery-card{max-width:none}.recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 19px}.recovery-grid .field{position:relative}.recovery-grid input{padding-left:54px}.slot-number{display:inline-flex;align-items:center;justify-content:center;background:#faeeee;border-radius:7px;color:#b90008;padding:2px 7px;margin-left:7px;font-size:10px}.recovery-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #efdddd;padding-top:19px}.recovery-footer p{font-size:11px;color:#9a8184;margin:0}.connection-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:17px}.connection-layout .card{min-height:270px}.connection-status{border-radius:12px;background:#fcf4f4;border:1px solid #efdddd;padding:16px;margin-bottom:19px}.connection-status strong,.connection-status small{display:block}.connection-status small{font-size:11px;color:#9b8284;margin-top:7px}.form-section{display:flex;align-items:center;gap:12px;border-bottom:1px solid #efdddd;margin:3px 0 23px;padding-bottom:16px}.form-section:not(:first-child){margin-top:32px}.form-step{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:11px;background:#c60008;color:#fff;font-size:11px;font-weight:800}.form-section h2{margin:0;font-size:17px}.form-section h2 small{color:#9b8385;font-size:11px}.form-section p{margin:0;color:#9d8588;font-size:11px}.client-form-card{max-width:none}.client-form-card form>.row{grid-template-columns:repeat(2,minmax(0,1fr))}.client-form-card .selected-items{margin-bottom:16px}.client-form-card .catalog-results{max-width:850px}.join-experience{min-height:100vh;display:grid;grid-template-columns:minmax(290px,36%) 1fr;background:#faf5f5}.guest-body:has(.join-experience) .auth{display:block;max-width:none;padding:0;margin:0}.join-intro{background:#c60008;color:#fff;padding:42px clamp(26px,3vw,60px);display:flex;flex-direction:column;min-height:100vh}.join-intro .join-head{margin:0;color:#fff}.join-intro .join-head small{color:#ffe5e5}.join-intro .join-head img{padding:4px}.join-intro-copy{margin:auto 0;max-width:470px}.join-intro-copy .eyebrow{color:#ffd8d8}.join-intro-copy h2{font-size:clamp(26px,2.7vw,42px);line-height:1.5;margin-bottom:13px}.join-intro-copy p{font-size:13px;color:#ffe3e3;line-height:2}.join-steps{display:grid;gap:13px;margin-top:37px}.join-steps div{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:700}.join-steps b{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#ffffff26}.join-intro-foot{color:#ffe2e2;font-size:11px}.join-form-area{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:45px clamp(20px,4vw,65px)}.join-form-area .join-card{width:min(100%,820px);padding:37px 40px;box-shadow:0 18px 50px #3a17170a}.join-form-area .join-card h1{font-size:29px}.join-section-title{display:flex;align-items:center;gap:11px;border-bottom:1px solid #f0e3e3;margin:25px 0 20px;padding-bottom:12px}.join-section-title>span{display:grid;place-items:center;background:#fff1f1;color:#c60008;width:33px;height:33px;border-radius:9px;font-size:11px;font-weight:800}.join-section-title strong{font-size:14px}.join-section-title small{color:#9d8688;font-size:10px}.join-consent{background:#faf6f6;border:1px solid #efe1e1;padding:13px;border-radius:11px;line-height:1.8}.join-privacy{text-align:center;font-size:10px;color:#9c8789;margin:12px 0 0}.join-form-area .join-foot{margin-bottom:0}@media(max-width:1000px){.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.join-experience{grid-template-columns:1fr}.join-intro{min-height:0;padding:18px 25px}.join-intro-copy,.join-intro-foot{display:none}.join-form-area{padding:25px 16px}.join-form-area .join-card{padding:27px}}@media(max-width:760px){.settings-grid,.connection-layout,.recovery-grid{grid-template-columns:1fr}.settings-modal{width:100vw;height:100vh;max-height:100vh;border-radius:0}.modal-content{padding:20px 15px}.recovery-footer{align-items:stretch;flex-direction:column}.client-form-card form>.row{grid-template-columns:1fr}.join-form-area .join-card{padding:24px 19px}}
.qr-dashboard{display:grid;grid-template-columns:minmax(330px,1fr) minmax(0,1fr);gap:20px;align-items:start;max-width:1500px}.qr-stage{min-height:650px;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column}.qr-ready{background:#e9f8f0;color:#118354;border-radius:30px;padding:8px 15px;font-size:11px;font-weight:800}.qr-stage #qr-code{padding:24px;border:1px solid #ecd6d7;border-radius:22px;box-shadow:0 15px 35px #7e292915;margin:20px auto}.qr-stage #qr-code svg{max-width:280px;height:auto}.qr-stage h2{font-size:25px;margin:0}.qr-stage>p{color:#967c7f;font-size:12px}.qr-stage-brand{display:flex;align-items:center;gap:8px;color:#9a7d80;font-size:11px;margin-top:10px}.qr-stage-brand img{width:25px;height:25px;object-fit:contain}.qr-details .card{padding:30px}.qr-how>div{display:flex;gap:15px;border-top:1px solid #efdfdf;padding:17px 0}.qr-how b{display:grid;place-items:center;border-radius:10px;color:#c60008;background:#fbefef;flex:none;width:38px;height:38px;font-size:11px}.qr-how strong,.qr-how small{display:block}.qr-how strong{font-size:13px}.qr-how small{font-size:11px;color:#9b8184;margin-top:4px}.qr-details .copy-link{display:block;width:100%;border:1px solid #e8d8d9;border-radius:10px;padding:12px;margin:18px 0;color:#635156}.qr-details .actions{gap:8px}@media(max-width:950px){.qr-dashboard{grid-template-columns:1fr}.qr-stage{min-height:0}.qr-details .card{padding:23px}}@media print{.qr-details,.page-head,.qr-stage-brand{display:none}.qr-dashboard{display:block}.qr-stage{border:0;box-shadow:none;min-height:90vh}.qr-stage #qr-code svg{max-width:350px}}

.catalog-results button{gap:18px;min-height:86px;text-align:right}.catalog-results button:last-child{border-bottom:0}.catalog-results button:hover,.catalog-results button:focus-visible{background:#fcf5f5;outline:0}.catalog-result-main{display:flex;align-items:center;gap:13px;min-width:0;flex:1}.catalog-thumb{width:58px;height:58px;flex:none;object-fit:contain;background:#fff;border:1px solid #efdddd;border-radius:11px;padding:5px}.catalog-thumb-empty{display:grid;place-items:center;color:#c9000a;font-size:25px;background:#fbf3f3}.catalog-result-info{min-width:0}.catalog-result-info b{display:block;color:#2b2226;font-size:12px;line-height:1.7;font-weight:700}.catalog-result-info small{color:#9a8083;font-size:10px}.catalog-result-price{font-weight:800;color:#c10008;white-space:nowrap;font-size:12px}.catalog-result-price small{display:block;color:#987f82;font-size:10px;text-align:left;margin-top:3px}@media(max-width:560px){.catalog-results button{gap:8px;padding:10px}.catalog-thumb{width:48px;height:48px}.catalog-result-price{font-size:10px}.catalog-result-info b{font-size:11px}}

.report-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.report-filter .row{flex:1;min-width:min(100%,430px)}.report-filter .field{margin:0}.report-filter .button{white-space:nowrap}.report-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}.report-kpis .card{min-width:0;margin:0;display:flex;flex-direction:column;gap:8px;padding:19px}.report-kpis small{font-size:11px;color:#9a8587}.report-kpis strong{font-size:clamp(16px,1.7vw,25px);line-height:1.5;overflow-wrap:anywhere}.report-kpis span{font-size:10px;color:#ab9698;margin-top:auto}.report-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:17px}.report-chart{min-width:0}.report-chart .section-title small{color:#a38b8f}.bar-chart{height:285px;display:flex;align-items:stretch;gap:5px;overflow-x:auto;padding:22px 5px 0;border-bottom:1px solid #eddcdd;scrollbar-width:thin}.bar-chart>.muted{align-self:center;margin:auto}.bar-slot{height:100%;display:flex;flex:1;min-width:14px;max-width:55px;flex-direction:column;align-items:center;gap:7px}.bar-rail{width:100%;height:calc(100% - 34px);display:flex;align-items:end;justify-content:center;border-bottom:1px solid #ebdada}.bar-rail span{width:min(80%,22px);min-height:3px;border-radius:6px 6px 0 0;background:linear-gradient(0deg,#a90008,#e44b52);transition:height .2s}.bar-slot small{font:10px Arial,sans-serif;color:#a48c8f;white-space:nowrap}.report-source{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #efdfdf;padding:16px 0;font-size:12px}.report-source span b{display:block;color:#a48c8f;font-size:10px;font-weight:500;margin-top:4px}.report-source strong{color:#c00008;white-space:nowrap}.report-subhead{margin:25px 0 3px}.segment-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;margin-bottom:17px}.segment-tabs a{white-space:nowrap;border:1px solid #e9dada;border-radius:11px;background:#fff;padding:9px 15px;font-size:11px;font-weight:700;color:#7c6a6d}.segment-tabs a.active{background:#c60008;border-color:#c60008;color:#fff}.segment-filter{display:flex;gap:10px}.segment-filter input{width:100%;min-width:0;flex:1;border:1px solid #e9dada;border-radius:9px;padding:10px 13px;font:inherit}.segment-heading{margin:23px 0 13px}.segment-heading h2 span{color:#c60008;font-size:13px;margin-right:6px}.segment-heading small{color:#a1888c}.segment-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.segment-card{margin:0;padding:20px}.segment-person{display:flex;align-items:center;gap:11px}.segment-person h2{margin:0;font-size:15px}.segment-person small{font-size:11px;color:#988184}.segment-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:16px 0;border-top:1px solid #efdfdf;border-bottom:1px solid #efdfdf;padding:14px 0}.segment-facts span{font-size:10px;color:#a28a8d}.segment-facts b{display:block;font-size:12px;color:#282126;margin-top:3px;overflow-wrap:anywhere}.segment-card .button{min-height:35px;padding:7px 11px}@media(max-width:1250px){.report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.report-grid,.segment-list{grid-template-columns:1fr}}@media(max-width:600px){.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.report-filter .row{min-width:100%}.report-filter .button{flex:1}.segment-filter{flex-direction:column}.segment-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}

body,input,textarea,select,.table,.metric,.report-kpis strong{font-variant-numeric:lining-nums tabular-nums}


.list-count{color:#9b8588;font-size:11px;margin:0 4px 10px}.pager{display:flex;align-items:center;justify-content:center;gap:15px;margin:18px 0;color:#856f73;font-size:12px}.pager .button{min-height:37px;padding:7px 15px}.edit-sale{max-width:980px}.edit-sale .tablewrap{margin:8px 0 25px}.line-input{width:135px;max-width:100%;border:1px solid #e2d8d9;border-radius:8px;padding:8px 10px;font:inherit;color:#33272a}.line-input:focus{outline:2px solid #f2c6c8}.followup-close{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.followup-close .field{flex:1;min-width:210px}.followup-close .button{min-height:40px}
.review-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.review-list .review-card{margin:0;min-width:0}.review-list .page-head{align-items:start}.review-list .review-card h2{margin:5px 0;font-size:15px}.review-list .review-card .muted{margin:0}.review-list .review-card form{border-top:1px solid #f0e4e4;padding-top:17px}.review-list .review-card .field{font-size:11px}.review-list .review-card .catalog-results{max-height:240px}@media(max-width:1050px){.review-list{grid-template-columns:1fr}}

.settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.settings-card.card{min-height:128px;margin:0;padding:20px;display:flex;flex-direction:row;align-items:center;text-align:right;gap:13px;border:1px solid #edd8da;border-radius:20px;background:#fff;box-shadow:0 10px 28px #502f3108;transform:none}.settings-card:hover{border-color:#d8b9bc;box-shadow:0 14px 30px #502f3112}.settings-card-icon{width:52px;height:52px;border-radius:14px;background:#fff0f1;flex:none}.settings-card-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.settings-card-copy strong{font-size:14px;color:#33272a}.settings-card-copy small{font-size:10px;line-height:1.75;color:#9d8a8e;min-height:0}.settings-card-arrow{margin-right:auto;color:#c60008;font-size:27px;font-family:Arial,sans-serif;font-weight:400;line-height:1}.settings-card-open{display:none}.settings-modal{width:min(980px,calc(100vw - 32px));height:min(90vh,820px);max-height:90vh}.settings-modal-bar{min-height:70px}.settings-modal-bar button{border:1px solid #efd8da;background:#fff;color:#b8000b}.settings-modal iframe{height:calc(100% - 70px)}@media(max-width:1150px){.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.settings-grid{grid-template-columns:1fr}.settings-card.card{min-height:104px;padding:16px}.settings-card-icon{width:45px;height:45px}}

.guest-body:has(.join-experience){overflow-x:clip}.guest-body:has(.join-experience) .auth{width:100%;max-width:none;min-width:0;overflow-x:clip}.join-experience{width:100%;max-width:100%;min-width:0;grid-template-columns:minmax(0,34%) minmax(0,66%);overflow-x:clip}.join-intro,.join-form-area,.join-card{min-width:0;max-width:100%;box-sizing:border-box}.join-intro-copy h2{font-size:clamp(25px,3vw,41px);overflow-wrap:anywhere}.join-form-area .join-card{width:min(100%,740px)}.join-form-area input,.join-form-area .field,.join-form-area .row{min-width:0;max-width:100%}@media(max-width:1000px){.join-experience{display:block}.join-intro{min-height:0;height:auto;padding:17px 22px}.join-intro-copy,.join-intro-foot{display:none}.join-form-area{padding:24px 18px;min-height:0}.join-form-area .join-card{margin:auto}}@media(max-width:600px){.join-form-area{padding:18px 12px}.join-form-area .join-card{padding:22px 18px;width:100%}.join-form-area .row{grid-template-columns:1fr}.join-head{max-width:100%}.join-head img{width:42px;height:42px}.join-form-area .join-card h1{font-size:23px}.join-section-title{margin:18px 0 15px}}

html,.settings-modal,.settings-modal iframe,.catalog-results,.main-sidebar,.bar-chart{scrollbar-width:thin;scrollbar-color:#d5a7aa #f5f6f8}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-track{background:#f5f6f8;border-radius:10px}::-webkit-scrollbar-thumb{background:#d5a7aa;border:2px solid #f5f6f8;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#b97076}

.site-feedback-dialog{width:min(420px,calc(100vw - 30px));border:1px solid #edd6d8;border-radius:18px;padding:0;box-shadow:0 24px 65px #32202538;background:#fff;color:#292329;direction:rtl}.site-feedback-dialog::backdrop{background:#24171980;backdrop-filter:blur(2px)}.site-feedback-inner{padding:26px}.site-feedback-symbol{display:grid;place-items:center;width:44px;height:44px;background:#fff0f1;color:#c0000a;border-radius:13px;font-size:23px;margin-bottom:14px}.site-feedback-dialog[data-kind="ok"] .site-feedback-symbol{background:#e9f7ee;color:#167449}.site-feedback-dialog h2{font-size:18px;margin:0 0 7px}.site-feedback-dialog p{font-size:12px;line-height:1.9;color:#776b70;margin:0 0 22px;white-space:pre-line}.site-feedback-dialog .button{width:100%}

.review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}.review-toolbar .pill-tabs{margin:0}.review-total{font-size:11px;color:#8f7e83;white-space:nowrap}.review-filter{margin-bottom:19px}.review-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.review-card-v2{padding:22px;margin:0;min-width:0;box-shadow:0 7px 24px #54333808}.review-card-head,.review-person{display:flex;align-items:center;gap:11px}.review-card-head{justify-content:space-between;gap:14px}.review-person{min-width:0}.review-person h2{font-size:14px;margin:0 0 2px}.review-person h2 a:hover{color:#bd0711}.review-person span[dir]{display:block;font-size:11px;color:#928187}.review-badge{display:inline-flex;align-items:center;border-radius:50px;padding:6px 10px;font-size:10px;font-weight:700;white-space:nowrap;background:#fff2e9;color:#9b5a20}.review-badge.approved{background:#e9f7ee;color:#1d7546}.review-badge.rejected{background:#f5f0f0;color:#8a666a}.review-facts{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px;margin:18px 0 14px}.review-facts>div{border:1px solid #f0e6e6;border-radius:11px;padding:11px 13px;min-width:0;background:#fdfafa}.review-facts small,.review-facts strong{display:block}.review-facts small{font-size:10px;color:#a28f93}.review-facts strong{font-size:12px;line-height:1.7;overflow-wrap:anywhere;margin-top:4px}.review-card-meta{display:flex;justify-content:space-between;gap:9px;color:#a39195;font-size:10px}.review-editor{border-top:1px solid #eee2e2;margin-top:17px;padding-top:12px}.review-editor summary{list-style:none;cursor:pointer;font-weight:800;font-size:11px;color:#b7000b;display:flex;align-items:center;justify-content:space-between}.review-editor summary::-webkit-details-marker{display:none}.review-editor summary span{font-size:18px;transition:transform .2s}.review-editor[open] summary span{transform:rotate(180deg)}.review-editor form{border:0;padding:17px 0 0}.review-editor .actions{margin-top:12px}.review-outcome{border-top:1px solid #eee2e2;margin-top:17px;padding-top:11px}.review-outcome small{color:#a39195}.review-outcome p{margin:3px 0 0;font-size:11px;color:#66575b}.review-empty{grid-column:1/-1}@media(max-width:1100px){.review-list{grid-template-columns:1fr}}@media(max-width:650px){.review-toolbar{align-items:stretch;flex-direction:column}.review-total{align-self:flex-start}.review-card-v2{padding:17px}.review-facts{grid-template-columns:1fr}.review-card-meta{flex-wrap:wrap}.review-filter{flex-direction:column}}


.workspace>main:has(.customer-file-page),.workspace>main:has(.customer-editor-shell),.workspace>main:has(.customers-page-head){max-width:1460px}
.customer-create-page-head h1,.customers-page-head h1{font-size:31px}.customer-create-page-head .muted,.customers-page-head .muted{font-size:14px;max-width:760px}


.customer-editor-shell{max-width:1120px;margin:0 auto}.customer-editor-form{padding:0;overflow:hidden;border-radius:22px;border-color:#eadcdd;box-shadow:0 14px 38px rgba(75,30,34,.055)}
.customer-form-section{padding:27px 30px;border-bottom:1px solid #f0e6e7}.customer-form-section:last-of-type{border-bottom:0}.customer-form-section-head{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:14px;margin-bottom:24px}.customer-form-section-head.purchase-head{grid-template-columns:48px minmax(0,1fr) auto;align-items:center}.customer-form-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#fff0f1;color:#c60008;font-size:13px;font-weight:900;border:1px solid #f2d7d9}.customer-form-section-head small{display:block;color:#b79ca0;font-size:11px;font-weight:800;margin-bottom:2px}.customer-form-section-head h2{font-size:20px;margin:0 0 4px;color:#2e2527}.customer-form-section-head p{margin:0;color:#8b7b7f;font-size:12px;line-height:1.85}.customer-form-grid{display:grid;gap:15px}.customer-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-form-grid.compact-bottom{align-items:stretch}.customer-editor-form .field{font-size:13px;margin-bottom:17px}.customer-editor-form .field>small{color:#a79397;font-size:10px;font-weight:600}.customer-editor-form .field input,.customer-editor-form .field select,.customer-editor-form .field textarea{font-size:14px;border-color:#e3d8da;background:#fff;height:50px;border-radius:12px}.customer-editor-form .field textarea{height:auto;min-height:95px;line-height:1.8}.customer-required{position:relative}.customer-required:before{content:'*';color:#c60008;margin-left:4px}.field-feedback{display:block;min-height:0;margin-top:7px;font-size:11px;font-weight:700}.field-feedback.duplicate{padding:9px 11px;border:1px solid #f0c7ca;background:#fff5f6;color:#9b171e;border-radius:9px}.field-feedback a{color:#b90009;text-decoration:underline}.consent-box{min-height:76px;display:flex;align-items:center;gap:12px;padding:13px 15px;margin-bottom:17px;border:1px solid #e9dddf;border-radius:13px;background:#fffafa;cursor:pointer}.consent-box input{width:18px;height:18px;accent-color:#c60008}.consent-box span{display:grid;gap:3px}.consent-box b{font-size:13px}.consent-box small{font-size:10px;color:#99878b}
.purchase-switch{display:flex;align-items:center;gap:9px;cursor:pointer;white-space:nowrap;font-size:12px;font-weight:800;color:#55474a}.purchase-switch input{position:absolute;opacity:0;pointer-events:none}.purchase-switch span{position:relative;width:44px;height:25px;border-radius:999px;background:#e7dcde;transition:.2s}.purchase-switch span:after{content:'';position:absolute;top:4px;right:4px;width:17px;height:17px;background:#fff;border-radius:50%;box-shadow:0 2px 6px #0002;transition:.2s}.purchase-switch input:checked+span{background:#c60008}.purchase-switch input:checked+span:after{right:23px}.purchase-editor[hidden]{display:none}.purchase-editor{padding-top:2px}.purchase-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:11px}.purchase-search-row .catalog-picker .field{margin-bottom:0}.manual-item-toggle{margin-bottom:0;white-space:nowrap}.manual-sale-entry{display:grid;grid-template-columns:minmax(220px,1fr) 110px 160px auto;align-items:end;gap:10px;padding:14px;margin:13px 0 17px;border:1px dashed #dfc6c8;background:#fffafb;border-radius:14px}.manual-sale-entry[hidden]{display:none}.manual-sale-entry .field{margin:0}.manual-sale-entry .button{min-height:50px}.picked-section-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:22px 0 10px}.picked-section-head h3{font-size:16px;margin:0}.picked-section-head p{font-size:10px;color:#948287;margin:2px 0 0}.picked-section-head>span{font-size:10px;color:#a28f93;background:#f8f3f4;border-radius:999px;padding:6px 10px}.selected-items{display:grid;gap:9px}.picked-item{display:grid;grid-template-columns:minmax(240px,1fr) 95px 135px 130px 34px;align-items:center;gap:10px;padding:10px 12px;border:1px solid #ece1e2;border-radius:13px;background:#fff}.picked-product{display:flex;align-items:center;gap:10px;min-width:0}.picked-product .catalog-thumb{width:48px;height:48px;flex:0 0 48px}.picked-product>div{min-width:0}.picked-product b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.picked-product small{display:block;margin-top:3px;font-size:9px;color:#a08d91}.picked-item label{font-size:9px;color:#9c898d}.picked-item label input{width:100%;height:38px;margin-top:3px;border:1px solid #e5dadd;border-radius:8px;padding:6px 8px;font:inherit;color:#33282b}.picked-subtotal{display:grid;gap:2px}.picked-subtotal small{font-size:9px}.picked-subtotal b{font-size:11px}.remove-item{width:32px;height:32px;border:0;border-radius:9px;background:#fff0f1;color:#b9000a;font-size:18px}.picked-empty{display:flex;align-items:center;justify-content:center;gap:12px;min-height:92px;border:1px dashed #e3d2d4;border-radius:13px;background:#fffdfd;color:#938084}.picked-empty>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#fff0f1;color:#c60008;font-size:20px}.picked-empty b{display:block;font-size:12px;color:#55464a}.picked-empty small{font-size:10px}.sale-meta-grid{margin-top:17px}.sale-total-pro{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:2px 0 0;padding:14px 16px;border-radius:13px;background:#fbf5f6;border:1px solid #eddddf}.sale-total-pro span{font-size:12px;color:#745f63}.sale-total-pro strong{font-size:20px;color:#b90009}.customer-form-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 30px;background:#fcfafb}.customer-form-actions>div:first-child{display:grid;gap:2px}.customer-form-actions>div:first-child b{font-size:13px}.customer-form-actions>div:first-child small{font-size:10px;color:#98868a}
.catalog-results{z-index:7}.catalog-results button{min-height:68px}.catalog-result-info b{font-size:12px}.catalog-result-price b{font-size:11px}.catalog-message{margin:0;padding:15px;color:#8c797d;font-size:11px}
.sale-form-pro{max-width:1040px;padding:28px}.sale-form-pro .field{font-size:13px}.sale-form-pro .field input,.sale-form-pro .field select,.sale-form-pro .field textarea{font-size:14px}


.customer-file-page{display:grid;gap:16px;font-size:14px}.customer-profile-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,.72fr);gap:22px;padding:22px 24px;background:linear-gradient(135deg,#fff 0%,#fffafa 58%,#fff4f5 100%);border:1px solid #eadbdd;border-radius:22px;box-shadow:0 14px 38px rgba(75,30,34,.055)}.customer-identity{display:flex;align-items:center;gap:16px;min-width:0}.customer-avatar{flex:0 0 76px;width:76px;height:76px;display:grid;place-items:center;border-radius:22px;background:#c60008;color:#fff;font-size:29px;font-weight:900;box-shadow:0 9px 22px rgba(198,0,8,.18)}.customer-identity-copy{min-width:0}.customer-identity-copy .eyebrow{margin-bottom:3px}.customer-name-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.customer-name-row h1{font-size:30px;margin:0;color:#291f22}.customer-source-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#fff0f1;color:#b00009;font-size:10px;font-weight:800}.customer-meta-row,.customer-flags{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.customer-meta-row{margin-top:7px;color:#8d7b7f;font-size:12px}.customer-flags{margin-top:10px}.customer-flag{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:9px;font-weight:800}.customer-flag.ok{background:#e9f8f0;color:#14764a}.customer-flag.neutral{background:#f5f1f2;color:#77666a}.customer-hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;gap:9px}.profile-action{min-height:67px;display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #eadbdd;background:#fff;border-radius:14px;transition:.18s}.profile-action:hover{transform:translateY(-2px);border-color:#dbb8bc;box-shadow:0 8px 20px #4f2c300d}.profile-action>span{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#fff0f1;color:#ba0009;font-size:17px;font-weight:800}.profile-action.primary{background:#c60008;border-color:#c60008;color:#fff}.profile-action.primary>span{background:#fff;color:#c60008}.profile-action div{min-width:0;display:grid;gap:2px}.profile-action b{font-size:12px}.profile-action small{font-size:9px;color:#978488}.profile-action.primary small{color:#ffe2e4}
.customer-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.customer-kpi-grid article{min-width:0;min-height:112px;display:flex;flex-direction:column;gap:4px;padding:15px 16px;background:#fff;border:1px solid #eadfe0;border-radius:16px;box-shadow:0 7px 20px rgba(64,32,35,.025)}.customer-kpi-grid small{font-size:10px;color:#968388;font-weight:700}.customer-kpi-grid strong{font-size:21px;line-height:1.55;color:#2e2527;overflow-wrap:anywhere}.customer-kpi-grid strong b{font-size:10px;color:#8c797d}.customer-kpi-grid strong.date-value{font-size:14px;min-height:33px;display:flex;align-items:center}.customer-kpi-grid article>span{margin-top:auto;font-size:9px;color:#aa979b}
.customer-file-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;align-items:start;gap:16px;min-width:0}.customer-file-main{min-width:0;display:grid;gap:16px}.customer-section-card{margin:0;padding:20px 22px;border-radius:18px}.profile-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:15px}.profile-section-head .eyebrow{margin-bottom:2px}.profile-section-head h2{font-size:20px;margin:0}.profile-section-head p{font-size:11px;color:#8f7d81;margin:3px 0 0}.section-count,.small-action-link{font-size:10px;font-weight:800}.section-count{padding:6px 9px;border-radius:999px;background:#f7f1f2;color:#867276}.small-action-link{color:#b60009}.purchase-history{display:grid;gap:12px}.purchase-card{border:1px solid #eadfe0;border-radius:16px;overflow:hidden;background:#fff}.purchase-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 16px;background:#fdfafb;border-bottom:1px solid #efe4e5}.purchase-title-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.purchase-title-line h3{margin:0;font-size:14px}.purchase-card-head p{margin:3px 0 0;font-size:10px;color:#98858a}.status-pill{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:800}.status-pill.success{background:#e7f7ee;color:#147649}.status-pill.pending{background:#fff3de;color:#9c640e}.status-pill.danger{background:#feecee;color:#a21822}.status-pill.muted{background:#f2eeee;color:#806a6e}.purchase-total{text-align:left}.purchase-total small{display:block;font-size:9px;color:#9b888c}.purchase-total strong{font-size:17px;color:#b60009}.purchase-total strong b{font-size:9px;color:#8f7c80}.purchase-items{display:grid}.purchase-item-row{display:grid;grid-template-columns:42px minmax(220px,1fr) 80px 115px 120px;align-items:center;gap:10px;padding:12px 15px;border-bottom:1px solid #f1e8e9}.purchase-item-row:last-child{border-bottom:0}.purchase-item-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#fff0f1;color:#b90009;font-weight:900}.purchase-item-name{min-width:0}.purchase-item-name strong{display:block;font-size:12px;line-height:1.65}.purchase-item-name small{display:block;font-size:9px;color:#9c898d;line-height:1.6;margin-top:2px}.purchase-item-fact{display:grid;gap:2px}.purchase-item-fact small{font-size:8.5px;color:#a08d91}.purchase-item-fact b{font-size:10.5px}.purchase-item-fact.total b{color:#ad0009}.purchase-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 15px;background:#fdfbfb;border-top:1px solid #f1e8e9}.purchase-card-foot a{font-size:10px;font-weight:800;color:#b50009}.purchase-card-foot span{font-size:9px;color:#9b888c}
.profile-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;border:1px dashed #e6d4d6;border-radius:14px;background:#fffdfd}.profile-empty.compact{min-height:70px;padding:18px}.profile-empty-icon{font-size:28px;margin-bottom:7px}.profile-empty b{font-size:13px}.profile-empty p,.profile-empty span{font-size:10px;color:#9a878b;max-width:520px;margin:4px 0 0;line-height:1.8}.profile-feed{display:grid}.profile-feed article{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:start;gap:9px;padding:12px 2px;border-bottom:1px solid #f1e8e9}.profile-feed article:last-child{border-bottom:0}.feed-dot{width:9px;height:9px;margin-top:5px;border-radius:50%;background:#dacdd0}.feed-dot.active{background:#c60008;box-shadow:0 0 0 4px #fff0f1}.profile-feed strong{font-size:12px}.profile-feed p{margin:2px 0 0;font-size:9px;color:#99868a}.profile-feed time{font-size:9px;color:#9d8a8e;white-space:nowrap}.timeline-feed strong{font-weight:700}
.profile-side-card{padding:17px;background:#fff;border:1px solid #eadfe0;border-radius:17px;box-shadow:0 7px 20px rgba(64,32,35,.025)}.side-card-title{display:flex;align-items:center;gap:10px;margin-bottom:13px}.side-card-title>span{flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#fff0f1;color:#b80009;font-size:12px;font-weight:900}.side-card-title h2{font-size:14px;margin:0}.side-card-title p{font-size:9px;color:#9b898d;margin:2px 0 0}.customer-contact-list{margin:0}.customer-contact-list>div{display:grid;grid-template-columns:94px minmax(0,1fr);gap:9px;padding:9px 0;border-bottom:1px solid #f1e8e9}.customer-contact-list>div:last-child{border-bottom:0}.customer-contact-list dt{font-size:9px;color:#9a878b}.customer-contact-list dd{margin:0;font-size:11px;font-weight:800;overflow-wrap:anywhere}.contact-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.contact-actions a{display:grid;place-items:center;min-height:39px;border:1px solid #ecd9db;border-radius:10px;color:#b60009;font-size:11px;font-weight:800}.contact-actions a:last-child{color:#087a4d;border-color:#cde8d9;background:#f7fcf9}.registration-list{display:grid;gap:8px}.registration-list article{display:grid;gap:2px;padding:9px 0;border-bottom:1px solid #f1e8e9}.registration-list article:last-child{border-bottom:0}.registration-list strong{font-size:11px}.registration-list small,.side-empty{font-size:9px;color:#9a878b}.side-empty{margin:0}.customer-notes{margin:0;font-size:11px;line-height:1.9;color:#5f5053}


.customers-filter{align-items:center}.customers-filter input{min-height:44px}.customers-filter select{min-height:44px}.customers-list-meta{display:flex;justify-content:space-between;gap:12px;margin:0 4px 9px;color:#927f83;font-size:11px}.customers-list-meta b{color:#342a2c}.customer-table-card{padding:8px 16px}.customer-table{font-size:13px}.customer-table th{font-size:10px}.customer-table td{padding-top:12px;padding-bottom:12px}.customer-table-person{display:flex;align-items:center;gap:10px;min-width:210px}.customer-mini-avatar{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#fff0f1;color:#b90009;font-size:14px;font-weight:900}.customer-table-person>span:last-child{display:grid;gap:2px}.customer-table-person b{font-size:12px}.customer-table-person small{font-size:9px;color:#9b888c}.source-chip{display:inline-flex;padding:4px 8px;border-radius:999px;background:#f6f1f2;color:#756266;font-size:9px;font-weight:800}.row-open{color:#b60009;font-size:10px;font-weight:800}.customers-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:17px;font-size:11px;color:#826f73}.customers-pager .button{min-height:38px;padding:7px 14px}.customers-pager .button.disabled{pointer-events:none;opacity:.42}

@media(max-width:1180px){.customer-profile-hero{grid-template-columns:1fr}.customer-hero-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-file-layout{grid-template-columns:minmax(0,1fr) 295px}.purchase-item-row{grid-template-columns:38px minmax(180px,1fr) 65px 100px 105px}}
@media(max-width:900px){.customer-form-grid.two{grid-template-columns:1fr}.manual-sale-entry{grid-template-columns:1fr 1fr}.manual-sale-entry .field:first-child{grid-column:1/-1}.customer-file-layout{grid-template-columns:1fr}.customer-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-item-row{grid-template-columns:38px minmax(0,1fr) 80px}.purchase-item-fact:nth-of-type(2),.purchase-item-fact:nth-of-type(3){grid-column:auto}.purchase-item-fact.total{grid-column:3}.purchase-item-name{grid-column:2}.purchase-card-head{align-items:flex-start}.purchase-total{min-width:130px}.customers-filter{flex-wrap:wrap}.customers-filter input{flex-basis:100%}}
@media(max-width:650px){.customer-create-page-head,.customers-page-head{align-items:flex-start;flex-direction:column}.customer-create-page-head h1,.customers-page-head h1{font-size:25px}.customer-editor-form{border-radius:17px}.customer-form-section{padding:20px 17px}.customer-form-section-head,.customer-form-section-head.purchase-head{grid-template-columns:42px minmax(0,1fr)}.customer-form-icon{width:40px;height:40px;border-radius:12px}.customer-form-section-head.purchase-head .purchase-switch{grid-column:1/-1;justify-self:start;margin-top:3px}.purchase-search-row{grid-template-columns:1fr}.manual-item-toggle{width:100%}.manual-sale-entry{grid-template-columns:1fr}.manual-sale-entry .field:first-child{grid-column:auto}.picked-item{grid-template-columns:44px minmax(0,1fr) 32px;gap:8px}.picked-product{grid-column:1/3}.picked-product .catalog-thumb{width:44px;height:44px;flex-basis:44px}.picked-item label{grid-column:1/2}.picked-item label+label{grid-column:2/3}.picked-subtotal{grid-column:1/3;display:flex;justify-content:space-between}.remove-item{grid-column:3;grid-row:1}.customer-form-actions{padding:17px;align-items:stretch;flex-direction:column}.customer-form-actions .actions{display:grid;grid-template-columns:1fr 1fr}.customer-form-actions .button{width:100%}.customer-profile-hero{padding:17px}.customer-identity{align-items:flex-start}.customer-avatar{width:58px;height:58px;flex-basis:58px;border-radius:17px;font-size:23px}.customer-name-row h1{font-size:24px}.customer-meta-row{font-size:10px}.customer-hero-actions{grid-template-columns:1fr}.customer-kpi-grid{grid-template-columns:1fr 1fr}.customer-kpi-grid article{min-height:98px;padding:13px}.customer-kpi-grid strong{font-size:18px}.customer-section-card{padding:16px 13px}.profile-section-head{align-items:flex-start;flex-direction:column}.purchase-card-head{flex-direction:column}.purchase-total{text-align:right}.purchase-item-row{grid-template-columns:34px minmax(0,1fr);padding:11px}.purchase-item-icon{width:32px;height:32px}.purchase-item-name{grid-column:2}.purchase-item-fact{display:flex;justify-content:space-between;grid-column:1/-1;padding-inline-start:44px}.purchase-item-fact.total{grid-column:1/-1}.purchase-card-foot{align-items:flex-start;flex-direction:column}.profile-feed article{grid-template-columns:10px minmax(0,1fr)}.profile-feed time{grid-column:2}.customers-filter{display:grid;grid-template-columns:1fr 1fr}.customers-filter input{grid-column:1/-1}.customers-filter button{width:100%}.customer-table-card{padding:4px 10px}.customers-list-meta{font-size:10px}.customers-pager{gap:8px}.customers-pager .button{padding:7px 10px}}


.app-body{background:#fbf8f8;color:#30282a}.app-body .workspace>main{max-width:1400px;padding-top:34px}.app-body .workspace>header{height:74px;border-bottom-color:#eadfe0}.app-body .layout>aside{border-left-color:#eee3e4}.app-body .layout nav a,.app-body .logout{font-size:13px;min-height:47px}.app-body h1{font-size:30px}.app-body h2{font-size:18px}.app-body .muted{font-size:13.5px;color:#88777b}.app-body .card{border-color:#eadfe0;box-shadow:0 8px 24px rgba(72,36,40,.03)}.app-body .field{font-size:13px}.app-body .field input,.app-body .field select{height:48px;font-size:13.5px;border-color:#e5dadd}.app-body .field textarea{font-size:13.5px;border-color:#e5dadd}.app-body .table{font-size:13px}.app-body .table th{font-size:10.5px;color:#9a8589}.app-body .button{font-size:12.5px;border-radius:11px}.app-body .filterbar{border-color:#eadfe0;box-shadow:0 7px 20px rgba(72,36,40,.025)}
@media(max-width:760px){.app-body .workspace>main{padding-top:24px}.app-body h1{font-size:25px}.app-body h2{font-size:17px}}


:root{
 --crm-red:#c9000a;--crm-red-dark:#aa0008;--crm-red-soft:#fff1f2;--crm-bg:#f8f4f4;--crm-surface:#fff;
 --crm-text:#241d1f;--crm-muted:#7f7074;--crm-border:#eadcdf;--crm-border-strong:#ddc8cc;--crm-green:#128452;
 --crm-shadow:0 10px 28px rgba(68,31,35,.055);--crm-shadow-strong:0 22px 70px rgba(60,26,31,.14);--crm-radius:18px;
}
html{font-family:Cairo,Arial,sans-serif;background:var(--crm-bg);color:var(--crm-text);font-size:16px}
body{background:var(--crm-bg);color:var(--crm-text);line-height:1.75}
button,input,select,textarea{font:inherit;color:inherit}input,select,textarea{caret-color:var(--crm-red)}
h1,h2,h3,p{margin-top:0}.muted{color:var(--crm-muted);font-size:14px;line-height:1.85;margin:0 0 22px}
.eyebrow,.form-kicker{display:block;color:var(--crm-red);font-size:12px;font-weight:800;margin-bottom:7px;letter-spacing:0}
h1{font-size:31px;line-height:1.45;margin-bottom:8px;letter-spacing:-.02em}h2{font-size:19px;line-height:1.55;margin-bottom:14px}h3{font-size:16px}
.ui-icon{width:20px;height:20px;flex:none}


.app-body{background:var(--crm-bg);min-height:100vh}
.app-body .layout{display:block;min-height:100vh}
.app-body .layout>aside.main-sidebar{position:fixed;right:0;top:0;bottom:0;width:278px;height:100vh;z-index:60;background:#fff;border-left:1px solid var(--crm-border);padding:20px 14px 16px;display:flex;flex-direction:column;overflow-y:auto;box-shadow:none}
.main-sidebar .brand{display:flex;align-items:center;gap:11px;min-height:68px;padding:0 9px 18px;margin:0 0 15px;border-bottom:1px solid #f0e5e7;font-size:14px;font-weight:800;line-height:1.5}
.main-sidebar .brand img{width:48px;height:48px;border-radius:13px;object-fit:contain;background:#fff}
.main-sidebar .brand small{display:block;margin-top:3px;font-size:11px;font-weight:600;color:#9a898d}
.main-sidebar nav{display:grid;gap:5px}
.main-sidebar nav a,.main-sidebar .logout{min-height:48px;padding:10px 13px;border-radius:12px;display:flex;align-items:center;gap:12px;color:#63575b;font-size:13.5px;font-weight:700;transition:.16s ease}
.main-sidebar nav a:before,.main-sidebar nav a:after{display:none}
.main-sidebar nav a:hover,.main-sidebar nav a.active{background:var(--crm-red-soft);color:var(--crm-red)}
.main-sidebar nav a.active{box-shadow:inset -3px 0 0 var(--crm-red)}
.main-sidebar .logout{color:#9b3d43;border-radius:12px;border-top:0;padding-top:10px;margin-top:0}
.main-sidebar .logout:hover{background:#fff3f3;color:var(--crm-red-dark)}
.sidebar-spacer{flex:1;min-height:20px}
.app-body .workspace{margin-right:278px;min-width:0;width:auto}
.app-body .workspace>header{height:76px;position:sticky;top:0;z-index:50;background:rgba(255,255,255,.98);border-bottom:1px solid var(--crm-border);padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:22px;backdrop-filter:blur(8px)}
.header-start{display:flex;align-items:center;gap:17px;min-width:0;flex:1}.header-title{display:none}
.header-search{width:min(540px,52vw);height:46px;display:flex;align-items:center;gap:10px;background:#fbf7f7;border:1px solid transparent;border-radius:13px;padding:0 14px;transition:.16s}
.header-search:focus-within{background:#fff;border-color:#e1c7ca;box-shadow:0 0 0 3px rgba(201,0,10,.06)}
.header-search .ui-icon{color:#7e6d71;width:18px;height:18px}.header-search input{border:0;box-shadow:none;background:transparent;outline:0;width:100%;height:100%;font-size:13.5px;margin:0;padding:0}
.header-user{display:grid;gap:1px;background:#f7f4f4;border:1px solid #eee5e6;border-radius:999px;padding:7px 14px;min-width:max-content;color:#463b3e;font-size:12.5px;line-height:1.35;text-align:right}
.header-user small{font-size:9.5px;color:#a18e92;font-weight:600}.menu{display:none}
.app-body .workspace>main{max-width:1510px;margin:0 auto;padding:34px 34px 72px}
.nav-backdrop{display:none}


.card{background:#fff;border:1px solid var(--crm-border);border-radius:var(--crm-radius);padding:22px;box-shadow:var(--crm-shadow);margin-bottom:18px}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px}.page-head>div:first-child{min-width:0}.page-head .muted{margin-bottom:0;max-width:800px}.page-head .actions{justify-content:flex-end}
.button{min-height:45px;border:1px solid var(--crm-red);background:var(--crm-red);color:#fff;border-radius:11px;padding:9px 18px;font-size:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.16s ease;box-shadow:none}
.button:hover{background:var(--crm-red-dark);border-color:var(--crm-red-dark);transform:translateY(-1px)}
.button.secondary{background:#fff;color:var(--crm-red);border-color:#e5c9cc}.button.secondary:hover{background:#fff7f7;border-color:#dcaeb3}.button.disabled{pointer-events:none;opacity:.45}
.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.field{display:block;font-size:13px;font-weight:700;color:#44383b;margin-bottom:17px}.field>small,.field>span small{font-size:10.5px;color:#9d8a8e;font-weight:600}
.field input,.field select,.field textarea,.filterbar input,.filterbar select{width:100%;border:1px solid #e4d8da;background:#fff;border-radius:11px;outline:0;transition:.16s ease;color:#332a2c}
.field input,.field select{height:49px;padding:9px 13px;margin-top:7px}.field textarea{min-height:98px;padding:12px 13px;margin-top:7px;resize:vertical;line-height:1.75}
.field input:focus,.field select:focus,.field textarea:focus,.filterbar input:focus,.filterbar select:focus{border-color:#d7aeb2;box-shadow:0 0 0 3px rgba(201,0,10,.06)}
.field input::placeholder,.field textarea::placeholder,.filterbar input::placeholder{color:#b4a7aa}.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.check{display:flex;align-items:center;gap:9px;font-size:13px;color:#5e5155}.check input,.permission-grid input{accent-color:var(--crm-red)}
.notice{padding:12px 14px;border-radius:11px;background:#fff0f1;color:#9d1d25;border:1px solid #f0ced1;margin:14px 0;font-size:13px}.notice.ok{background:#eef9f3;color:#14744b;border-color:#d2ebdd}
.small-link,.table-link{color:var(--crm-red);font-size:12.5px;font-weight:800}.tag,.source-chip,.status-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-size:10.5px;font-weight:800}
.tag{padding:5px 9px;background:#f6f1f2;color:#74666a}.source-chip{padding:5px 9px;background:#f8f1f2;color:#78666a}
.filterbar{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--crm-border);border-radius:15px;padding:12px;margin-bottom:16px;box-shadow:var(--crm-shadow)}.filterbar input{flex:1;min-width:220px;height:47px;padding:9px 13px}.filterbar select{height:47px;padding:9px 12px;min-width:155px}
.tablewrap{overflow:auto}.table{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px}.table th,.table td{text-align:right;padding:14px 12px;border-bottom:1px solid #f0e6e7;white-space:nowrap;vertical-align:middle}.table th{background:#fdf9f9;color:#8f7c80;font-size:11.5px;font-weight:800}.table tr:last-child td{border-bottom:0}.empty-cell{text-align:center;color:#968589;padding:34px}.empty-state{min-height:132px;display:grid;place-items:center;text-align:center;color:#8f7d81;padding:24px;border-style:dashed;background:#fffdfd}.list-count{margin:0 3px 9px;color:#978488;font-size:12px}.pager,.customers-pager{display:flex;align-items:center;justify-content:center;gap:13px;margin-top:16px;color:#7d6c70;font-size:12.5px}.pager .button,.customers-pager .button{min-height:39px;padding:7px 13px}


.dashboard-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:22px}.dashboard-welcome h1{font-size:32px;margin:0}.dashboard-welcome>div>p:last-child{margin:4px 0 0;color:var(--crm-muted);font-size:14px}
.customer-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.customer-stats .card{margin:0;min-height:126px;display:flex;flex-direction:column;gap:4px;padding:19px}.customer-stats small{font-size:12px;color:#8e7c80}.customer-stats strong{font-size:29px;line-height:1.35;color:#291f22}.customer-stats span{margin-top:auto;color:var(--crm-red);font-size:11.5px;font-weight:700}
.dashboard-sections{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dashboard-sections .card{margin:0}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-title h2{margin:0}.section-title a{color:var(--crm-red);font-size:12px;font-weight:800}.list-entry{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #f1e8e9;font-size:13px}.list-entry>div{min-width:0;flex:1}.list-entry b{display:block}.list-entry small{display:block;color:#988589;font-size:11px;margin-top:2px}.list-entry time{font-size:11px;color:#99868a;white-space:nowrap}.list-dot{width:9px;height:9px;border-radius:50%;background:var(--crm-red);flex:none}.avatar-letter{width:38px;height:38px;border-radius:12px;background:var(--crm-red-soft);color:var(--crm-red);display:grid;place-items:center;font-weight:900}


.guest-body{background:#f8f4f4}.guest-body .auth{max-width:none;min-height:100vh;margin:0;padding:0;display:block}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f8f4f4}.login-card{width:min(100%,465px);background:#fff;border:1px solid var(--crm-border);border-radius:25px;padding:32px 34px 28px;box-shadow:var(--crm-shadow-strong)}
.login-logo{width:154px;height:68px;margin:0 auto 12px;display:grid;place-items:center}.login-logo img{max-width:100%;max-height:100%;object-fit:contain}.login-card .login-kicker{display:block;text-align:center;color:var(--crm-red);font-size:10.5px;font-weight:900;letter-spacing:.12em;margin-bottom:4px}.login-card h1{text-align:center;font-size:25px;margin:0 0 5px}.login-subtitle{text-align:center;color:#88777b;font-size:12.5px;line-height:1.8;margin:0 auto 23px;max-width:360px}.login-field{font-size:13px;margin-bottom:15px}.login-field>span{display:block;margin-bottom:6px}.login-card .field input{height:49px;margin-top:0;background:#fff}.login-password{display:flex;align-items:center;border:1px solid #e4d8da;border-radius:11px;background:#fff;overflow:hidden;transition:.16s}.login-password:focus-within{border-color:#d7aeb2;box-shadow:0 0 0 3px rgba(201,0,10,.06)}.login-password input{border:0;box-shadow:none;border-radius:0;margin:0;flex:1}.login-password button{width:62px;height:49px;border:0;border-right:1px solid #f0e6e7;background:#fff;color:#8b777b;font-size:11.5px;font-weight:800}.login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 17px;font-size:11.5px;color:#9a878b}.login-options a{color:var(--crm-red);font-weight:800}.login-submit{width:100%;height:49px}.login-card-foot{margin-top:22px;padding-top:17px;border-top:1px solid #f0e6e7;display:grid;text-align:center;gap:1px;color:#7f6e72}.login-card-foot span{font-size:11.5px;font-weight:800}.login-card-foot small{font-size:9.5px;color:#aa989c}


.customers-page-head h1,.customer-create-page-head h1{font-size:32px}.customers-filter{align-items:center}.customers-filter input{flex:1}.customers-list-meta{display:flex;justify-content:space-between;gap:12px;margin:0 4px 9px;color:#8f7d81;font-size:12px}.customers-list-meta b{color:#33292c}.customer-table-card{padding:8px 13px}.customer-table-person{display:flex;align-items:center;gap:11px;min-width:220px}.customer-mini-avatar{flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:var(--crm-red-soft);color:var(--crm-red);display:grid;place-items:center;font-size:15px;font-weight:900}.customer-table-person>span:last-child{display:grid;gap:1px}.customer-table-person b{font-size:13px}.customer-table-person small{font-size:10px;color:#9d8a8e}.row-open{color:var(--crm-red);font-size:11.5px;font-weight:800}


.workspace>main:has(.customer-editor-shell),.workspace>main:has(.customer-file-page),.workspace>main:has(.customers-page-head){max-width:1480px}
.customer-editor-shell{max-width:1120px;margin:0 auto}.customer-editor-form{padding:0;overflow:hidden;border-radius:21px}.customer-form-section{padding:27px 30px;border-bottom:1px solid #f0e5e7}.customer-form-section:last-of-type{border-bottom:0}.customer-form-section-head{display:grid;grid-template-columns:50px minmax(0,1fr);gap:15px;align-items:start;margin-bottom:24px}.customer-form-section-head.purchase-head{grid-template-columns:50px minmax(0,1fr) auto;align-items:center}.customer-form-icon{width:48px;height:48px;border-radius:14px;background:var(--crm-red-soft);border:1px solid #f0d4d7;color:var(--crm-red);display:grid;place-items:center;font-size:13px;font-weight:900}.customer-form-section-head small{display:block;color:#a28f93;font-size:11px;font-weight:800;margin-bottom:2px}.customer-form-section-head h2{font-size:21px;margin:0 0 3px}.customer-form-section-head p{margin:0;color:#86767a;font-size:12.5px;line-height:1.8}.customer-form-grid{display:grid;gap:15px}.customer-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-editor-form .field{font-size:13px}.customer-required:before{content:'*';color:var(--crm-red);margin-left:4px}.field-feedback{display:block;margin-top:7px;font-size:11.5px;line-height:1.75}.field-feedback.matched{padding:11px 12px;border-radius:11px;border:1px solid #cfe8db;background:#f1faf5;color:#276346}.field-feedback.matched b{display:block;font-size:12px;color:#17633f}.field-feedback.matched span{display:block;margin:2px 0}.field-feedback.matched a{color:var(--crm-red);font-weight:800;text-decoration:none}.consent-box{min-height:78px;display:flex;align-items:center;gap:12px;padding:14px 15px;margin-bottom:17px;border:1px solid #e8dcde;border-radius:13px;background:#fffafa;cursor:pointer}.consent-box input{width:18px;height:18px;accent-color:var(--crm-red)}.consent-box span{display:grid;gap:2px}.consent-box b{font-size:13px}.consent-box small{font-size:10.5px;color:#9b898d}
.purchase-switch{display:flex;align-items:center;gap:9px;cursor:pointer;white-space:nowrap;font-size:12.5px;font-weight:800;color:#55474a}.purchase-switch input{position:absolute;opacity:0;pointer-events:none}.purchase-switch span{width:42px;height:24px;border-radius:999px;background:#e8dddf;position:relative;transition:.18s}.purchase-switch span:after{content:'';position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;top:3px;right:3px;box-shadow:0 2px 6px #0002;transition:.18s}.purchase-switch input:checked+span{background:var(--crm-red)}.purchase-switch input:checked+span:after{right:21px}.purchase-editor{padding-top:4px}.purchase-editor[hidden]{display:none}.purchase-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:11px;align-items:end}.manual-item-toggle{margin-bottom:17px}.manual-sale-entry{display:grid;grid-template-columns:minmax(0,1fr) 110px 160px auto;gap:10px;align-items:end;padding:14px;border:1px solid #eadcdf;background:#fffafa;border-radius:13px;margin-bottom:16px}.manual-sale-entry[hidden]{display:none}.manual-sale-entry .field{margin-bottom:0}.catalog-picker{position:relative}.catalog-results{position:absolute;z-index:20;right:0;left:0;top:calc(100% - 11px);max-height:330px;overflow:auto;background:#fff;border:1px solid var(--crm-border);border-radius:14px;box-shadow:0 18px 45px rgba(65,30,34,.14)}.catalog-results:empty{display:none}.catalog-results button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;border:0;border-bottom:1px solid #f1e8e9;background:#fff;padding:11px 13px;text-align:right}.catalog-results button:hover{background:#fff9f9}.catalog-result-main{display:flex;align-items:center;gap:11px;min-width:0;flex:1}.catalog-thumb{width:54px;height:54px;flex:none;object-fit:contain;background:#fff;border:1px solid #eee0e2;border-radius:11px;padding:4px}.catalog-thumb-empty{display:grid;place-items:center;color:var(--crm-red);font-size:20px}.catalog-result-info{min-width:0}.catalog-result-info b{display:block;font-size:12.5px}.catalog-result-info small{font-size:10px;color:#9b898d}.catalog-result-price{text-align:left;color:var(--crm-red);font-size:12px;white-space:nowrap}.catalog-result-price small{display:block;color:#9b898d;font-size:9.5px}.catalog-message{padding:16px;margin:0;color:#8b787c;font-size:12px}
.picked-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin:20px 0 10px}.picked-section-head h3{margin:0}.picked-section-head p{margin:2px 0 0;font-size:10.5px;color:#9c898d}.picked-section-head>span{font-size:10.5px;color:#887579;background:#f7f1f2;padding:5px 9px;border-radius:999px}.selected-items{display:grid;gap:8px}.picked-empty{min-height:100px;border:1px dashed #e2cfd2;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:12px;color:#8f7d81;background:#fffdfd}.picked-empty>span{width:34px;height:34px;border-radius:10px;background:var(--crm-red-soft);color:var(--crm-red);display:grid;place-items:center;font-size:20px}.picked-empty b{display:block;font-size:12.5px}.picked-empty small{display:block;font-size:10.5px}.picked-item{display:grid;grid-template-columns:minmax(0,1fr) 95px 135px 130px 36px;align-items:center;gap:10px;padding:10px 11px;border:1px solid #eadcdf;border-radius:13px;background:#fff}.picked-product{display:flex;align-items:center;gap:10px;min-width:0}.picked-product b{display:block;font-size:12.5px}.picked-product small{font-size:10px;color:#9a868a}.picked-item label{font-size:10px;color:#8f7b7f}.picked-item input{width:100%;height:39px;border:1px solid #e4d8da;border-radius:9px;padding:6px 8px;margin-top:3px}.picked-subtotal{display:grid;gap:2px}.picked-subtotal small{font-size:9.5px;color:#9a868a}.picked-subtotal b{font-size:12px;color:var(--crm-red)}.remove-item{width:34px;height:34px;border:1px solid #efd3d5;border-radius:9px;background:#fff7f7;color:#ad1119;font-size:18px}.sale-meta-grid{margin-top:17px}.sale-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #efe3e5;margin-top:4px;padding-top:15px}.sale-total span{font-size:12px;color:#8d7b7f}.sale-total strong{font-size:20px;color:var(--crm-red)}.customer-form-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 30px;background:#fdfafa;border-top:1px solid #efe4e6}.customer-form-actions>div:first-child{display:grid;gap:2px}.customer-form-actions b{font-size:13px}.customer-form-actions small{font-size:10.5px;color:#968388}


.customer-file-page{display:grid;gap:16px}.customer-profile-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,380px);gap:20px;align-items:center;background:#fff;border:1px solid var(--crm-border);border-radius:21px;padding:22px;box-shadow:var(--crm-shadow)}.customer-identity{display:flex;align-items:center;gap:15px;min-width:0}.customer-avatar{width:64px;height:64px;flex:0 0 64px;border-radius:18px;background:var(--crm-red-soft);color:var(--crm-red);display:grid;place-items:center;font-size:25px;font-weight:900}.customer-identity-copy{min-width:0}.customer-name-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.customer-name-row h1{font-size:29px;margin:0}.customer-source-badge{font-size:10.5px;font-weight:800;background:#f6f1f2;color:#77666a;border-radius:999px;padding:5px 9px}.customer-meta-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:4px;color:#89777b;font-size:11.5px}.customer-flags{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.customer-flag{padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800}.customer-flag.ok{background:#eaf8f0;color:#19704b}.customer-flag.neutral{background:#f5f0f1;color:#7b696d}.customer-hero-actions{display:grid;grid-template-columns:1fr;gap:8px}.profile-action{display:flex;align-items:center;gap:10px;min-height:56px;border:1px solid #eadcdf;border-radius:13px;padding:10px 12px;background:#fff}.profile-action>span{width:34px;height:34px;border-radius:10px;background:#f7f1f2;color:#8d7479;display:grid;place-items:center;font-size:16px}.profile-action b{display:block;font-size:12.5px}.profile-action small{display:block;font-size:9.5px;color:#9c898d}.profile-action.primary{border-color:#efcfd2;background:#fff7f7}.profile-action.primary>span{background:var(--crm-red);color:#fff}.profile-action.primary b{color:var(--crm-red)}
.customer-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.customer-kpi-grid article{min-height:112px;background:#fff;border:1px solid var(--crm-border);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:4px}.customer-kpi-grid small{font-size:10.5px;color:#968388}.customer-kpi-grid strong{font-size:21px}.customer-kpi-grid strong b{font-size:10px}.customer-kpi-grid span{margin-top:auto;font-size:9.5px;color:#9d8a8e}.customer-file-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:15px;align-items:start}.customer-file-main{display:grid;gap:15px;min-width:0}.customer-section-card{margin:0;padding:20px}.profile-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}.profile-section-head h2{font-size:19px;margin:0}.profile-section-head p{margin:2px 0 0;font-size:11px;color:#928085}.section-count{padding:5px 9px;background:#f6f1f2;color:#78666a;border-radius:999px;font-size:10px;font-weight:800}.small-action-link{font-size:11px;font-weight:800;color:var(--crm-red)}
.purchase-history{display:grid;gap:10px}.purchase-card{border:1px solid #eadcdf;border-radius:15px;overflow:hidden;background:#fff}.purchase-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 15px;background:#fdf9f9;border-bottom:1px solid #efe4e6}.purchase-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.purchase-title-line h3{margin:0;font-size:13.5px}.purchase-card-head p{margin:2px 0 0;font-size:10px;color:#9b888c}.status-pill{padding:4px 8px}.status-pill.success{background:#e9f8f0;color:#14744b}.status-pill.pending{background:#fff5df;color:#9c650e}.status-pill.danger{background:#feecee;color:#a21822}.status-pill.muted{background:#f2eeee;color:#806a6e}.purchase-total{text-align:left}.purchase-total small{display:block;font-size:9.5px;color:#9b888c}.purchase-total strong{font-size:17px;color:var(--crm-red)}.purchase-total strong b{font-size:9px}.purchase-item-row{display:grid;grid-template-columns:40px minmax(220px,1fr) 75px 110px 115px;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid #f1e8e9}.purchase-item-row:last-child{border-bottom:0}.purchase-item-icon{width:38px;height:38px;border-radius:11px;background:var(--crm-red-soft);color:var(--crm-red);display:grid;place-items:center;font-weight:900}.purchase-item-name strong{display:block;font-size:12.5px}.purchase-item-name small{display:block;font-size:9.5px;color:#9c898d}.purchase-item-fact{display:grid;gap:1px}.purchase-item-fact small{font-size:9px;color:#9e8c90}.purchase-item-fact b{font-size:11px}.purchase-item-fact.total b{color:var(--crm-red)}.purchase-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 14px;background:#fdfafa;border-top:1px solid #f1e8e9}.purchase-card-foot a{font-size:10.5px;font-weight:800;color:var(--crm-red)}.purchase-card-foot span{font-size:9.5px;color:#9b888c}
.profile-empty{min-height:115px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;border:1px dashed #e2cfd2;border-radius:13px;background:#fffdfd}.profile-empty.compact{min-height:64px;padding:14px}.profile-empty-icon{font-size:24px;margin-bottom:5px}.profile-empty b{font-size:12.5px}.profile-empty p,.profile-empty span{font-size:10px;color:#9b888c;max-width:500px;margin:3px 0 0}.profile-feed{display:grid}.profile-feed article{display:grid;grid-template-columns:11px minmax(0,1fr) auto;gap:9px;padding:11px 2px;border-bottom:1px solid #f1e8e9}.feed-dot{width:8px;height:8px;margin-top:5px;border-radius:50%;background:#d9cbce}.feed-dot.active{background:var(--crm-red);box-shadow:0 0 0 4px var(--crm-red-soft)}.profile-feed strong{font-size:12px}.profile-feed p{margin:1px 0 0;font-size:9.5px;color:#9a878b}.profile-feed time{font-size:9.5px;color:#9c898d;white-space:nowrap}.profile-side-card{background:#fff;border:1px solid var(--crm-border);border-radius:16px;padding:16px;box-shadow:var(--crm-shadow)}.side-card-title{display:flex;align-items:center;gap:10px;margin-bottom:12px}.side-card-title>span{width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:var(--crm-red-soft);color:var(--crm-red);display:grid;place-items:center;font-size:11px;font-weight:900}.side-card-title h2{font-size:14px;margin:0}.side-card-title p{font-size:9.5px;color:#9a878b;margin:1px 0 0}.customer-contact-list{margin:0}.customer-contact-list>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;padding:8px 0;border-bottom:1px solid #f1e8e9}.customer-contact-list dt{font-size:9.5px;color:#9a878b}.customer-contact-list dd{margin:0;font-size:11.5px;font-weight:800;overflow-wrap:anywhere}.contact-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.contact-actions a{min-height:39px;border:1px solid #ead4d7;border-radius:10px;color:var(--crm-red);font-size:11px;font-weight:800;display:grid;place-items:center}.contact-actions a:last-child{color:#087a4d;border-color:#cde8d9;background:#f7fcf9}.registration-list article{display:grid;gap:1px;padding:8px 0;border-bottom:1px solid #f1e8e9}.registration-list strong{font-size:11px}.registration-list small,.side-empty{font-size:9.5px;color:#9a878b}.customer-notes{margin:0;font-size:11.5px;line-height:1.9;color:#5f5053}


.pill-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}.pill-tabs a{min-height:39px;padding:8px 14px;border:1px solid #e7d9db;border-radius:10px;background:#fff;color:#77666a;font-size:11.5px;font-weight:800}.pill-tabs a.selected{background:var(--crm-red);border-color:var(--crm-red);color:#fff}.followup-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.followup-card{margin:0;padding:18px}.followup-top,.followup-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.followup-top h2{font-size:16px;margin:8px 0 3px}.followup-top p{margin:0;color:#817075;font-size:11.5px}.followup-date{text-align:left;white-space:nowrap;color:#4e4145;font-size:11px;font-weight:800}.followup-date small{display:block;margin-top:3px;color:#9c898d;font-size:9.5px}.followup-footer{margin-top:13px;padding-top:11px;border-top:1px solid #f0e6e7;color:#8b787c;font-size:11px}.followup-close{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:end;margin-top:13px;padding-top:13px;border-top:1px solid #f0e6e7}.followup-close .field{margin:0}.followup-close .field input{height:42px}.followup-close .button{min-height:42px;padding:7px 12px}


.report-filter{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:end;padding:17px}.report-filter .row{grid-template-columns:repeat(2,minmax(200px,1fr));gap:12px}.report-filter .field{margin:0}.report-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.report-kpis .card{margin:0;min-height:119px;padding:17px;display:flex;flex-direction:column;gap:5px}.report-kpis small{font-size:10.5px;color:#968388}.report-kpis strong{font-size:22px;line-height:1.35}.report-kpis span{margin-top:auto;font-size:9.5px;color:#9d8a8e}.report-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:15px}.report-grid>.card{margin:0}.report-chart{min-width:0}.bar-chart{height:245px;display:flex;align-items:stretch;gap:6px;overflow-x:auto;padding:16px 4px 0;border-bottom:1px solid #eddddf}.bar-chart>.muted{margin:auto;align-self:center;font-size:12.5px}.bar-slot{height:100%;display:flex;flex:1;min-width:16px;max-width:50px;flex-direction:column;align-items:center;gap:6px}.bar-rail{width:100%;height:calc(100% - 30px);display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #ebdada}.bar-rail span{width:min(76%,21px);min-height:4px;border-radius:6px 6px 2px 2px;background:var(--crm-red)}.bar-slot small{font:10px Arial,sans-serif;color:#a18e92;white-space:nowrap}.report-source{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid #efe3e5;font-size:12px}.report-source span b{display:block;color:#9b888c;font-size:9.5px;font-weight:600}.report-source strong{color:var(--crm-red);font-size:12.5px}.report-subhead{margin:20px 0 0}


.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:980px}.settings-card{min-height:146px;margin:0;padding:18px;text-align:right;display:grid;grid-template-columns:48px minmax(0,1fr) 22px;align-items:center;gap:13px;cursor:pointer;color:var(--crm-text);transition:.16s}.settings-card:hover{transform:translateY(-2px);border-color:#ddb8bc}.settings-card-icon{width:46px;height:46px;border-radius:13px;background:var(--crm-red-soft);color:var(--crm-red);display:grid;place-items:center}.settings-card-copy{display:grid;gap:4px}.settings-card strong{font-size:14px}.settings-card small{font-size:10.5px;line-height:1.75;color:#968388}.settings-card-arrow{font:22px Arial;color:#bd9fa4}.settings-modal{width:min(1160px,calc(100vw - 38px));height:min(86vh,880px);max-height:86vh;padding:0;border:1px solid #dfcbce;border-radius:20px;overflow:hidden;background:var(--crm-bg);box-shadow:0 28px 90px rgba(36,21,24,.28)}.settings-modal::backdrop{background:rgba(35,20,23,.55);backdrop-filter:blur(3px)}.settings-modal-bar{height:62px;background:#fff;border-bottom:1px solid var(--crm-border);display:flex;align-items:center;justify-content:space-between;padding:0 20px}.settings-modal-bar strong{font-size:16px}.settings-modal-bar button{width:36px;height:36px;border:1px solid #ead4d7;border-radius:10px;background:#fff7f7;color:var(--crm-red);font-size:22px}.settings-modal iframe{display:block;width:100%;height:calc(100% - 62px);border:0;background:var(--crm-bg)}.guest-body .modal-content{min-height:100vh;max-width:none;margin:0;padding:24px;background:var(--crm-bg);display:block}.modal-content .page-head{margin-bottom:18px}.modal-content h1{font-size:25px}.modal-content .workspace,.modal-content .layout,.modal-content .main-sidebar{display:none}.recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}.recovery-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #efe3e5;padding-top:16px}.recovery-footer p{margin:0;color:#8f7c80;font-size:11px}.connection-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:14px}.connection-layout .card{margin:0}.connection-status{border:1px solid #eadcdf;border-radius:12px;background:#fffafa;padding:14px;margin-bottom:14px}.connection-status strong,.connection-status small{display:block}.connection-status small{font-size:10.5px;color:#978488;margin-top:4px}


.site-feedback-dialog{width:min(430px,calc(100vw - 32px));border:0;border-radius:19px;padding:0;background:#fff;box-shadow:0 25px 80px rgba(41,22,25,.25)}.site-feedback-dialog::backdrop{background:rgba(35,20,23,.48);backdrop-filter:blur(2px)}.site-feedback-inner{padding:27px;text-align:center}.site-feedback-symbol{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:var(--crm-red-soft);color:var(--crm-red);font-size:21px;font-weight:900}.site-feedback-dialog[data-kind="ok"] .site-feedback-symbol{background:#eaf8f0;color:#14744b}.site-feedback-inner h2{margin:0 0 5px;font-size:18px}.site-feedback-inner p{margin:0 0 18px;color:#837276;font-size:12.5px;line-height:1.85}.site-feedback-inner .button{min-width:110px}


.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 20px}.permission-grid label{background:#fffafa;border:1px solid #eadcdf;border-radius:10px;padding:10px 11px;font-size:12px}.form{max-width:820px}.sale-form{max-width:980px}.sale-form-pro{padding:22px}.qr-dashboard{gap:16px}.qr-stage{min-height:520px}.qr-details .card{padding:22px}.join-card{border-color:var(--crm-border);box-shadow:var(--crm-shadow-strong)}.recovery-card{max-width:none}.slot-number{background:var(--crm-red-soft);color:var(--crm-red);border-radius:7px;padding:2px 7px;font-size:10px;margin-left:6px}


@media(max-width:1250px){.customer-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-file-layout{grid-template-columns:minmax(0,1fr) 290px}.report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-item-row{grid-template-columns:38px minmax(180px,1fr) 65px 95px 100px}}
@media(max-width:1050px){.followup-list{grid-template-columns:1fr}.customer-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-sections{grid-template-columns:1fr}.report-grid{grid-template-columns:1fr}.settings-grid{max-width:none}.customer-file-layout{grid-template-columns:1fr}.customer-profile-hero{grid-template-columns:1fr}.customer-hero-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.app-body .main-sidebar{transform:translateX(105%);transition:transform .2s ease;box-shadow:-15px 0 45px rgba(34,17,20,.15)}.app-body.nav-open .main-sidebar{transform:none}.app-body .workspace{margin-right:0;width:100%}.menu{display:grid;place-items:center;width:42px;height:42px;border:1px solid #eadcdf;border-radius:11px;background:#fff;color:#5e4f53;font-size:0}.menu:after{content:'☰';font-size:20px}.nav-open .nav-backdrop{display:block;position:fixed;inset:0;z-index:55;border:0;background:rgba(33,19,22,.42)}.header-search{width:min(580px,70vw)}.app-body .workspace>main{padding:28px 22px 60px}.report-filter{grid-template-columns:1fr 1fr}.report-filter .row{grid-column:1/-1}.customer-form-grid.two{grid-template-columns:1fr}.manual-sale-entry{grid-template-columns:1fr 1fr}.manual-sale-entry .field:first-child{grid-column:1/-1}.purchase-item-row{grid-template-columns:38px minmax(0,1fr) 85px}.purchase-item-name{grid-column:2}.purchase-item-fact:nth-of-type(2),.purchase-item-fact:nth-of-type(3){grid-column:auto}.purchase-item-fact.total{grid-column:3}.settings-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){html{font-size:15px}.app-body .workspace>header{height:68px;padding:0 14px}.header-search{width:auto;flex:1}.header-user{display:none}.app-body .workspace>main{padding:22px 14px 52px}.page-head,.dashboard-welcome{align-items:stretch;flex-direction:column}.page-head h1,.customers-page-head h1,.customer-create-page-head h1{font-size:26px}.page-head .actions,.dashboard-welcome .actions{display:grid;grid-template-columns:1fr 1fr}.page-head .actions .button,.dashboard-welcome .actions .button{width:100%}.filterbar,.customers-filter{display:grid;grid-template-columns:1fr 1fr}.filterbar input,.customers-filter input{grid-column:1/-1;min-width:0}.filterbar button{width:100%}.customer-stats,.customer-kpi-grid{grid-template-columns:1fr 1fr}.customer-kpi-grid article{min-height:100px}.report-kpis{grid-template-columns:1fr 1fr}.report-filter{grid-template-columns:1fr}.report-filter .row{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.settings-card{min-height:118px}.recovery-grid,.connection-layout{grid-template-columns:1fr}.customer-form-section{padding:21px 16px}.customer-form-section-head,.customer-form-section-head.purchase-head{grid-template-columns:44px minmax(0,1fr)}.customer-form-icon{width:42px;height:42px}.customer-form-section-head.purchase-head .purchase-switch{grid-column:1/-1;justify-self:start}.purchase-search-row{grid-template-columns:1fr}.manual-item-toggle{width:100%;margin-bottom:12px}.manual-sale-entry{grid-template-columns:1fr}.manual-sale-entry .field:first-child{grid-column:auto}.picked-item{grid-template-columns:46px minmax(0,1fr) 34px}.picked-product{grid-column:1/3}.picked-product .catalog-thumb{width:44px;height:44px}.picked-item label{grid-column:1/2}.picked-item label+label{grid-column:2/3}.picked-subtotal{grid-column:1/3;display:flex;justify-content:space-between}.remove-item{grid-column:3;grid-row:1}.customer-form-actions{padding:17px 16px;align-items:stretch;flex-direction:column}.customer-form-actions .actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.customer-form-actions .button{width:100%}.customer-profile-hero{padding:16px}.customer-identity{align-items:flex-start}.customer-avatar{width:56px;height:56px;flex-basis:56px;font-size:22px}.customer-name-row h1{font-size:24px}.customer-hero-actions{grid-template-columns:1fr}.customer-section-card{padding:15px}.profile-section-head{align-items:flex-start;flex-direction:column}.purchase-card-head{align-items:flex-start;flex-direction:column}.purchase-total{text-align:right}.purchase-item-row{grid-template-columns:34px minmax(0,1fr);padding:10px}.purchase-item-icon{width:32px;height:32px}.purchase-item-fact{display:flex;justify-content:space-between;grid-column:1/-1;padding-inline-start:44px}.purchase-item-fact.total{grid-column:1/-1}.purchase-card-foot{align-items:flex-start;flex-direction:column}.profile-feed article{grid-template-columns:10px minmax(0,1fr)}.profile-feed time{grid-column:2}.followup-top,.followup-footer{flex-direction:column}.followup-date{text-align:right}.followup-close{grid-template-columns:1fr 1fr}.followup-close .field{grid-column:1/-1}.permission-grid{grid-template-columns:1fr}.tablewrap{overflow-x:auto}.settings-modal{width:calc(100vw - 18px);height:92vh;max-height:92vh;border-radius:16px}.guest-body .modal-content{padding:16px}.login-page{padding:16px}.login-card{padding:25px 20px 22px;border-radius:20px}.login-logo{width:132px;height:58px}.login-card h1{font-size:23px}.login-options{align-items:flex-start;flex-direction:column;gap:5px}}
@media(max-width:480px){.customer-stats,.customer-kpi-grid,.report-kpis{grid-template-columns:1fr}.filterbar,.customers-filter{grid-template-columns:1fr}.filterbar input,.customers-filter input{grid-column:auto}.page-head .actions,.dashboard-welcome .actions{grid-template-columns:1fr}.customer-contact-list>div{grid-template-columns:78px minmax(0,1fr)}.customers-list-meta{align-items:flex-start;flex-direction:column}.customers-pager{gap:7px}.customers-pager .button{padding-inline:9px}}
@media print{.main-sidebar,.workspace>header,.nav-backdrop{display:none}.app-body .workspace{margin:0}.app-body .workspace>main{max-width:none;padding:0}.card{box-shadow:none}}


.registration-review-page{display:grid;gap:15px}.rr-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:2px}.rr-head h1{margin:0 0 5px;font-size:31px}.rr-head p:last-child{margin:0;color:var(--crm-muted);font-size:13px;max-width:760px}.rr-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.rr-stat{min-height:92px;background:#fff;border:1px solid var(--crm-border);border-radius:15px;padding:14px 15px;display:flex;align-items:center;gap:12px;box-shadow:var(--crm-shadow)}.rr-stat:hover,.rr-stat.is-active{border-color:#dcb8bc}.rr-stat.is-active{box-shadow:inset 0 -3px 0 var(--crm-red),var(--crm-shadow)}.rr-stat-icon{width:39px;height:39px;border-radius:11px;background:#f5f0f1;position:relative;flex:none}.rr-stat-icon:after{content:'';position:absolute;inset:12px;border-radius:50%;background:#aa989c}.rr-stat-icon.pending{background:#fff5df}.rr-stat-icon.pending:after{background:#c78612}.rr-stat-icon.approved{background:#eaf8f0}.rr-stat-icon.approved:after{background:#19704b}.rr-stat-icon.rejected{background:#feecee}.rr-stat-icon.rejected:after{background:#b1212a}.rr-stat-copy{display:grid;gap:2px}.rr-stat-copy small{font-size:10.5px;color:#948185}.rr-stat-copy strong{font-size:22px}.rr-tools{display:flex;align-items:center;justify-content:space-between;gap:13px;background:#fff;border:1px solid var(--crm-border);border-radius:15px;padding:11px;box-shadow:var(--crm-shadow)}.rr-current{display:flex;align-items:center;gap:8px;padding:0 7px;white-space:nowrap}.rr-current strong{font-size:12px}.rr-current span{font-size:10px;color:#9b888c}.rr-search{display:flex;align-items:center;gap:8px;flex:1;max-width:760px}.rr-search input{width:100%;height:44px;border:1px solid #e4d8da;border-radius:10px;padding:8px 12px;outline:0}.rr-search input:focus{border-color:#d7aeb2;box-shadow:0 0 0 3px rgba(201,0,10,.06)}.rr-search .button{min-height:44px}.rr-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rr-card{margin:0;padding:17px}.rr-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.rr-person{display:flex;align-items:center;gap:10px;min-width:0}.rr-person h2{font-size:14px;margin:0}.rr-person span:not(.avatar-letter){font-size:10.5px;color:#988589}.rr-badge{padding:5px 9px;border-radius:999px;font-size:9.5px;font-weight:800;white-space:nowrap}.rr-badge.pending{background:#fff5df;color:#92600d}.rr-badge.approved{background:#eaf8f0;color:#176d49}.rr-badge.rejected{background:#feecee;color:#a11d26}.rr-data{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 10px}.rr-data>div{min-width:0;border:1px solid #efe4e6;background:#fdfafa;border-radius:11px;padding:9px 10px}.rr-data small{display:block;font-size:9px;color:#9f8c90}.rr-data strong{display:block;margin-top:2px;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rr-consent{display:flex;align-items:center;gap:7px;font-size:10.5px;color:#887579}.rr-dot{width:8px;height:8px;border-radius:50%;background:#cfc1c4}.rr-dot.yes{background:#16804f}.rr-editor{margin-top:13px;border-top:1px solid #efe4e6;padding-top:12px}.rr-editor summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;color:var(--crm-red);font-size:11.5px;font-weight:800;list-style:none}.rr-editor summary::-webkit-details-marker{display:none}.rr-editor form{padding-top:13px}.rr-actions{display:flex;gap:8px}.rr-outcome{margin-top:12px;padding-top:10px;border-top:1px solid #efe4e6}.rr-outcome small{display:block;font-size:9.5px;color:#9b888c}.rr-outcome p{margin:2px 0 0;font-size:11px;color:#66575b}.rr-empty{grid-column:1/-1;min-height:135px;border:1px dashed #dfcbce;background:#fffdfd;border-radius:15px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:22px}.rr-empty>span{width:38px;height:38px;border-radius:50%;background:#eaf8f0;color:#16764b;display:grid;place-items:center;font-weight:900;margin-bottom:7px}.rr-empty strong{font-size:13px}.rr-empty p{margin:2px 0 0;color:#958287;font-size:10.5px}
@media(max-width:1050px){.rr-list{grid-template-columns:1fr}}
@media(max-width:700px){.rr-head,.rr-tools{align-items:stretch;flex-direction:column}.rr-stats{grid-template-columns:1fr}.rr-search{max-width:none}.rr-data{grid-template-columns:1fr}.rr-actions{display:grid;grid-template-columns:1fr 1fr}.rr-qr{width:100%}}


@media (min-width:981px){
  .app-body .workspace>main{
    width:100%;
    max-width:none;
    margin:0;
    padding:34px 32px 72px;
  }
}


.app-body .workspace>main>:not(dialog),
.app-body .workspace>main>.page-head,
.app-body .workspace>main>.dashboard-welcome,
.app-body .workspace>main>.customers-page-head,
.app-body .workspace>main>.customer-create-page-head,
.app-body .workspace>main>.registration-review-page,
.app-body .workspace>main>.customer-file-page,
.app-body .workspace>main>.customer-editor-shell{
  width:100%;
  max-width:none;
}


.customer-editor-shell,
.customer-editor-form,
.form,
.sale-form,
.sale-form-pro,
.settings-grid,
.report-grid,
.followup-list,
.registration-review-page,
.qr-dashboard,
.connection-layout,
.recovery-card{
  max-width:none;
  width:100%;
  margin-inline:0;
}


.page-head,
.dashboard-welcome,
.customers-page-head,
.customer-create-page-head,
.customers-filter,
.filterbar,
.customer-table-card,
.customer-profile-hero,
.customer-file-layout,
.customer-editor-form,
.report-filter,
.report-kpis,
.report-grid,
.followup-list,
.rr-head,
.rr-stats,
.rr-tools,
.rr-list,
.settings-grid{
  margin-inline:0;
}


.customer-editor-shell{display:block}
.customer-editor-form{border-radius:19px}
.customer-form-section{padding-inline:28px}
.customer-form-actions{padding-inline:28px}


.app-body .workspace>main .form.card,
.app-body .workspace>main form.form,
.app-body .workspace>main .sale-form{
  width:100%;
  max-width:none;
}


.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}


@media (max-width:1200px) and (min-width:981px){
  .app-body .workspace>main{padding-inline:24px}
  .customer-form-section,.customer-form-actions{padding-inline:22px}
}

@media (max-width:980px){
  .app-body .workspace>main{
    width:100%;
    max-width:none;
    margin:0;
  }
  .customer-editor-shell,
  .form,
  .sale-form,
  .settings-grid{width:100%;max-width:none}
}


.followups-page{display:grid;gap:16px;width:100%}
.followups-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:2px 2px 4px}
.followups-title h1{font-size:34px;line-height:1.35;margin:0 0 5px;color:#211a1c}
.followups-title p{margin:0;color:#8c797e;font-size:13.5px;line-height:1.9}
.followups-new{display:inline-flex;align-items:center;gap:9px;padding-inline:17px;box-shadow:0 8px 20px rgba(201,0,10,.11)}
.followups-new-plus{font-size:19px;line-height:1;font-weight:500;margin-top:-1px}

.followup-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.followup-stat{position:relative;min-height:106px;background:#fff;border:1px solid var(--crm-border);border-radius:17px;padding:15px 17px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;align-items:center;box-shadow:var(--crm-shadow);transition:.18s ease;overflow:hidden}
.followup-stat:after{content:'';position:absolute;right:0;top:14px;bottom:14px;width:3px;border-radius:4px;background:transparent}
.followup-stat:hover{transform:translateY(-1px);border-color:#dfc5c8}
.followup-stat.is-active{border-color:#e3bdc1;background:#fffdfd}
.followup-stat.is-active:after{background:var(--crm-red)}
.followup-stat.is-alert:after{background:#d87b25}
.followup-stat-label{font-size:13px;font-weight:900;color:#4e4145}
.followup-stat strong{grid-row:1/3;grid-column:2;font-size:30px;line-height:1;color:#211a1c}
.followup-stat small{font-size:10.5px;color:#9d8a8e;margin-top:4px}
.followup-stat.is-active .followup-stat-label{color:var(--crm-red)}

.followup-toolbar{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--crm-border);border-radius:16px;padding:10px;box-shadow:var(--crm-shadow)}
.followup-search{height:47px;flex:1;display:flex;align-items:center;gap:9px;border:1px solid #e4d8da;border-radius:11px;padding:0 13px;background:#fff;transition:.16s}
.followup-search:focus-within{border-color:#d7aeb2;box-shadow:0 0 0 3px rgba(201,0,10,.06)}
.followup-search .ui-icon{width:18px;height:18px;color:#968287;flex:none}
.followup-search input{width:100%;height:100%;border:0;outline:0;box-shadow:none;background:transparent;color:#33292c;padding:0;font-size:13px}
.followup-search input::placeholder{color:#ac999d}
.followup-toolbar>.button{min-height:47px;white-space:nowrap}

.followup-list-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 4px;color:#8e7b80;font-size:11.5px}
.followup-list-head>div{display:flex;align-items:center;gap:9px}
.followup-list-head strong{font-size:13px;color:#3a3033}
.followup-list-head>div span{padding:4px 8px;border-radius:999px;background:#f3ebec;color:#806d72;font-size:10px;font-weight:800}

.followup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.followup-item{background:#fff;border:1px solid var(--crm-border);border-radius:18px;box-shadow:var(--crm-shadow);overflow:hidden;min-width:0;transition:border-color .16s,transform .16s}
.followup-item:hover{border-color:#e1c5c8;transform:translateY(-1px)}
.followup-item.is-late{border-color:#efd2c1}
.followup-item-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 17px 13px;border-bottom:1px solid #f1e7e8}
.followup-customer{display:flex;align-items:center;gap:10px;min-width:0}
.followup-customer>div{display:grid;min-width:0;gap:1px}
.followup-customer a{font-size:13px;font-weight:900;color:#302629;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.followup-customer span:last-child{font-size:10.5px;color:#9a888c}
.followup-when{display:grid;text-align:left;gap:1px;flex:none}
.followup-when strong{font-size:11.5px;color:#5c4d51}
.followup-when span{font-size:10px;color:#9d898e}
.followup-when.late strong{color:#b85e19}
.followup-item-body{padding:15px 17px}
.followup-badges{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.followup-channel,.followup-status{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:9.5px;font-weight:900}
.followup-channel{background:#f4eff0;color:#76656a}
.followup-status{background:#f2f2f2;color:#6e696a}
.followup-status.status-open{background:#eef6ff;color:#35648f}
.followup-status.status-completed{background:#edf8f2;color:#1e774e}
.followup-status.status-cancelled{background:#f3f1f2;color:#87787c}
.followup-status.status-late{background:#fff3e8;color:#aa5918}
.followup-item-body h2{font-size:16px;line-height:1.8;margin:0 0 14px;color:#2a2023}
.followup-assignee{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fcf9f9;border:1px solid #f0e5e7;border-radius:11px;padding:9px 11px}
.followup-assignee span{font-size:10.5px;color:#9a878c}
.followup-assignee strong{font-size:11.5px;color:#56484c}
.followup-item-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:10px 13px;border-top:1px solid #f1e7e8;background:#fffcfc}
.followup-action{font-size:10.5px;font-weight:800;color:#75656a;padding:6px 9px;border-radius:8px;transition:.14s}
.followup-action:hover{background:#f7eeee;color:var(--crm-red)}
.followup-result{border-top:1px solid #f1e7e8}
.followup-result summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 17px;color:var(--crm-red);font-size:11.5px;font-weight:900;background:#fff}
.followup-result summary::-webkit-details-marker{display:none}
.followup-result summary span{width:24px;height:24px;border-radius:8px;background:var(--crm-red-soft);display:grid;place-items:center;font-size:15px;transition:.16s}
.followup-result[open] summary span{transform:rotate(45deg)}
.followup-result form{padding:3px 17px 16px;background:#fffdfd}
.followup-result .field{margin-bottom:10px}
.followup-result textarea{min-height:88px}
.followup-outcome{padding:12px 17px;border-top:1px solid #f1e7e8;background:#fbfdfc}
.followup-outcome span{display:block;font-size:9.5px;color:#8f7f83;font-weight:800}
.followup-outcome p{margin:3px 0 0;font-size:11.5px;line-height:1.8;color:#594c50}

.followup-empty{min-height:170px;background:#fff;border:1px dashed #dfcbce;border-radius:18px;padding:25px 28px;display:flex;align-items:center;justify-content:center;gap:17px;text-align:right;box-shadow:var(--crm-shadow)}
.followup-empty-icon{width:54px;height:54px;border-radius:16px;background:var(--crm-red-soft);color:var(--crm-red);display:grid;place-items:center;flex:none}
.followup-empty-icon .ui-icon{width:25px;height:25px}
.followup-empty>div:nth-child(2){min-width:0}
.followup-empty h2{font-size:15px;margin:0 0 3px}
.followup-empty p{font-size:11.5px;color:#958287;margin:0;line-height:1.8}
.followup-empty>.button{margin-right:auto;white-space:nowrap}
.followup-pager{margin-top:1px}


.followup-form-shell{display:grid;gap:15px}
.followup-form-card{padding:0;overflow:visible}
.followup-form-section{padding:23px 25px}
.followup-form-card .field{font-size:13px}
.followup-form-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:15px 25px;border-top:1px solid #f0e5e7;background:#fffcfc}

@media(max-width:1100px){
  .followup-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .followup-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .followups-hero{align-items:stretch;flex-direction:column}
  .followups-title h1{font-size:27px}
  .followups-new{width:100%;justify-content:center}
  .followup-stats{grid-template-columns:1fr 1fr;gap:8px}
  .followup-stat{min-height:92px;padding:13px}
  .followup-stat strong{font-size:25px}
  .followup-toolbar{display:grid;grid-template-columns:1fr 1fr}
  .followup-search{grid-column:1/-1}
  .followup-toolbar>.button{width:100%}
  .followup-empty{align-items:center;flex-direction:column;text-align:center;padding:24px 18px}
  .followup-empty>.button{margin:3px 0 0;width:100%}
  .followup-item-head{align-items:flex-start}
}
@media(max-width:460px){
  .followup-stats{grid-template-columns:1fr}
  .followup-list-head>span{display:none}
  .followup-toolbar{grid-template-columns:1fr}
  .followup-search{grid-column:auto}
}


@media (min-width:981px){
  html,body.app-body{height:100%;overflow:hidden}
  .app-body .layout{height:100vh;min-height:0;overflow:hidden}
  .app-body .main-sidebar{overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
  .app-body .main-sidebar::-webkit-scrollbar{display:none;width:0;height:0}
  .app-body .workspace{height:100vh;min-height:0;display:grid;grid-template-rows:76px minmax(0,1fr);overflow:hidden}
  .app-body .workspace>header{position:relative;top:auto;height:76px}
  .app-body .workspace>main{
    min-height:0;height:auto;overflow-y:auto;overflow-x:hidden;
    direction:ltr;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#cfbfc2 transparent;
  }
  .app-body .workspace>main>*{direction:rtl}
  .app-body .workspace>main::-webkit-scrollbar{width:9px}
  .app-body .workspace>main::-webkit-scrollbar-track{background:transparent}
  .app-body .workspace>main::-webkit-scrollbar-thumb{background:#cfbfc2;border-radius:20px;border:2px solid var(--crm-bg)}
  .app-body .workspace>main::-webkit-scrollbar-thumb:hover{background:#bca7ab}
}

.reports-page{display:grid;gap:16px;width:100%}
.reports-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:2px 1px 5px}
.reports-hero-copy{min-width:0}
.reports-hero-copy h1{font-size:34px;line-height:1.35;margin:0 0 6px;color:#20191b}
.reports-hero-copy p{max-width:860px;margin:0;color:#8b777c;font-size:13.5px;line-height:1.9}
.reports-range-chip{min-width:230px;background:#fff;border:1px solid var(--crm-border);border-radius:15px;padding:12px 15px;box-shadow:var(--crm-shadow);display:grid;gap:2px}
.reports-range-chip small{font-size:9.5px;color:#9a858a;font-weight:700}
.reports-range-chip strong{font-size:12px;color:#4d3f43;direction:ltr;text-align:right}
.reports-range-chip strong span{color:#b49fa4;padding:0 3px}
.reports-range-chip>span{font-size:10px;color:#a28e93}

.reports-filter-panel{margin:0;background:#fff;border:1px solid var(--crm-border);border-radius:17px;box-shadow:var(--crm-shadow);padding:14px 15px;display:grid;grid-template-columns:minmax(210px,1fr) minmax(210px,1fr) auto;gap:12px;align-items:end}
.reports-date-field{display:grid;gap:6px;min-width:0}
.reports-date-field label{font-size:11px;font-weight:800;color:#57494d}
.reports-date-field input{width:100%;height:48px;border:1px solid #e4d8da;border-radius:11px;background:#fff;padding:8px 12px;outline:0;font:inherit;font-size:13px;direction:ltr;text-align:left}
.reports-date-field input:focus{border-color:#d7aeb2;box-shadow:0 0 0 3px rgba(201,0,10,.06)}
.reports-filter-actions{display:flex;align-items:center;gap:8px}.reports-filter-actions .button{white-space:nowrap;margin:0}

.reports-kpi-grid{display:grid;grid-template-columns:1.25fr repeat(4,minmax(0,1fr));gap:11px}
.reports-kpi{min-width:0;min-height:116px;background:#fff;border:1px solid var(--crm-border);border-radius:16px;padding:16px 17px;box-shadow:var(--crm-shadow);display:flex;flex-direction:column;gap:4px;position:relative;overflow:hidden}
.reports-kpi:before{content:'';position:absolute;right:0;top:16px;bottom:16px;width:3px;border-radius:4px;background:#e6d7d9}
.reports-kpi.is-primary:before{background:var(--crm-red)}
.reports-kpi-label{font-size:10.5px;color:#99858a;font-weight:700}
.reports-kpi strong{font-size:23px;line-height:1.35;color:#251d20;overflow-wrap:anywhere}
.reports-kpi.is-primary strong{color:var(--crm-red-dark)}
.reports-kpi small{margin-top:auto;font-size:9.5px;color:#a18d91}

.reports-main-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(310px,.75fr);gap:14px}
.reports-lower-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.report-panel{min-width:0;background:#fff;border:1px solid var(--crm-border);border-radius:18px;padding:18px 19px;box-shadow:var(--crm-shadow)}
.report-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.report-panel-head h2{margin:1px 0 0;font-size:18px;color:#2a2023}
.report-panel-kicker{display:block;color:#a98f94;font-size:9.5px;font-weight:800}
.report-panel-meta{text-align:left;display:grid;gap:1px;white-space:nowrap}.report-panel-meta small{font-size:9px;color:#a18e92}.report-panel-meta strong{font-size:12px;color:var(--crm-red)}
.report-head-note{font-size:9.5px;color:#a18c91;white-space:nowrap;padding-top:5px}

.reports-chart-panel{min-height:345px}
.reports-bars{height:265px;display:flex;align-items:stretch;gap:7px;overflow-x:auto;overflow-y:hidden;padding:8px 2px 0;scrollbar-width:thin;scrollbar-color:#d7c7ca transparent}
.reports-bar-item{height:100%;min-width:42px;flex:1;max-width:74px;display:grid;grid-template-rows:23px minmax(0,1fr) 22px;align-items:end;justify-items:center;gap:4px}
.reports-bar-value{max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8.5px;color:#a28d91;opacity:0;transition:.15s}
.reports-bar-item:hover .reports-bar-value{opacity:1}
.reports-bar-track{width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #efe3e5;background:linear-gradient(to top,#fdf9f9 1px,transparent 1px);background-size:100% 25%}
.reports-bar-track i{display:block;width:min(58%,25px);min-height:5px;background:var(--crm-red);border-radius:6px 6px 2px 2px;transition:height .2s ease}
.reports-bar-item:hover .reports-bar-track i{background:var(--crm-red-dark)}
.reports-bar-item small{font:10px Arial,sans-serif;color:#a28e92;white-space:nowrap;align-self:start}

.reports-source-list{display:grid;gap:16px}.reports-source-row{display:grid;gap:7px}.reports-source-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.reports-source-top span{font-size:12px;font-weight:800;color:#493c40}.reports-source-top strong{font-size:11.5px;color:#3b3033;white-space:nowrap}.reports-progress{height:7px;border-radius:999px;background:#f3ebec;overflow:hidden}.reports-progress i{display:block;height:100%;border-radius:inherit;background:var(--crm-red)}.reports-source-row>small{font-size:9.5px;color:#9d898e}
.reports-source-divider{height:1px;background:#efe3e5;margin:20px 0 14px}.reports-mini-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.reports-mini-head h3{margin:0;font-size:13px}.reports-mini-head span{font-size:9.5px;color:#a18c91}
.reports-client-sources{display:grid;gap:7px}.reports-client-sources>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border:1px solid #f0e4e6;border-radius:10px;background:#fdfafa}.reports-client-sources span{font-size:10.5px;color:#756368}.reports-client-sources strong{font-size:12px;color:#3d3034}.reports-small-empty{margin:0;color:#9b888d;font-size:10.5px}

.reports-customers-list,.reports-items-list{display:grid}.reports-customer-row,.reports-item-row{display:grid;align-items:center;gap:11px;padding:11px 0;border-top:1px solid #f0e5e6}.reports-customer-row:first-child,.reports-item-row:first-child{border-top:0;padding-top:2px}.reports-customer-row{grid-template-columns:42px minmax(0,1fr) auto;border-radius:10px;transition:.15s}.reports-customer-row:hover{padding-inline:8px;background:#fdf8f8}.reports-customer-avatar{width:38px;height:38px;border-radius:12px;background:var(--crm-red-soft);color:var(--crm-red);display:grid;place-items:center;font-size:14px;font-weight:900}.reports-customer-name,.reports-item-name{display:grid;min-width:0;gap:1px}.reports-customer-name strong,.reports-item-name strong{font-size:11.5px;color:#42363a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reports-customer-name small,.reports-item-name small{font-size:9.5px;color:#9b888d}.reports-customer-row>b,.reports-item-row>b{font-size:11px;color:var(--crm-red);white-space:nowrap}
.reports-item-row{grid-template-columns:31px minmax(0,1fr) auto}.reports-item-rank{width:28px;height:28px;border-radius:9px;background:#f6f1f2;color:#7f6c71;display:grid;place-items:center;font-size:10px;font-weight:900}
.reports-empty{min-height:105px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#8f7b80;padding:18px;border:1px dashed #e2cfd2;border-radius:13px;background:#fffdfd}.reports-empty.compact{min-height:240px;border:0;background:transparent}.reports-empty span{font-size:11.5px;font-weight:700}.reports-empty small{margin-top:3px;font-size:9.5px;color:#a18e92}

@media(max-width:1280px){.reports-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.reports-main-grid{grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr)}}
@media(max-width:1050px){.reports-main-grid,.reports-lower-grid{grid-template-columns:1fr}.reports-source-panel{display:grid;grid-template-columns:1fr 1px 1fr;gap:18px}.reports-source-divider{width:1px;height:auto;margin:0;background:#efe3e5}.reports-source-panel .report-panel-head{grid-column:1/-1}.reports-mini-head,.reports-client-sources{grid-column:3}.reports-mini-head{align-self:end}}
@media(max-width:760px){.reports-hero{align-items:stretch;flex-direction:column}.reports-range-chip{min-width:0}.reports-filter-panel{grid-template-columns:1fr}.reports-filter-actions{display:grid;grid-template-columns:1fr 1fr}.reports-kpi-grid{grid-template-columns:1fr 1fr}.reports-main-grid,.reports-lower-grid{grid-template-columns:1fr}.reports-source-panel{display:block}.reports-source-divider{width:auto;height:1px;margin:18px 0 13px}.reports-hero-copy h1{font-size:27px}.reports-bars{height:235px}.reports-bar-item{min-width:38px}.reports-kpi{min-height:104px}.reports-kpi strong{font-size:19px}}
@media(max-width:460px){.reports-kpi-grid{grid-template-columns:1fr}.reports-filter-actions{grid-template-columns:1fr}.reports-customer-row{grid-template-columns:38px minmax(0,1fr)}.reports-customer-row>b{grid-column:2}.reports-item-row{grid-template-columns:28px minmax(0,1fr)}.reports-item-row>b{grid-column:2;padding-inline-start:0}}


.reports-page-compact{gap:14px}
.reports-page-head{margin-bottom:0;align-items:flex-end}
.reports-page-head h1{font-size:32px;margin-bottom:5px}
.reports-page-head .muted{font-size:13px;line-height:1.8;max-width:900px}
.reports-filter-compact{margin:0;padding:14px;border-radius:16px;box-shadow:var(--crm-shadow)}
.reports-filter-compact .field{font-size:12.5px}
.reports-filter-compact .field input{height:46px;font-size:13px}
.reports-kpis-compact{margin:0;gap:10px}
.reports-kpis-compact .report-kpi-card{min-height:104px;padding:15px 16px;border-radius:15px;position:relative;overflow:hidden}
.reports-kpis-compact .report-kpi-card:before{content:'';position:absolute;right:0;top:16px;bottom:16px;width:3px;border-radius:4px;background:#eadcde}
.reports-kpis-compact .report-kpi-card.is-primary:before{background:var(--crm-red)}
.reports-kpis-compact .report-kpi-card small{font-size:11px}
.reports-kpis-compact .report-kpi-card strong{font-size:22px;line-height:1.35;color:#2c2225}
.reports-kpis-compact .report-kpi-card.is-primary strong{color:var(--crm-red-dark)}
.reports-kpis-compact .report-kpi-card span{font-size:10px}

.reports-main-compact{grid-template-columns:minmax(0,1.8fr) minmax(300px,.8fr);gap:12px}
.reports-main-compact>.card{margin:0;border-radius:17px;padding:17px 18px}
.reports-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.reports-section-title h2{font-size:18px;margin:1px 0 0;color:#2b2225}
.reports-section-title>small{font-size:10px;color:#9b888d;padding-top:4px}
.reports-chart-compact{min-height:0}
.reports-chart-compact.is-empty{min-height:0}
.reports-bar-chart{height:215px;padding-top:10px}
.reports-chart-compact.is-empty .reports-empty-state{min-height:128px}
.reports-empty-state{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:3px;background:#fffdfd;border:1px dashed #e5d4d6;border-radius:12px;padding:20px;color:#76666a}
.reports-empty-state strong{font-size:13px}.reports-empty-state span{font-size:10.5px;color:#9b888d}
.reports-sources-compact .report-source{padding:11px 0;font-size:12px}
.reports-sources-compact .report-source strong{font-size:12px}
.reports-sources-compact .report-subhead{font-size:14px;margin:17px 0 2px}
.reports-small-empty{font-size:11px;margin:9px 0 0;color:#958287}

.reports-bottom-compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.reports-list-card{margin:0;padding:17px 18px;border-radius:17px;min-width:0}
.reports-compact-list{display:grid}
.reports-compact-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;padding:10px 0;border-top:1px solid #f0e5e6}
.reports-compact-row:first-child{border-top:0;padding-top:2px}
a.reports-compact-row{border-radius:10px;transition:.15s}
a.reports-compact-row:hover{padding-inline:8px;background:#fff8f8}
.reports-row-main{display:grid;gap:2px;min-width:0}
.reports-row-main strong{font-size:12px;color:#43373a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reports-row-main small{font-size:10px;color:#9b888d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reports-compact-row>b{font-size:11.5px;color:var(--crm-red);white-space:nowrap}
.reports-list-empty{min-height:74px;display:grid;place-items:center;text-align:center;border:1px dashed #e5d4d6;border-radius:11px;color:#938086;font-size:11.5px;padding:15px}

@media(max-width:1250px){
  .reports-kpis-compact{grid-template-columns:repeat(3,minmax(0,1fr))}
  .reports-main-compact{grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr)}
}
@media(max-width:1050px){
  .reports-main-compact,.reports-bottom-compact{grid-template-columns:1fr}
}
@media(max-width:700px){
  .reports-page-head h1{font-size:27px}
  .reports-kpis-compact{grid-template-columns:1fr 1fr}
  .reports-filter-compact{grid-template-columns:1fr}
  .reports-filter-compact .row{grid-template-columns:1fr}
  .reports-bar-chart{height:185px}
}
@media(max-width:460px){.reports-kpis-compact{grid-template-columns:1fr}}


.customers-page{display:grid;gap:14px;width:100%}
.customers-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:2px 2px 3px}
.customers-hero-copy{min-width:0}
.customers-hero-copy .eyebrow{margin-bottom:4px}
.customers-hero-copy h1{font-size:34px;line-height:1.35;margin:0 0 5px;color:#21191c}
.customers-hero-copy p{margin:0;max-width:850px;color:#8b777c;font-size:13px;line-height:1.85}
.customers-hero-actions{display:flex;align-items:center;gap:8px;flex:none}
.customers-hero-actions .button{min-width:118px}
.customers-hero-actions .button span{font-size:18px;line-height:1}

.customers-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.customer-stat{position:relative;min-height:104px;background:#fff;border:1px solid var(--crm-border);border-radius:16px;padding:15px 17px;box-shadow:var(--crm-shadow);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
.customer-stat:before{content:'';position:absolute;right:0;top:16px;bottom:16px;width:3px;border-radius:4px;background:#eadcde}
.customer-stat.is-primary:before{background:var(--crm-red)}
.customer-stat>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.customer-stat span{font-size:11.5px;font-weight:800;color:#7e6b70}
.customer-stat strong{font-size:25px;line-height:1.2;color:#2e2427}
.customer-stat.is-primary strong{color:var(--crm-red-dark)}
.customer-stat small{font-size:9.5px;color:#a08c91}

.customers-toolbar{display:grid;grid-template-columns:minmax(300px,1fr) 190px 145px auto;gap:9px;align-items:end;background:#fff;border:1px solid var(--crm-border);border-radius:16px;padding:11px;box-shadow:var(--crm-shadow)}
.customers-search{height:47px;display:flex;align-items:center;gap:9px;border:1px solid #e4d8da;border-radius:11px;padding:0 13px;background:#fff;transition:.16s}
.customers-search:focus-within{border-color:#d7aeb2;box-shadow:0 0 0 3px rgba(201,0,10,.06)}
.customers-search .ui-icon{width:18px;height:18px;color:#968287;flex:none}
.customers-search input{width:100%;height:100%;border:0;outline:0;box-shadow:none;background:transparent;color:#33292c;padding:0;font-size:13px}
.customers-search input::placeholder{color:#ad999d}
.customers-select{display:grid;gap:5px;margin:0}
.customers-select>span{font-size:9.5px;font-weight:800;color:#9a858a;padding-inline:3px}
.customers-select select{width:100%;height:47px;border:1px solid #e4d8da;background:#fff;border-radius:11px;padding:0 11px;color:#493c40;font-size:12px;outline:0}
.customers-select select:focus{border-color:#d7aeb2;box-shadow:0 0 0 3px rgba(201,0,10,.06)}
.customers-search-button{height:47px;min-height:47px;padding-inline:20px}

.customers-result-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:1px 4px;color:#938086;font-size:10.5px}
.customers-result-head>div{display:flex;align-items:baseline;gap:5px}
.customers-result-head strong{font-size:13px;color:#42363a}

.customers-table-card{background:#fff;border:1px solid var(--crm-border);border-radius:17px;box-shadow:var(--crm-shadow);overflow:hidden}
.customers-table-scroll{overflow-x:auto}
.customer-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1060px;font-size:12.5px}
.customer-table th,.customer-table td{text-align:right;padding:13px 14px;border-bottom:1px solid #f0e5e7;white-space:nowrap;vertical-align:middle}
.customer-table th{position:static;background:#fdf9f9;color:#8e7a7f;font-size:10.5px;font-weight:900}
.customer-table tbody tr{transition:background .14s}
.customer-table tbody tr:hover{background:#fffafa}
.customer-table tbody tr:last-child td{border-bottom:0}
.customer-table-person{display:flex;align-items:center;gap:10px;min-width:220px}
.customer-mini-avatar{width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:var(--crm-red-soft);color:var(--crm-red);display:grid;place-items:center;font-size:15px;font-weight:900}
.customer-table-person>span:last-child{display:grid;gap:1px;min-width:0}
.customer-table-person b{font-size:12.5px;color:#34292c;overflow:hidden;text-overflow:ellipsis;max-width:230px}
.customer-table-person small{font-size:9px;color:#a08d91}
.customer-phone{display:inline-block;font-family:Arial,sans-serif;letter-spacing:.02em;color:#4a3d41}
.customer-source{display:inline-flex;align-items:center;justify-content:center;min-width:62px;padding:5px 9px;border-radius:999px;background:#f5eff0;color:#77666a;font-size:9.5px;font-weight:900}
.customer-source.source-store{background:#eef5ff;color:#456783}
.customer-source.source-qr{background:#edf8f2;color:#1f7750}
.customer-purchase-count{display:inline-grid;place-items:center;min-width:29px;height:29px;padding:0 7px;border-radius:9px;background:#f6f1f2;color:#56474b;font-weight:900}
.customer-spend{font-size:11.5px;color:#33282b}.customer-spend small{font-size:8.5px;color:#978388;font-weight:700}
.customer-open{display:inline-flex;align-items:center;gap:5px;color:var(--crm-red);font-size:10.5px;font-weight:900;padding:6px 8px;border-radius:8px;transition:.14s}
.customer-open:hover{background:var(--crm-red-soft)}
.customer-open span{font:14px Arial,sans-serif}
.customers-empty{min-height:130px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#8d797e;padding:22px}
.customers-empty>span{width:36px;height:36px;border-radius:11px;background:#f6eff0;color:#9a7e84;display:grid;place-items:center;font-size:18px;margin-bottom:7px}
.customers-empty strong{font-size:12.5px}.customers-empty p{margin:3px 0 0;font-size:10px;color:#a18c91}
.customers-pager-pro{margin-top:1px;padding-bottom:4px}

@media(max-width:1250px){
 .customers-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .customers-toolbar{grid-template-columns:minmax(260px,1fr) 180px 135px auto}
}
@media(max-width:900px){
 .customers-hero{align-items:stretch;flex-direction:column}
 .customers-hero-actions{align-self:flex-start}
 .customers-toolbar{grid-template-columns:1fr 1fr}
 .customers-search{grid-column:1/-1}
 .customers-search-button{width:100%}
}
@media(max-width:620px){
 .customers-hero-copy h1{font-size:27px}
 .customers-hero-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
 .customers-hero-actions .button{width:100%;min-width:0}
 .customers-stats{grid-template-columns:1fr 1fr;gap:8px}
 .customer-stat{min-height:94px;padding:13px}
 .customer-stat strong{font-size:21px}
 .customers-toolbar{grid-template-columns:1fr}
 .customers-search{grid-column:auto}
 .customers-result-head{align-items:flex-start;flex-direction:column;gap:3px}
 .customers-pager-pro{gap:7px}
 .customers-pager-pro .button{padding-inline:10px}
}
@media(max-width:430px){.customers-stats{grid-template-columns:1fr}}


.guest-body:has(.shehata-login-page){background:#f8f4f4;overflow:auto}
.guest-body:has(.shehata-login-page) .auth{
  max-width:none;
  min-height:100vh;
  margin:0;
  padding:0;
  display:block;
}
.shehata-login-page{
  min-height:100vh;
  width:100%;
  display:grid;
  place-items:center;
  padding:28px 18px;
  background:linear-gradient(145deg,#fbf7f7 0%,#f7f2f2 100%);
  direction:rtl;
}
.shehata-login-card{
  width:min(100%,440px);
  background:#fff;
  border:1px solid #eadcde;
  border-radius:24px;
  padding:28px 30px 24px;
  box-shadow:0 22px 70px rgba(77,18,24,.10);
}
.shehata-login-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding-bottom:20px;
  margin-bottom:22px;
  border-bottom:1px solid #f0e5e7;
}
.shehata-login-logo-box{
  width:64px;
  height:64px;
  min-width:64px;
  min-height:64px;
  max-width:64px;
  max-height:64px;
  border-radius:17px;
  background:#fff5f5;
  border:1px solid #f0d7d9;
  overflow:hidden;
  display:grid;
  place-items:center;
}
.shehata-login-logo-box img{
  display:block;
  width:54px;
  height:54px;
  min-width:54px;
  min-height:54px;
  max-width:54px;
  max-height:54px;
  object-fit:contain;
  margin:0;
  padding:0;
}
.shehata-login-brand>div:last-child{display:grid;gap:2px;text-align:right}
.shehata-login-brand strong{font-size:14px;color:#2b2225;line-height:1.5}
.shehata-login-brand span{font-size:10px;color:#9b888d}
.shehata-login-heading{text-align:center;margin-bottom:22px}
.shehata-login-heading h1{font-size:25px;line-height:1.5;margin:0 0 6px;color:#251d20}
.shehata-login-heading p{margin:0;color:#89767b;font-size:12px;line-height:1.9}
.shehata-login-form{display:grid;gap:14px}
.shehata-login-field{display:grid;gap:7px;margin:0;color:#413438;font-size:12.5px;font-weight:800}
.shehata-login-field>input,
.shehata-password-field{
  width:100%;
  min-height:49px;
  border:1px solid #e4d7d9;
  border-radius:11px;
  background:#fff;
  outline:0;
  transition:.16s;
}
.shehata-login-field>input{
  height:49px;
  padding:0 13px;
  margin:0;
  box-shadow:none;
  color:#33282c;
}
.shehata-login-field>input:focus,
.shehata-password-field:focus-within{border-color:#d8acb1;box-shadow:0 0 0 3px rgba(201,0,10,.06)}
.shehata-login-field input::placeholder{color:#b29da2}
.shehata-password-field{display:flex;align-items:center;overflow:hidden}
.shehata-password-field input{
  flex:1;
  min-width:0;
  height:47px;
  margin:0;
  padding:0 13px;
  border:0;
  border-radius:0;
  outline:0;
  box-shadow:none;
  background:transparent;
}
.shehata-password-field button{
  width:60px;
  align-self:stretch;
  border:0;
  border-right:1px solid #f0e5e7;
  background:#fff;
  color:#836f74;
  font-size:11px;
  font-weight:800;
}
.shehata-login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#9b888d;margin:0 0 1px}
.shehata-login-options a{color:#c9000a;font-weight:900}
.shehata-login-submit{
  width:100%;
  height:49px;
  border:1px solid #d00009;
  border-radius:11px;
  background:#d00009;
  color:#fff;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  transition:.16s;
}
.shehata-login-submit:hover{background:#b60008;border-color:#b60008;transform:translateY(-1px)}
.shehata-login-foot{margin-top:21px;padding-top:16px;border-top:1px solid #f0e5e7;text-align:center;color:#8a777c;font-size:10.5px;font-weight:800}

@media(max-width:520px){
  .shehata-login-page{padding:16px}
  .shehata-login-card{padding:23px 19px 20px;border-radius:19px}
  .shehata-login-brand{margin-bottom:19px;padding-bottom:17px}
  .shehata-login-logo-box{width:58px;height:58px;min-width:58px;min-height:58px;max-width:58px;max-height:58px}
  .shehata-login-logo-box img{width:49px;height:49px;min-width:49px;min-height:49px;max-width:49px;max-height:49px}
  .shehata-login-heading h1{font-size:23px}
  .shehata-login-options{align-items:flex-start;flex-direction:column;gap:5px}
}


:root{
  --crm-red:#d60000;
  --crm-red-dark:#a90000;
  --crm-red-soft:#fff3f3;
  --crm-bg:#f5f6f8;
  --crm-surface:#ffffff;
  --crm-text:#1f2937;
  --crm-muted:#667085;
  --crm-border:#e2e5e9;
  --crm-border-strong:#d5d9df;
  --crm-green:#087a4d;
  --crm-blue:#2563eb;
  --crm-navy:#344054;
  --crm-amber:#b25f00;
  --crm-shadow:0 8px 24px rgba(16,24,40,.045);
  --crm-shadow-strong:0 18px 50px rgba(16,24,40,.10);
}


html,.app-body{background:var(--crm-bg);color:var(--crm-text)}
.app-body .main-sidebar{border-left-color:var(--crm-border);background:#fff}
.main-sidebar nav a:hover{background:#f6f7f8;color:#303642}
.main-sidebar nav a.active{background:#f4f5f7;color:var(--crm-red);box-shadow:inset -3px 0 0 var(--crm-red)}
.app-body .workspace>header{border-bottom-color:var(--crm-border);background:rgba(255,255,255,.98)}
.header-search{background:#f7f8fa;border-color:#eef0f2}
.header-search:focus-within{background:#fff;border-color:#d7dbe0;box-shadow:0 0 0 3px rgba(214,0,0,.055)}
.card,.filterbar,.customers-toolbar,.report-panel,.followup-item,.settings-card{border-color:var(--crm-border)}
.table th,.customer-table th{background:#f7f8fa;color:#6b7280}
.field input,.field select,.field textarea,.filterbar input,.filterbar select{border-color:#dfe3e8;background:#fff}
.field input:focus,.field select:focus,.field textarea:focus,.filterbar input:focus,.filterbar select:focus{border-color:#d60000;box-shadow:0 0 0 3px rgba(214,0,0,.07)}
.button.secondary{background:#fff;color:var(--crm-red);border-color:#e3b7b7}
.button.secondary:hover{background:#fff8f8;border-color:#d60000}


@media (min-width:981px){
  html,body.app-body{height:100%;overflow:hidden}
  .app-body .layout{height:100vh;min-height:0;overflow:hidden}
  .app-body .workspace{height:100vh;min-height:0;overflow:hidden;display:grid;grid-template-rows:76px minmax(0,1fr)}
  .app-body .workspace>main{
    min-height:0;
    height:auto;
    overflow-y:auto;
    overflow-x:hidden;
    direction:ltr;
    scrollbar-gutter:stable;
    scrollbar-width:thin;
    scrollbar-color:#bfc4cb transparent;
  }
  .app-body .workspace>main>*{direction:rtl}
  .app-body .workspace>main::-webkit-scrollbar{width:9px}
  .app-body .workspace>main::-webkit-scrollbar-track{background:transparent}
  .app-body .workspace>main::-webkit-scrollbar-thumb{background:#bfc4cb;border-radius:20px;border:2px solid var(--crm-bg)}
  .app-body .workspace>main::-webkit-scrollbar-thumb:hover{background:#9ea5ae}
}


.guest-body:has(.shehata-login-page){background:#f5f6f8}
.shehata-login-page{background:#f5f6f8}
.shehata-login-card{border-color:#e2e5e9;box-shadow:0 20px 55px rgba(16,24,40,.10)}
.shehata-login-brand{border-bottom-color:#eceff2}
.shehata-login-logo-box{background:#fff;border-color:#e2e5e9}
.shehata-login-heading p,.shehata-login-foot,.shehata-login-options{color:#667085}
.shehata-login-field input,.shehata-password-field{border-color:#dfe3e8;background:#fff}
.shehata-password-field:focus-within{border-color:var(--crm-red);box-shadow:0 0 0 3px rgba(214,0,0,.07)}
.shehata-login-submit{background:var(--crm-red);border-color:var(--crm-red)}
.shehata-login-submit:hover{background:var(--crm-red-dark)}


html [hidden]{display:none}
.honey{position:absolute;left:-9999px;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden}
@media print{
  body.app-body .main-sidebar,
  body.app-body .workspace>header,
  body.app-body .nav-backdrop,
  .qr-tools,.page-head,.qr-details,.qr-stage-brand{display:none}
  body.app-body .workspace{margin:0;height:auto;overflow:visible;display:block}
  body.app-body .workspace>main{max-width:none;padding:0;height:auto;overflow:visible;direction:rtl}
  .card{box-shadow:none}
}
