@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
:root{--bg:#f7f9fc;--surface:#fff;--text:#18283d;--muted:#75859a;--line:#e6ebf2;--navy:#1b3455;--blue:#2d61c8;--green:#11785d;--red:#bc4958;--softgreen:#eaf7f1;--softred:#fff1f2;--amber:#9e6d20;--shadow:0 9px 32px rgba(22,39,63,.04)}
*{box-sizing:border-box}html{font-size:15px}body{margin:0;background:var(--bg);font-family:'Be Vietnam Pro','Segoe UI',system-ui,sans-serif;color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:disabled,input:disabled,select:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #b4c8f9;outline-offset:2px}a{color:inherit;text-decoration:none}.muted{color:var(--muted)}.positive{color:var(--green)}.negative{color:var(--red)}.numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.nowrap{white-space:nowrap}.wide{width:100%}
.topbar{background:#fff;border-bottom:1px solid var(--line)}.top-inner{max-width:1680px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:80px;padding:12px 28px}.brand{display:flex;align-items:center;gap:11px}.brand strong,.login-brand strong{display:block;font-size:17px;letter-spacing:-.4px}.brand small,.login-brand small{display:block;color:#91a0b0;font-size:11px;margin-top:2px}.mark{width:43px;height:43px;display:grid;place-items:center;background:var(--navy);color:white;border-radius:12px;font-size:19px;font-weight:800;letter-spacing:-1px;flex:none}.mark span{color:#9fbdf0}.nav{display:flex;gap:4px;align-items:center}.nav a{font-size:13px;padding:11px 13px;border-radius:10px;color:#6c7c91;font-weight:650;white-space:nowrap}.nav a:hover{background:#f3f6fa}.nav a.current{background:#edf3fb;color:#254b7b}.identity{display:flex;align-items:center;gap:15px}.account-name{font-size:12px;font-weight:700;white-space:nowrap}
.page{max-width:1680px;margin:auto;padding:29px 28px 76px}.heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#74849a}.heading h1{font-size:28px;letter-spacing:-1.1px;margin:5px 0 7px;line-height:1.2}.heading p{font-size:13px;color:var(--muted);margin:0;line-height:1.65}.date-stamp{font-size:12px;color:#7b8ca0;font-weight:600}
.button{border:1px solid #dce5ee;border-radius:10px;background:#fff;color:#38516d;font-size:13px;font-weight:700;min-height:41px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;gap:7px;white-space:nowrap}.button:hover{background:#f6f9fd}.button.primary{background:var(--navy);color:#fff;border-color:var(--navy)}.button.primary:hover{background:#29486b}.button.ghost{background:transparent;border-color:transparent}.button.ghost:hover{background:#f3f6fb}.button.small{min-height:34px;font-size:11px;padding:0 10px}.button.danger{background:var(--softred);color:var(--red);border-color:#f2d9dd}.input{height:42px;border:1px solid #dce5ee;border-radius:10px;background:#fff;padding:0 12px;color:#34485f;min-width:0;width:100%;font-size:13px}.input:focus{outline:3px solid #e1eafd;outline-offset:0;border-color:#91afe6}.input.search{width:230px}.input.filter{width:166px}.input.slim{height:39px;font-size:12px;padding:0 9px}
.surface,.stat{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.stat-grid{display:grid;gap:14px;margin-bottom:17px}.stat-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.stat{padding:19px 20px;min-width:0}.stat>span{font-size:12px;color:#728299;font-weight:600;display:block}.stat>strong{display:block;font-size:clamp(19px,1.6vw,28px);font-weight:800;letter-spacing:-.9px;margin:10px 0 8px;font-variant-numeric:tabular-nums;white-space:nowrap}.stat>small{display:block;color:#9ca8b8;font-size:11px;line-height:1.5}
.panel-head{padding:18px 21px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.panel-head h2{font-size:16px;margin:0;letter-spacing:-.25px}.panel-head p{font-size:12px;color:#8593a5;margin:5px 0 0}.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.table-wrap{overflow-x:auto;width:100%;scrollbar-width:thin}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:11px;color:#7c8ba1;font-weight:700;background:#fafbfd;padding:14px 12px;border-bottom:1px solid var(--line);white-space:nowrap}td{font-size:12.5px;padding:15px 12px;border-bottom:1px solid #eef2f6;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fcfdff}.work-table{min-width:1150px}.work-table td:nth-child(1){min-width:100px}.work-table td:nth-child(2){min-width:190px}.work-table td:nth-child(3){min-width:120px}.work-table td:nth-child(4),.work-table td:nth-child(5){min-width:95px}.work-table td:nth-child(6){min-width:145px}.work-table td:nth-child(7){min-width:212px}.work-table td:nth-child(8){width:130px;min-width:100px;max-width:140px}.work-table td:nth-child(9){width:48px}.work-table td:nth-child(8) input{max-width:135px}.date{font-size:12px;font-weight:800}.work-table td small{display:block;color:#9aa8ba;font-size:11px;margin-top:4px}.customer-cell strong{font-size:13px;color:#263b55}.balance{font-weight:800;font-size:13px;margin-top:5px;font-variant-numeric:tabular-nums}.row-settled{opacity:.62;background:#f9fafc}.chip{display:inline-flex;align-items:center;padding:6px 9px;border-radius:7px;background:#f1f4f8;color:#687c93;font-size:11px;font-weight:650;white-space:nowrap}.chip.waiting,.chip.warning{background:#fff5e8;color:#996b22}.chip.okay{background:#e8f7f0;color:#167557}.customer-cell .chip{margin-top:7px}
.money-entry{display:flex;align-items:stretch;gap:6px}.sign-stack{width:30px;display:flex;flex-direction:column;border:1px solid #dfe6ef;border-radius:9px;overflow:hidden;flex:none}.sign-stack button{background:#fff;border:0;flex:1;font-size:14px;font-weight:800;color:#8496aa;min-height:21px}.sign-stack button:first-child{border-bottom:1px solid #e9edf4}.sign-stack button.active-positive,.sign-stack button:first-child:hover{background:#e7f7ef;color:var(--green)}.sign-stack button.active-negative,.sign-stack button:last-child:hover{background:#fff0f2;color:var(--red)}.money-input{width:123px;min-width:95px;font-size:15px;font-weight:800;color:#2e4f80;background:#fff;border:1px solid #cfdbea;border-radius:9px;padding:0 9px;font-variant-numeric:tabular-nums}.money-input.positive{border-color:#a3d8c0;color:var(--green);background:#f6fcf9}.money-input.negative{border-color:#ecc1c6;color:var(--red);background:#fff8f8}.save-entry{background:#eef3fc;border:0;border-radius:8px;color:#31569a;font-size:16px;font-weight:800;padding:0 10px}.save-entry:hover{background:#dfe9ff}.note{width:130px}.action-cell{text-align:right}.link-button{border:0;background:none;color:#55719b;font-size:11px;font-weight:700;white-space:nowrap}.link-button.danger{color:var(--red)}.action-menu{position:relative;white-space:nowrap}.action-menu summary{cursor:pointer;list-style:none;color:#7b8da4;font-size:16px;font-weight:800}.action-menu summary::-webkit-details-marker{display:none}.action-menu form{position:absolute;z-index:2;right:0;top:25px;background:#fff;border:1px solid var(--line);padding:10px 12px;border-radius:10px;box-shadow:var(--shadow)}.panel-foot{padding:13px 20px;border-top:1px solid var(--line);font-size:11px;color:#8997a7}.empty{padding:40px!important;text-align:center;color:#8998a9;font-size:12px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:17px;margin-bottom:17px}.funnel-list{padding:9px 21px}.funnel-row{display:grid;grid-template-columns:136px 1fr 34px;align-items:center;gap:15px;padding:15px 0;border-bottom:1px solid #f0f3f7}.funnel-row:last-child{border-bottom:0}.funnel-row strong{display:block;font-size:13px}.funnel-row small{font-size:11px;color:#8b9aab;display:block;margin-top:5px}.funnel-row>b{text-align:right;font-size:17px}.bar-track{height:11px;background:#eef2f7;border-radius:20px;overflow:hidden}.bar-track>span{display:block;background:#7596c8;height:100%;border-radius:20px}.summary-list{padding:10px 20px}.summary-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #f0f3f7}.summary-item:last-child{border:0}.summary-item strong{font-size:13px}.summary-item small{display:block;color:#8c9aaa;font-size:11px;margin-top:5px}.money-column{text-align:right;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums}.money-column span{display:block;margin:2px 0}.employee-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;padding:20px}.employee-tile{border:1px solid #eaf0f5;border-radius:12px;padding:15px}.employee-tile strong,.employee-tile small,.employee-tile span{display:block}.employee-tile strong{font-size:13px}.employee-tile small{font-size:11px;color:#8c9bac;margin:7px 0 10px}.employee-tile span{font-size:12px;margin:4px 0}.crm-table{min-width:860px}.customer-link{color:#254a82;font-weight:750}.customer-link:hover{text-decoration:underline}.requests{padding:0 20px}.request-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid #edf1f7}.request-row:last-child{border:0}.request-row strong{font-size:13px}.request-row small{display:block;font-size:11px;color:#8594a7;margin-top:6px}.buttons{display:flex;gap:8px;flex-wrap:wrap}.form-stack{padding:20px}.form-stack label,.dialog label{display:block;font-size:12px;color:#50627b;font-weight:700;margin-bottom:15px}.form-stack .input,.dialog .input{display:block;margin-top:8px}.security-info{background:#f4f7fb;color:#708199;font-size:11px;line-height:1.75;border-radius:10px;padding:12px;margin:12px 0 20px}.account-layout{grid-template-columns:1.3fr .7fr}.withdrawal-layout{grid-template-columns:1.2fr .8fr}.withdraw-row{display:flex;align-items:center;gap:14px;padding:15px 20px;border-bottom:1px solid #eff2f6;cursor:pointer}.withdraw-row input{width:17px;height:17px;accent-color:#24598a}.withdraw-name{flex:1}.withdraw-name strong{display:block;font-size:13px}.withdraw-name small{font-size:11px;color:#91a0b0;display:block;margin-top:5px}.withdraw-row>strong{font-size:13px;font-variant-numeric:tabular-nums}.withdraw-summary{padding:28px}.withdraw-summary>span{font-size:12px;color:#8795a6;display:block}.withdraw-summary>strong{display:block;font-size:32px;letter-spacing:-1px;margin:13px 0}.withdraw-summary>small{display:block;margin:0 0 25px;color:#8594a7}.history-list{padding:14px 20px}.history-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #edf0f6;padding:12px 0;font-size:12px}.history-row small{color:#8b9aad}.notice{padding:14px 17px;border-radius:11px;border:1px solid transparent;margin-bottom:18px;font-size:13px}.notice.good{background:#e9f8f0;color:#09694c;border-color:#cae9da}.notice.bad{background:#fff0f2;color:#a4384a;border-color:#f5cfd7}
.dialog{border:0;width:min(460px,calc(100% - 24px));border-radius:18px;padding:0;box-shadow:0 28px 80px rgba(22,37,56,.22)}.dialog::backdrop{background:rgba(16,32,53,.50)}.dialog-body{padding:26px}.dialog-body h2{font-size:20px;margin:0 0 8px}.dialog-body>p{font-size:12px;margin:0 0 20px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.login-page{max-width:none;min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 0%,#edf2fb, #f8fafd 65%);padding:25px}.login-card{width:min(440px,100%);background:#fff;border:1px solid #e3eaf2;box-shadow:0 24px 80px rgba(25,47,75,.09);border-radius:21px;padding:35px 39px 28px}.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:32px}.login-card h1{font-size:30px;letter-spacing:-1px;margin:0 0 8px}.login-card p{margin:0 0 25px;font-size:13px}.login-card label{display:block;margin:16px 0 8px;color:#435a74;font-size:12px;font-weight:700}.login-card .input{height:48px;font-size:14px}.login-card .primary{height:48px;margin-top:15px}.login-card .privacy-note{font-size:11px;line-height:1.75;color:#9ba7b5;margin:21px 0 0}.password-wrap{position:relative}.password-wrap .input{padding-right:68px}.show-password{position:absolute;right:8px;top:7px;border:0;background:#f2f5f8;border-radius:7px;font-size:11px;padding:8px 10px;color:#58708b}
@media(max-width:1270px){.top-inner{flex-wrap:wrap;gap:10px;padding:12px 20px}.nav{order:3;width:100%;overflow-x:auto}.page{padding:24px 20px 60px}.dashboard-grid{grid-template-columns:1fr}.stat-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.top-inner{padding:10px 15px}.page{padding:20px 14px 52px}.heading{flex-wrap:wrap}.heading h1{font-size:24px}.stat-grid{gap:9px}.stat{padding:15px}.stat>strong{font-size:20px}.stat>span{font-size:11px}.stat>small{font-size:10px}.account-name{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.filters{width:100%}.input.search,.input.filter{flex:1;min-width:130px;width:auto}.panel-head{padding:15px;align-items:stretch}.funnel-row{grid-template-columns:105px 1fr 30px;gap:9px}.funnel-row strong{font-size:12px}}
@media(max-width:640px){.work-table{min-width:0}.work-table thead{display:none}.work-table,.work-table tbody,.work-table tr,.work-table td{display:block;width:100%}.work-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 14px;padding:17px 15px;border-bottom:1px solid var(--line)}.work-table tr:last-child{border:0}.work-table td{border:0!important;padding:0;min-width:0!important;width:100%!important;max-width:100%!important;white-space:normal;text-align:left}.work-table td:nth-child(1),.work-table td:nth-child(2),.work-table td:nth-child(7),.work-table td:nth-child(8){grid-column:span 2}.work-table td:nth-child(9){grid-column:span 2;text-align:right}.work-table td::before{content:attr(data-label);display:block;font-size:10px;color:#90a0b3;font-weight:700;letter-spacing:.25px;margin-bottom:6px}.work-table .customer-cell strong{font-size:16px}.work-table .balance{font-size:15px}.work-table td:nth-child(8) input{max-width:none}.work-table .money-entry{max-width:none}.work-table .money-input{width:100%;flex:1}.crm-table{min-width:760px}.login-card{padding:30px 25px 23px}.login-card h1{font-size:27px}.account-layout{grid-template-columns:1fr}.withdrawal-layout{grid-template-columns:1fr}.withdraw-summary{padding:20px}}

@media(max-width:640px){
.crm-overview{min-width:0}.crm-overview thead{display:none}.crm-overview,.crm-overview tbody,.crm-overview tr,.crm-overview td{display:block;width:100%}
.crm-overview tr{display:grid;grid-template-columns:1fr 1fr;gap:13px 15px;padding:17px 16px;border-bottom:1px solid var(--line)}
.crm-overview td{padding:0;border:0;min-width:0;white-space:normal;text-align:left;font-size:13px}
.crm-overview td::before{content:attr(data-label);display:block;font-size:10px;letter-spacing:.1px;color:#8e9eb1;font-weight:700;margin-bottom:5px}
.crm-overview td:first-child,.crm-overview td:last-child{grid-column:span 2}
.crm-overview td:first-child .customer-link{font-size:16px}
}

/* Business Hub 6.0 — polished, clear typography and responsive layouts */
:root{--bg:#f5f7fb;--text:#1b2940;--navy:#1f375c;--line:#e3eaf3;--shadow:0 10px 30px rgba(35,52,87,.045)}
html{font-size:16px;scroll-behavior:smooth}
body{font-size:14px;line-height:1.65;letter-spacing:-.12px}
.topbar{position:sticky;top:0;z-index:12;box-shadow:0 4px 20px rgba(15,35,65,.035)}
.top-inner{max-width:1800px;min-height:78px}.page{max-width:1800px}
.mark{border-radius:14px;width:45px;height:45px}.brand strong{font-size:18px}.brand small{font-size:12px}
.heading h1{font-size:clamp(27px,2.1vw,34px);font-weight:800;letter-spacing:-.9px}
.heading p{font-size:14px}.eyebrow{font-size:11px;color:#617695}
.nav a{font-size:13px;font-weight:700}.nav a.current{background:#ebf1fb;color:#204776}
.button{font-size:13px;min-height:43px;border-radius:11px;transition:background .16s,border-color .16s,transform .16s}
.button:active{transform:translateY(1px)}.input{height:44px;font-size:14px;border-radius:11px}
.surface,.stat{border-radius:17px;box-shadow:0 5px 22px rgba(24,46,80,.032)}
.stat{padding:22px}.stat>span{font-size:13px}.stat>strong{font-size:clamp(21px,1.7vw,30px);white-space:normal;overflow-wrap:anywhere}.stat>small{font-size:12px}
.panel-head h2{font-size:17px}.panel-head p{font-size:13px}
.table-wrap{overscroll-behavior-inline:contain}td{font-size:13px;line-height:1.55;padding:16px 13px}th{font-size:12px;letter-spacing:.1px}
.customer-cell strong{font-size:14px}.balance{font-size:14px}.date{font-size:13px}.work-table td small{font-size:12px}
.work-table{min-width:1110px}.work-table td:nth-child(8){width:115px;min-width:100px;max-width:125px}.work-table td:nth-child(8) input{max-width:118px}
.money-input{font-size:16px;min-height:45px}.note{width:108px}.chip{font-size:12px;padding:6px 10px}
.login-card{width:min(420px,100%);border-radius:22px;box-shadow:0 24px 70px rgba(28,55,94,.07)}.login-card h1{font-size:31px}.login-card p{font-size:14px}.login-card label{font-size:13px}.login-card .input{font-size:15px}
.security-layout{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}.separator-top{border-top:1px solid var(--line)}
.recovery-panel{margin-bottom:20px;border-color:#f4cf8e;background:#fffdf8}.recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:20px}.recovery-grid code{background:#fff4d9;border:1px solid #f4dfb1;padding:11px;border-radius:9px;font-size:13px;text-align:center;overflow-wrap:anywhere}
.qr-frame{padding:14px;background:#fff;display:inline-flex;border:1px solid var(--line);border-radius:14px;margin:8px 0 16px}.qr-frame img{max-width:100%;height:auto}.secret-text{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1.6px;font-size:15px;user-select:all}
.otp-field{font-variant-numeric:tabular-nums;letter-spacing:2px;font-size:17px!important}
.small-form{padding:14px;min-width:240px;max-width:300px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe;display:grid;gap:10px;margin:9px 0;box-shadow:var(--shadow)}
.small-form label{font-size:12px;color:#51647e;font-weight:700}.small-form .input{margin-top:5px}.account-reset summary,.audit-detail summary{color:#2d5d9a;font-weight:750;cursor:pointer;white-space:nowrap}.text-link{color:#265b92;font-weight:750}
.activity-table{min-width:930px}.activity-time{display:block;font-size:11px;color:#8293a9;margin-top:4px}.audit-detail pre{max-width:350px;overflow-x:auto;background:#f5f7fb;border:1px solid var(--line);border-radius:10px;font-size:12px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.activity-pager{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;gap:10px;border-top:1px solid var(--line);color:#64748b;font-size:13px}
.save-status{position:fixed;bottom:22px;right:22px;z-index:50;background:#173d60;color:#fff;box-shadow:0 12px 34px rgba(17,38,65,.25);padding:12px 18px;border-radius:12px;max-width:min(420px,calc(100vw - 30px));font-size:13px;font-weight:700}
.save-status.error{background:#a12c43}.save-status[hidden]{display:none}
@media(max-width:1200px){.security-layout{grid-template-columns:1fr}.top-inner{flex-wrap:wrap}.nav{order:3;width:100%;overflow-x:auto;scrollbar-width:thin}}
@media(max-width:720px){.top-inner{gap:9px;padding:11px 14px}.page{padding:20px 12px 58px}.heading p{font-size:13px}.stat{padding:16px}.stat>strong{font-size:clamp(18px,5vw,25px)}.panel-head{padding:16px}.account-layout{grid-template-columns:1fr}.recovery-grid{grid-template-columns:1fr}.save-status{bottom:12px;right:12px}.identity{gap:5px}.account-name{display:none}.nav a{padding:10px;font-size:12px}}
@media(max-width:640px){.work-table td:nth-child(8) input{max-width:none}.work-table .note{width:100%}.stat-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-pager{flex-wrap:wrap}.login-card{padding:29px 24px}.crm-table{min-width:730px}}
/* Prevent wide audit/account tables from forcing the entire mobile viewport wide. */
.page,.dashboard-grid,.dashboard-grid>.surface,.surface,.table-wrap{min-width:0;max-width:100%}
@media(max-width:1200px){.dashboard-grid,.account-layout,.security-layout,.withdrawal-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){.top-inner,.nav{max-width:100%;min-width:0}}

/* Business Hub 6.1 — wider billion-VND entry, compact staff/note and stage analytics */
:root{--bg:#f3f6fa;--surface:#fff;--text:#152841;--navy:#192f4f;--muted:#63768d;--line:#e2e9f1;--blue:#3566b1;--green:#0d8064;--red:#bd4154;--shadow:0 8px 28px rgba(35,58,90,.045)}
body{font-size:14.5px;line-height:1.62} .page{max-width:1850px}.surface,.stat{border:1px solid var(--line);box-shadow:var(--shadow)}
.topbar{border-bottom-color:#e4ebf3}.mark{background:linear-gradient(140deg,#192f4f 0%,#32638b 100%);color:#f5f9fc;border-radius:14px;box-shadow:0 6px 13px rgba(32,76,110,.16);display:grid;place-items:center}.mark svg{width:31px;height:31px;display:block}
.heading h1{font-size:clamp(27px,2.2vw,35px);letter-spacing:-.95px}.stat>strong{letter-spacing:-.9px}
.work-table{width:100%;min-width:1335px;table-layout:fixed}
.work-table th,.work-table td{padding-left:10px;padding-right:10px}
.work-table th:nth-child(1),.work-table td:nth-child(1){width:98px;min-width:0}
.work-table th:nth-child(2),.work-table td:nth-child(2){width:17%;min-width:0}
.work-table th:nth-child(3),.work-table td:nth-child(3){width:105px;min-width:0}
.work-table th:nth-child(4),.work-table td:nth-child(4),.work-table th:nth-child(5),.work-table td:nth-child(5){width:105px;min-width:0}
.work-table th:nth-child(6),.work-table td:nth-child(6){width:150px;min-width:0}
.work-table th:nth-child(7),.work-table td:nth-child(7){width:280px;min-width:280px}
.work-table th:nth-child(8),.work-table td:nth-child(8){width:113px;min-width:0;max-width:113px}
.work-table th:nth-child(9),.work-table td:nth-child(9){width:54px;min-width:0}
.work-table td:nth-child(8) input{width:100%;max-width:100%;min-width:0}
.money-entry{display:flex;width:100%;gap:7px;align-items:stretch}
.money-input{width:100%;min-width:0;flex:1 1 auto;min-height:46px;font-size:16px;letter-spacing:-.4px;font-weight:800;padding-inline:11px;border:1.5px solid #bbcae0;box-shadow:inset 0 1px 2px rgba(22,38,65,.04)}
.sign-stack{width:33px;flex:0 0 33px}.save-entry{flex:0 0 32px;padding:0}.note{width:100%;min-width:0;max-width:100%;font-size:13px}.work-table .nowrap{display:block;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.period-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:17px 20px;margin-bottom:19px}
.period-lead{display:grid;gap:1px;margin-right:auto;min-width:150px}.period-lead strong{font-size:14px}.period-lead small{font-size:11px;color:#8a9aac}.period-select{min-width:175px}
.period-field{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#5c718d;font-weight:700}.period-field .input{height:43px}.period-field[hidden]{display:none}
.exclusive-stages{padding:18px 21px;display:grid;gap:14px}.exclusive-stage{background:#f8fafc;border:1px solid #e9eef4;border-radius:13px;padding:15px 17px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px}.exclusive-info{display:grid;gap:3px}.exclusive-info strong{font-size:15px;font-weight:800}.exclusive-info small{color:#8394a8;font-size:11px}.exclusive-number{font-weight:800;font-size:22px;white-space:nowrap}.exclusive-number span{font-size:11px;font-weight:600;color:#8997a9}.exclusive-bar{grid-column:span 2;background:#e6edf5;border-radius:99px;overflow:hidden;height:8px}.exclusive-bar span{background:#76a6e1;height:100%;border-radius:99px;display:block;min-width:0}.stage-telegram .exclusive-bar span{background:#5884cb}.stage-backstage .exclusive-bar span{background:#2ea98b}.exclusive-pct{grid-column:span 2;color:#7a8da4;font-size:11px;font-weight:650}
.conversion-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:19px}.conversion-item{border:1px solid #e7ecf3;background:#fafcfe;border-radius:13px;padding:15px;display:flex;flex-direction:column;gap:6px;min-width:0}.conversion-item span{color:#6e8096;font-size:12px}.conversion-item strong{font-size:clamp(22px,2vw,30px);color:#24466f;letter-spacing:-1px}.conversion-item small{font-size:11px;color:#8c9bad;line-height:1.55}
.security-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;padding:20px}.security-action{display:flex;flex-direction:column;gap:12px;padding:19px;border:1px solid var(--line);border-radius:14px;background:#fcfdff}.security-action h3{font-size:16px;margin:0 0 4px}.security-action label,.form-inline-security label{font-size:12px;display:grid;gap:6px;color:#5b708b;font-weight:650}.security-action .button{align-self:start;margin-top:4px}.security-action .input{width:100%;max-width:100%}.form-inline-security{padding:20px;display:grid;grid-template-columns:1fr 1fr 1fr auto;align-items:end;gap:14px}.form-inline-security label{min-width:0}.inline-unlock{display:flex;align-items:center;gap:8px}.inline-unlock .input{width:125px;height:36px;font-size:11px}.inline-unlock .button{min-height:35px}
.crm-overview td:nth-child(1){font-weight:700}
@media(max-width:1200px){.form-inline-security{grid-template-columns:repeat(2,minmax(0,1fr))}.security-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.period-toolbar{padding:14px;align-items:stretch}.period-lead{width:100%;margin:0}.period-select{flex:1 1 100%}.period-field{flex:1 1 180px}.period-toolbar>.button{flex:1}.security-admin-grid{grid-template-columns:1fr;padding:13px}.form-inline-security{grid-template-columns:1fr;padding:15px}.form-inline-security .button{width:100%}}
@media(max-width:640px){.work-table{min-width:0;table-layout:auto}.work-table td:nth-child(7){width:100%!important;min-width:0!important}.work-table td:nth-child(8){width:100%!important;min-width:0!important;max-width:100%!important}.money-input{width:100%;font-size:17px}.money-entry{max-width:none}.work-table .note{max-width:none}.conversion-metrics{padding:13px;gap:10px}.conversion-item{padding:12px}.conversion-item span{font-size:11px}.conversion-item small{font-size:10px}.exclusive-stages{padding:13px}.stat>strong{font-size:clamp(17px,4.7vw,24px)} }
@media(min-width:761px){.period-toolbar .period-select{width:206px;min-width:206px}.period-toolbar .period-field .input{width:195px}.period-toolbar>.button{width:auto;flex:0 0 auto}}
@media(max-width:640px){
  .crm-overview,.crm-overview tbody{width:100%!important;min-width:0!important;max-width:100%!important}
  .crm-overview tr{width:100%!important;min-width:0!important;max-width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))}
  .crm-overview td{min-width:0!important;max-width:100%!important;width:auto!important;overflow-wrap:anywhere}
}
