:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172332;background:#f6f8fb;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#172332;--muted:#778395;--line:#e7ebf1;--surface:#fff;--bg:#f6f8fb;--navy:#172735;--teal:#147c78;--mint:#dff4ef;--gold:#e9ad45;--green:#16805d;--red:#c85258;--shadow:0 8px 26px rgba(24,43,62,.055)}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--bg);font-size:15px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #88d5c8;outline-offset:2px}.app-shell{min-height:100vh}.sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:250px;background:var(--navy);color:#d3dce1;display:flex;flex-direction:column;padding:25px 15px 14px;box-shadow:8px 0 30px rgba(16,36,49,.08)}.brand{height:52px;display:flex;align-items:center;gap:11px;padding:0 12px 19px;color:#fff}.brand-mark{width:34px;height:34px;border-radius:11px;background:#c6f0e5;color:#125e5c;display:grid;place-items:center;font-weight:850;font-size:21px;box-shadow:inset 0 -3px rgba(20,124,120,.18)}.brand strong{font-size:18px;letter-spacing:-.6px;display:block;line-height:1}.brand span{font-size:9px;font-weight:750;letter-spacing:1.5px;color:#8fa2ac}.workspace-switch{margin:17px 4px 17px;padding:11px 11px 10px;border:1px solid #344754;border-radius:11px}.workspace-label{font-size:10px;font-weight:750;letter-spacing:1.05px;color:#8da1ad;display:block;margin-bottom:8px}.workspace-switch select,.role-switch select{border:0;background:transparent;color:#eef5f6;width:100%;padding:0;font-weight:650;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#a6b6bd 50%),linear-gradient(135deg,#a6b6bd 50%,transparent 50%);background-position:calc(100% - 5px) 55%,100% 55%;background-size:5px 5px;background-repeat:no-repeat;cursor:pointer}.workspace-switch option,.role-switch option{color:var(--ink)}.main-nav{overflow:auto;display:flex;flex-direction:column;gap:4px}.nav-heading{font-size:10px;text-transform:uppercase;letter-spacing:1px;font-weight:750;color:#79909b;padding:12px 14px 7px}.nav-item{display:flex;align-items:center;gap:12px;text-align:left;text-decoration:none;color:#bfccd2;border:0;border-radius:9px;background:transparent;padding:10px 13px;font-size:14px;font-weight:560;transition:.15s}.nav-item:hover{background:#233947;color:#fff}.nav-item.active{background:#d8f0e9;color:#155b5b;font-weight:700}.nav-icon{width:18px;text-align:center;font-size:16px;line-height:1}.nav-badge{margin-left:auto;font-size:11px;background:#31515c;border-radius:20px;padding:2px 7px;color:#eef5f6}.nav-item.active .nav-badge{background:#b8e0d5;color:#155b5b}.sidebar-bottom{margin-top:auto}.demo-note{display:flex;align-items:flex-start;gap:9px;padding:12px 10px;margin:5px 2px 10px;border-radius:9px;background:#203642;color:#dae6e8}.demo-dot{width:7px;height:7px;flex:0 0 auto;margin-top:5px;border-radius:50%;background:#84d2ac;box-shadow:0 0 0 4px rgba(132,210,172,.12)}.demo-note strong,.demo-note small{display:block}.demo-note strong{font-size:12px}.demo-note small{font-size:11px;color:#9bafb7;margin-top:3px}.profile-card{border:0;border-top:1px solid #334752;background:none;color:#fff;width:100%;display:flex;align-items:center;text-align:left;gap:10px;padding:14px 8px 1px}.avatar{width:34px;height:34px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800}.avatar-lilac{background:#e9def8;color:#634f85}.profile-copy{min-width:0;flex:1}.profile-copy strong,.profile-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-copy strong{font-size:12px}.profile-copy small{color:#a5b5bb;font-size:11px;margin-top:3px}.profile-caret{font-size:18px;color:#9daeb6}.main-area{margin-left:250px;flex:1 1 0;min-width:0;min-height:100vh;display:flex;flex-direction:column}.topbar{height:70px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.88);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:20}.crumb{display:flex;gap:10px;align-items:center;color:#8490a0;font-size:13px}.crumb strong{color:#263747;font-size:14px}.crumb-sep{color:#c3cbd4}.top-actions{display:flex;align-items:center;gap:15px}.search-box{width:220px;height:37px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;gap:8px;padding:0 10px;color:#8995a3;background:#fff}.search-box span{font-size:21px;line-height:1}.search-box input{width:100%;border:0;outline:0;background:transparent;font-size:12px;color:var(--ink)}.search-box input::placeholder{color:#9aa4af}.icon-button{border:0;width:35px;height:35px;display:grid;place-items:center;background:transparent;color:#607180;border-radius:8px;font-size:19px}.icon-button:hover{background:#edf3f5}.notification-button{position:relative;font-size:17px}.notification-button i{position:absolute;top:7px;right:8px;background:#e8a34c;width:6px;height:6px;border-radius:50%;border:1px solid white}.role-switch{display:flex;align-items:center;gap:7px;padding-left:5px;font-size:11px;color:#8b96a2}.role-switch select{width:156px;color:#34495a;font-size:12px}.top-avatar{width:32px;height:32px}.menu-toggle,.sidebar-close{display:none}.page-content{width:min(1440px,100%);min-width:0;margin:0 auto;padding:30px 34px 34px;flex:1}.app-footer{padding:12px 34px 18px;color:#9ba5b0;font-size:11px}.app-footer span{margin:0 5px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:22px}.page-heading h1{font-size:25px;line-height:1.2;letter-spacing:-.65px;margin:0;color:#182c3b}.page-heading p{margin:7px 0 0;color:#7f8a98;font-size:13px}.heading-actions{display:flex;gap:9px;align-items:center}.date-chip,.filter-select{background:#fff;border:1px solid var(--line);color:#405160;border-radius:8px;padding:9px 11px;font-size:12px;font-weight:600}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;padding:10px 14px;border:1px solid transparent;font-weight:700;font-size:12px;transition:.15s}.button:hover{transform:translateY(-1px)}.button-primary{background:var(--teal);color:#fff;box-shadow:0 4px 10px rgba(20,124,120,.16)}.button-primary:hover{background:#106b68}.button-secondary{background:#fff;border-color:var(--line);color:#405263}.button-soft{background:#e5f4ef;color:#17645e}.button-danger{background:#fff0ef;color:#b7474a}.button-small{padding:7px 10px;font-size:11px}.button-icon{font-size:16px;font-weight:500;line-height:12px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:15px}.metric-card,.panel{background:var(--surface);border:1px solid #e9edf2;border-radius:12px;box-shadow:var(--shadow)}.metric-card{padding:17px 18px;min-height:123px;position:relative;overflow:hidden}.metric-top{display:flex;justify-content:space-between;align-items:center;color:#778492;font-size:12px;font-weight:600}.metric-icon{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;background:#eff8f5;color:#16766e;font-size:15px}.metric-value{font-size:25px;letter-spacing:-.6px;font-weight:760;margin:12px 0 5px;color:#1c3444}.metric-meta{font-size:11px;color:#8894a2}.trend{color:#16805d;font-weight:700;margin-right:4px}.trend-down{color:#b7474a}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.95fr);gap:15px;margin-bottom:15px}.panel{padding:18px 19px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}.panel-heading h2{font-size:14px;margin:0;color:#263c4b}.panel-heading p{font-size:11px;color:#8a95a1;margin:5px 0 0}.panel-link{border:0;background:none;padding:2px;color:#147c78;font-size:11px;font-weight:700}.sales-chart{height:196px;position:relative}.sales-chart svg{width:100%;height:100%;overflow:visible}.chart-grid-line{stroke:#edf0f4;stroke-width:1}.chart-label{fill:#95a0ab;font:10px system-ui}.chart-area{fill:url(#areaFill)}.chart-path{fill:none;stroke:#1b8a7e;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chart-point{fill:#fff;stroke:#1b8a7e;stroke-width:2.5}.chart-target{fill:none;stroke:#dfb156;stroke-width:1.5;stroke-dasharray:5 5}.legend-row{display:flex;gap:17px;align-items:center;font-size:10px;color:#7e8b99;margin-top:7px}.legend-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#1b8a7e;margin-right:5px}.legend-dot.target{background:#dfb156}.target-panel{background:#183b46;color:#f4f8f8;border:0;position:relative;overflow:hidden}.target-panel:after{content:"";position:absolute;width:220px;height:220px;border:1px solid rgba(255,255,255,.06);border-radius:50%;right:-110px;top:-112px;box-shadow:0 0 0 23px rgba(255,255,255,.025),0 0 0 48px rgba(255,255,255,.02)}.target-panel .panel-heading h2{color:#fff}.target-panel .panel-heading p{color:#b0c4c7}.target-panel .panel-link{color:#9cddd0}.target-amount{font-size:26px;font-weight:760;letter-spacing:-.5px;margin:19px 0 5px}.target-caption{font-size:11px;color:#bad0d2}.progress-track{height:8px;background:#315762;border-radius:20px;overflow:hidden;margin:20px 0 8px}.progress-fill{height:100%;border-radius:20px;background:#9ee1ce}.target-foot{display:flex;justify-content:space-between;font-size:10px;color:#c1d3d5}.target-projection{margin-top:20px;padding-top:13px;border-top:1px solid rgba(255,255,255,.12);font-size:11px;color:#c2d3d5;display:flex;justify-content:space-between}.target-projection strong{color:#fff}.lower-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(310px,.95fr);gap:15px}.visit-list{display:flex;flex-direction:column}.visit-row{display:grid;grid-template-columns:66px 13px minmax(0,1fr) auto;gap:10px;align-items:start;padding:11px 0;border-bottom:1px solid #eff2f5}.visit-row:last-child{border-bottom:0}.visit-time{font-size:11px;font-weight:750;color:#506172;padding-top:2px}.timeline-mark{width:9px;height:9px;border-radius:50%;margin-top:4px;background:#e2a34a;box-shadow:0 0 0 4px #fff6e8}.timeline-mark.done{background:#20977d;box-shadow:0 0 0 4px #e9f6f2}.visit-person{font-size:12px;font-weight:700;color:#2b4050}.visit-sub{font-size:10px;color:#8995a1;margin-top:4px}.visit-status{font-size:10px;font-weight:750;white-space:nowrap;margin-top:2px}.status-done{color:#17815f}.status-pending{color:#ad7622}.status-approved{color:#17815f}.status-rejected{color:#b7474a}.status-review{color:#aa7122}.status-draft{color:#758497}.quick-action{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.quick-action .button{width:100%}.table-wrap{width:100%;overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.data-table th{font-size:10px;text-transform:uppercase;letter-spacing:.65px;color:#919ba8;font-weight:750;padding:10px 11px;border-bottom:1px solid #ebeff3}.data-table td{font-size:12px;color:#445767;padding:12px 11px;border-bottom:1px solid #f0f3f6}.data-table tr:last-child td{border-bottom:0}.data-table td strong{color:#2d4352;font-weight:680}.subcell{font-size:10px;color:#929eaa;margin-top:4px}.pill{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:20px;font-size:10px;font-weight:700;background:#eef3f5;color:#5a6d7a}.pill-green{background:#e8f6ef;color:#18815d}.pill-amber{background:#fff5df;color:#9a7020}.pill-red{background:#ffeded;color:#b7474a}.pill-teal{background:#e3f3f0;color:#17776e}.pill-dot{width:5px;height:5px;border-radius:50%;background:currentColor}.search-inline{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:#fff;min-width:190px;color:#8995a1}.search-inline input{border:0;outline:0;width:100%;font-size:11px}.section-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:8px}.empty-state{padding:35px;text-align:center;color:#8a96a2;font-size:12px}.mini-progress{width:90px;height:6px;background:#ecf0f3;border-radius:9px;overflow:hidden;display:inline-block;vertical-align:middle;margin-right:7px}.mini-progress i{display:block;height:100%;background:#1b8a7e;border-radius:9px}.calendar-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);gap:15px}.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.month-label{font-weight:750;color:#2a4150;font-size:15px}.calendar-controls{display:flex;gap:6px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #edf0f3;border-left:1px solid #edf0f3}.weekday,.calendar-day{border-right:1px solid #edf0f3;border-bottom:1px solid #edf0f3;min-height:61px}.weekday{text-align:center;min-height:auto;padding:8px 2px;color:#8e9aa6;font-size:10px;font-weight:750}.calendar-day{background:#fff;padding:6px 7px;color:#516371;font-size:11px;cursor:pointer;position:relative}.calendar-day:hover{background:#f6fbf9}.calendar-day.muted{color:#c2c9d0;background:#fbfcfd}.calendar-day.selected{background:#eef8f5;box-shadow:inset 0 0 0 1.5px #76c3b4}.calendar-day.today .day-number{background:#157a74;color:#fff}.day-number{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;font-size:10px}.day-events{display:flex;gap:3px;margin-top:6px}.event-dot{width:6px;height:6px;border-radius:50%;background:#e5a449}.event-dot.done{background:#218c77}.event-dot.more{background:#95a2ad}.agenda-date{font-size:12px;color:#80909c;margin-bottom:13px}.agenda-title{font-size:16px;font-weight:740;color:#233a49}.agenda-count{color:#8b97a3;font-size:11px;margin:5px 0 9px}.agenda-empty{padding:25px 7px;text-align:center;color:#94a0ab;font-size:12px}.chart-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:15px;margin-bottom:15px}.pie-wrap{display:flex;align-items:center;gap:22px;padding:7px 10px 5px}.pie-chart{width:clamp(142px,14vw,190px);height:clamp(142px,14vw,190px);flex:0 0 clamp(142px,14vw,190px);border-radius:50%;position:relative;background:conic-gradient(#19877c 0 37%,#67b7a5 37% 61%,#e9ad45 61% 78%,#91a8b7 78% 91%,#d7e3e6 91%)}.pie-chart:after{content:"";position:absolute;inset:22%;border-radius:50%;background:#fff}.pie-center{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;font-weight:770;font-size:15px;line-height:1.1;color:#253c4a}.pie-total{display:block;max-width:100%;font-size:clamp(11px,1.15vw,17px);line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}.pie-center small{display:block;margin:0;color:#919ca6;font-weight:500;font-size:9px;line-height:1}.legend-list{display:grid;flex:1;min-width:0;gap:11px;font-size:11px;color:#758390}.legend-list>span{display:flex;width:100%;min-width:0;align-items:center;justify-content:space-between;gap:10px}.legend-label{display:flex;align-items:center;gap:8px;flex:0 1 auto;min-width:0}.legend-name{min-width:0;overflow-wrap:anywhere}.legend-list>span>strong{flex:0 0 auto;white-space:nowrap}.legend-swatch{width:8px;height:8px;border-radius:3px;display:inline-block;flex:0 0 8px}.bar-chart{height:176px;display:flex;align-items:end;gap:14px;border-bottom:1px solid #edf0f3;padding:8px 7px 0}.bar-group{flex:1;display:flex;flex-direction:column;align-items:center;height:100%;justify-content:end;gap:7px}.bar-pair{height:calc(100% - 24px);display:flex;align-items:end;gap:4px}.bar{width:13px;background:#71b9a7;border-radius:4px 4px 0 0;min-height:4px}.bar.alt{background:#dde9e7}.bar-label{font-size:9px;color:#919ca7}.report-table-note{color:#8995a0;font-size:10px}.approval-card{display:flex;align-items:center;gap:11px}.initials{width:32px;height:32px;border-radius:10px;background:#e8f2ee;color:#247c6a;font-weight:750;display:grid;place-items:center;font-size:10px}.person-name{font-size:12px;font-weight:700;color:#324857}.person-detail{font-size:10px;color:#929ca7;margin-top:3px}.receipt-link{border:0;background:none;color:#187d73;font-weight:700;font-size:11px;text-decoration:underline}.file-hint{font-size:10px;color:#8b97a4}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:11px;color:#536574;font-weight:700}.field input,.field select,.field textarea{border:1px solid #dfe6eb;border-radius:7px;padding:10px 10px;color:#314756;background:#fff;font-size:12px;min-width:0}.field input::placeholder,.field textarea::placeholder{color:#a7b0b9}.field textarea{resize:vertical;min-height:70px}.field-help{font-size:10px;color:#8c98a3}.modal-backdrop{position:fixed;inset:0;background:rgba(18,34,47,.48);z-index:80;display:grid;place-items:center;padding:18px;backdrop-filter:blur(2px)}.modal{width:min(580px,100%);max-height:min(90vh,850px);overflow:auto;background:#fff;border-radius:14px;box-shadow:0 20px 60px rgba(15,35,50,.2)}.modal.wide{width:min(740px,100%)}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:19px 21px 15px;border-bottom:1px solid #edf0f3}.modal-header h2{font-size:17px;color:#223847;margin:0}.modal-header p{font-size:11px;color:#87939f;margin:5px 0 0}.modal-close{border:0;background:#f1f4f6;color:#6b7a86;border-radius:7px;width:29px;height:29px;font-size:19px}.modal-body{padding:18px 21px}.modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:13px 21px 19px;border-top:1px solid #edf0f3}.modal-section-title{font-size:11px;font-weight:750;color:#405565;margin:0 0 10px}.form-divider{border-top:1px solid #edf0f3;margin:17px 0}.product-line{display:grid;grid-template-columns:minmax(0,1fr) 85px 32px;gap:8px;align-items:end;margin-bottom:9px}.remove-line{height:35px;border:1px solid #e5eaee;background:#fff;border-radius:7px;color:#8b98a1}.inline-total{display:flex;justify-content:space-between;background:#f4f8f7;border-radius:8px;padding:11px 12px;font-size:11px;color:#647682;margin-top:13px}.inline-total strong{color:#244453}.radio-row{display:flex;gap:10px}.radio-card{flex:1;border:1px solid #e3e9ed;border-radius:8px;padding:11px;display:flex;align-items:center;gap:8px;font-size:11px;color:#4e626f}.radio-card:has(input:checked){border-color:#64bba9;background:#f1faf7}.toast-root{position:fixed;z-index:110;right:22px;bottom:22px;display:grid;gap:8px}.toast{background:#173a45;color:#fff;border-radius:9px;padding:12px 16px;box-shadow:0 8px 24px rgba(12,35,47,.18);font-size:12px;animation:slide-in .2s ease-out}.toast.error{background:#873f42}@keyframes slide-in{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}.print-invoice{display:none}.report-filter-note{font-size:11px;color:#87939e}.mobile-only{display:none}.section-intro{display:flex;justify-content:space-between;align-items:center;margin:4px 0 13px;color:#81909b;font-size:11px}.subnav-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:14px}.subnav-tab{padding:8px 11px;border:0;border-bottom:2px solid transparent;background:none;color:#83909d;font-size:11px;font-weight:650}.subnav-tab.active{color:#147c78;border-color:#147c78}.alert-strip{display:flex;align-items:center;gap:9px;background:#fff8e9;color:#896526;padding:10px 12px;border-radius:8px;font-size:11px;margin-bottom:14px}.alert-strip strong{color:#735419}@media(max-width:1120px){.sidebar{width:226px}.main-area{margin-left:226px}.topbar{padding:0 23px}.page-content{padding:25px 23px}.metric-grid{gap:10px}.metric-card{padding:15px}.metric-value{font-size:22px}.dashboard-grid{grid-template-columns:1.4fr .9fr}}@media(max-width:850px){.sidebar{transform:translateX(-104%);transition:transform .23s ease;width:260px;box-shadow:14px 0 35px rgba(14,34,47,.2)}.sidebar.open{transform:translateX(0)}.sidebar-close,.menu-toggle{display:grid}.main-area{margin-left:0}.topbar{height:62px;padding:0 17px;gap:10px}.menu-toggle{display:grid;flex:0 0 auto}.crumb{margin-right:auto}.top-actions{gap:8px}.search-box{width:175px}.role-switch{display:none}.top-avatar{display:none}.page-content{padding:22px 17px}.dashboard-grid{grid-template-columns:1fr 300px}.lower-grid{grid-template-columns:1fr}.calendar-layout{grid-template-columns:1fr}.calendar-day{min-height:54px}.weekday{font-size:9px}}@media(max-width:620px){body{font-size:14px}.topbar{padding:0 11px}.crumb{gap:6px;font-size:11px}.crumb strong{font-size:12px}.top-actions{gap:3px}.search-box{width:38px;border-color:transparent;background:transparent;padding:0 7px;justify-content:center}.search-box input{position:absolute;right:50px;top:61px;width:calc(100vw - 70px);height:40px;padding:0 12px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);display:none}.search-box:focus-within input,.search-box input:not(:placeholder-shown){display:block}.notification-button{width:30px}.page-content{padding:19px 12px 24px}.page-heading{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:16px}.page-heading h1{font-size:22px}.page-heading p{font-size:12px}.heading-actions{width:100%;justify-content:space-between}.heading-actions .button{margin-left:auto}.metric-grid{grid-template-columns:1fr 1fr;gap:9px}.metric-card{min-height:105px;padding:13px}.metric-top{font-size:10px}.metric-icon{width:25px;height:25px}.metric-value{font-size:20px;margin:10px 0 4px}.metric-meta{font-size:9px}.dashboard-grid{grid-template-columns:1fr;gap:10px}.lower-grid{gap:10px}.panel{padding:15px 13px;border-radius:10px}.sales-chart{height:167px}.target-amount{font-size:24px}.visit-row{grid-template-columns:51px 11px minmax(0,1fr) auto;gap:7px}.visit-status{font-size:9px}.visit-time{font-size:10px}.visit-person{font-size:11px}.visit-sub{font-size:9px}.quick-action{grid-template-columns:1fr 1fr}.quick-action .button{font-size:10px;padding:9px 6px}.app-footer{padding:12px 13px 17px;font-size:10px}.chart-cards{grid-template-columns:1fr}.calendar-day{min-height:48px;padding:4px}.weekday{padding:6px 0}.day-number{width:21px;height:21px}.data-table th{font-size:9px;padding:9px}.data-table td{font-size:11px;padding:10px 9px}.section-toolbar{align-items:flex-start;flex-direction:column}.toolbar-left,.toolbar-right{width:100%}.toolbar-right{justify-content:flex-end}.search-inline{flex:1}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.modal-backdrop{padding:9px}.modal{max-height:94vh;border-radius:12px}.modal-header{padding:16px 15px 13px}.modal-body{padding:15px}.modal-footer{padding:12px 15px 15px}.product-line{grid-template-columns:minmax(0,1fr) 64px 30px;gap:6px}.product-line .field label{font-size:10px}.pie-wrap{gap:13px;padding:6px 0}.pie-chart{width:120px;height:120px;flex-basis:120px}.pie-chart:after{inset:27px}.legend-list{gap:8px;font-size:10px}}@media print{body{background:#fff}.sidebar,.topbar,.app-footer,.toast-root{display:none!important}.main-area{margin:0}.page-content{width:100%;padding:0}.modal-backdrop{display:block!important;position:static;inset:auto;background:#fff;padding:0;backdrop-filter:none}.modal{width:100%;max-height:none;overflow:visible;box-shadow:none;border-radius:0}.modal-header,.modal-footer{display:none!important}.modal-body{padding:0}.print-invoice{display:block}.no-print{display:none!important}}
.product-line{grid-template-columns:minmax(0,1fr) 116px 70px 82px 32px}.promo-line{grid-template-columns:minmax(0,1fr) 82px 32px}.promo-line>span{display:none}.attendance-card{margin-top:15px}.attendance-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.attendance-summary strong,.attendance-summary small{display:block}.attendance-summary strong{font-size:14px;color:#294353}.attendance-summary small{font-size:11px;color:#87939f;margin-top:5px}@media(max-width:620px){.product-line{grid-template-columns:minmax(0,1fr) 78px 54px 54px 26px;gap:4px}.promo-line{grid-template-columns:minmax(0,1fr) 62px 28px}.attendance-summary{align-items:flex-start;flex-direction:column}.attendance-summary .button{align-self:flex-start}}
#reportForm.no-sale #productLines .line-price-type{display:none}#reportForm.no-sale #productLines .product-line{grid-template-columns:minmax(0,1fr) 82px 32px}#reportForm.no-sale #orderTotal{display:none}#reportForm.no-sale .inline-total{display:none}@media(max-width:620px){#reportForm.no-sale #productLines .product-line{grid-template-columns:minmax(0,1fr) 62px 28px}}
.home-quick-actions{display:none}.home-quick-actions .panel-heading{margin-bottom:12px}.home-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.home-quick-action{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:80px;padding:12px 8px;border:1px solid #e9edf2;border-radius:10px;background:#fbfdfd;color:#34495a;font-size:12px;font-weight:650;text-align:center}.home-quick-action:hover{background:#eff8f5;border-color:#95d4c6}.home-quick-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#e7f5f0;color:#16766e;font-size:18px}@media(max-width:1024px){.home-quick-actions{display:block;margin-bottom:15px}}@media(max-width:620px){.home-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-quick-action{flex-direction:row;justify-content:flex-start;min-height:56px;padding:10px 11px;text-align:left}.home-quick-icon{width:30px;height:30px;flex:0 0 30px}}
.gps-field{border:1px solid #e9edf2;border-radius:9px;padding:12px;background:#fbfdfd}.gps-actions{display:flex;gap:8px;flex-wrap:wrap}.gps-field .field-help{display:block;margin-top:8px}
.check-row{display:flex;align-items:flex-start;gap:9px;color:#405365;font-size:13px;line-height:1.5;margin:7px 0 2px}.check-row input{flex:0 0 auto;margin-top:3px;accent-color:#167b74}.expense-review-summary{padding:14px;border:1px solid #e5ecee;border-radius:9px;background:#f8fbfb}.expense-review-summary strong{display:block;color:#233847;font-size:15px}.expense-review-summary p{margin:6px 0;color:#526474}.expense-review-summary .subcell{margin:7px 0}
#reportForm.no-sale #productLines .discount-field{display:none}

/* Mobile app layout: open cards, icon-led shortcuts, and a compact tab bar. */
.mobile-tabbar,.mobile-scrim{display:none}
@media(max-width:850px){
  .home-quick-actions{display:block;margin-bottom:14px;border-radius:16px;box-shadow:0 3px 12px rgba(28,54,69,.08)}
  .home-quick-actions .panel-heading{align-items:center;margin-bottom:10px}
  .home-quick-actions .panel-heading h2{font-size:16px}
  .home-quick-actions .panel-heading p{font-size:12px}
  .home-quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:2px 3px}
  .home-quick-action{appearance:none;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:6px;min-width:0;min-height:98px;padding:7px 3px 5px;border:0;border-radius:12px;background:transparent;color:#304250;box-shadow:none;font-size:12px;font-weight:600;text-align:center;transition:background .16s ease,transform .16s ease}
  .home-quick-action:hover,.home-quick-action:focus-visible{background:transparent;border:0}
  .home-quick-action:active{transform:scale(.97)}
  .home-quick-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border:1px solid #e6edef;border-radius:50%;background:#f1f5f5;color:#166f69;font-size:20px;box-shadow:0 2px 5px rgba(31,57,71,.06)}
  .home-quick-icon svg{display:block;width:24px;height:24px}
  .home-quick-action.primary .home-quick-icon{background:#177d75;border-color:#177d75;color:#fff;box-shadow:0 4px 10px rgba(23,125,117,.2)}
  .home-quick-label{display:block;max-width:100%;min-height:2.4em;overflow-wrap:anywhere;line-height:1.2;color:#394b58}
  .mobile-tabbar{position:fixed;z-index:40;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;min-height:68px;padding:6px 10px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #e7ecef;background:rgba(255,255,255,.97);box-shadow:0 -4px 16px rgba(20,43,56,.08);backdrop-filter:blur(14px)}
  .mobile-tab-item{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:54px;padding:2px;border:0;border-radius:12px;background:transparent;color:#778792;font:inherit;text-align:center}
  .mobile-tab-item:hover{background:transparent}
  .mobile-tab-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:currentColor;transition:background .16s ease}
  .mobile-tab-icon svg{display:block;width:21px;height:21px}
  .mobile-tab-label{display:block;font-size:12px;font-weight:600;line-height:1.15;white-space:nowrap}
  .mobile-tab-item.active{color:#14766f}
  .mobile-tab-item.active .mobile-tab-icon{background:#dff2ec}
  .main-area{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  .page-content{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
  .panel,.metric-card{border-radius:14px;box-shadow:0 3px 12px rgba(28,54,69,.07)}
  .button,.nav-item,.icon-button{min-height:42px}
  .table-wrap{border-radius:10px;overscroll-behavior-x:contain}
}
@media(max-width:620px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .app-shell,.main-area{width:100%;min-width:0;max-width:100%}
  .topbar{min-width:0}
  .crumb{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .page-heading{min-width:0;align-items:flex-start;flex-direction:column}
  .page-heading>div{min-width:0;max-width:100%}
  .page-heading p{max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
  .dashboard-grid,.lower-grid{grid-template-columns:minmax(0,1fr);min-width:0}
  .mobile-tabbar{z-index:100;min-height:72px;padding-bottom:calc(8px + env(safe-area-inset-bottom));box-shadow:0 -5px 18px rgba(20,43,56,.14)}
  .main-area{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
  .page-content{min-width:0}
  body{font-size:15px}
  .topbar{height:58px;padding:0 10px}
  .page-content{padding:15px 12px calc(20px + env(safe-area-inset-bottom))}
  .page-heading{gap:10px;margin-bottom:14px}
  .page-heading h1{font-size:22px;line-height:1.22}
  .page-heading p{font-size:13px;line-height:1.4}
  .heading-actions{align-items:stretch;flex-wrap:wrap;gap:8px}
  .heading-actions>.button{min-height:44px;margin-left:0}
  .heading-actions>.reporting-period-control{width:100%}
  .metric-grid{gap:9px}
  .metric-card{min-height:104px;padding:12px}
  .metric-top{font-size:11px;line-height:1.25}
  .metric-value{font-size:20px}
  .metric-meta{font-size:11px;line-height:1.25}
  .panel{padding:15px 13px;border-radius:14px}
  .panel-heading{gap:8px;margin-bottom:12px}
  .panel-heading h2{font-size:15px}
  .panel-heading p{font-size:12px;line-height:1.35}
  .home-quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1px 2px}
  .home-quick-action{min-height:97px;padding:6px 2px 4px;font-size:12px}
  .home-quick-icon{width:46px;height:46px;flex-basis:46px}
  .home-quick-icon svg{width:23px;height:23px}
  .home-quick-label{line-height:1.2;min-height:2.4em}
  .visit-row{grid-template-columns:48px 10px minmax(0,1fr);gap:7px}
  .visit-status{grid-column:3;justify-self:start;margin-top:2px;font-size:11px}
  .visit-time{font-size:11px}
  .visit-person{font-size:13px}
  .visit-sub{font-size:11px;line-height:1.35}
  .data-table{min-width:640px}
  .data-table th{font-size:11px;padding:10px}
  .data-table td{font-size:12px;padding:11px 10px}
  .form-grid{gap:12px}
  .field label{font-size:13px}
  .field input,.field select,.field textarea{min-height:44px;font-size:15px}
  .field textarea{min-height:94px}
  .product-line{grid-template-columns:repeat(3,minmax(0,1fr)) 34px;gap:7px;margin-bottom:12px}
  .product-line .field:first-child{grid-column:1/-1}
  .product-line .field label{font-size:12px}
  .product-line .field input,.product-line .field select{padding:9px 7px;font-size:13px}
  .product-line .remove-line{height:44px;align-self:end}
  .promo-line{grid-template-columns:minmax(0,1fr) 34px;gap:7px}
  .promo-line .field:first-child{grid-column:1/-1}
  .promo-line .remove-line{height:44px}
  .modal-backdrop{align-items:flex-end;padding:0}
  .modal{width:100%;max-height:92dvh;border-radius:18px 18px 0 0;overflow:auto;box-shadow:0 -8px 28px rgba(20,43,56,.2)}
  .modal-header{position:sticky;top:0;z-index:2;background:#fff;border-radius:18px 18px 0 0}
  .modal-footer{position:sticky;bottom:0;z-index:2;background:#fff;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .modal-footer .button{min-height:44px}
  #reportForm.no-sale #productLines .product-line{grid-template-columns:minmax(0,1fr) 34px}
  #reportForm.no-sale #productLines .product-line .field:first-child{grid-column:1/-1}
}
@media(min-width:851px) and (max-width:1024px){
  .home-quick-actions{display:block;margin-bottom:14px;border-radius:16px;box-shadow:0 3px 12px rgba(28,54,69,.08)}
  .home-quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:2px 3px}
  .home-quick-action{appearance:none;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:6px;min-width:0;min-height:100px;padding:7px 4px 5px;border:0;border-radius:12px;background:transparent;color:#304250;font-size:12px;font-weight:600;text-align:center;box-shadow:none}
  .home-quick-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border:1px solid #e6edef;border-radius:50%;background:#f1f5f5;color:#166f69;box-shadow:0 2px 5px rgba(31,57,71,.06)}
  .home-quick-icon svg{width:24px;height:24px}
  .home-quick-action.primary .home-quick-icon{background:#177d75;border-color:#177d75;color:#fff}
  .home-quick-label{display:block;max-width:100%;min-height:2.4em;overflow-wrap:anywhere;line-height:1.2;color:#394b58}
}
@media(max-width:850px){
  .sidebar{z-index:60}
  .sidebar.open + .mobile-scrim{display:block;position:fixed;z-index:50;inset:0;width:100vw;height:100vh;border:0;border-radius:0;background:rgba(14,31,41,.38);backdrop-filter:blur(2px)}
}


.reporting-period-control{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.filter-date{min-height:36px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#405160;font-size:12px}.target-assignment-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}.target-assignment-fields>.field{margin:0}.target-period-summary{margin:0 0 12px;padding:10px 11px;border-radius:8px;background:#eff8f5;color:#24615b;font-size:12px;font-weight:650}.target-custom-dates{grid-column:1/-1}.target-share-grid{max-width:620px;border:1px solid #e8edf0;border-radius:9px;overflow:hidden;background:#fff}.target-share-heading,.target-share-row{display:grid;grid-template-columns:minmax(0,1fr) 92px;align-items:center;gap:12px;padding:9px 12px}.target-share-heading{background:#f7fafb;color:#73808c;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}.target-share-row{border-top:1px solid #edf0f3;color:#304554;font-size:12px;cursor:default}.target-share-row small{display:block;margin-top:3px;color:#8a96a1;font-size:10px}.target-share-row input{width:92px;padding:7px 8px;border:1px solid #dce4e9;border-radius:7px;text-align:right;color:#263d4b}.target-share-total{display:flex;justify-content:space-between;padding:9px 12px;background:#f7fafb;color:#697984;font-size:11px}.target-product-card{margin:10px 0 13px;padding:12px;border:1px solid #e4ebef;border-radius:10px;background:#fbfdfd}.target-product-line{display:grid;grid-template-columns:minmax(0,1fr) 118px 116px 34px;gap:9px;align-items:end}.target-product-line .field{margin:0}.target-product-line .field label{font-size:10px}.target-product-line input,.target-product-line select{width:100%;min-width:0}.target-remove-line{height:36px;padding:5px;font-size:17px}.target-product-meta{padding:8px 0 10px;color:#788793;font-size:11px}.target-product-meta strong{color:#23505a}.target-product-shares{padding-top:3px}.target-product-shares .target-share-grid{max-width:100%}.target-product-shares .target-share-row{grid-template-columns:minmax(0,1fr) 82px}.target-product-shares .target-share-row input{width:82px}.target-share-total strong{font-weight:750}@media(max-width:620px){.reporting-period-control{width:100%;gap:6px}.reporting-period-control .filter-select{flex:1;min-width:128px}.filter-date{flex:1;min-width:120px}.target-assignment-fields{grid-template-columns:1fr}.target-share-heading,.target-share-row{grid-template-columns:minmax(0,1fr) 76px;gap:7px;padding:8px}.target-share-row input{width:76px}.target-product-line{grid-template-columns:minmax(0,1fr) 82px 76px 27px;gap:5px}.target-product-line .field label{font-size:9px}.target-product-line input,.target-product-line select{padding:8px 6px;font-size:11px}.target-product-meta{padding:6px 0}.target-product-card{padding:9px}.target-product-shares .target-share-row{grid-template-columns:minmax(0,1fr) 68px}.target-product-shares .target-share-row input{width:68px}}

/* Tablet/mobile KPIs keep standard desktop sizing in a two-column grid. */
@media(max-width:850px){
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .metric-card{min-height:123px;padding:17px 18px}
  .metric-top{font-size:12px}
  .metric-icon{width:29px;height:29px}
  .metric-value{font-size:25px;margin:12px 0 5px;letter-spacing:-.6px}
  .metric-meta{font-size:11px;line-height:1.25}
}

/* Clear, compact team sales feedback controls and comment cards. */
.team-section-tabs{display:flex;gap:6px;margin:0 0 16px;padding:0 0 8px;border-bottom:1px solid var(--line)}
.team-section-tabs [role="tab"]{min-height:40px;padding:9px 14px;border:1px solid transparent;border-radius:9px;background:transparent;color:#647481;font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.team-section-tabs [role="tab"]:hover{background:#f2f7f6;color:#146f69}
.team-section-tabs [role="tab"].active{border-color:#d6ebe5;background:#eaf6f2;color:#126e68}
.performance-review-controls{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(300px,1.4fr);gap:14px;align-items:end;margin-bottom:17px;padding:13px;border:1px solid #e9eef0;border-radius:11px;background:#fbfdfd}
.performance-review-controls .field{min-width:0;margin:0}
.performance-period-controls{display:grid;grid-template-columns:minmax(130px,.72fr) minmax(145px,1fr);gap:10px;align-items:end}
.performance-date-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.performance-review-controls .field label{font-size:14px}
.performance-review-controls .field select,.performance-review-controls .field input{width:100%;min-width:0;min-height:42px}
.performance-metric-grid{margin-top:0}
.performance-composer{margin-top:15px}
.performance-composer .panel-heading{margin-bottom:16px}
.performance-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding-top:12px;border-top:1px solid #edf0f2}
.performance-composer-footer small{color:#71808b;font-size:12px;line-height:1.5}
.performance-composer-footer small strong{color:#304653}
.performance-feedback-history{margin-top:15px}
.performance-feedback-list{display:grid;gap:10px}
.performance-feedback-card{padding:15px;border:1px solid #e7ecef;border-radius:11px;background:#fff}
.performance-feedback-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#73818b;font-size:14px}
.performance-feedback-meta strong{margin-right:3px;color:#304653;font-size:13px}
.performance-feedback-meta strong,.performance-feedback-meta .pill{font-size:14px}
.performance-feedback-meta .pill{margin-left:auto}
.performance-feedback-card>p{margin:12px 0 0;color:#354a57;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.performance-next-step,.performance-employee-response{display:grid;gap:4px;margin-top:12px;padding:11px 12px;border-radius:9px;background:#f4f8f7;color:#40545f;font-size:14px;line-height:1.45}
.performance-next-step strong,.performance-employee-response strong{color:#266b64;font-size:14px}
.performance-next-step small{color:#74828b}
.performance-employee-response{background:#f6f7fb}
.performance-employee-response strong{color:#516481}
.performance-feedback-footer{display:flex;justify-content:flex-end;margin-top:12px;padding-top:10px;border-top:1px solid #edf0f2;color:#74828b;font-size:14px}
.performance-own-profile-note{margin-top:15px;border-color:#d8e9e5;background:#f6fbf9}
.performance-own-profile-note p{margin:0;color:#50636e;font-size:14px;line-height:1.5}
.performance-own-profile-note strong{color:#225f58}
@media(max-width:850px){
  .performance-review-controls{grid-template-columns:1fr;gap:11px}
}
@media(max-width:620px){
  .team-section-tabs{margin-bottom:12px}
  .team-section-tabs [role="tab"]{flex:1;min-height:42px;padding:8px;font-size:14px}
  .performance-review-controls{padding:11px;gap:10px}
  .performance-period-controls{grid-template-columns:1fr 1fr;gap:8px}
  .performance-date-range{gap:7px}
  .performance-review-controls .field label{font-size:14px}
  .performance-composer-footer{align-items:stretch;flex-direction:column}
  .performance-composer-footer .button{width:100%;min-height:44px}
  .performance-feedback-card{padding:12px}
  .performance-feedback-meta{gap:7px}
  .performance-feedback-meta .pill{margin-left:0}
  .performance-feedback-card>p{font-size:13px}
}

/* Employee payslips and owner-only Meta account connection. */
.payslip-document{max-width:760px;margin:0 auto;border:1px solid #e3eaed;border-radius:14px;padding:24px;background:#fff;color:#263d4b}
.payslip-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:16px;border-bottom:1px solid #e9eef0}
.payslip-brand{font-size:11px;font-weight:800;letter-spacing:.1em;color:#14786f}.payslip-header h2{margin:7px 0 3px;font-size:20px}.payslip-header p{margin:0;color:#7a8992;font-size:12px}
.payslip-employee{display:grid;gap:4px;padding:16px 0;border-bottom:1px solid #e9eef0}.payslip-employee>span,.payslip-section h3,.payslip-net>span{font-size:11px;color:#74838d;text-transform:uppercase;letter-spacing:.05em}.payslip-employee small{color:#81909a}
.payslip-section{padding:15px 0;border-bottom:1px solid #e9eef0}.payslip-section h3{margin:0 0 8px}.payslip-line{display:flex;justify-content:space-between;gap:14px;padding:6px 0;font-size:13px}.payslip-total{margin-top:6px;padding-top:10px;border-top:1px solid #edf1f3}.payslip-net{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding:15px;border-radius:11px;background:#eef8f5}.payslip-net strong{font-size:22px;color:#126f69}.payslip-footnote{margin-top:15px;color:#7a8992;font-size:11px}.payslip-actions{display:flex;justify-content:flex-end;margin-top:15px}
.whatsapp-connection-card{display:flex;align-items:center;gap:12px;padding:12px;margin:9px 0;border:1px solid #e6edef;border-radius:11px;background:#fbfdfd}.whatsapp-connection-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#e7f5f0;color:#16766e}.whatsapp-connection-icon svg{width:21px;height:21px}.whatsapp-connection-card>div{display:grid;gap:4px;min-width:0;flex:1}.whatsapp-connection-card strong{color:#304554;font-size:13px}.whatsapp-connection-card small{color:#7d8c96;font-size:11px;overflow-wrap:anywhere}.whatsapp-status-note{margin:10px 0 15px;color:#687b86;font-size:12px;line-height:1.5}.whatsapp-pin-field[hidden]{display:none!important}.whatsapp-loading{display:flex;align-items:center;gap:12px;color:#607380;font-size:13px}.spinner{width:19px;height:19px;border:2px solid #dce9e8;border-top-color:#147b73;border-radius:50%;animation:crm-spin .8s linear infinite}@keyframes crm-spin{to{transform:rotate(360deg)}}
@media(max-width:620px){.payslip-document{padding:17px}.payslip-header h2{font-size:17px}.payslip-net strong{font-size:19px}.whatsapp-connection-card{align-items:flex-start;flex-wrap:wrap}.whatsapp-connection-card>.pill{margin-left:50px}}

/* Keep money KPIs on one line at phone widths while preserving the standard value size. */
@media(max-width:620px){
  .metric-card{padding-left:10px;padding-right:10px}
  .metric-value-money{white-space:nowrap;letter-spacing:-.8px}
  .mobile-tabbar{padding-left:calc(10px + env(safe-area-inset-left));padding-right:calc(10px + env(safe-area-inset-right))}
}

.home-quick-links,.overview-panel-links{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.home-quick-links .panel-link,.overview-panel-links .panel-link{white-space:nowrap}
.overview-performance-list{display:flex;flex-direction:column}
.overview-performance-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,180px);align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #edf0f3}
.overview-performance-row:last-child{border-bottom:0;padding-bottom:2px}
.overview-performance-person{display:flex;align-items:center;gap:10px;min-width:0}
.overview-performance-person>div{min-width:0}
.overview-performance-person strong,.overview-performance-person small,.overview-performance-result strong,.overview-performance-result small{display:block}
.overview-performance-person strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2d4352;font-size:13px}
.overview-performance-person small,.overview-performance-result small{margin-top:3px;color:#87939f;font-size:11px}
.overview-performance-result{text-align:right;min-width:0}
.overview-performance-result strong{color:#2d4352;font-size:13px;white-space:nowrap}
.overview-mini-track{height:4px;margin-top:7px;border-radius:5px;background:#eaf0f1;overflow:hidden}
.overview-mini-track i{display:block;height:100%;border-radius:5px;background:#168478}
.top-customer-cards{display:none}
.top-customer-card{padding:12px;border:1px solid #e8edf0;border-radius:11px;background:#fff}
.top-customer-card-main,.top-customer-card-identity,.top-customer-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
.top-customer-card-identity{justify-content:flex-start;min-width:0}
.top-customer-card-identity>div{min-width:0}
.top-customer-card-identity strong,.top-customer-card-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-customer-card-identity strong{color:#2d4352;font-size:13px}
.top-customer-card-identity small{margin-top:3px;color:#87939f;font-size:11px}
.top-customer-card-sales{flex:0 0 auto;color:#1b574f;font-size:14px;white-space:nowrap}
.top-customer-card-detail{display:flex;flex-wrap:wrap;gap:5px 8px;margin:10px 0;color:#75838f;font-size:11px}
.top-customer-card-footer{padding-top:8px;border-top:1px solid #edf0f3;color:#7d8a96;font-size:11px}
@media(max-width:1024px){.overview-plan-action,.overview-log-visit-action{display:none}}
@media(max-width:620px){
  .home-quick-actions .panel-heading{flex-wrap:wrap}
  .home-quick-links{width:100%;justify-content:space-between;gap:8px;padding-top:3px}
  .home-quick-links .panel-link{font-size:11px}
  .overview-panel-links{gap:5px;flex-wrap:wrap;justify-content:flex-end}
  .overview-panel-links .panel-link{font-size:10px}
  .overview-performance-row{grid-template-columns:minmax(0,1fr) 128px;gap:8px;padding:10px 0}
  .overview-performance-person{gap:8px}
  .overview-performance-person .initials{width:30px;height:30px}
  .overview-performance-person strong{font-size:12px}
  .overview-performance-person small,.overview-performance-result small{font-size:10px}
  .overview-performance-result strong{font-size:12px}
  .top-customer-panel .customer-table-wrap{display:none}
  .top-customer-panel .top-customer-cards{display:grid;gap:8px}
}

/* Keep task dates readable and keep actions beside their visit details. */
.task-row{grid-template-columns:96px 13px minmax(0,1fr)}
.task-row .visit-time{font-size:12px;line-height:1.35}
.task-content{display:flex;align-items:center;gap:14px;min-width:0}
.task-detail{flex:0 1 auto;min-width:0;max-width:720px}
.task-content .visit-status{flex:0 0 auto;align-self:center;margin-top:0}
@media(max-width:850px){.task-row{grid-template-columns:88px 13px minmax(0,1fr)}.task-content{flex-wrap:wrap;align-items:flex-start;gap:6px 12px}.task-detail{flex:1 1 100%;max-width:100%}.task-content .visit-status{align-self:flex-start}}
@media(max-width:620px){.task-row{grid-template-columns:76px 11px minmax(0,1fr);gap:7px}.task-content{gap:5px 10px}}

/* Circular, touch-friendly planned visit time picker. */
.clock-time-trigger{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:9px 12px;border:1px solid #dfe6eb;border-radius:8px;background:#fff;color:#314756;text-align:left;cursor:pointer}
.clock-time-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#edf7f4;color:#147c78;font-size:18px}
.clock-time-trigger strong{font-size:14px;font-weight:650}
.clock-time-hint{margin-left:auto;color:#71818d;font-size:12px}
.clock-picker-backdrop{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:14px;background:rgba(20,38,50,.5);backdrop-filter:blur(2px)}
.clock-picker-dialog{width:min(390px,100%);max-height:min(94dvh,720px);overflow:auto;padding:20px;border:1px solid #e8edef;border-radius:18px;background:#fff;box-shadow:0 20px 60px rgba(16,35,48,.28)}
.clock-picker-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.clock-picker-heading h2{margin:0;color:#263e4d;font-size:18px}
.clock-picker-heading p{margin:5px 0 0;color:#83919c;font-size:13px}
.clock-picker-close{width:34px;height:34px;border:0;border-radius:9px;background:#f2f5f6;color:#697a86;font-size:23px;line-height:1;cursor:pointer}
.clock-time-readout{display:flex;align-items:center;justify-content:center;gap:15px;margin:16px 0 12px}
.clock-time-readout>strong{color:#203b49;font-size:32px;line-height:1;font-variant-numeric:tabular-nums}
.clock-period-toggle,.clock-mode-toggle{display:flex;gap:4px;padding:4px;border:1px solid #e5ecee;border-radius:11px;background:#f7faf9}
.clock-period-toggle button,.clock-mode-toggle button{min-height:36px;padding:7px 12px;border:0;border-radius:8px;background:transparent;color:#687984;font-size:13px;font-weight:650;cursor:pointer}
.clock-period-toggle button.active,.clock-mode-toggle button.active{background:#177d75;color:#fff;box-shadow:0 2px 5px rgba(23,125,117,.16)}
.clock-mode-toggle{width:max-content;margin:0 auto 13px}
.clock-mode-toggle button{min-width:82px}
.clock-dial-face{position:relative;width:min(70vw,264px);height:min(70vw,264px);min-width:230px;min-height:230px;margin:0 auto 12px;border:1px solid #dcebe7;border-radius:50%;background:radial-gradient(circle at center,#f8fcfb 0,#f1f8f6 70%,#e9f3f0 100%);touch-action:manipulation}
.clock-dial-number{position:absolute;z-index:2;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:50%;transform:translate(-50%,-50%);background:transparent;color:#344d5b;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;cursor:pointer}
.clock-dial-number:hover,.clock-dial-number:focus-visible{outline:2px solid #b2ddd4;outline-offset:1px}
.clock-dial-number.selected{background:#177d75;color:#fff;box-shadow:0 3px 9px rgba(23,125,117,.24)}
.clock-dial-hand{position:absolute;z-index:1;left:calc(50% - 1px);bottom:50%;width:2px;height:36%;transform-origin:bottom center;border-radius:2px;background:#4d9c91}
.clock-dial-center{position:absolute;z-index:3;top:50%;left:50%;width:10px;height:10px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;background:#177d75;box-shadow:0 0 0 1px #177d75}
.clock-minute-adjust{display:flex;align-items:center;justify-content:center;gap:13px;margin:2px 0 17px;color:#697985;font-size:13px}
.clock-minute-adjust strong{color:#2b4553;font-variant-numeric:tabular-nums}
.clock-minute-adjust button{min-height:36px;padding:7px 10px;border:1px solid #e1e9ec;border-radius:9px;background:#fff;color:#415765;font-size:12px;font-weight:650;cursor:pointer}
.clock-picker-footer{display:flex;justify-content:flex-end;gap:9px;padding-top:14px;border-top:1px solid #edf1f3}
@media(max-width:620px){.clock-picker-backdrop{padding:10px}.clock-picker-dialog{width:min(390px,100%);max-height:calc(100dvh - 20px);padding:17px 15px;border-radius:18px}.clock-dial-face{width:min(72vw,264px);height:min(72vw,264px);min-width:230px;min-height:230px}.clock-dial-number{width:40px;height:40px;font-size:15px}.clock-picker-heading h2{font-size:17px}.clock-picker-heading p{font-size:12px}.clock-minute-adjust{gap:9px}.clock-minute-adjust button{padding:7px 8px}}
.report-dimension-help{display:block;margin-top:5px;color:#7e8e99;font-size:12px;line-height:1.35}

/* Clarify report grouping and make missing customer classifications easy to fix. */
.chart-dimension-control{display:flex;flex-direction:column;gap:4px;min-width:148px}
.chart-dimension-control label{color:#6f808d;font-size:11px;font-weight:650}
.bar.bar-zero{height:1px!important;min-height:1px;opacity:.35}
.approval-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.customer-row-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.customer-count-summary{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;white-space:nowrap;font-size:14px}
.customer-count-summary>span:not(.report-filter-note){color:#687b86}
.customer-count-summary strong{color:#2f4b5a;font-size:14px;font-variant-numeric:tabular-nums}
.customer-number-cell{width:50px;color:#7d8b95;font-variant-numeric:tabular-nums}
.top-customer-rank{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:8px;background:#f0f5f4;color:#52766f;font-size:10px;font-weight:750;font-variant-numeric:tabular-nums}
.account-type-summary{display:flex;flex-direction:column;gap:4px;margin-bottom:14px;padding:12px;border:1px solid #e8edef;border-radius:9px;background:#f8fbfb;color:#2e4655}
.account-type-summary strong{font-size:14px}
.account-type-summary span{color:#7e8d98;font-size:12px}
@media(max-width:620px){.approval-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-dimension-control{min-width:130px}.customer-row-actions{gap:6px}.customer-row-actions .panel-link{white-space:nowrap}.customer-count-summary{justify-content:flex-start;gap:8px;font-size:14px}}

/* Shared page alignment for headings, actions, panels, and data tables. */
.page-heading{align-items:flex-start;flex-wrap:wrap}
.page-heading>div:first-child{flex:1 1 300px;min-width:0}
.page-heading p{line-height:1.45;max-width:72ch}
.heading-actions{flex:0 1 auto;max-width:100%;align-items:flex-start;justify-content:flex-end;flex-wrap:wrap}
.heading-actions>*{min-width:0;max-width:100%}
.metric-grid{align-items:stretch}
.metric-card,.panel{min-width:0}
.metric-value{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.panel-heading{align-items:flex-start;flex-wrap:wrap}
.panel-heading>div:first-child{flex:1 1 240px;min-width:0}
.panel-heading h2{line-height:1.25}
.panel-heading p{line-height:1.4;max-width:76ch}
.section-toolbar{align-items:center;flex-wrap:wrap;row-gap:10px}
.toolbar-left{min-width:0;flex-wrap:wrap}
.toolbar-right{min-width:0;max-width:100%;text-align:right}
.table-wrap{width:100%;min-width:0;max-width:100%;overflow-x:auto}
.data-table th,.data-table td{vertical-align:middle}
.form-grid>.field{min-width:0}
.task-row .visit-time{white-space:nowrap}
.sales-line-list{display:grid;gap:10px}
.sales-line-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid #e6ecef;border-radius:10px;background:#fff}
.sales-line-card-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.sales-line-card-copy strong{color:#2c4352;font-size:14px}
.sales-line-card-copy span,.sales-line-card-copy small{color:#7e8b97;font-size:12px;line-height:1.35}
.sales-line-member-list{max-height:310px;overflow:auto;border:1px solid #e5ecef;border-radius:9px;background:#fff}
.sales-line-member{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border-bottom:1px solid #eef1f3;color:#344a59;cursor:pointer}
.sales-line-member:last-child{border-bottom:0}
.sales-line-member input{flex:0 0 auto;margin-top:3px;accent-color:#147c78}
.sales-line-member span{display:flex;flex-direction:column;gap:3px;min-width:0}
.sales-line-member strong{font-size:13px}
.sales-line-member small{color:#82909b;font-size:11px}
@media(max-width:850px){.heading-actions{justify-content:flex-start}.toolbar-right{text-align:left}}
@media(max-width:620px){.page-heading{gap:10px;margin-bottom:18px}.heading-actions{width:100%;justify-content:flex-start;gap:7px}.heading-actions .button{min-height:40px}.panel-heading{gap:10px}.sales-line-card{align-items:flex-start;padding:11px}.sales-line-card .button{flex:0 0 auto}}

/* Consistent alignment and readable controls across every signed-in module. */
.page-heading{align-items:flex-start;gap:16px;margin-bottom:22px}
.page-heading h1{line-height:1.2}
.page-heading p{max-width:74ch;font-size:14px;line-height:1.45}
.heading-actions{align-items:center;gap:9px}
.button{min-height:40px;font-size:13px}
.button-small{min-height:34px;font-size:12px}
.whatsapp-staff-status{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #dcebe7;border-radius:12px;background:#f5fbf9}.whatsapp-staff-status>div{display:grid;gap:4px;min-width:0;flex:1}.whatsapp-staff-status strong{color:#234052}.whatsapp-staff-status small{color:#71828e;overflow-wrap:anywhere}.whatsapp-staff-status .status-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#169879;box-shadow:0 0 0 4px #dff3eb}.whatsapp-staff-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.whatsapp-link-code{display:grid;gap:6px;width:min(100%,260px);padding:15px 18px;border:1px dashed #a7d7cb;border-radius:13px;background:#f2faf7}.whatsapp-link-code span{color:#71848d;font-size:11px;font-weight:750;letter-spacing:.08em}.whatsapp-link-code strong{color:#145f59;font-size:28px;letter-spacing:.2em}.whatsapp-link-code small{color:#71848d}.inline-link{border:0;padding:0;background:transparent;color:#147b73;text-decoration:underline;font-weight:700;cursor:pointer}
.metric-grid{align-items:stretch;gap:14px}
.metric-card{min-height:123px;display:flex;flex-direction:column;justify-content:flex-start}
.metric-top{min-height:29px;gap:8px;font-size:12px;line-height:1.25}
.metric-top>span:first-child{max-width:calc(100% - 38px)}
.metric-value{max-width:100%;margin:12px 0 5px;font-size:clamp(20px,1.65vw,25px);line-height:1.15;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.metric-value-money{white-space:nowrap;letter-spacing:-.65px}
.metric-meta{min-height:1.3em;font-size:12px;line-height:1.3}
.panel,.metric-card{min-width:0}
.panel{padding:19px 20px;border-radius:14px}
.panel-heading{align-items:flex-start;gap:14px;margin-bottom:16px}
.panel-heading>div:first-child{flex:1 1 240px;min-width:0}
.panel-heading h2{font-size:16px;line-height:1.3}
.panel-heading p{max-width:76ch;font-size:13px;line-height:1.45}
.section-toolbar{align-items:center;gap:12px;row-gap:10px}
.toolbar-left{flex:1 1 420px;min-width:0;flex-wrap:wrap;gap:9px}
.toolbar-right{flex:0 1 auto;min-width:0;max-width:100%;font-size:12px;line-height:1.4;text-align:right}
.search-inline{min-width:min(220px,100%);min-height:40px}
.filter-select,.date-chip,.filter-date{min-height:40px;font-size:13px}
.table-wrap{width:100%;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.data-table th,.data-table td{vertical-align:middle}
.data-table th{padding:12px;font-size:11px;line-height:1.35}
.data-table td{padding:13px 12px;font-size:13px;line-height:1.4}
.data-table .person-detail,.data-table .subcell{font-size:12px;line-height:1.35}
.empty-state{padding:36px 20px;font-size:14px;line-height:1.5}
.form-grid{gap:16px}
.field{gap:7px}
.field label{font-size:13px;line-height:1.3}
.field input,.field select,.field textarea{min-height:42px;padding:10px 12px;font-size:14px;line-height:1.35}
.field textarea{min-height:96px}
.field-help,.file-hint{font-size:12px;line-height:1.45}
.section-intro{gap:12px;flex-wrap:wrap;font-size:13px;line-height:1.4}
.alert-strip{align-items:flex-start;font-size:13px;line-height:1.45}
.visit-row{align-items:center;min-width:0}
.visit-person{font-size:13px;line-height:1.35}
.visit-sub{font-size:12px;line-height:1.4}
.visit-time,.visit-status{font-size:12px;line-height:1.35}
.chart-cards{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.chart-cards>.panel{height:100%}
.pie-wrap{justify-content:center;gap:clamp(14px,2vw,24px)}
.pie-chart{flex:0 0 clamp(142px,14vw,190px)}
.pie-center{inset:0;display:flex;align-items:center;justify-content:center;text-align:center}
.pie-total{max-width:82%;font-size:clamp(11px,1.15vw,17px);text-align:center;letter-spacing:-.25px}
.legend-list{align-content:center;gap:12px;font-size:12px}
.legend-list>span{min-height:22px}
.calendar-toolbar{gap:12px;flex-wrap:wrap}
.calendar-controls{flex:0 0 auto}
.modal-section-title{font-size:13px}
.modal-header p{font-size:13px;line-height:1.4}
.modal-body{line-height:1.45}
.modal-footer .button{min-height:44px}
.toast{font-size:13px;line-height:1.4}
@media(max-width:1100px){
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .chart-cards{grid-template-columns:minmax(0,1fr)}
  .chart-cards>.panel{height:auto}
}
@media(max-width:850px){
  .page-content{padding-left:18px;padding-right:18px}
  .dashboard-grid,.lower-grid,.calendar-layout{grid-template-columns:minmax(0,1fr)}
  .heading-actions{justify-content:flex-start}
  .toolbar-right{text-align:left}
}
@media(max-width:620px){
  .page-content{padding-left:12px;padding-right:12px}
  .page-heading{gap:10px;margin-bottom:18px}
  .page-heading>div:first-child{flex:1 1 100%;width:100%;max-width:100%}
  .page-heading h1{font-size:22px}
  .page-heading p{font-size:13px}
  .heading-actions{width:100%;justify-content:flex-start;align-items:stretch;gap:8px}
  .heading-actions>.button,.heading-actions>.filter-select,.heading-actions>.date-chip{min-height:44px;max-width:100%;margin:0}
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .metric-card{min-height:123px;padding:13px 11px}
  .metric-top{font-size:11px}
  .metric-value{font-size:20px;line-height:1.15}
  .metric-value-money{font-size:clamp(16px,5vw,20px);letter-spacing:-.7px}
  .metric-meta{font-size:11px;line-height:1.3}
  .panel{padding:15px 13px;border-radius:14px}
  .panel-heading{gap:10px;margin-bottom:13px}
  .panel-heading h2{font-size:15px}
  .panel-heading p{font-size:12px}
  .section-toolbar{align-items:stretch;flex-direction:column;gap:10px}
  .toolbar-left,.toolbar-right{width:100%;max-width:100%}
  .toolbar-left{flex:1 1 auto}
  .toolbar-right{justify-content:flex-start;text-align:left}
  .search-inline{flex:1 1 100%;width:100%;min-height:42px}
  .filter-select,.date-chip,.filter-date{max-width:100%;min-height:42px}
  .data-table{min-width:640px}
  .data-table th{padding:11px 10px;font-size:11px}
  .data-table td{padding:12px 10px;font-size:12px}
  .data-table .person-detail,.data-table .subcell{font-size:11px}
  .form-grid{grid-template-columns:minmax(0,1fr);gap:13px}
  .field.full{grid-column:auto}
  .field input,.field select,.field textarea{min-height:44px;font-size:16px}
  .field textarea{min-height:100px}
  .field label{font-size:13px}
  .field-help,.file-hint{font-size:12px}
  .chart-cards{grid-template-columns:minmax(0,1fr)}
  .pie-wrap{gap:14px;padding:7px 0;flex-wrap:nowrap;justify-content:space-between}
  .pie-chart{width:clamp(120px,38vw,160px);height:clamp(120px,38vw,160px);flex:0 0 clamp(120px,38vw,160px)}
  .pie-total{font-size:clamp(10px,3.2vw,14px)}
  .legend-list{gap:7px;font-size:11px}
  .legend-list>span{gap:6px}
  .modal-section-title{font-size:13px}
  .alert-strip{font-size:12px}
  .visit-row{grid-template-columns:64px 11px minmax(0,1fr);gap:8px}
  .visit-time{font-size:11px}
  .visit-status{grid-column:3;justify-self:start;font-size:11px;white-space:normal}
  .visit-person{font-size:13px}
  .visit-sub{font-size:11px}
  .calendar-toolbar{align-items:flex-start}
  .calendar-controls{margin-left:auto}
  .mobile-tabbar{min-height:72px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
  .main-area{padding-bottom:calc(82px + env(safe-area-inset-bottom))}
  .toast-root{right:12px;left:12px;bottom:calc(82px + env(safe-area-inset-bottom))}
}
/* WhatsApp brand mark and staff number-change controls */
.nav-icon .whatsapp-brand-icon{display:block;width:16px;height:18px;color:#25D366}.nav-item.active .whatsapp-brand-icon{color:#128C7E}.home-quick-icon .whatsapp-brand-icon{display:block;width:23px;height:25px;color:#25D366}.whatsapp-connection-icon .whatsapp-brand-icon{display:block;width:21px;height:24px;color:#25D366}.whatsapp-staff-status>.whatsapp-staff-actions{flex:0 0 auto;justify-content:flex-end;margin:0}.whatsapp-staff-actions .button{white-space:nowrap}@media(max-width:620px){.whatsapp-staff-status{align-items:flex-start;flex-wrap:wrap}.whatsapp-staff-status>.whatsapp-staff-actions{width:100%;padding-left:21px;justify-content:flex-start}.whatsapp-staff-actions .button{flex:1 1 auto}}
.whatsapp-link-code-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.whatsapp-link-code-header .button{flex:0 0 auto}
.monthly-plan-status{margin:-6px 0 16px}.monthly-plan-status-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.monthly-plan-review-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin-bottom:12px;border:1px solid var(--line);border-radius:10px;background:#f7fafb}.monthly-plan-review-summary span{color:#718092;font-size:13px}.monthly-plan-review-list{display:grid;gap:8px;max-height:340px;overflow:auto;margin-bottom:16px}.monthly-plan-visit{display:grid;grid-template-columns:minmax(155px,.45fr) minmax(0,1fr);gap:3px 12px;padding:11px 13px;border:1px solid #e7edf1;border-radius:9px}.monthly-plan-visit strong{grid-row:span 2;color:#243c4c;font-size:13px}.monthly-plan-visit span{color:#34495a;font-size:13px}.monthly-plan-visit small{color:#7f8a98;font-size:12px}.monthly-plan-submit .alert-strip{margin-top:10px}@media(max-width:620px){.monthly-plan-status{margin:0 0 12px}.monthly-plan-status-actions{width:100%;justify-content:flex-start}.monthly-plan-status-actions .button{flex:1 1 100%}.monthly-plan-review-summary{align-items:flex-start;flex-direction:column}.monthly-plan-visit{grid-template-columns:1fr;gap:4px}.monthly-plan-visit strong{grid-row:auto}}
.profile-copy small.profile-sales-line{color:#9cddd0;font-weight:700;font-size:10px}.profile-copy small.profile-sales-description{color:#a5b5bb;font-size:10px}.profile-copy [hidden]{display:none!important}
.notification-wrap{position:relative}.notification-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.notification-count{position:absolute;top:0;right:0;min-width:16px;height:16px;padding:0 4px;border:2px solid #fff;border-radius:10px;background:#d76b58;color:#fff;font-size:9px;line-height:12px;text-align:center;font-weight:800}.notification-count[hidden]{display:none!important}.notification-panel{position:absolute;top:44px;right:0;z-index:45;width:min(370px,calc(100vw - 24px));overflow:hidden;border:1px solid #e2e8ed;border-radius:14px;background:#fff;box-shadow:0 18px 44px rgba(23,48,62,.18)}.notification-panel[hidden]{display:none!important}.notification-panel-head{display:grid;gap:4px;padding:14px 16px;border-bottom:1px solid #edf1f3}.notification-panel-head strong{color:#243b4a;font-size:14px}.notification-panel-head span{color:#81909b;font-size:12px}.notification-list{max-height:min(420px,65vh);overflow:auto}.notification-item{display:flex;width:100%;gap:10px;align-items:flex-start;padding:13px 15px;border:0;border-bottom:1px solid #eff2f4;background:#fff;text-align:left}.notification-item:hover{background:#f7fbfa}.notification-item.unread{background:#f3faf8}.notification-item-mark{flex:0 0 8px;width:8px;height:8px;margin-top:5px;border-radius:50%;background:transparent}.notification-item.unread .notification-item-mark{background:#17877e;box-shadow:0 0 0 3px #e0f1ed}.notification-item-copy{display:grid;gap:4px;min-width:0}.notification-item-copy strong{color:#2d4352;font-size:13px}.notification-item-copy>span{color:#596b77;font-size:12px;line-height:1.45}.notification-item-copy small{color:#8996a0;font-size:11px}.notification-empty{padding:25px 16px;color:#82909a;text-align:center;font-size:13px}.performance-mention-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.performance-mention-picker select{min-height:40px}.performance-mention-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}.performance-mention-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:5px 8px;border:1px solid #d4ebe4;border-radius:18px;background:#edf8f4;color:#23675d;font-size:12px}.performance-mention-chip button{width:20px;height:20px;padding:0;border:0;border-radius:50%;background:#dcefe9;color:#286b62;font-size:16px;line-height:1}.performance-feedback-tags{margin-top:10px;color:#687985;font-size:12px}.performance-feedback-tags strong{color:#35675e}.notification-highlight{border-color:#69bcae!important;box-shadow:0 0 0 3px rgba(45,158,140,.16)!important;transition:box-shadow .2s,border-color .2s}
@media(max-width:620px){.notification-panel{position:fixed;top:66px;right:8px;left:8px;width:auto;max-height:calc(100vh - 92px)}.performance-mention-picker{grid-template-columns:1fr}.performance-mention-picker .button{width:100%}.performance-mention-chip{font-size:12px}}
/* Numbered task rows and customer category report lists */
.task-row .visit-time{display:flex;flex-direction:column;align-items:flex-start;gap:3px;white-space:normal}
.task-row-number{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 4px;border:1px solid #d9e9e4;border-radius:6px;background:#f1f8f5;color:#22796c;font-size:11px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1}
.customer-report-directory{display:grid;gap:13px;margin:0 0 15px}
.customer-report-directory-heading{padding:2px 2px 0}
.customer-report-directory-heading h2{margin:0 0 4px;color:#233d4a;font-size:17px}
.customer-report-directory-heading p{margin:0;color:#7a8993;font-size:12px;line-height:1.5}
.customer-category-report{margin:0;padding:0;overflow:hidden}
.customer-category-report>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;list-style:none;cursor:pointer}
.customer-category-report>summary::-webkit-details-marker{display:none}
.customer-category-report>summary:focus-visible{outline:3px solid #88d5c8;outline-offset:-3px}
.customer-category-name{display:grid;gap:4px;min-width:155px}
.customer-category-name>strong{color:#284351;font-size:15px}
.customer-category-name>small,.customer-category-metrics small{color:#7a8993;font-size:11px}
.customer-category-metrics{display:flex;align-items:center;gap:21px}
.customer-category-metrics>span:not(.customer-category-chevron){display:grid;gap:3px;text-align:right}
.customer-category-metrics>span>strong{color:#214b4b;font-size:13px;font-variant-numeric:tabular-nums}
.customer-category-chevron{color:#70828c;font-size:18px;transition:transform .16s ease}
.customer-category-report[open]>summary{border-bottom:1px solid #e8eef0}
.customer-category-report[open] .customer-category-chevron{transform:rotate(180deg)}
.customer-category-content{padding:0 15px 15px}
.customer-purchase-list{display:grid;gap:4px;min-width:175px}
.customer-purchase-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(62px,auto);align-items:baseline;column-gap:12px;color:#405765;font-size:12px;line-height:1.4}
.customer-purchase-item b{min-width:62px;color:#236c61;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.customer-no-purchases{color:#8a959d;font-size:12px}
.customer-report-directory-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}
.customer-report-sort{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid #e3eaec;border-radius:9px;background:#f6f9f9;white-space:nowrap}
.customer-report-sort>span{padding:0 7px;color:#75858e;font-size:11px}
.customer-report-sort>button{border:0;border-radius:6px;background:transparent;color:#62737d;padding:6px 9px;font-size:11px;font-weight:650}
.customer-report-sort>button.active{background:#fff;color:#176d64;box-shadow:0 1px 3px rgba(24,52,60,.1)}
.customer-report-desktop{display:block}
.customer-report-mobile{display:none}
.customer-category-content>.customer-report-desktop{margin-top:0}
.customer-report-revenue{text-align:right;white-space:nowrap}
.customer-category-report .data-table{width:100%;min-width:760px;table-layout:fixed}
.customer-category-report .data-table th:nth-child(1),.customer-category-report .data-table td:nth-child(1){width:4%}
.customer-category-report .data-table th:nth-child(2),.customer-category-report .data-table td:nth-child(2){width:18%}
.customer-category-report .data-table th:nth-child(3),.customer-category-report .data-table td:nth-child(3){width:22%}
.customer-category-report .data-table th:nth-child(4),.customer-category-report .data-table td:nth-child(4){width:40%}
.customer-category-report .data-table th:last-child,.customer-category-report .data-table td:last-child{width:16%;text-align:right;font-variant-numeric:tabular-nums}
.customer-category-report .data-table th:last-child{white-space:nowrap}
.customer-zero-purchase{margin-top:12px;border:1px solid #e9eef0;border-radius:9px;background:#fbfcfc;overflow:hidden}
.customer-zero-purchase>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;color:#5f727d;font-size:12px;font-weight:650;cursor:pointer;list-style:none}
.customer-zero-purchase>summary::-webkit-details-marker{display:none}
.customer-zero-purchase>summary>span{color:#8a969d;font-weight:500}
.customer-zero-purchase[open]>summary{border-bottom:1px solid #e9eef0}
.customer-zero-purchase .table-wrap{padding:0 8px 8px}
.customer-report-card{padding:11px 12px;border:1px solid #e6ecee;border-radius:10px;background:#fff}
.customer-report-card+.customer-report-card{margin-top:8px}
.customer-report-card-head{display:grid;grid-template-columns:27px minmax(0,1fr) auto;align-items:center;gap:9px}
.customer-report-card-number{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:#edf7f4;color:#20766b;font-size:11px;font-weight:750;font-variant-numeric:tabular-nums}
.customer-report-card-identity{display:grid;gap:3px;min-width:0}
.customer-report-card-identity>strong{overflow-wrap:anywhere;color:#233d4a;font-size:13px}
.customer-report-card-identity>small{overflow-wrap:anywhere;color:#788891;font-size:11px}
.customer-report-card-revenue{color:#194f4b;font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.customer-report-card>.customer-purchase-list{margin:9px 0 0 36px;padding-top:8px;border-top:1px solid #edf1f2}
.customer-report-card .customer-purchase-item{font-size:12px}
.no-purchase-card .customer-purchase-list{border-top:0;padding-top:0;color:#88949b}
@media(max-width:620px){.customer-report-directory-heading{align-items:flex-start;flex-direction:column}.customer-report-sort{align-self:flex-start}.customer-category-report>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;padding:13px}.customer-category-name{grid-column:1/-1}.customer-category-metrics{grid-column:1/-1;display:grid;grid-template-columns:minmax(34px,.8fr) minmax(90px,1.6fr) minmax(38px,.7fr) auto;gap:6px}.customer-category-metrics>span:not(.customer-category-chevron){text-align:left;min-width:0}.customer-category-metrics small{font-size:9px}.customer-category-metrics>span>strong{font-size:11px;white-space:nowrap}.customer-category-content{padding:0 8px 10px}.customer-purchase-list{min-width:0}.customer-report-desktop{display:none}.customer-report-mobile{display:block}.customer-zero-purchase .customer-report-mobile{padding:8px}.customer-zero-purchase>summary{align-items:flex-start;flex-direction:column;gap:4px}}
.product-save-message{margin:0 0 14px;padding:10px 12px;border:1px solid #d9e9e5;border-radius:8px;background:#f1faf7;color:#24615b;font-size:12px;line-height:1.45}.product-save-message.is-error{border-color:#f0d0cd;background:#fff4f2;color:#8e3b36}.product-save-message[hidden]{display:none}
.button:disabled{opacity:.68;cursor:wait;transform:none}

.customer-class-badge{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:5px 9px;border:1px solid #dbe9e5;border-radius:999px;background:#f1f8f5;color:#315e54;font-size:11px;font-weight:750;white-space:nowrap}
.customer-class-badge.class-a{border-color:#f1d4b1;background:#fff7ec;color:#9b5d14}
.customer-class-badge.class-b{border-color:#d7e4ef;background:#f1f7fc;color:#366487}
.customer-class-badge.class-c{border-color:#e1e5eb;background:#f5f6f8;color:#64717d}
.customer-frequency-cell{min-width:145px;font-variant-numeric:tabular-nums}
.customer-frequency-cell strong{display:block;color:#29465a;font-size:12px;white-space:nowrap}
.customer-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.danger-link{color:#b14b4b!important}
.product-table{min-width:1050px}
.product-table th,.product-table td{vertical-align:middle}
.product-description-cell{min-width:180px;max-width:320px;white-space:normal;color:#647481;font-size:12px;line-height:1.5}
.numeric-cell{text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums}
.product-discount-cell{text-align:right;white-space:nowrap;color:#14786f;font-weight:750;font-variant-numeric:tabular-nums}
.product-row-actions{white-space:nowrap}
.product-row-actions .panel-link{margin-right:8px}
.product-discount-preview{grid-column:1/-1;padding:10px 12px;border:1px solid #d9e9e5;border-radius:9px;background:#f2faf7;color:#24645b;font-size:13px;font-weight:700}
.product-discount-preview.is-invalid{border-color:#f0d0cd;background:#fff4f2;color:#963f38}
#customerMonthlyVisitTarget{font-variant-numeric:tabular-nums}
.delete-record-callout{padding:14px;border:1px solid #f0d9d6;border-radius:10px;background:#fff8f6;color:#435666}
.delete-record-callout strong{display:block;color:#263e4d}
.delete-record-callout p{margin:6px 0 0;color:#697985;font-size:13px;line-height:1.45}

/* Keep account and product details readable without forcing sideways scrolling. */
.customer-table,.product-table{width:100%;min-width:0;table-layout:fixed;white-space:normal}
.customer-table th,.customer-table td,.product-table th,.product-table td{box-sizing:border-box;min-width:0;padding-left:8px;padding-right:8px}
.customer-table th:nth-child(1),.customer-table td:nth-child(1){width:4%}
.customer-table th:nth-child(2),.customer-table td:nth-child(2){width:13%}
.customer-table th:nth-child(3),.customer-table td:nth-child(3){width:14%}
.customer-table th:nth-child(4),.customer-table td:nth-child(4){width:9%}
.customer-table th:nth-child(5),.customer-table td:nth-child(5){width:13%}
.customer-table th:nth-child(6),.customer-table td:nth-child(6){width:17%}
.customer-table th:nth-child(7),.customer-table td:nth-child(7){width:7%}
.customer-table th:nth-child(8),.customer-table td:nth-child(8){width:11%}
.customer-table th:nth-child(9),.customer-table td:nth-child(9){width:12%}
.customer-table .approval-card{min-width:0;gap:7px}
.customer-table .approval-card>div,.customer-table .person-name,.customer-table .person-detail,.customer-table td{overflow-wrap:anywhere}
.customer-table .person-name{line-height:1.35}
.customer-table .customer-frequency-cell{min-width:0}
.customer-table .customer-frequency-cell strong{white-space:normal}
.customer-row-actions{align-items:flex-start;gap:3px}
.customer-row-actions .panel-link{font-size:11px;line-height:1.25;white-space:normal}
.product-table th:nth-child(1),.product-table td:nth-child(1){width:4%}
.manager-product-table th:nth-child(2),.manager-product-table td:nth-child(2){width:13%}
.manager-product-table th:nth-child(3),.manager-product-table td:nth-child(3){width:9%}
.manager-product-table th:nth-child(4),.manager-product-table td:nth-child(4){width:17%}
.manager-product-table th:nth-child(5),.manager-product-table td:nth-child(5),.manager-product-table th:nth-child(6),.manager-product-table td:nth-child(6){width:9%}
.manager-product-table th:nth-child(7),.manager-product-table td:nth-child(7){width:8%}
.manager-product-table th:nth-child(8),.manager-product-table td:nth-child(8){width:9%}
.manager-product-table th:nth-child(9),.manager-product-table td:nth-child(9){width:8%}
.manager-product-table th:nth-child(10),.manager-product-table td:nth-child(10){width:14%}
.product-table:not(.manager-product-table) th:nth-child(2),.product-table:not(.manager-product-table) td:nth-child(2){width:16%}
.product-table:not(.manager-product-table) th:nth-child(3),.product-table:not(.manager-product-table) td:nth-child(3){width:11%}
.product-table:not(.manager-product-table) th:nth-child(4),.product-table:not(.manager-product-table) td:nth-child(4){width:22%}
.product-table:not(.manager-product-table) th:nth-child(5),.product-table:not(.manager-product-table) td:nth-child(5),.product-table:not(.manager-product-table) th:nth-child(6),.product-table:not(.manager-product-table) td:nth-child(6){width:10%}
.product-table:not(.manager-product-table) th:nth-child(7),.product-table:not(.manager-product-table) td:nth-child(7){width:9%}
.product-table:not(.manager-product-table) th:nth-child(8),.product-table:not(.manager-product-table) td:nth-child(8){width:10%}
.product-table:not(.manager-product-table) th:nth-child(9),.product-table:not(.manager-product-table) td:nth-child(9){width:8%}
.product-table .product-description-cell{min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere}
.product-table .numeric-cell,.product-table .product-discount-cell{font-size:11px}
.product-table .product-row-actions{white-space:normal}
.product-row-action-list{display:flex;flex-wrap:wrap;gap:3px}
.product-row-action-list .panel-link{font-size:11px;line-height:1.25}
@media(max-width:1280px){
  .customer-table-wrap,.product-table-wrap{overflow:visible}
  .customer-table,.product-table{display:block;border-collapse:separate}
  .customer-table thead,.product-table thead{display:none}
  .customer-table tbody,.product-table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
  .customer-table tbody tr,.product-table tbody tr{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:5px 12px;min-width:0;width:100%;box-sizing:border-box;padding:14px;border:1px solid #e8edf1;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(29,53,68,.04)}
  .customer-table tbody td,.product-table tbody td{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;padding:5px 0;border:0;font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
  .customer-table tbody td:not(.customer-number-cell),.product-table tbody td:not(.customer-number-cell){width:auto!important;max-width:100%;min-width:0}
  .customer-table tbody td::before,.product-table tbody td::before{content:attr(data-label);display:block;color:#8a98a2;font-size:10px;font-weight:750;line-height:1.25;letter-spacing:.35px;text-transform:uppercase}
  .customer-table tbody td.customer-number-cell,.product-table tbody td.customer-number-cell{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:28px;height:26px;padding:0;border:1px solid #d9ebe5;border-radius:8px;background:#eff8f4;color:#26786e;font-size:11px;font-weight:750;font-variant-numeric:tabular-nums}
  .customer-table tbody td.customer-number-cell::before,.product-table tbody td.customer-number-cell::before{display:none}
  .customer-table tbody td:nth-child(2),.customer-table tbody td:nth-child(3),.customer-table tbody td:nth-child(6),.customer-table tbody td:nth-child(9),.product-table tbody td:nth-child(2),.product-table tbody td:nth-child(3),.product-table tbody td:nth-child(4){grid-column:1/-1}
  .customer-table tbody td:nth-child(2){padding-right:32px}
  .customer-table .approval-card{align-items:center}
  .customer-table .initials{flex:0 0 auto}
  .customer-table .customer-row-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:5px;width:100%}
  .customer-table .customer-row-actions .panel-link{min-width:0;margin:0;padding:6px 3px;border:1px solid #e3e9ed;border-radius:7px;text-align:center}
  .product-table tbody td:nth-child(5),.product-table tbody td:nth-child(6),.product-table tbody td:nth-child(7),.product-table tbody td:nth-child(8){align-items:flex-start}
  .product-table tbody td.numeric-cell,.product-table tbody td.product-discount-cell{text-align:left!important;font-variant-numeric:tabular-nums}
  .product-table tbody td:nth-child(9){grid-column:1/-1}
  .product-table .product-row-actions{grid-column:1/-1}
  .product-row-action-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .product-row-action-list .panel-link{margin:0;padding:6px;border:1px solid #e3e9ed;border-radius:7px;text-align:center}
  .product-table tbody tr:has(td[colspan]){display:block;grid-column:1/-1;padding:0;border:0;background:transparent;box-shadow:none}
  .product-table tbody tr:has(td[colspan]) td[colspan]{display:block;padding:0}
  .product-table tbody tr:has(td[colspan]) td[colspan]::before{display:none}
  .section-toolbar{flex-wrap:wrap;align-items:flex-start}
  .customer-count-summary{justify-content:flex-start;white-space:normal}
}
@media(max-width:620px){
  .page-content{padding:18px 12px 24px}
  .page-heading{align-items:stretch;flex-direction:column;gap:12px}
  .heading-actions{width:100%;flex-wrap:wrap}
  .heading-actions>*{flex:1 1 130px;min-width:0}
  .section-toolbar{align-items:stretch;flex-direction:column}
  .toolbar-left{display:flex;align-items:stretch;flex-direction:column;width:100%;gap:8px}
  .toolbar-left .search-inline,.toolbar-left .filter-select{width:100%;min-width:0;max-width:none;box-sizing:border-box}
  .toolbar-right{justify-content:flex-start;text-align:left}
  .customer-count-summary{justify-content:flex-start;gap:8px 12px}
  .customer-table tbody,.product-table tbody{grid-template-columns:minmax(0,1fr);gap:9px}
  .customer-table tbody tr,.product-table tbody tr{padding:12px;gap:4px 10px}
  .customer-table tbody td,.product-table tbody td{font-size:12px}
  .customer-table tbody td::before,.product-table tbody td::before{font-size:10px}
  .customer-table .customer-frequency-cell strong{font-size:12px}
  .customer-table .customer-row-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .customer-table .customer-row-actions .panel-link{font-size:10px}
  .product-table .numeric-cell,.product-table .product-discount-cell{font-size:12px}
  .product-row-action-list .panel-link{font-size:12px}
}
.bulk-import-intro{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;padding:14px 15px;border:1px solid #e3eceb;border-radius:10px;background:#f7fbfa}
.bulk-import-intro p{margin:0;color:#586b78;font-size:13px;line-height:1.5}
.bulk-import-intro .button{flex:0 0 auto}
.bulk-import-message{margin-top:8px;color:#a33e36;font-size:13px}
.bulk-import-message:empty{display:none}
.bulk-import-message.is-error{padding:9px 11px;border-radius:8px;background:#fff1ef}
.bulk-import-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:15px}
.bulk-import-summary>div{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid #e7edf1;border-radius:9px;background:#fbfcfd}
.bulk-import-summary strong{font-size:20px;color:#203b4b;font-variant-numeric:tabular-nums}
.bulk-import-summary span{font-size:12px;color:#6f7f8b}
.bulk-import-preview{max-height:360px;overflow:auto;border:1px solid #e7edf1;border-radius:9px}
.bulk-import-preview .data-table{min-width:650px}
.bulk-import-preview td:last-child{min-width:220px;white-space:normal}
#modalRoot [data-action="commit-bulk-import"]:disabled{opacity:.55;cursor:not-allowed;transform:none}
@media(max-width:620px){.bulk-import-intro{align-items:stretch;flex-direction:column}.bulk-import-intro .button{width:100%}.bulk-import-summary{gap:6px}.bulk-import-summary>div{padding:9px}.bulk-import-summary strong{font-size:17px}.bulk-import-summary span{font-size:11px}}
