:root{--ink:#153c70;--muted:#73839a;--bg:#f3f6fb;--line:#dfe7f2;--white:#fff;--accent:#a8ceff;--shadow:0 12px 35px #153c7008;font-family:Inter,"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #568edf;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:31px;letter-spacing:-1px;margin-bottom:10px}h2{font-size:20px;margin-bottom:16px}h3{font-size:15px}small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2.5px;font-weight:700;color:#627eaa}.btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:9px;padding:11px 16px;background:white;color:var(--ink);font-weight:650;text-decoration:none;justify-content:center}.btn.primary{background:var(--ink);color:white;border-color:var(--ink)}.btn.accent{background:var(--accent);border-color:var(--accent)}.btn.small{padding:7px 10px;font-size:12px}.btn.plain{background:transparent;border:0}.btn.danger{color:#a33b3b}.icon{width:19px;height:19px;display:inline-block;vertical-align:middle}.layout{min-height:100vh;display:grid;grid-template-columns:234px 1fr}.sidebar{background:#153c70;color:#d6e2f4;padding:30px 20px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:234px}.brand{display:flex;align-items:center;gap:11px;color:white;font-size:22px;font-weight:750;letter-spacing:-.7px}.brand-mark{width:36px;height:36px;background:var(--accent);color:var(--ink);border-radius:10px;display:grid;place-items:center}.brand small{font-size:10px;letter-spacing:2px;color:#9cb5d8;font-weight:400;display:block;margin-top:3px}.nav-label{font-size:10px;letter-spacing:2px;color:#87a6d0;margin:42px 12px 13px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{background:none;border:0;color:#bdd0eb;text-align:left;padding:13px 14px;display:flex;align-items:center;gap:12px;border-radius:9px;font-size:14px}.nav button.active{background:#285794;color:#d5e8ff}.nav button:hover{background:#204d87}.side-bottom{margin-top:auto;padding-top:30px}.side-note{border:1px solid #436690;border-radius:12px;padding:14px;font-size:12px;line-height:1.8}.user-box{display:flex;align-items:center;gap:9px;margin-top:23px}.avatar{width:35px;height:35px;background:#deebff;border-radius:50%;display:grid;place-items:center;color:var(--ink);font-weight:700;flex-shrink:0}.user-box .btn{color:#caddf7;margin-left:auto;padding:5px}.main{grid-column:2;min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px;font-size:12px}.topbar-right{display:flex;gap:18px;align-items:center}.live-dot{width:7px;height:7px;border-radius:50%;background:#4d91e8;display:inline-block;margin-right:6px}.demo-ribbon{background:#eaf2ff;color:#516f9c;border-bottom:1px solid #d6e5fa;font-size:12px;padding:10px 38px}.content{max-width:1450px;padding:35px 38px 60px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-head p{font-size:13px;margin:0;line-height:1.8}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:13px;padding:23px;box-shadow:var(--shadow)}.stat-label{font-size:12px;color:#6e809a;display:flex;justify-content:space-between}.stat-value{font-size:36px;font-weight:650;letter-spacing:-1px;margin:15px 0 9px}.stat small{color:#7a8da8}.stat.featured{background:#e7f0ff;border-color:#d4e4fb}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:var(--shadow);min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.panel-head h2{margin:0}.pill{font-size:11px;padding:5px 9px;border-radius:5px;display:inline-block;white-space:nowrap}.pill.blue{background:#eaf0fb;color:#446b9f}.pill.amber{background:#faf0dd;color:#a2792b}.pill.purple{background:#f1ebf7;color:#8863a0}.pill.gray{background:#edf0ed;color:#7a857d}.pill.green{background:#e5f1e2;color:#56774b}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{color:#7889a2;font-size:11px;font-weight:500;text-align:left;padding:12px 10px;background:#f7f9fd;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:17px 10px;border-bottom:1px solid #edf1f8;vertical-align:middle}tr:last-child td{border-bottom:none}.customer-link{font-weight:700;background:none;border:0;padding:0;color:var(--ink);text-align:left}.customer-sub{font-size:11px;color:#8493aa;margin-top:5px}.timeline-row{display:flex;gap:13px;margin-bottom:21px;position:relative}.timeline-dot{width:8px;height:8px;background:#7eaef0;outline:5px solid #edf4ff;border-radius:50%;margin-top:6px;flex-shrink:0}.timeline-row p{font-size:12px;line-height:1.8;margin-bottom:6px}.timeline-row small{font-size:10px;color:#8393ac}.progress-row{display:grid;grid-template-columns:112px 1fr 22px;gap:12px;align-items:center;margin-top:20px;font-size:12px}.progress-track{height:7px;border-radius:7px;background:#edf2f9;overflow:hidden}.progress-fill{height:100%;background:#79a7e6}.progress-fill.amber{background:#d9bc7b}.progress-fill.purple{background:#b89ec9}.progress-fill.green{background:#729b67}.progress-fill.gray{background:#b7c2b6}.weekly-card{margin-top:24px;background:#eaf2ff;border:1px solid #d5e4fb;border-radius:13px;padding:21px;display:flex;gap:13px;align-items:flex-start}.weekly-card p{font-size:12px;line-height:1.8;margin:7px 0 0}.filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:22px}.filters label{flex:1;min-width:140px}.filters label.search{flex:2}.filters .btn{height:42px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;margin-bottom:17px}.field input,.field select,.field textarea,input.control,select.control{border:1px solid #dbe4f1;border-radius:8px;padding:11px 12px;color:var(--ink);background:white;width:100%;font-size:14px;min-height:42px}.field textarea{resize:vertical;line-height:1.7;min-height:94px}.field span{font-size:11px;color:#7f90ab;font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.form-grid .full{grid-column:1/-1}.form-section{padding-bottom:18px;margin-bottom:23px;border-bottom:1px solid var(--line)}.form-section:last-child{border:0}.section-title{display:flex;gap:10px;align-items:center;margin-bottom:22px}.section-number{border:1px solid #d9e5f7;color:#5c83bb;font-size:11px;padding:5px 7px;border-radius:5px}.section-title h2{margin:0;font-size:16px}.product-option{border:1px solid var(--line);border-radius:9px;padding:15px;margin-bottom:10px}.product-option label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600}.product-option input[type=checkbox]{accent-color:var(--ink);width:17px;height:17px}.product-option .field{margin:12px 0 0}.form-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}.form-aside{position:sticky;top:20px;align-self:start}.hint-list{font-size:12px;line-height:1.9;color:#6d819f;padding-left:17px}.customer-detail-head{display:flex;justify-content:space-between;gap:16px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;font-size:13px}.detail-grid .full{grid-column:1/-1}.detail-label{font-size:11px;color:#8192ac;margin-bottom:7px}.visit-card{border:1px solid var(--line);border-radius:11px;padding:20px;margin-top:16px}.visit-card p{font-size:13px;line-height:1.8}.empty{padding:42px 20px;text-align:center;color:#7d90ad;font-size:13px}.error{background:#fff0ed;color:#a54135;padding:12px;border-radius:8px;font-size:13px;margin-bottom:15px}.notice{font-size:12px;line-height:1.8;background:#eff5ff;border:1px solid #dbe7f8;padding:13px;border-radius:8px;margin-bottom:20px}.login{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.login-story{padding:75px 70px;background:var(--ink);color:#f0f5ff;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-story:after{content:"";position:absolute;right:-170px;bottom:-120px;width:520px;height:520px;border:1px solid #51739f;border-radius:50%;box-shadow:0 0 0 65px #ffffff03,0 0 0 130px #ffffff03;pointer-events:none}.login-story h1{font-size:48px;line-height:1.45;letter-spacing:-2px;font-weight:500;position:relative;z-index:1}.login-story p{color:#bbcee9;font-size:14px;line-height:2}.login-story footer{font-size:11px;letter-spacing:1px;color:#8ca9d0}.login-content{display:flex;align-items:center;justify-content:center;padding:45px}.login-card{width:100%;max-width:390px}.login-card h2{font-size:28px;letter-spacing:-1px;margin-top:12px}.login-card .btn{width:100%;margin-top:10px}.role-choices{display:flex;flex-direction:column;gap:11px;margin-top:22px}.role-button{border:1px solid var(--line);background:white;border-radius:10px;padding:17px;display:flex;align-items:center;gap:14px;text-align:left;color:var(--ink)}.role-button:hover{border-color:#6999dc;background:#eff5ff}.role-button small{display:block;color:#7d90ac;margin-top:5px}.role-button .arrow{margin-left:auto}.report-frame{width:100%;height:640px;border:1px solid var(--line);border-radius:10px;background:white}.tabs{display:flex;gap:8px;margin-bottom:20px}.tabs .btn.active{background:#deebff;border-color:#deebff}.mobile-header{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#153c70;color:white;padding:13px 21px;border-radius:10px;font-size:13px;box-shadow:0 8px 25px #0002;z-index:100;max-width:90vw;display:none}.modal-backdrop{position:fixed;inset:0;background:#122e5266;display:flex;align-items:center;justify-content:center;padding:20px;z-index:50}.modal{background:white;max-width:650px;width:100%;max-height:90vh;overflow:auto;border-radius:15px;padding:28px}.modal .panel-head{margin-bottom:24px}.loading{min-height:60vh;display:grid;place-items:center;color:var(--muted)}.setup-list{font-size:13px;line-height:2;padding-left:20px}.draft-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:8px;margin-bottom:12px;font-size:13px}.status-count{font-variant-numeric:tabular-nums}.setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media(min-width:1700px){.content{padding-top:45px}.cards{gap:24px}}
@media(max-width:1150px){.content{padding:28px 25px}.topbar{padding:0 25px}.demo-ribbon{padding:10px 25px}.dashboard-grid{grid-template-columns:1fr}.cards{gap:12px}.stat{padding:19px}.setting-grid{grid-template-columns:1fr}.form-aside{position:static}.login-story{padding:55px 40px}.login-story h1{font-size:38px}}
@media(max-width:760px){.layout{display:block;padding-bottom:72px}.sidebar{inset:auto 0 0;width:100%;height:67px;padding:0;background:white;color:var(--ink);border-top:1px solid var(--line);z-index:20}.sidebar>.brand,.nav-label,.side-bottom{display:none}.nav{height:100%;flex-direction:row;justify-content:space-around;gap:0}.nav button{flex:1;flex-direction:column;justify-content:center;gap:5px;padding:6px 3px;border-radius:0;color:#7487a4;font-size:10px}.nav button.active{background:#eaf2ff;color:var(--ink)}.nav button:hover{background:#eaf2ff}.main{width:100%}.topbar{height:63px;padding:0 18px}.mobile-header{display:flex}.topbar>.desktop-title{display:none}.topbar-right{gap:9px}.topbar-right>.muted{display:none}.mobile-header .brand{font-size:19px;color:var(--ink)}.mobile-header .brand-mark{width:29px;height:29px;border-radius:8px}.demo-ribbon{padding:10px 18px;font-size:10px;line-height:1.6}.content{padding:24px 16px 25px}.page-head{margin-bottom:21px;align-items:flex-start;gap:10px}.page-head h1{font-size:25px}.page-head p{font-size:11px}.page-head .btn{font-size:12px;padding:10px 12px;white-space:nowrap}.cards{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:18px}.stat{padding:16px;border-radius:10px}.stat-value{font-size:30px;margin:12px 0 6px}.stat small{font-size:10px}.stat-label{font-size:11px}.panel{padding:19px 16px;border-radius:11px}.dashboard-grid{gap:18px}.panel-head h2{font-size:17px}.form-grid{grid-template-columns:1fr;gap:0}.form-grid .full{grid-column:auto}.detail-grid{gap:18px}.filters{gap:10px}.filters label{min-width:calc(50% - 10px)}.filters .search{min-width:100%}.login{display:block}.login-story{padding:28px;min-height:240px}.login-story h1{font-size:28px;letter-spacing:-1px;margin:25px 0 10px}.login-story p{font-size:12px;margin:0}.login-story footer{display:none}.login-content{padding:30px 24px}.login-card h2{font-size:24px}.login-story:after{width:260px;height:260px;bottom:-90px;right:-120px}.form-actions .btn{flex:1}.report-frame{height:550px}.modal{padding:22px}.weekly-card{padding:17px}.customer-detail-head{flex-wrap:wrap}}
.login-tabs .btn{width:auto;flex:1;margin:8px 0 12px}.report-download-actions{display:flex;gap:12px;flex-wrap:wrap}@media(max-width:760px){.report-download-actions .btn{width:100%}.tabs{flex-wrap:wrap}.tabs .btn{font-size:12px}}
/* Period selectors align by their labels and controls, not by total field height. */
.report-period-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.report-period-controls.interval{grid-template-columns:repeat(3,minmax(0,1fr))}.report-period-controls .field{min-width:0;margin:0;line-height:1.5}.report-period-controls input,.report-period-controls select{width:100%;min-width:0;height:44px;line-height:1.4}.report-period-controls .field>span{line-height:1.7}
.team-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;background:linear-gradient(115deg,#e3edff,#f2f7ff);border:1px solid #cfdef7;border-radius:14px;padding:27px 30px;margin-bottom:24px}.team-hero>div:first-child{flex:1;max-width:850px}.team-hero h2{font-size:24px;margin:10px 0}.team-hero h2 strong{color:#2f6cbd}.team-hero p{font-size:12px;line-height:1.8;margin-bottom:14px}.team-hero-mark{width:96px;height:96px;border:1px solid #bfd4f1;background:#f7fbff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;flex-shrink:0;color:#4479bc}.team-hero-mark .icon{width:31px;height:31px}.team-hero-mark span{font-size:11px}.team-progress{height:10px;background:#d5e3f6;border-radius:8px;overflow:hidden;margin:18px 0 10px}.team-progress>div{height:100%;background:#5b91da;border-radius:8px}.team-progress-caption{display:flex;justify-content:space-between;font-size:12px;color:#577298}.team-no-goal{color:#637da1;margin:0}.mission-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.mission-item{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid #edf1f8}.mission-item>div{flex:1;min-width:0}.mission-item strong{font-size:13px}.mission-item p{font-size:11px;color:#798ca9;line-height:1.8;margin:5px 0 0;overflow-wrap:anywhere}.mission-item .btn{flex-shrink:0}.mission-icon{width:35px;height:35px;border-radius:9px;background:#edf4ff;color:#618ac1;display:grid;place-items:center;flex-shrink:0}.mission-clear{display:flex;align-items:center;gap:8px;font-size:12px;color:#6682a5;background:#f3f7fc;padding:13px;border-radius:8px;margin-top:16px}.personal-week{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:#f5f8fd;border:1px solid #e7edf7;border-radius:10px;padding:16px 8px;margin-top:22px;text-align:center}.personal-week strong{font-size:24px;display:block}.personal-week span{display:block;color:#7a8eaa;font-size:10px;margin-top:7px}.badge-grid{display:flex;gap:10px;flex-wrap:wrap}.completion-badge{display:flex;gap:8px;align-items:center;border:1px solid #e5eaf2;background:#f9fafc;color:#9ba8bb;border-radius:9px;padding:11px;font-size:11px}.completion-badge.earned{background:#edf4ff;border-color:#d8e5fa;color:#426fae}.completion-badge small{display:block;font-size:9px;margin-top:5px}.team-feed-item{display:flex;gap:12px;align-items:flex-start;padding:16px 0;border-bottom:1px solid #edf1f8}.team-feed-item>div{flex:1;min-width:0}.team-feed-item p{font-size:12px;line-height:1.9;margin:0 0 4px;overflow-wrap:anywhere}.team-feed-item small{font-size:10px;color:#8a9bb4}.team-feed-item .avatar{width:32px;height:32px;font-size:12px}.feed-check{color:#8aafd9;margin-top:6px}.feed-check .icon{width:15px;height:15px}
@media(max-width:1000px){.mission-grid{grid-template-columns:1fr}}
@media(max-width:760px){.report-period-controls.interval{grid-template-columns:repeat(2,minmax(0,1fr))}.report-period-controls.interval .field:last-child{grid-column:1/-1}.report-period-controls{gap:14px}.team-hero{padding:21px 18px;gap:12px}.team-hero h2{font-size:20px;line-height:1.6}.team-hero-mark{width:60px;height:60px}.team-hero-mark .icon{width:24px;height:24px}.team-hero-mark span{font-size:9px}.team-progress-caption{font-size:10px;gap:10px}.mission-grid{gap:18px}.mission-item{gap:10px}.mission-item .btn{font-size:11px;padding:8px}.mission-icon{width:29px;height:29px}.completion-badge{flex:1;min-width:130px}.team-hero .eyebrow{font-size:9px}}

.team-feed-scroll{height:360px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#9fbce4 #edf3fb;padding-right:8px;border-radius:5px;-webkit-overflow-scrolling:touch}.team-feed-scroll::-webkit-scrollbar{width:6px}.team-feed-scroll::-webkit-scrollbar-track{background:#edf3fb;border-radius:8px}.team-feed-scroll::-webkit-scrollbar-thumb{background:#9fbce4;border-radius:8px}.team-feed-scroll.is-empty{height:auto;min-height:110px}.team-feed-scroll-hint{font-size:10px;color:#8398b6;margin:12px 0 0;text-align:center}@media(max-width:760px){.team-feed-scroll{height:300px}}
.assigned-panel{margin-bottom:24px}.assigned-scroll{max-height:440px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#9fbce4 #edf3fb;padding-right:5px}.assigned-card{border:1px solid #e1e9f5;border-radius:10px;padding:18px;margin-bottom:12px;background:#fbfdff}.assigned-card:last-child{margin-bottom:0}.assigned-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.assigned-head h3{margin:0;font-size:15px;line-height:1.6;overflow-wrap:anywhere}.assigned-description{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#7084a3;margin:12px 0}.assigned-meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#5f7da6}.assignment-members{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.assigned-user-action{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:13px;font-size:11px}.assigned-scroll.is-empty{height:auto}@media(max-width:760px){.assigned-panel .panel-head{align-items:flex-start}.assigned-panel .panel-head .btn{font-size:11px;white-space:nowrap}.assigned-card{padding:15px}.assigned-scroll{max-height:360px}.assigned-user-action{flex-wrap:wrap}}

/* Four status cards and independent phone/report controls. */
.quadrants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.quadrant{border:1px solid #dce7f6;border-radius:12px;background:#f3f7fe;padding:18px;min-width:0}.quadrant>span{display:block;font-size:12px;color:#5c799f}.quadrant>strong{display:block;font-size:32px;font-variant-numeric:tabular-nums;margin:10px 0 4px}.quadrant strong small{font-size:15px;margin-left:3px}.quadrant>small{font-size:11px;color:#7e90a9}.quadrant .progress-track{margin-top:14px}.quadrant.green{background:#f0f7ef;border-color:#dbe8d9}.quadrant.purple{background:#f6f2fa;border-color:#e6dcef}.quadrant.gray{background:#f4f5f7;border-color:#e1e5ea}.report-controls{margin-bottom:22px}.report-extra-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px;padding-top:20px;border-top:1px solid var(--line);align-items:start}.report-extra-controls .field{margin:0;min-width:0}.report-extra-controls select{height:44px}.report-sections{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}.report-caption{font-size:12px;line-height:1.9;margin:16px 0 0}.row-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.long-cell{min-width:220px;max-width:400px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.call-form-panel{max-width:850px}.phone-client-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:26px;font-size:12px}.phone-client-heading+.visit-card{margin-top:10px}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}.visit-card .detail-grid{margin-top:18px}.visit-card .panel-head{flex-wrap:wrap}
@media(max-width:1000px){.report-sections{grid-template-columns:1fr}}
@media(max-width:760px){.nav button{font-size:9px;min-width:0}.nav button .icon{width:18px;height:18px}.quadrants{gap:10px}.quadrant{padding:14px}.quadrant>strong{font-size:28px}.report-extra-controls{gap:14px}.report-controls .report-period-controls{grid-template-columns:1fr}.report-controls .report-period-controls.interval{grid-template-columns:1fr 1fr}.report-extra-controls{grid-template-columns:1fr}.row-actions .btn{font-size:11px}.phone-client-heading{flex-wrap:wrap}.report-caption{font-size:11px}}
/* Consistent control geometry, including WebKit's intrinsic date width. */
.field{min-width:0;line-height:1.5}.field>input,.field>select,.field>textarea{min-width:0;max-width:100%;box-sizing:border-box}.field>input,.field>select{height:44px;font-size:16px}.field>textarea{font-size:16px}.field input[type=date],.field input[type=month]{display:block;min-inline-size:0;inline-size:100%;max-inline-size:100%;-webkit-appearance:none;appearance:none;text-align:left}.field input::-webkit-date-and-time-value{text-align:left;min-width:0}.field input::-webkit-datetime-edit{min-width:0;padding:0}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.form-grid>div{min-width:0}.filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}.filters>.field{margin:0!important;min-width:0;width:auto}.filters>.search{grid-column:1/-1}.filters>.btn{height:44px;margin-top:25px;justify-self:start;max-width:100%}.report-period-controls,.report-extra-controls{align-items:start}.panel-head{flex-wrap:wrap}.page-head>div{min-width:0}.page-head{flex-wrap:wrap}.page-head>.btn{flex-shrink:0}.topbar-right{gap:8px}.table-wrap{max-width:100%;min-width:0}.table-wrap table{min-width:650px}td{overflow-wrap:anywhere}.inline-fields{border:0;margin:0 0 18px;padding:0;min-inline-size:0}.customer-mode{display:flex;gap:16px;flex-wrap:wrap;border:1px solid var(--line);border-radius:9px;padding:14px;margin:0 0 20px;min-inline-size:0}.customer-mode legend{font-size:12px;font-weight:600;padding:0 5px}.customer-mode label{display:flex;gap:7px;align-items:center;font-size:13px}.customer-mode input{accent-color:var(--ink);width:17px;height:17px}.new-customer-box{background:#f5f8fe;border:1px solid #dae6f7;border-radius:10px;padding:18px}.category-settings{grid-column:1/-1}.category-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;margin-top:20px}.category-add .btn{margin-top:25px;height:44px}.category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.category-row{border:1px solid var(--line);border-radius:10px;padding:14px;min-width:0}.category-row .field{margin-bottom:10px}[hidden]{display:none!important}
@media(max-width:760px){.filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.filters>.field:has(input[type=date]),.filters>.field:has(input[type=month]){grid-column:1/-1}.filters>.btn{grid-column:1/-1;margin:0;justify-self:stretch}.form-grid{grid-template-columns:minmax(0,1fr)}.form-grid .full{grid-column:1/-1}.page-head{display:grid;grid-template-columns:minmax(0,1fr)}.page-head>.btn{justify-self:start;white-space:normal;max-width:100%}.report-controls .report-period-controls,.report-controls .report-period-controls.interval{grid-template-columns:minmax(0,1fr)}.report-period-controls.interval .field:last-child{grid-column:auto}.category-list{grid-template-columns:minmax(0,1fr)}.category-add{grid-template-columns:minmax(0,1fr)}.category-add .btn{margin:0}.category-row .row-actions .btn{flex:1}.detail-grid{grid-template-columns:minmax(0,1fr)}.topbar{gap:8px;flex-wrap:wrap;height:auto;min-height:70px;padding-top:10px;padding-bottom:10px}.mobile-header{min-width:0}.mobile-header .brand{font-size:17px}.mobile-header .brand small{font-size:8px;letter-spacing:1px}.topbar-right{margin-left:auto;flex-wrap:wrap;font-size:11px}.new-customer-box{padding:14px}.report-extra-controls{grid-template-columns:minmax(0,1fr)}}
.task-attention{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 26px;border:1px solid #c7daf7;background:#edf4ff;border-radius:12px;margin-bottom:22px}.task-attention.has-pending{background:#153c70;color:white;border-color:#153c70;box-shadow:0 8px 22px #153c701a}.task-attention h2{margin:7px 0 8px;font-size:22px;line-height:1.5}.task-attention p{margin-bottom:0;font-size:12px;line-height:1.8}.task-attention .eyebrow{color:#8aaee2}.task-attention .btn{background:#dceaff;color:#153c70;border-color:#dceaff;flex-shrink:0}.sales-priority-panel{border:2px solid #6d9cdc;background:#fbfdff}.sales-priority-panel .assigned-scroll{max-height:560px}.assigned-card.overdue{border-color:#dca761;background:#fffaf3}.assigned-user-action{flex-wrap:wrap}.manager-task-reports{margin-top:15px}.assignee-report{margin-top:12px;border:1px solid #dce7f6;border-radius:9px;padding:12px;background:white}.assignee-report summary{cursor:pointer;font-size:12px;line-height:1.8}.assignee-report summary>*{margin-right:8px}.task-report-card{padding:15px 0;border-top:1px solid #e3eaf5;margin-top:12px;font-size:12px;line-height:1.8}.task-report-card p{margin:10px 0;overflow-wrap:anywhere}.task-report-card .assigned-meta{flex-wrap:wrap}.phone-statistics{margin-top:24px;margin-bottom:24px}.phone-outcomes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}.phone-outcomes>div{border:1px solid #dae6f7;background:#f3f7ff;border-radius:10px;padding:18px;min-width:0}.phone-outcomes span,.phone-outcomes strong,.phone-outcomes>div>small{display:block}.phone-outcomes span{font-size:12px;line-height:1.6;color:#6c82a2}.phone-outcomes strong{font-size:30px;margin:12px 0 6px}.phone-outcomes strong small{font-size:12px}.phone-outcomes>div>small{font-size:11px;color:#7d90ab}.pill{white-space:normal;line-height:1.6;max-width:100%}.quadrant>span{min-height:38px;line-height:1.6}
@media(max-width:760px){.task-attention{padding:19px 17px;flex-wrap:wrap}.task-attention h2{font-size:20px}.task-attention .btn{width:100%}.phone-outcomes{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.phone-outcomes>div{padding:14px}.sales-priority-panel .assigned-scroll{max-height:520px}.assigned-user-action .btn{width:100%;padding:12px;font-size:14px}.assigned-panel .panel-head .eyebrow{font-size:9px}.assigned-meta{flex-wrap:wrap}}
.permission-options{border:1px solid var(--border,#dce5f2);border-radius:14px;margin:20px 0;padding:18px;min-width:0;display:grid;gap:15px}.permission-options[hidden]{display:none}.permission-options label{display:flex;align-items:flex-start;gap:12px;min-width:0}.permission-options input{width:18px;height:18px;flex:0 0 18px;margin:3px 0 0;accent-color:#2869d9}.permission-options span{min-width:0}.permission-options small{display:block;color:#7687a2;font-size:12px;line-height:1.8;margin-top:4px}.phone-outcomes strong{font-variant-numeric:tabular-nums}
.line-report-preview{margin:24px 0}.line-chat-preview{max-width:480px;margin:20px auto;padding:22px;background:#e9f1fb;border:1px solid #dbe6f5;border-radius:18px;min-width:0}.line-chat-sender{font-size:12px;color:#637998;margin-bottom:12px}.line-chat-bubble{background:white;border-radius:4px 16px 16px 16px;padding:18px;font-size:14px;line-height:1.9;overflow-wrap:anywhere}.line-preview-button{width:100%;margin-top:14px;background:#fff;justify-content:center;color:#176ac6}.report-delivery-settings{grid-column:1/-1}@media(max-width:600px){.line-chat-preview{padding:12px}.line-chat-bubble{padding:14px}}
.line-summary-header{padding-bottom:16px;border-bottom:1px solid #e1e9f4}.line-summary-header p{font-size:10px;letter-spacing:1.4px;color:#477ac2;margin:0 0 8px}.line-summary-header h3{font-size:17px;line-height:1.6;margin:0 0 8px;overflow-wrap:anywhere}.line-summary-header small{font-size:11px;color:#7183a0;display:block}.line-summary-section{padding:18px 0;border-bottom:1px solid #e1e9f4}.line-summary-section h4{font-size:14px;color:#205697;margin:0 0 12px}.line-staff-list{max-height:340px;overflow:auto}.line-staff-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 0;font-size:13px}.line-staff-row strong{overflow-wrap:anywhere;min-width:0}.line-staff-row span{flex-shrink:0;color:#637895}.line-staff-row b{color:#244f8b}.line-result-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;padding:7px 0;font-size:12px}.line-result-row>span{overflow-wrap:anywhere}.line-result-row>div{white-space:nowrap}.line-result-row strong{font-size:16px;color:#215caa;font-variant-numeric:tabular-nums}.line-result-row small{font-size:11px;color:#7b8ba4}.line-phone-total{padding:9px 12px;background:#edf4ff;border-radius:9px;color:#345887;font-size:12px;margin:0 0 8px}.line-summary-note{padding-top:14px;font-size:10px;color:#7b8ba4;line-height:1.8}@media(max-width:420px){.line-staff-row{flex-wrap:wrap;gap:2px}.line-staff-row span{width:100%}.line-result-row{gap:5px}.line-result-row strong{font-size:14px}}

.record-actions{display:flex;flex-wrap:wrap;gap:6px}.record-actions .btn{white-space:nowrap}.product-management-table{min-width:0!important;width:100%}.product-management-table td,.product-management-table th{overflow-wrap:anywhere}.product-management-table td:last-child{min-width:135px}

.overdue-label{display:inline-flex;border-radius:7px;padding:5px 9px;background:#fff0f0;color:#b42332;border:1px solid #f1bbc1;font-size:12px;font-weight:750;margin-bottom:8px}.overdue-call{border-color:#ecacb5;background:#fffafb}.overdue-panel{border-color:#ecacb5;margin-bottom:24px}.overdue-panel h2{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.overdue-panel h2 .overdue-label{margin:0}.overdue-list{max-height:310px;overflow:auto}.overdue-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-top:1px solid var(--line)}.overdue-row p{font-size:12px;margin:7px 0 0;color:var(--muted)}.overdue-row .btn{flex-shrink:0}@media(max-width:480px){.overdue-row{align-items:flex-start;flex-direction:column}}
