:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#243449;background:#f5f7fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.hidden{display:none!important}.sr-only{position:absolute;left:-9999px}.app{display:grid;grid-template-columns:298px minmax(0,1fr) 270px;height:100dvh;min-height:520px}.sidebar,.details{background:#fff;display:flex;flex-direction:column;min-width:0}.sidebar{border-right:1px solid #e6ebf0}.brand{height:96px;display:flex;gap:13px;align-items:center;padding:18px 23px}.brand-mark,.mobile-mark,.group-logo{display:grid;place-items:center;color:#fff;background:#176b8a;font-weight:800}.brand-mark{width:43px;height:43px;border-radius:12px;font-size:30px}.brand strong{font-size:15px;line-height:1.22;letter-spacing:.045em;color:#15344b}.brand small,.side-bottom small{display:block;margin-top:4px;color:#8794a3;font-size:12px}.workspace-label{font-size:11px;letter-spacing:.12em;font-weight:800;color:#8c9aa8;padding:20px 24px 9px}.spaces{padding:0 11px}.space{width:100%;display:flex;align-items:center;gap:12px;padding:13px 11px;border:0;background:transparent;color:#344b60;text-align:left;border-radius:10px;min-height:64px}.space:hover,.space.active{background:#eaf5f8}.space.active{color:#176b8a}.space-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:10px;background:#f2f5f8;font-size:21px;color:#658195}.space.active .space-icon{color:#176b8a;background:#d5edf2}.space-text{flex:1;min-width:0}.space-text strong{font-size:15px;display:block}.space-text small{display:block;color:#8695a3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;margin-top:4px}.space-count{font-size:12px;background:#176b8a;color:#fff;border-radius:50%;padding:2px 6px}.side-bottom{margin-top:auto;display:flex;align-items:center;gap:10px;border-top:1px solid #edf0f3;padding:18px}.side-bottom strong{font-size:14px}.avatar{background:#d7edf1;color:#14667f;border-radius:50%;display:grid;place-items:center;font-weight:800}.avatar.mini{width:39px;height:39px}.three-dots{margin-left:auto;font-size:23px;color:#8795a4}.main{min-width:0;display:flex;flex-direction:column;background:#f5f7fa;position:relative}.topbar{display:flex;align-items:center;gap:12px;min-height:78px;padding:13px 26px;border-bottom:1px solid #dfe6ed;background:#fff}.heading{min-width:0}.heading h1{margin:0;color:#172e40;font-size:19px;line-height:1.25}.subhead{color:#778a9b;font-size:12px;margin-top:5px;display:flex;align-items:center;gap:6px;white-space:nowrap}.live-dot{width:7px;height:7px;border-radius:50%;background:#239c79}.sub-separator{color:#b9c4cd}.demo-badge{background:#e6f3f6;color:#176b8a;border-radius:4px;font-size:10px;font-weight:800;padding:3px 5px;letter-spacing:.07em;margin-left:4px}.top-actions{display:flex;gap:6px;margin-left:auto}.icon-button{border:0;background:transparent;color:#547289;font-size:29px;width:39px;height:39px;border-radius:8px;line-height:1}.icon-button:hover{background:#edf5f8}.mobile-mark{display:none}.search-bar{display:flex;align-items:center;gap:9px;padding:8px 25px;background:#fff;border-bottom:1px solid #e4ebef;color:#597489}.search-bar input{flex:1;border:1px solid #d5e4eb;border-radius:7px;padding:9px 12px;outline-color:#176b8a;font-size:14px}.search-bar button{border:0;background:transparent;font-size:22px;color:#72889b}.revenue-strip{display:flex;align-items:center;background:#ebf5f7;border-bottom:1px solid #d5e8ed;padding:12px 25px;gap:32px;min-height:77px}.stat small{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;color:#6a8997;margin-bottom:3px}.stat strong{font-size:20px;color:#125b75;letter-spacing:-.02em}.stat.month strong{color:#208d8a}.strip-side{font-size:12px;color:#6a8997;margin-left:auto;white-space:nowrap}.strip-side b{color:#37596a}.strip-side span{margin:0 4px}.orders-view{display:flex;flex-direction:column;flex:1;min-height:0}.feed{flex:1;overflow-y:auto;padding:20px 25px 26px;scrollbar-color:#cbd8e1 transparent}.date-marker{display:flex;justify-content:center;padding:3px 0 22px}.date-marker span{background:#e0e7ec;color:#687e8e;border-radius:7px;padding:5px 12px;font-size:12px;font-weight:650}.entry{display:flex;gap:10px;align-items:flex-start;margin:0 0 19px;max-width:780px}.entry .avatar{width:32px;height:32px;flex:none;font-size:11px}.bubble{min-width:0;max-width:690px;background:#fff;border:1px solid #dbe5ec;border-radius:11px;box-shadow:0 2px 4px #183b5409;overflow:hidden;flex:1}.entry.incomplete .bubble{border:2px solid #df4242;box-shadow:0 0 0 2px #df424212}.entry-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 13px 7px}.entry-head strong{font-size:13px;color:#3d6174}.entry-head time{font-size:12px;color:#8b9eaa}.image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin:2px 12px 0;border-radius:7px;overflow:hidden}.image-grid:has(:only-child){grid-template-columns:minmax(0,1fr)}.sample-image{height:166px;background:#e7eef3;display:grid;place-items:center;color:#587f92;position:relative;overflow:hidden}.sample-image:before{content:"";position:absolute;inset:12px;background:linear-gradient(135deg,#116c84,#289a9a);opacity:.93}.sample-image:nth-child(2):before{background:linear-gradient(135deg,#284f76,#5b99b5)}.sample-image .mock-label{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;padding:15px;max-width:90%}.mock-label b{font-size:17px;line-height:1.2}.mock-label small{font-size:11px;color:#d6f4f3;margin-top:8px;letter-spacing:.1em;text-transform:uppercase}.image-grid img{width:100%;height:166px;object-fit:contain;background:#edf3f6;cursor:zoom-in}.money{font-weight:800;font-size:20px;color:#164c65;letter-spacing:-.01em;margin:12px 13px 8px}.fields{padding:0 13px 4px;display:grid;gap:5px;font-size:14px;line-height:1.35}.field{display:grid;grid-template-columns:115px minmax(0,1fr);gap:7px;align-items:baseline}.field-label{color:#8497a5;font-size:12px}.field-value{overflow-wrap:anywhere;color:#273d51}.field-value.missing{color:#d73535;font-weight:700}.field-value a{color:#176b8a;text-decoration:none}.notes{margin:8px 13px 2px;padding:9px 11px;background:#f6f9fb;border-left:3px solid #b7d7e1;font-size:13px;color:#566b79;line-height:1.45}.entry-foot{display:flex;gap:10px;align-items:center;border-top:1px solid #eff2f4;margin:11px 12px 0;padding:8px 0 9px;font-size:12px;color:#9aaab4}.entry-foot .warning{color:#d93535;font-weight:700}.entry-foot .edit-btn{border:0;background:transparent;color:#247e96;margin-left:auto;font-size:12px;font-weight:700;padding:5px}.entry-foot .edit-btn:hover{text-decoration:underline}.delivered{margin-left:3px;border:1px solid #cedde2;background:#fff;color:#8497a6;width:31px;height:31px;border-radius:50%;font-size:20px;line-height:1}.delivered.checked{background:#e0f4e9;border-color:#89cdaa;color:#22965f}.system-message{border:1px solid #d4e6eb;background:#fff;box-shadow:0 2px 5px #183b5408;max-width:520px;margin:13px auto 24px;padding:15px 20px;text-align:center;border-radius:11px}.system-message small{font-weight:800;color:#17828e;letter-spacing:.09em;font-size:11px}.system-message div{font-size:18px;font-weight:800;color:#16445d;margin-top:7px}.system-message p{font-size:14px;color:#607988;margin:7px 0 0}.deleted-row{padding:14px 16px;color:#8b9ca7;background:#f1f4f5;border:1px dashed #cbd8df;border-radius:9px;font-size:13px;max-width:540px;margin:0 0 16px 42px}.composer-wrap{background:#fff;border-top:1px solid #dfe6ec;padding:12px 23px 10px;z-index:2}.composer{display:flex;align-items:flex-end;gap:11px}.attach{display:grid;place-items:center;border:0;color:#43809b;width:35px;height:44px;font-size:26px;cursor:pointer;flex:none}.attach input{display:none}.composer textarea{flex:1;min-width:0;resize:none;max-height:120px;min-height:48px;border:1px solid #dbe5eb;border-radius:9px;padding:13px 12px;outline:none;line-height:1.4;font-size:14px;color:#2b4454}.composer textarea:focus{border-color:#2188a3}.composer textarea::placeholder{color:#9daeba}.send{height:45px;flex:none;border:0;border-radius:8px;background:#176b8a;color:#fff;padding:0 16px;font-size:13px;font-weight:800}.send:hover{background:#10546d}.send span{font-size:15px;margin-left:5px}.composer-hint{font-size:11px;color:#93a3ad;margin:7px 0 0 47px;line-height:1.4}.pending-images{display:flex;gap:9px;padding:0 0 10px 45px;overflow-x:auto}.pending-item{position:relative;flex:none;width:70px;height:61px}.pending-item img{width:100%;height:100%;object-fit:cover;border-radius:6px;border:1px solid #d3e3e9}.pending-item button{position:absolute;right:-6px;top:-7px;width:19px;height:19px;border:0;border-radius:50%;background:#364b59;color:#fff;font-size:14px;line-height:17px}.details{border-left:1px solid #dfe6ed;overflow-y:auto}.details-header{height:78px;display:grid;place-items:center;border-bottom:1px solid #e9edf1;font-weight:800;color:#263c51}.group-card{text-align:center;padding:29px 12px;border-bottom:7px solid #f5f7fa}.group-logo{width:60px;height:60px;font-size:35px;border-radius:17px;margin:auto}.group-card h2{font-size:15px;margin:12px 0 6px}.group-card>span{font-size:12px;color:#79909e}.detail-section{border-bottom:7px solid #f5f7fa;padding:17px 17px 19px}.detail-section h3{font-size:14px;margin:0 0 14px;color:#334a5d}.detail-line{display:flex;align-items:center;gap:11px;font-size:13px;padding:7px 0;color:#526d7e}.detail-line span{font-size:19px;color:#43839b}.detail-line b{margin-left:auto;color:#284d63}.detail-section p{font-size:12px;line-height:1.55;color:#7d909e;margin:0 0 10px}.report-view{flex:1;display:grid;place-items:center;padding:20px}.report-card{max-width:340px;text-align:center}.report-icon{font-size:47px;color:#56a3ae}.report-card h2{font-size:20px;margin:7px 0}.report-card p{font-size:14px;color:#718798;line-height:1.5}.report-card button{margin-top:10px;background:#176b8a;border:0;border-radius:7px;color:#fff;padding:10px 14px}.mobile-nav{display:none}.modal-layer{position:fixed;inset:0;z-index:20;background:#142a3a8c;display:grid;place-items:center;padding:18px}.modal{width:min(100%,520px);max-height:min(88dvh,800px);overflow:auto;background:#fff;border-radius:12px;box-shadow:0 22px 70px #0b223455}.modal-head{position:sticky;top:0;background:#fff;z-index:1;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e9eef1;padding:17px 20px}.modal-head h2{margin:0;font-size:18px;color:#20475a}.modal-head button{font-size:25px;color:#758a99;background:transparent;border:0}.modal-content{padding:15px 20px}.modal-intro{color:#5b7382;font-size:13px;line-height:1.5;margin:0 0 15px}.form-row{margin-bottom:12px}.form-row label{display:block;font-size:12px;font-weight:800;color:#5f7888;margin-bottom:5px}.form-row input,.form-row textarea{width:100%;border:1px solid #d5e2e8;border-radius:7px;padding:10px;color:#2a4355;font-size:14px;outline-color:#176b8a}.form-row textarea{resize:vertical;min-height:62px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.form-row .field-hint{font-size:11px;color:#899baa;margin-top:4px}.modal-actions{border-top:1px solid #e9eef1;padding:14px 20px;display:flex;gap:9px;justify-content:flex-end}.modal-actions button{border:1px solid #d3e0e6;background:#fff;padding:9px 13px;border-radius:7px;font-size:13px;font-weight:750;color:#48728a}.modal-actions .primary{background:#176b8a;border-color:#176b8a;color:#fff}.modal-actions .danger{color:#cf3838;border-color:#eebfc0}.history{background:#f6f9fb;border-radius:8px;padding:10px;margin:4px 0 13px;color:#5b7786;font-size:12px;line-height:1.6}.toast{position:fixed;bottom:112px;left:50%;transform:translateX(-50%);z-index:30;padding:11px 16px;max-width:calc(100% - 32px);border-radius:8px;box-shadow:0 9px 30px #102f4140;background:#173c51;color:#fff;font-size:13px;text-align:center}
@media(max-width:1170px){.app{grid-template-columns:250px minmax(0,1fr)}.details{display:none}.strip-side{display:none}.sidebar .brand{padding-left:15px}.info-toggle{display:none}}
@media(max-width:690px){.app{display:block;height:100dvh;min-height:0}.sidebar{display:none}.main{height:100dvh}.topbar{min-height:65px;padding:9px 14px}.mobile-mark{display:grid;width:34px;height:34px;border-radius:9px;flex:none;font-size:25px}.heading h1{font-size:17px}.subhead{font-size:11px;gap:4px}.demo-badge{font-size:9px}.revenue-strip{min-height:70px;padding:11px 14px;gap:24px}.stat small{font-size:10px}.stat strong{font-size:17px}.feed{padding:15px 10px 20px}.entry{gap:7px}.entry .avatar{width:27px;height:27px;font-size:10px}.entry-head{padding:8px 10px 5px}.entry-head strong{font-size:12px}.image-grid{margin:2px 8px 0}.image-grid img,.sample-image{height:140px}.mock-label b{font-size:13px}.money{margin:10px 10px 7px;font-size:18px}.fields{padding:0 10px 2px;font-size:13px}.field{grid-template-columns:88px minmax(0,1fr);gap:5px}.field-label{font-size:11px}.notes{margin:8px 10px}.entry-foot{margin:9px 10px 0;gap:5px}.entry-foot .edit-btn{font-size:12px}.composer-wrap{padding:9px 10px 6px}.composer{gap:5px}.attach{width:31px}.composer textarea{min-height:43px;font-size:13px;padding:11px 9px}.send{height:43px;padding:0 11px;font-size:12px}.send span{display:none}.composer-hint{display:none}.pending-images{padding-left:35px}.mobile-nav{display:flex;flex:none;height:52px;background:#fff;border-top:1px solid #e5ebef}.mobile-nav button{flex:1;border:0;background:transparent;color:#8195a3;font-size:16px;display:flex;align-items:center;justify-content:center;gap:6px}.mobile-nav button span{font-size:12px}.mobile-nav button.current{color:#176b8a;font-weight:800}.date-marker{padding-bottom:16px}.system-message{margin:10px 10px 21px}.search-bar{padding:7px 11px}.toast{bottom:165px}.form-grid{grid-template-columns:1fr}}
.attach{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;width:43px;font-size:22px;line-height:1.05}
.attach>span:last-child{font-size:11px;font-weight:700}
.attach input{display:block;position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.attach:focus-within,.photo-action:focus-within{outline:2px solid #176b8a;outline-offset:3px;border-radius:7px}
.photo-field-label{display:block;font-size:12px;font-weight:800;color:#5f7888;margin-bottom:8px}
.photo-action{display:flex;position:relative;align-items:center;justify-content:center;gap:9px;min-height:48px;border-radius:8px;border:1px solid #8ab7c6;background:#eef8fa;color:#176b8a;font-size:14px;font-weight:800;cursor:pointer}
.photo-action>svg{width:23px;height:23px;flex:none;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;color:#11786e}
.photo-action input{display:block;position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.form-row .field-hint{font-size:12px;line-height:1.4;margin-top:9px}
.edit-image-preview{display:flex;gap:8px;overflow-x:auto;margin-top:9px}
.edit-image-preview img{width:66px;height:66px;border-radius:6px;object-fit:cover;border:1px solid #d5e2e8}
@media(max-width:690px){.attach{width:37px;flex:none}.photo-action{min-height:54px;font-size:15px}}
.login-page{min-height:100dvh;display:grid;place-items:center;padding:20px;background:#edf5f7}.login-card{width:min(100%,390px);background:white;border:1px solid #dbe9ef;border-radius:17px;box-shadow:0 18px 55px #163d551a;padding:30px}.login-logo{background:#176b8a;color:white;width:54px;height:54px;border-radius:15px;font-weight:800;font-size:34px;display:grid;place-items:center}.login-card h1{font-size:22px;color:#19415a;line-height:1.25;margin:18px 0 5px}.login-card p{color:#607989;font-size:14px;margin:0 0 25px}.login-card label{display:block;color:#526f80;font-size:13px;font-weight:700;margin:16px 0 6px}.login-card input{width:100%;border:1px solid #c8d9e2;border-radius:8px;padding:12px;outline-color:#176b8a}.login-card button{width:100%;background:#176b8a;border:0;border-radius:8px;color:white;font-weight:800;padding:13px;margin-top:20px}.login-error{color:#ce3636;font-size:13px;min-height:15px;margin-top:8px}.account-button{margin-left:auto;background:transparent;border:0;font-size:24px;color:#58778a}.image-warning{margin:7px 13px 0;color:#d73535;font-size:12px;font-weight:700}.image-thumb{position:relative}.image-thumb button{position:absolute;right:4px;top:4px;background:#fff;border:0;border-radius:50%;color:#c93434;box-shadow:0 1px 4px #3336}.file-preview{display:flex;gap:7px;overflow:auto}.file-preview img{height:58px;width:58px;object-fit:cover;border-radius:5px}
.mobile-account{display:none}@media(max-width:690px){.mobile-account{display:block}}
.report-view{display:block;overflow-y:auto;padding:22px}.report-body{max-width:860px;margin:auto;width:100%;background:#fff;border:1px solid #e0e8ec;border-radius:12px;padding:23px}.report-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.report-head h2{font-size:18px;margin:0;color:#234b5e}.report-head label{font-size:12px;color:#587482;font-weight:700}.report-head input{display:block;border:1px solid #d1e0e7;border-radius:7px;padding:7px;margin-top:5px;color:#24475a}.report-summary{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:20px 0}.report-summary>div{padding:16px;background:#eaf5f7;border-radius:9px}.report-summary small{display:block;color:#578496;font-size:11px;font-weight:800;letter-spacing:.04em}.report-summary strong{display:block;margin-top:6px;font-size:20px;color:#14637e}.report-chart{max-height:355px;overflow:auto;padding:7px 5px;border:1px solid #e4edf0;border-radius:7px}.chart-row{display:grid;grid-template-columns:55px minmax(0,1fr) 105px;gap:10px;align-items:center;padding:5px 3px;font-size:12px;color:#587586}.chart-row b{text-align:right;color:#2f5e72}.chart-track{height:12px;border-radius:5px;background:#edf4f6;overflow:hidden}.chart-track i{display:block;height:100%;background:#2295a1;border-radius:5px}.report-body h3{color:#214e64;font-size:17px;margin:27px 0 4px}.report-help{font-size:12px;color:#8093a0;margin:0 0 12px}.ranking{max-height:340px;overflow:auto}.ranking-row{display:flex;gap:13px;align-items:center;padding:11px 6px;border-bottom:1px solid #edf2f4}.ranking-row>b{color:#17748c}.ranking-row>div{flex:1;min-width:0}.ranking-row strong{color:#26546b;font-size:13px}.ranking-row small{display:block;color:#8599a4;font-size:11px;margin-top:3px}.ranking-row>strong:last-child{white-space:nowrap}@media(max-width:690px){.report-view{padding:10px}.report-body{padding:14px}.report-head{align-items:flex-start}.report-summary{gap:7px}.report-summary>div{padding:12px}.report-summary strong{font-size:16px}.report-summary small{font-size:9px}.chart-row{grid-template-columns:42px minmax(0,1fr) 90px;gap:5px;font-size:11px}}
.ranking-head{display:flex;align-items:end;justify-content:space-between;gap:12px}.ranking-head button{border:1px solid #9bc4d1;border-radius:7px;background:#eaf5f7;color:#14637e;font-weight:700;font-size:12px;padding:8px}.ranking-head h3{margin-bottom:4px}
.care-row{display:flex;align-items:center;gap:9px;padding:12px 5px;border-bottom:1px solid #edf2f4}.care-row>div{flex:1;min-width:0}.care-row strong{font-size:13px;color:#af5134}.care-row small{display:block;font-size:11px;color:#8398a2;margin-top:4px}.care-row button{flex:none;background:#eef8fa;color:#176b8a;border:1px solid #b6d8e1;border-radius:6px;padding:7px;font-weight:700;font-size:11px}.care-row button:last-child{font-size:16px}.form-row input[type=checkbox]{width:auto;margin:0 5px 0 0}@media(max-width:690px){.care-row{flex-wrap:wrap}.care-row>div{flex-basis:100%}}
.report-controls{display:flex;align-items:end;gap:12px}.report-controls>button{border:1px solid #9bc4d1;border-radius:7px;background:#eaf5f7;color:#14637e;font-size:12px;font-weight:750;padding:9px}@media(max-width:690px){.report-controls{align-items:end;flex-direction:column;gap:5px}}
.login-card .password-visibility,.form-row .password-visibility{display:flex;align-items:center;gap:9px;min-height:36px;margin:8px 0 0;font-size:14px;font-weight:500;cursor:pointer}.login-card .password-visibility input,.form-row .password-visibility input{width:18px;height:18px;flex:none;margin:0;padding:0;accent-color:#176b8a}
.recovery-panel{border-top:1px solid #dbe9e6;margin-top:24px;padding-top:16px;color:#526f80;font-size:13px}.recovery-panel summary{color:#176b8a;font-weight:700;cursor:pointer}.recovery-panel p{margin:12px 0 4px}.recovery-panel form{margin-top:12px}
.permission-fields{border:1px solid #d5e5e3;border-radius:10px;padding:12px;margin:14px 0;background:#f8fcfb}.permission-fields legend{padding:0 6px;color:#19494a;font-size:14px;font-weight:750}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.permission-grid label{display:flex;align-items:center;gap:9px;min-height:42px;padding:8px 10px;background:#fff;border:1px solid #d8e9e6;border-radius:8px;color:#244e4e;font-size:14px;cursor:pointer}.permission-grid input{width:18px;height:18px;accent-color:#087f73;flex:none}.staff-row{padding:11px 0;border-bottom:1px solid #e1ecea}.staff-row:last-child{border-bottom:0}.staff-row small{display:block;color:#617a78;font-size:12px;margin:3px 0 7px}.staff-row button{border:1px solid #b9d4ce;border-radius:7px;background:#fff;color:#176b67;padding:5px 8px;font-size:12px;margin:3px 4px 3px 0}@media(max-width:420px){.permission-grid{grid-template-columns:1fr}}
.topbar{position:sticky;top:0;z-index:20;flex-shrink:0}
.revenue-strip{position:sticky;top:78px;z-index:19;flex-shrink:0}
@media(max-width:690px){.revenue-strip{top:65px}}
.app{min-height:0;overflow:hidden}
.sidebar,.details{height:100dvh;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.main{height:100dvh;min-height:0;overflow:hidden}
.feed,.report-view{min-height:0;overscroll-behavior:contain}
.report-view{flex:1}
.delivered{width:39px;height:39px;flex:none;display:grid;place-items:center;border:1.5px solid #cbdde3;border-radius:50%;background:#f6fafb;color:#678592;box-shadow:0 1px 3px #17475512;transition:background .15s,border-color .15s,transform .15s}
.delivered:hover{transform:scale(1.08);border-color:#329978}
.delivered:focus-visible{outline:3px solid #96d8c2;outline-offset:2px}
.delivered.checked{background:#208b61;border-color:#208b61;color:#fff;box-shadow:0 2px 7px #208b6138}
.delivery-mark{width:100%;height:100%;display:grid;place-items:center}
.delivery-mark::before{content:"";width:6px;height:6px;background:currentColor;border-radius:50%}
.delivery-mark svg{display:none;width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round}
.delivered.checked .delivery-mark::before{display:none}
.delivered.checked .delivery-mark svg{display:block}
.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.archive-grid button{display:block;aspect-ratio:1;border:0;border-radius:5px;overflow:hidden;background:#edf3f6;padding:0;cursor:zoom-in}
.archive-grid button:focus-visible{outline:3px solid #176b8a;outline-offset:2px}
.archive-grid img{display:block;width:100%;height:100%;object-fit:cover}
.archive-grid p{grid-column:1/-1}
.archive-all{width:100%;margin-top:9px;padding:9px 6px;border:0;border-radius:6px;background:#e9f1f5;color:#315970;font-size:13px;font-weight:750}
.archive-all:hover{background:#dbeef3}
.archive-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.archive-day{padding:14px 0 18px;border-bottom:1px solid #dce5e9}.archive-day:first-of-type{padding-top:0}.archive-day:last-of-type{border-bottom:0}.archive-day h3{margin:0 0 12px;font-size:14px;font-weight:650;color:#24434e}.archive-order-target .bubble{outline:2px solid #3187a0;outline-offset:3px}
.archive-preview{display:block;width:100%;max-height:60dvh;object-fit:contain;background:#edf3f6;border-radius:7px}
.archive-caption{margin:12px 0 0;color:#315970;font-size:14px;line-height:1.5}
@media(max-width:690px){.archive-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
.logo-surface{border:0;padding:0;overflow:hidden;position:relative;flex:none;cursor:default}
.logo-surface img{display:block;width:100%;height:100%;object-fit:contain}
.logo-surface img[hidden],.logo-surface [hidden]{display:none}
.logo-surface.can-edit{cursor:pointer}
.logo-surface.can-edit:hover{box-shadow:0 0 0 3px #98cad7}
.logo-surface.can-edit:focus-visible{outline:3px solid #176b8a;outline-offset:3px}
.brand-mark.logo-surface{width:54px;height:54px;border-radius:50%}
.group-logo.logo-surface{width:76px;height:76px;border-radius:50%}
.logo-surface img{object-fit:cover;object-position:center}
@media(max-width:690px){.mobile-mark.logo-surface{width:38px;height:38px;border-radius:50%}}
.field-value{white-space:pre-line}
.composer textarea{max-height:none;overflow-y:hidden}
.order-message{padding:0 13px 5px;color:#273d51;font-size:14px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.order-message a{color:#176b8a;text-decoration:none}
@media(max-width:690px){.order-message{padding:0 10px 4px;font-size:13px}}

/* Giao diện Chốt đơn: ba chỉ số hiện tại, cùng bố cục ba cột. */
.sidebar{background:#eaf5fc;border-right:1px solid #d5e7f3}
.brand{height:105px;padding:18px 20px}
.brand strong{font-size:16px;color:#152e4d}
.brand small,.side-bottom small{color:#607a92}
.workspace-label{color:#687f96}
.space{color:#203f5d}
.space:hover,.space.active{background:#d9edf9;color:#125984}
.space-icon{background:#f1f9fe;color:#1c658e}
.space.active .space-icon{background:#c3e8f6;color:#115b83}
.space-icon svg,.stat-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-button{display:grid;place-items:center}
.icon-button svg,.attach svg,.send svg,.mobile-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.send{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.send svg{width:16px;height:16px}
.attach{color:#276e96}
.attach svg{width:23px;height:23px}
.mobile-nav svg{width:19px;height:19px}
.space-count{background:#135e86}
.side-bottom{border-top-color:#d1e5f3}
.account-button{color:#275d80}
.main{background:#f7fbff}
.topbar{border-bottom-color:#dbeaf4}
.heading h1{color:#162b49;font-size:21px}
.revenue-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:12px;padding:13px 18px;background:#f4faff;border-bottom-color:#e0edf7;min-height:114px}
.stat{display:flex;align-items:center;gap:12px;min-width:0;padding:13px 14px;border:1px solid #dceaf5;border-radius:10px;background:#fff;box-shadow:0 2px 9px #285d8709}
.stat-icon{flex:none;width:43px;height:43px;border-radius:11px;display:grid;place-items:center}
.stat-icon svg{width:25px;height:25px;stroke-width:2}
.day-icon{background:#e2f0ff;color:#2069bc}
.month-icon{background:#e0f7ee;color:#138958}
.orders-icon{background:#fff0d9;color:#ce731d}
.stat-copy{min-width:0}
.stat small{font-size:11px;letter-spacing:.025em;line-height:1.3;color:#415e77;margin-bottom:6px}
.stat strong{font-size:clamp(17px,1.5vw,25px);line-height:1.12;color:#174967;white-space:nowrap}
.stat.month strong{color:#167754}
.orders-stat strong{color:#193a5a}
.orders-split{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px;font-size:11px;line-height:1.25;color:#536d84}
.orders-split span+span:before{content:'·';margin-right:6px;color:#9eb5c7}
.orders-split b{font-weight:750;color:#233e59}
.feed{background:#f7fbff}
.date-marker span{background:#e9f3fc;color:#41617b}
.bubble{border-color:#d9e9f5;box-shadow:0 4px 16px #234f7a0d}
.entry:not(.incomplete):has(.delivered.checked) .bubble{border-left:3px solid #2fb786}
.entry.incomplete .bubble{border-color:#df4242}
.entry-head strong{color:#1b3b5b}
.entry-head time{color:#69839a}
.image-grid img{background:#f0f8fc}
.money{color:#172f55;font-size:21px}
.order-message{color:#2a4964}
.order-message a{color:#176b95}
.notes{background:#f4faff}
.details{border-left-color:#dceaf3;background:#fff}
.details-header{color:#192f4d}
.group-card{margin:13px 13px 0;padding:20px 8px 17px;border:1px solid #dbeaf5;border-radius:10px}
.detail-section{border-bottom:1px solid #e3edf5;padding:18px 16px}
.detail-section h3{color:#193552}
.detail-section p{color:#556e84}
.detail-line span{color:#167f9a}
.composer-wrap{border-top-color:#dbeaf5}
.composer textarea{border-color:#cfe1ef}
.send{background:#125d83}
.send:hover{background:#0e4d6d}
.report-body{border-color:#dbeaf5;box-shadow:0 3px 14px #234f7a0a}
@media(max-width:1170px){.revenue-strip{gap:8px;padding:10px}.stat{gap:7px;padding:10px}.stat-icon{width:34px;height:34px}.stat-icon svg{width:20px;height:20px}.stat small{font-size:10px}.stat strong{font-size:clamp(15px,2vw,21px)}}
@media(max-width:690px){.heading h1{font-size:17px}.revenue-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px 9px;min-height:0}.stat{min-height:63px;padding:8px;gap:7px}.stat-icon{width:30px;height:30px;border-radius:8px}.stat-icon svg{width:19px;height:19px}.stat small{font-size:10px;margin-bottom:3px;letter-spacing:0}.stat strong{font-size:16px}.orders-stat{grid-column:1/-1;min-height:52px}.orders-stat .stat-copy{display:flex;align-items:center;flex-wrap:wrap;gap:2px 11px}.orders-stat small{width:100%;margin:0}.orders-stat strong{font-size:16px}.orders-split{margin:0;font-size:11px}.money{font-size:18px}.group-card{margin:10px}}

/* Các chỉ số đặt trong cột phải trên màn hình rộng; thẻ đơn theo mẫu đã duyệt. */
@media(min-width:1171px){
  .details .revenue-strip{position:static;display:flex;flex-direction:column;gap:8px;align-items:stretch;min-height:0;padding:12px;border-bottom:1px solid #e3edf5;background:#fff}
  .details .stat{min-height:75px;padding:10px;gap:9px;box-shadow:none}
  .details .stat-icon{width:36px;height:36px}
  .details .stat-icon svg{width:21px;height:21px}
  .details .stat small{font-size:10px;margin-bottom:4px}
  .details .stat strong{font-size:19px;white-space:normal;overflow-wrap:anywhere}
  .details .orders-split{gap:2px 8px;font-size:11px}
}
.image-grid.many{grid-template-columns:repeat(4,minmax(0,1fr))}
.image-grid.many img{height:90px}
.order-actions{display:flex;align-items:center;gap:8px;margin:8px 13px 4px;min-width:0}
.order-actions .money{margin:0 auto 0 0;font-size:22px;white-space:nowrap}
.order-actions .edit-btn{border:0;background:transparent;color:#276e96;font-size:13px;font-weight:750;white-space:nowrap;padding:8px 5px}
.order-actions .edit-btn:hover{text-decoration:underline}
.order-actions .delivered{width:auto;height:40px;min-width:118px;margin:0;padding:0 6px 0 11px;display:inline-flex;align-items:center;justify-content:space-between;gap:9px;border:0;border-radius:22px;background:#ffdbbf;color:#b83732;box-shadow:none;transition:background .12s,color .12s;white-space:nowrap;font-weight:750;font-size:13px}
.order-actions .delivered:hover{transform:none;background:#ffd0ac}
.order-actions .delivered.checked{background:#d9f3e5;color:#176943;border:0;box-shadow:none}
.order-actions .delivered.checked:hover{background:#c8ebd8}
.order-actions .delivered:focus-visible{outline:3px solid #6eb49c;outline-offset:2px}
.status-track{width:36px;height:20px;display:flex;align-items:center;border-radius:15px;background:#fff;padding:2px;flex:none}
.status-track span{display:block;width:16px;height:16px;border-radius:50%;background:#d33939;transition:transform .12s,background .12s}
.delivered.checked .status-track span{background:#147347;transform:translateX(16px)}
.order-message{padding:0 13px 3px;line-height:1.45}
.notes{margin:7px 13px 12px;padding:8px 11px}
.entry-warning{margin:0 13px 10px;color:#c72d2d;font-size:12px;font-weight:700}
@media(max-width:690px){
  .order-actions{margin:8px 9px 5px;gap:3px}
  .order-actions .money{font-size:18px}
  .order-actions .edit-btn{font-size:12px;padding:7px 4px}
  .order-actions .delivered{min-width:99px;height:35px;gap:4px;padding:0 4px 0 7px;font-size:11px}
  .status-track{width:30px;height:18px}
  .status-track span{width:14px;height:14px}
  .delivered.checked .status-track span{transform:translateX(12px)}
  .image-grid.many img{height:65px}
  .notes{margin:7px 9px 10px}
  .entry-warning{margin:0 9px 9px}
}
.entry.sending .bubble{border-color:#87b9d4;box-shadow:0 3px 16px #176b8a18}
.saving-state{color:#236d8c;font-weight:700;font-size:13px;white-space:nowrap}
.entry.sending .notes{margin-bottom:12px}
@media(max-width:690px){.saving-state{font-size:12px}}

/* BXH Báo cáo: chỉ hiển thị 20 khách mỗi lượt, cuộn trong cột riêng. */
.ranking-panel{display:flex;flex-direction:column;flex:1;min-height:0;background:#f7fbff}
.ranking-intro{padding:17px 14px 13px;border-bottom:1px solid #dceaf5;background:linear-gradient(140deg,#f2f9ff,#e7f4ff)}
.ranking-heading{display:flex;align-items:center;gap:10px}
.ranking-heading-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:11px;background:#fff0c6;color:#b47414;font-size:25px}
.ranking-heading h2{font-size:16px;line-height:1.25;color:#173955;margin:0}
.ranking-heading p{font-size:11px;line-height:1.35;color:#607c92;margin:4px 0 0}
.customer-ranking{flex:1;min-height:0;overflow-y:auto;padding:12px 10px;scrollbar-color:#b9d4e2 transparent;overscroll-behavior:contain}
.rank-row{display:flex;gap:9px;align-items:flex-start;min-width:0;padding:11px 8px 12px;margin-bottom:7px;border:1px solid #e1ecf3;border-radius:11px;background:#fff;box-shadow:0 2px 7px #1e5c8210}
.rank-row.rank-1{background:linear-gradient(120deg,#fff5e3,#fffdf8);border-color:#f0d198}
.rank-row.rank-2{background:linear-gradient(120deg,#f1f6fb,#fff);border-color:#d0dce8}
.rank-row.rank-3{background:linear-gradient(120deg,#fff4ec,#fff);border-color:#ead1bd}
.rank-leading{width:29px;flex:none;display:flex;align-items:center;flex-direction:column;gap:3px}
.rank-number{font-size:16px;line-height:1.1;color:#53738a}
.rank-1 .rank-number{color:#ce302f;font-size:20px}
.rank-2 .rank-number{color:#58748f;font-size:18px}
.rank-3 .rank-number{color:#a8683d;font-size:18px}
.rank-medal{width:23px;height:26px;color:#e0a326}
.rank-2 .rank-medal{color:#9fb1c4}
.rank-3 .rank-medal{color:#c28963}
.rank-medal svg{display:block;width:100%;height:100%}
.rank-info{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.rank-info strong{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:#1b3f5d}
.rank-info small{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#657f93;font-size:11px;line-height:1.25}
.rank-amount{font-size:16px;line-height:1.15;color:#125c83}
.rank-1 .rank-amount{color:#bf4936}
.rank-2 .rank-amount{color:#496985}
.rank-3 .rank-amount{color:#a26542}
.rank-empty{padding:12px;color:#648095;font-size:13px;line-height:1.5}
.ranking-actions{display:grid;gap:8px;padding:11px;border-top:1px solid #dceaf5;background:#fff}
.ranking-actions button{width:100%;min-height:36px;border-radius:8px;font-size:12px;font-weight:750}
.ranking-more{border:1px solid #99c7dd;background:#e8f5fb;color:#155f83}
.ranking-more:hover{background:#d6edf8}
.ranking-merge{border:1px solid #d7e5ee;background:#fff;color:#37617c}
.ranking-merge:hover{background:#f3f9fc}
.report-summary>div:first-child{background:linear-gradient(130deg,#e8f6ff,#f2faff);border-left:4px solid #2d8cce}
.report-summary>div:nth-child(2){background:linear-gradient(130deg,#e9f9f2,#f3fbf8);border-left:4px solid #24a273}
.chart-track i{background:linear-gradient(90deg,#3aaac1,#167aa6)}
@media(max-width:1170px){
  #mobile-ranking-anchor{margin-top:23px}
  #mobile-ranking-anchor .ranking-panel{height:min(68dvh,690px);min-height:370px;border:1px solid #d9e8f2;border-radius:12px;overflow:hidden}
  #mobile-ranking-anchor .rank-row{gap:12px}
  #mobile-ranking-anchor .rank-info strong{font-size:14px}
}

/* Mỗi thẻ đơn ôm theo chiều rộng ảnh, giới hạn bởi chỗ cho tiền và nút trạng thái. */
.entry .bubble{flex:0 1 auto;width:min(100%,var(--order-card-width,690px))}
.entry .image-grid{display:flex;align-items:center;justify-content:center;width:calc(100% - 24px);max-width:none;background:transparent}
.entry .image-grid img{display:block;flex:0 1 auto;min-width:0;width:auto;height:auto;max-width:100%;max-height:208px;object-fit:contain;background:transparent}
.entry .image-grid.many{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.entry .image-grid.many img{width:100%;height:90px;max-height:90px;object-fit:contain}
@media(max-width:690px){.entry .image-grid.many img{height:65px;max-height:65px}}

/* Màu nền và trạng thái thẻ Chốt đơn theo bản giao diện đã duyệt. */
.sidebar,.details{background:#d9ecf8}
.details .revenue-strip{background:transparent}
.feed{background:#eaf2f8}
.entry:not(.incomplete):not(.sending) .bubble{border:1px solid #f5b982;box-shadow:0 5px 17px #38587420,0 1px 4px #d5975040}
.entry:not(.incomplete):not(.sending):has(.delivered.checked) .bubble{border:1px solid #36b57f;box-shadow:0 5px 17px #38587420,0 1px 4px #34a87438}

/* Nút trạng thái gọn và số tiền mềm nét theo bản demo. */
.order-actions .money{font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;font-size:19px;font-weight:600;letter-spacing:-.015em;line-height:1.25}
.order-controls{display:flex;align-items:center;gap:8px}
.order-actions .delivered{min-width:103px;height:32px;padding:0 5px 0 10px;gap:6px;align-items:center;justify-content:space-between;line-height:1;font-size:12px}
.order-actions .delivered .status-text{display:flex;align-items:center;align-self:stretch;white-space:nowrap}
.order-actions .status-track{width:30px;height:18px;padding:2px}
.order-actions .status-track span{width:14px;height:14px}
.order-actions .delivered.checked .status-track span{transform:translateX(12px)}
@media(max-width:690px){
  .order-actions .money{font-size:17px}
  .order-actions .delivered{min-width:92px;height:31px;padding:0 4px 0 7px;gap:3px;font-size:11px}
  .order-actions .status-track{width:27px;height:17px}
  .order-actions .status-track span{width:13px;height:13px}
  .order-actions .delivered.checked .status-track span{transform:translateX(10px)}
}

.mobile-stat-label,.mobile-menu{display:none}
.date-desktop{display:inline}
@media(max-width:690px){
  .topbar{min-height:56px;height:56px;padding:6px 10px;gap:8px}
  .mobile-mark.logo-surface{width:40px;height:40px}
  .heading h1{font-size:18px;white-space:nowrap}
  .subhead{display:none}
  .top-actions{gap:2px}
  .top-actions .icon-button{display:grid;place-items:center;width:35px;height:38px}
  .top-actions .icon-button svg{width:20px;height:20px}
  .mobile-menu:not(.hidden){display:grid;position:absolute;top:55px;right:9px;z-index:26;width:min(264px,calc(100vw - 20px));padding:9px;background:#fff;border:1px solid #d8e8f4;border-radius:12px;box-shadow:0 12px 32px #193f6429}
  .mobile-menu-heading{padding:5px 10px 7px;color:#6d8296;font-size:12px;font-weight:700}
  .mobile-menu button{min-height:42px;display:flex;align-items:center;gap:10px;width:100%;padding:7px 10px;border:0;border-radius:8px;text-align:left;background:transparent;color:#1d4263;font-size:14px;font-weight:650}
  .mobile-menu button:hover,.mobile-menu button.current{background:#e9f4ff;color:#125c9b}
  .mobile-menu button svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .mobile-menu button .menu-selected{display:none;margin-left:auto}
  .mobile-menu button.current .menu-selected{display:block}
  #mobile-account{margin-top:5px;border-top:1px solid #e6eef4;border-radius:0;font-size:13px}
  .mobile-nav{display:none}
  .full-stat-label{display:none}
  .mobile-stat-label{display:inline}
  .revenue-strip{top:56px;display:grid;grid-template-columns:1fr 1fr .9fr;gap:0;min-height:64px;padding:6px 7px;background:#f6fbff}
  .revenue-strip .stat{min-width:0;min-height:50px;padding:3px 5px;gap:4px;border:0;border-radius:0;background:transparent;box-shadow:none}
  .revenue-strip .stat+.stat{border-left:1px solid #d9e7f1}
  .revenue-strip .stat-icon{width:25px;height:25px;border-radius:7px}
  .revenue-strip .stat-icon svg{width:17px;height:17px}
  .revenue-strip .stat-copy{min-width:0}
  .revenue-strip .stat small{font-size:10px;line-height:1.12;letter-spacing:0;font-weight:650;white-space:nowrap;color:#39566d}
  .revenue-strip .stat strong{display:block;margin-top:3px;font-size:clamp(11px,3.1vw,15px);line-height:1.2;white-space:nowrap}
  .revenue-strip .orders-stat{grid-column:auto}
  .revenue-strip .orders-stat .stat-copy{display:block}
  .revenue-strip .orders-stat small{display:none}
  .revenue-strip .orders-split{display:flex;gap:5px;flex-wrap:nowrap;margin:3px 0 0;font-size:10px;line-height:1.1;white-space:nowrap}
  .revenue-strip .orders-split span+span:before{content:'·';margin-right:5px;color:#9eb5c7}
  .revenue-strip .orders-split span:first-child,.revenue-strip .orders-split span:first-child b{color:#b75322}
  .feed{padding:10px 9px 18px}
  .date-marker{justify-content:flex-start;padding:1px 0 9px}
  .date-marker span{padding:5px 10px;border-radius:18px;font-size:11px}
  .date-desktop{display:none}
  .entry{max-width:none;margin-bottom:12px;gap:0}
  .entry>.avatar{display:none}
  .entry .bubble{display:grid;grid-template-columns:minmax(94px,34%) minmax(0,1fr);column-gap:9px;width:100%;max-width:none;flex:1}
  .entry-head{grid-column:1/-1;grid-row:1;padding:8px 9px 6px}
  .entry-head strong{font-size:12px}
  .entry .image-grid,.entry .image-grid.many{grid-column:1;grid-row:2/4;width:auto;height:126px;margin:1px 0 0 9px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#f0f5f8}
  .entry .image-grid img{width:100%;height:100%;max-height:none;object-fit:contain}
  .entry .image-grid.many{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}
  .entry .image-grid.many img{height:100%;max-height:100%;object-fit:contain}
  .entry .order-actions{display:contents}
  .entry .order-actions .money{grid-column:2;grid-row:2;margin:2px 9px 4px 0;font-size:17px;white-space:normal;line-height:1.2}
  .entry .order-message{grid-column:2;grid-row:3;min-width:0;padding:0 9px 3px 0;font-size:12.5px;line-height:1.36;overflow-wrap:anywhere}
  .entry .order-controls{grid-column:1/-1;grid-row:4;display:flex;justify-content:flex-end;min-width:0;gap:7px;padding:1px 9px 9px}
  .entry .order-controls .edit-btn{min-height:32px;padding:4px 5px}
  .entry .order-controls .delivered{margin:0}
  .entry .notes,.entry .entry-warning{grid-column:1/-1}
  .entry .notes{margin:0 9px 8px}
  .entry .entry-warning{margin:0 9px 9px}
  .entry .image-warning{grid-column:1;grid-row:2/4;margin:5px 0 0 9px}
  .composer-wrap{padding:6px 8px;border-top-color:#d7e6f1}
  .composer{gap:6px}
  .composer .attach{width:32px;min-width:32px;height:42px}
  .composer .attach>span:last-child{display:none}
  .composer textarea{min-height:42px;padding:10px 9px;font-size:13px}
  .composer .send{height:42px;padding:0 9px;font-size:12px}
  .toast{bottom:76px}
}
@media(max-width:360px){
  .revenue-strip .stat-icon{display:none}
  .revenue-strip .stat{padding-inline:4px}
  .revenue-strip .orders-split{font-size:9px;gap:2px}
  .entry .bubble{grid-template-columns:minmax(85px,32%) minmax(0,1fr)}
}

/* PC: bảng màu và chữ theo hai mẫu đã duyệt. Giữ bố cục và nghiệp vụ hiện tại. */
@media(min-width:1171px){
  .app{font-family:system-ui,"Segoe UI",Arial,sans-serif;color:#193a40}
  .sidebar,.details{background:#eaf8f5}
  .sidebar{border-right-color:#d5e9e4}
  .details{border-left:1px solid #d5e9e4}
  .brand strong{color:#193f43;font-size:16px;font-weight:750;letter-spacing:.012em;line-height:1.27}
  .brand small,.side-bottom small{color:#6a8587}
  .workspace-label{color:#637f80}
  .space{color:#355658}
  .space:hover,.space.active{background:#d8efea;color:#0f6d67}
  .space-icon{background:#f7fcfa;color:#477f7a}
  .space.active .space-icon{background:#c6eae2;color:#0c766e}
  .space-count{background:#0e766e}
  .side-bottom{border-top-color:#cfe5df}
  .side-bottom strong,.account-button{color:#214b4b}
  .avatar{background:#d9f1eb;color:#116c67}
  .main,.feed{background:#f4faf8}
  .topbar{border-bottom-color:#d9e9e5}
  .heading h1{font-size:23px;line-height:1.18;font-weight:720;letter-spacing:-.025em;color:#193b42}
  .subhead{color:#718a8d}
  .live-dot{background:#199a76}
  .icon-button{color:#4e767a}
  .icon-button:hover{background:#e7f5f1}
  .icon-button svg,.space-icon svg,.stat-icon svg,.attach svg,.send svg{stroke-width:1.85}
  .details-header{color:#173d42;border-bottom-color:#d9e9e5;font-weight:700}
  .details .revenue-strip{background:transparent;border-bottom-color:#d9e9e5}
  .details .stat{border-color:#d7e9e4;border-radius:11px;background:#fff;box-shadow:0 2px 8px #1749400b}
  .details .stat small{color:#557478;letter-spacing:.012em}
  .details .stat strong{color:#183f46;font-weight:700;letter-spacing:-.025em}
  .details .stat.month strong{color:#0d7669}
  .day-icon,.month-icon{background:#e2f5ef;color:#0c8279}
  .orders-icon{background:#fff0df;color:#c06b30}
  .orders-split{color:#647f80}
  .orders-split b{color:#214548}
  .detail-section{border-bottom-color:#d9e9e5}
  .detail-section h3{color:#1b4448}
  .detail-section p{color:#577477}
  .archive-all{background:#f7fcfa;color:#226a65}
  .archive-all:hover{background:#dff2ec}
  .date-marker span{background:#e0f1ec;color:#456f6b}
  .entry .bubble{border-radius:11px}
  .entry:not(.incomplete):not(.sending) .bubble{border-color:#edb788;box-shadow:0 5px 16px #2a5c4b1a,0 1px 3px #b78a6130}
  .entry:not(.incomplete):not(.sending):has(.delivered.checked) .bubble{border-color:#36ac7c;box-shadow:0 5px 16px #2a5c4b1a,0 1px 3px #36ac7c28}
  .entry-head strong{color:#1f484b;font-weight:700}
  .entry-head time{color:#7b9494}
  .image-grid img{background:#f6fbf9}
  .order-actions .money{font-family:system-ui,"Segoe UI",Arial,sans-serif;font-size:20px;font-weight:650;letter-spacing:-.025em;line-height:1.24;color:#193f46}
  .order-actions .edit-btn{color:#0f746d;font-weight:700}
  .order-message{color:#38575b}
  .order-message a{color:#0e766e}
  .notes{background:#f2faf7;border-left-color:#85c9b7;color:#486760}
  .order-actions .delivered{min-width:83px;height:26px;padding:0 4px 0 7px;gap:4px;font-size:10px;font-weight:700;background:#ffe9da;color:#aa5638}
  .order-actions .delivered:hover{background:#ffddc6}
  .order-actions .delivered.checked{min-width:99px;background:#dcf3e6;color:#237752}
  .order-actions .delivered.checked:hover{background:#caecd9}
  .order-actions .status-track{width:24px;height:14px;padding:2px}
  .order-actions .status-track span{width:10px;height:10px}
  .order-actions .delivered.checked .status-track span{transform:translateX(10px)}
  .composer-wrap{border-top-color:#d8e9e4}
  .composer textarea{border-color:#cfe5df;color:#274d4b}
  .composer textarea:focus{border-color:#0c8279;outline:2px solid #bee9df;outline-offset:0}
  .attach{color:#0d7c73}
  .send{background:#0f766e}
  .send:hover{background:#0a625b}
  .composer-hint{color:#789293}
  .search-bar{border-bottom-color:#d9e9e5}
  .search-bar input{border-color:#cfe5df;outline-color:#0c8279}

  /* Báo cáo dùng sắc tím riêng; vị trí biểu đồ, BXH và thao tác giữ nguyên. */
  .app:has(#report-view:not(.hidden)) .sidebar{background:#f2eeff;border-right-color:#e4ddf4}
  .app:has(#report-view:not(.hidden)) .space.active{background:#e4dcfa;color:#5d4ba7}
  .app:has(#report-view:not(.hidden)) .space.active .space-icon{background:#d8cdf6;color:#624eae}
  .app:has(#report-view:not(.hidden)) .space-count{background:#6e57b5}
  .app:has(#report-view:not(.hidden)) .main{background:#f7f5fd}
  .app:has(#report-view:not(.hidden)) .details{background:#f2eeff;border-left-color:#e4ddf4}
  .report-body{border-color:#e5dff4;box-shadow:0 3px 14px #4b408710}
  .report-head h2,.report-body h3{color:#3c3367}
  .report-head label,.report-help{color:#777195}
  .report-head input{border-color:#d9d0ee;color:#413771}
  .report-summary>div:first-child{background:#f0ecff;border-left-color:#6e57b5}
  .report-summary>div:nth-child(2){background:#eaf7f2;border-left-color:#43a282}
  .report-summary small{color:#6d638e}
  .report-summary strong{color:#3d356a}
  .report-chart{border-color:#e5dff4}
  .chart-track{background:#f0ecf9}
  .chart-track i{background:#6e57b5}
  .ranking-panel{background:#f7f5fd}
  .ranking-intro{background:#f1ecff;border-bottom-color:#e3dcf3}
  .ranking-heading h2{color:#3b3268}
  .ranking-heading p{color:#7c7299}
  .customer-ranking{scrollbar-color:#c7bee2 transparent}
  .rank-row{border-color:#e4ddf2;box-shadow:0 2px 7px #5b4c8710}
  .rank-info strong{color:#3b3268}
  .rank-amount{color:#6550ad}
  .ranking-actions{border-top-color:#e3dcf3}
  .ranking-more{background:#eee9fc;border-color:#c7b8ee;color:#624eaa}
  .ranking-more:hover{background:#e2d9f8}
}

/* Nợ đơn cần sản xuất: hai dòng chung một lề, số tồn nổi rõ. */
@media(min-width:1171px){
  .details .orders-stat .orders-split{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;line-height:1.35}
  .details .orders-stat .orders-split>span{display:block}
  .details .orders-stat .orders-split>span+span:before{content:none}
  .details .orders-stat .orders-split>span:first-child,
  .details .orders-stat .orders-split>span:first-child b{color:#b42318;font-weight:750}
}
@media(max-width:690px){
  .revenue-strip .orders-split>span:first-child,
  .revenue-strip .orders-split>span:first-child b{color:#b42318}
}

/* Mobile: giữ vùng đơn rộng, hai ô tổng hợp và hàng trạng thái như mẫu đã duyệt. */
.mobile-order-status,.mobile-stat-meta,.mobile-report-title,.mobile-report-counts,.mobile-chart-heading,.report-chart-mobile,.mobile-ranking-title{display:none}
.orders-scroll{display:flex;flex:1;flex-direction:column;min-height:0}
@media(max-width:690px){
  .orders-scroll{display:block;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;background:#f5fbfa}
  .orders-scroll .feed{display:block;flex:none;min-height:0;overflow:visible}
  .app{font-family:system-ui,"Segoe UI",Arial,sans-serif;color:#1b3b41}
  .main,.feed{background:#f5fbfa}
  .topbar{min-height:74px;padding:10px 14px;background:#fff;border-bottom:1px solid #dcece9}
  .mobile-menu:not(.hidden){top:68px;border-color:#d8e8e5}
  .mobile-menu button.current{background:#e5f5f1;color:#0d756d}
.app.showing-report .mobile-menu button.current{background:#f0ecff;color:#6251ac}
.space-count{display:grid;place-items:center;flex:none;min-width:24px;height:24px;padding:0 5px;border-radius:999px;font-size:12px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums}
.menu-unread{display:grid;place-items:center;flex:none;min-width:24px;height:24px;padding:0 5px;border-radius:999px;background:#0e766e;color:#fff;font-size:12px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums}
  .mobile-mark.logo-surface{width:38px;height:38px;border-radius:50%;background:#0c7b76;font-size:17px}
  .heading h1{font-size:23px;font-weight:760;letter-spacing:-.025em;color:#1b3b41}
  .heading .subhead{display:none}
  .top-actions{gap:0}
  .icon-button{width:37px;height:42px;color:#245a5e}
  .icon-button svg{width:22px;height:22px}
  #notification-settings{display:none}
  .revenue-strip{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;margin:12px 12px 8px;padding:13px 12px;min-height:106px;border:0;border-radius:17px;background:#1b3e43;color:#fff;box-shadow:none}
  .revenue-strip .stat{min-width:0;min-height:80px;display:block;border:0;border-radius:0;background:none;padding:4px 8px 2px;box-shadow:none}
  .revenue-strip .stat:first-child{border-right:1px solid #69878a}
  .revenue-strip .stat.month{padding-left:15px}
  .revenue-strip .orders-stat,.revenue-strip .stat-icon{display:none}
  .revenue-strip .stat small{margin:0 0 8px;color:#d2dfdf;font-size:10px;font-weight:750;letter-spacing:.035em;white-space:normal;min-height:24px}
  .revenue-strip .stat strong,.revenue-strip .stat.month strong{display:block;color:#fff;white-space:normal;overflow-wrap:anywhere;font-size:clamp(20px,5.6vw,27px);line-height:1.08;font-weight:740;letter-spacing:-.025em}
  .revenue-strip .stat:first-child strong{font-size:clamp(27px,7vw,36px)}
  .mobile-stat-meta{display:block;margin-top:10px;color:#d4e0e0;font-size:11px;white-space:nowrap}
  .mobile-stat-meta b{font-weight:700}
  .mobile-order-status{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:40px;margin:0 12px 8px;color:#1a3e42}
  .mobile-order-status>strong{font-size:clamp(13px,3.6vw,16px);line-height:1.2;white-space:nowrap}
  .mobile-order-status>span{display:inline-flex;justify-content:center;gap:3px;min-width:0;padding:7px 8px;border-radius:20px;font-size:clamp(10px,2.9vw,13px);font-weight:720;white-space:nowrap}
  .mobile-order-status .status-done{background:#e5f7f1;color:#086d59}
  .mobile-order-status .status-waiting{background:#fff0e5;color:#a34f2c}
  .feed{padding:0 12px 16px}
  .date-marker{padding:7px 0 10px}
  .date-marker span{font-size:12px;background:#e2f2ee;color:#376f69}
  .entry{display:block;width:100%;max-width:none;margin:0 0 12px}
  .entry>.avatar{display:none}
  .entry .bubble{width:100%!important;max-width:none;display:grid;grid-template-columns:clamp(92px,27vw,116px) minmax(0,1fr);column-gap:11px;padding:11px;border-radius:15px;box-shadow:0 4px 14px #17494714}
  .entry:not(.incomplete):not(.sending) .bubble{border-color:#eab68f;box-shadow:0 4px 14px #17494714}
  .entry:not(.incomplete):not(.sending):has(.delivered.checked) .bubble{border-color:#aedfc9;box-shadow:0 4px 14px #17494714}
  .entry-head{grid-column:1/-1;display:flex;padding:0 0 10px;align-items:center}
  .entry-head strong{color:#627b7c;font-size:12px;font-weight:700}
  .entry-head time{font-size:12px;color:#779296}
  .entry .image-grid{grid-column:1;grid-row:2/4;width:100%;height:104px;margin:0;border-radius:7px;align-self:start;background:#f5f9f8;overflow:hidden}
  .entry .image-grid img{max-width:100%;max-height:104px;width:100%;height:104px;object-fit:contain}
  .entry .image-grid.many{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
  .entry .image-grid.many img{height:auto;max-height:none;width:100%;aspect-ratio:1;object-fit:cover}
  .entry .image-warning{grid-column:1;grid-row:2/4;margin:0;font-size:12px}
  .entry .order-actions{display:contents}
  .entry .order-actions .money{grid-column:2;grid-row:2;align-self:start;margin:0;color:#1a3e43;font:730 clamp(17px,4.7vw,21px)/1.2 system-ui,"Segoe UI",sans-serif;letter-spacing:-.025em;white-space:normal;overflow-wrap:anywhere}
  .entry .order-message{grid-column:2;grid-row:3;align-self:start;min-width:0;margin:5px 0 0;padding:0;color:#405d62;font-size:12px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
  .entry .order-message a{color:#285f62}
  .entry .order-controls{grid-column:1/-1;grid-row:4;display:flex;justify-content:space-between;flex-direction:row-reverse;align-items:center;gap:8px;margin:10px 0 0;padding:9px 0 0;border-top:1px solid #e6eeee}
  .entry .order-actions .delivered,.entry .order-actions .delivered.checked{min-width:104px;height:28px;padding:0 5px 0 9px;gap:5px;border-radius:18px;font-size:11px;font-weight:700}
  .entry .order-actions .delivered{background:#ffebdd;color:#9b4526}
  .entry .order-actions .delivered.checked{background:#e5f7ef;color:#146d54}
  .entry .status-track{width:29px;height:17px;padding:2px}
  .entry .status-track span{width:13px;height:13px;background:#c65b32}
  .entry .delivered.checked .status-track span{transform:translateX(12px);background:#117357}
  .entry .order-actions .edit-btn{font-size:12px;color:#0d766c;padding:5px 2px}
  .entry .notes{grid-column:1/-1;grid-row:5;margin:10px 0 0;padding:7px 9px;background:#f4faf8;border-left-color:#86c8b5;color:#4d6968;font-size:12px}
  .entry .entry-warning{grid-column:1/-1;grid-row:6;margin:7px 0 0;font-size:12px}
  .entry .saving-state{grid-column:1/-1;grid-row:4;margin:9px 0 0}
  .composer-wrap{padding:9px 12px max(10px,env(safe-area-inset-bottom));border-top:1px solid #dcece8}
  .composer{align-items:center;gap:8px}
  .attach{width:34px;height:41px;color:#11786e}
  .attach span{display:none}
  .composer textarea{height:42px;min-height:42px;padding:10px 11px;font-size:14px;border-color:#c9e1dd;border-radius:10px}
  .send{height:42px;padding:0 11px;font-size:12px;background:#0b7771;border-radius:10px}
  .send:hover{background:#07635e}
  .composer-hint{display:none}
  .mobile-nav{display:none}
  .app.showing-report .main,.app.showing-report .report-view{background:#f8f6ff}
  .app.showing-report .mobile-mark.logo-surface{background:#6654b2}
  .app.showing-report .heading h1{color:#383166}
  .app.showing-report .icon-button{color:#4f438d}
  .report-view{padding:0 14px 22px}
  .report-body{position:relative;display:flex;flex-direction:column;max-width:none;padding:17px 0 30px;border:0;background:transparent;box-shadow:none}
  .report-head{display:contents}
  .report-head h2{display:none}
  .report-controls{position:absolute;top:12px;right:0;display:block}
  .report-controls>button{display:none}
  .report-controls label{font-size:0}
  .report-controls label input{font-size:12px;width:132px;margin:0;padding:8px 5px;border:0;border-radius:20px;background:#f0ecff;color:#554798;font-weight:700}
  .mobile-report-title{display:block;padding-right:138px;min-height:40px;margin:0 0 12px;color:#383166;font-size:clamp(18px,5vw,22px);font-weight:760;white-space:nowrap;letter-spacing:-.025em}
  .report-summary{display:block;margin:0 0 14px}
  .report-summary>div:first-child{padding:19px 17px 17px;min-height:139px;border:0;border-radius:17px;background:#372f67;box-shadow:none}
  .report-summary>div:first-child small{font-size:11px;color:#d8d2ed;font-weight:700}
  .report-summary>div:first-child strong{margin-top:12px;color:#fff;font-size:clamp(24px,7vw,33px);font-weight:740;letter-spacing:-.03em}
  .report-summary>div:nth-child(2){display:none}
  .mobile-report-counts{display:flex;justify-content:space-between;gap:6px;margin-top:16px;padding-top:12px;border-top:1px solid #6b6294;color:#e8e4f4;font-size:clamp(10px,3vw,12px)}
  .mobile-report-counts span{white-space:nowrap}
  .mobile-report-counts b{font-size:inherit}
  .mobile-chart-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 2px;margin:7px 0 0;color:#383166}
  .mobile-chart-heading strong{font-size:17px}
  .mobile-chart-heading button{border:0;background:none;color:#5f4fb0;font-size:12px;font-weight:750;padding:8px 2px;white-space:nowrap}
  .report-chart{display:none}
  .report-chart-mobile{display:block;min-height:183px;padding:13px 11px 10px;margin:5px 0 17px;border:1px solid #e3ddf4;border-radius:15px;background:#fff;box-shadow:0 3px 12px #4d3c9010}
  .report-chart-mobile svg{display:block;width:100%;height:147px}
  .report-chart-mobile>div{display:flex;justify-content:space-between;margin:-2px 5px 0;color:#857e9d;font-size:11px}
  .mobile-ranking-title{display:block;margin:0 2px 10px;font-size:18px;font-weight:760;color:#383166}
  #mobile-ranking-anchor{margin:0 0 17px}
  #mobile-ranking-anchor .ranking-panel{height:auto;min-height:0;border:0;border-radius:0;background:transparent;overflow:visible}
  #mobile-ranking-anchor .ranking-intro{display:none}
  #mobile-ranking-anchor .customer-ranking{height:auto;max-height:none;overflow:visible;padding:0}
  #mobile-ranking-anchor .rank-row{align-items:center;gap:11px;padding:9px 11px;margin-bottom:7px;border-color:#e0daf0;border-radius:13px;box-shadow:0 2px 9px #5444920b}
  #mobile-ranking-anchor .rank-leading{width:30px}
  #mobile-ranking-anchor .rank-number{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#8b85a7;font-size:14px}
  #mobile-ranking-anchor .rank-1 .rank-number{background:#d3a03c}
  #mobile-ranking-anchor .rank-2 .rank-number{background:#9aa9bc}
  #mobile-ranking-anchor .rank-3 .rank-number{background:#ba8361}
  #mobile-ranking-anchor .rank-medal{display:none}
  #mobile-ranking-anchor .rank-info{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center}
  #mobile-ranking-anchor .rank-info strong{grid-column:1;font-size:13px;color:#383166}
  #mobile-ranking-anchor .rank-info small{display:none}
  #mobile-ranking-anchor .rank-info .rank-amount{grid-column:2;grid-row:1;font-size:13px;color:#6252ac}
  #mobile-ranking-anchor .rank-1 .rank-amount{color:#ab7924}
  #mobile-ranking-anchor .ranking-actions{padding:4px 0 0;border:0;background:transparent}
  #mobile-ranking-anchor .ranking-more{min-height:40px;border-color:#dcd4f6;background:#f1edff;color:#5e4dab;font-size:13px}
  #mobile-ranking-anchor .ranking-merge{min-height:38px;color:#574b92;border-color:#e3ddf4}
  .ranking-head h3{color:#383166;font-size:17px}
  .report-help{line-height:1.45}
  .report-view .ranking{max-height:none}
}
@media(max-width:350px){
  .mobile-order-status{flex-wrap:wrap}
  .mobile-order-status>strong{width:100%}
  .mobile-report-title{font-size:17px}
  .report-controls label input{width:120px}
  .entry .bubble{grid-template-columns:90px minmax(0,1fr);column-gap:8px}
}

/* Các thao tác mới theo hệ màu của từng khu vực. */
.day-filter{display:none}
.date-marker button{border:0;border-radius:20px;padding:6px 12px;background:#e0f1ec;color:#456f6b;font-size:12px;font-weight:700;line-height:1.3}
.date-marker button:hover{background:#d0eae1}
.feed-more{display:block;margin:8px auto 18px;padding:9px 16px;border:1px solid #b9dcd3;border-radius:20px;background:#fff;color:#0d756c;font-size:12px;font-weight:750}
.date-marker .all-days-filter{display:none}
.date-marker button span{background:none!important;padding:0!important;border-radius:0!important;color:inherit!important;font-size:inherit!important}
.date-mobile-caret{display:none}
.order-debt,.order-credit{margin:3px 13px 5px;font-size:13px;font-weight:750;color:#bb302b}
.order-debt{display:block;width:fit-content;max-width:calc(100% - 26px);border:1px solid #f2c9ba;border-radius:7px;background:#fff4ed;padding:5px 8px;text-align:left;line-height:1.3}
button.order-debt:hover{background:#ffe8d9}
.order-controls .debt-action{color:#ae5a37}
.order-credit{color:#117858}
.rich-red{color:#c0392b}.rich-orange{color:#c36a20}.rich-green{color:#16805e}.rich-blue{color:#3763b0}.rich-purple{color:#6753b5}
.composer .message-input{display:block;flex:1;min-width:0;min-height:56px;padding:13px 12px;border:1px solid #cfe5df;border-radius:10px;background:#fff;color:#274d4b;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;outline:0;overflow-y:auto}
.composer .message-input:focus{border-color:#0c8279;box-shadow:0 0 0 2px #bee9df}
.message-input:empty:before{content:attr(data-placeholder);color:#98aab0;pointer-events:none}
.composer-wrap{position:relative}
.detailed-create{position:absolute;right:23px;top:-41px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #b8dad1;border-radius:9px;background:#edf8f5;color:#0d756c;box-shadow:0 2px 8px #163e3520}
.detailed-create svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.detailed-create:hover{background:#d9f0e9}
.format-toolbar{display:flex;align-items:center;gap:5px;padding:4px 0 8px 47px;overflow-x:auto}
.format-toolbar button{flex:none;min-width:29px;height:29px;border:1px solid #d7e7e4;border-radius:7px;background:#fff;color:#375f60;font-size:12px;font-weight:700}
.format-toolbar .red{color:#c0392b}.format-toolbar .orange{color:#c36a20}.format-toolbar .green{color:#16805e}.format-toolbar .blue{color:#3763b0}
.rich-form-row .format-toolbar{padding:0 0 7px}.rich-form-input{min-height:41px;max-height:230px;overflow:auto;border:1px solid #d5e2e8;border-radius:7px;padding:10px;color:#2a4355;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;outline:0}.rich-form-input:focus{border-color:#0c8279;box-shadow:0 0 0 2px #bee9df}#form-note.rich-form-input{min-height:62px}
.profile-birthday{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 14px;margin:15px 0;border:1px solid #d6e9e4;border-radius:10px;background:#f5fbf9}
.profile-birthday div{display:grid;gap:3px}.profile-birthday small{color:#63817f}.profile-birthday strong{color:#184a48}
.profile-birthday button{border:1px solid #b8ddd5;border-radius:8px;background:#fff;color:#087b70;padding:8px 12px;font-weight:700;cursor:pointer}
.birthday-reminders{display:grid;gap:9px}.birthday-reminders>div{display:grid;gap:4px;padding:12px;border:1px solid #d6e9e4;border-radius:9px;background:#f5fbf9}.birthday-reminders span{color:#567376}
.birthday-alert{position:relative}.birthday-alert::after{content:"";position:absolute;right:3px;top:2px;width:8px;height:8px;border-radius:50%;background:#d45737}
.order-context-menu{position:fixed;z-index:19;min-width:238px;padding:6px;border:1px solid #d5e8e4;border-radius:10px;background:#fff;box-shadow:0 12px 35px #163d3c38}
.order-context-menu button{display:block;width:100%;min-height:43px;padding:9px 12px;border:0;border-radius:7px;background:transparent;color:#154d48;text-align:left;font-size:14px;font-weight:700}
.order-context-menu button:hover,.order-context-menu button:focus-visible{background:#e8f6f1}
.clone-image-list{margin:12px 0 4px;color:#1b4b47;font-size:14px}.clone-image-list .file-preview{margin-top:9px}
@media(max-width:690px){
  .entry .bubble{-webkit-touch-callout:none;user-select:none}
  .order-context-menu{left:12px!important;right:12px;top:auto!important;bottom:118px;border-radius:13px;padding:8px}
  .order-context-menu button{min-height:49px;font-size:15px}
}
.feed-empty{max-width:480px;margin:30px auto;padding:18px;text-align:center;color:#426966;background:#fff;border:1px solid #d8e9e5;border-radius:12px}.feed-empty p{margin:0 0 13px;font-size:14px}.feed-empty p:last-child{margin-bottom:0}.feed-empty button{border:0;border-radius:8px;background:#0d8177;color:#fff;padding:10px 16px;font-size:13px;font-weight:750}
.debt-field{border-left:3px solid #d1835e;padding:0 0 0 11px}.debt-field small{display:block;margin:5px 0;color:#6d8584;font-size:12px;line-height:1.35}
.chart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 8px;color:#3c3367;font-weight:750;font-size:16px}
.chart-modes{display:flex;padding:3px;background:#f0ecff;border-radius:9px;gap:3px}
.chart-modes button{padding:7px 11px;border:0;border-radius:7px;background:transparent;color:#706493;font-size:12px;font-weight:700;white-space:nowrap}
.chart-modes button.active{background:#fff;color:#5c4aa8;box-shadow:0 1px 5px #3021651a}
.report-chart{max-height:none;min-height:270px;overflow:visible;padding:16px 15px 12px;background:#fff;border-radius:12px}
.report-chart svg,.report-chart-mobile svg{display:block;width:100%;height:212px;overflow:visible}
.report-chart circle,.report-chart-mobile circle{cursor:pointer;touch-action:manipulation}
.chart-detail{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#59469e;font-size:13px;margin:4px 14px 0}
.chart-detail span{color:#837ba0;font-size:11px}
.chart-axis{display:flex;justify-content:space-between;margin:8px 14px 0;color:#8982a3;font-size:11px}
.debts-view{flex:1;overflow:auto;background:#f4faf8;padding:24px;min-width:0}
@media(min-width:1171px){.app.showing-debts{grid-template-columns:298px minmax(0,1fr)}.app.showing-debts .details{display:none}}
.debts-head,.debt-totals,.debt-card{max-width:1000px;margin-left:auto;margin-right:auto}
.debts-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.debts-head h2{margin:0;color:#193f43;font-size:22px}.debts-head p{margin:5px 0 0;color:#6e8787;font-size:13px}
.debts-head button,.debt-card-actions button{border:1px solid #b9dcd3;border-radius:9px;background:#ecf8f4;color:#0d756c;padding:10px 13px;font-size:13px;font-weight:750}
.debts-head button{background:#0e766e;color:#fff;border-color:#0e766e;white-space:nowrap}
.debt-totals{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.debt-totals>div{padding:18px 20px;background:#fff;border:1px solid #dbece7;border-radius:13px}
.debt-totals small{display:block;color:#6e8886;font-weight:750;font-size:11px;letter-spacing:.05em}.debt-totals strong{display:block;margin-top:8px;color:#bd3e36;font-size:23px}
.debt-totals>div+div strong{color:#0c766b}
.debt-search{max-width:1000px;margin:0 auto 12px;display:flex;flex-wrap:wrap;gap:8px}.debt-search input{flex:1 1 215px;min-width:0;border:1px solid #d1e7e1;background:#fff;border-radius:10px;padding:12px 14px;color:#214648;outline-color:#0e766e}
.debt-search select{flex:0 1 auto;max-width:100%;border:1px solid #d1e7e1;background:#fff;border-radius:10px;padding:10px;color:#214648}
.debt-card{padding:16px 18px;margin-bottom:10px;background:#fff;border:1px solid #d8e9e4;border-radius:13px;box-shadow:0 3px 12px #2a62530b}
.debt-card-top{display:flex;align-items:start;justify-content:space-between;gap:15px}.debt-card-top strong{display:block;color:#22464a;font-size:16px}.debt-card-top small{display:block;color:#7d9292;margin-top:4px;font-size:12px}
.debt-card-top>b{white-space:nowrap;color:#0c766b;font-size:15px}.debt-card-top>b.owes,.owes{color:#bd342c}.debt-card-top>b.prepaid{color:#15745b}
.debt-card-stats{display:flex;flex-wrap:wrap;gap:8px 24px;padding:12px 0;color:#668081;font-size:12px}.debt-card-stats b{color:#1d4649}
.debt-card-actions{display:flex;flex-wrap:wrap;gap:8px}.debt-card-actions button{padding:7px 10px;background:#f6fbf9;font-size:12px}
.debt-empty{color:#6d8686;text-align:center;margin:30px}
.debt-history{max-height:350px;overflow:auto}.debt-history>div{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #e7efed;font-size:12px}.debt-history>div span{flex:1}.debt-history>div .paid{color:#137b62}.debt-history button{border:0;background:transparent;color:#aa423c;font-size:20px}
@media(max-width:690px){
  .day-filter{display:block;height:0;padding:0;overflow:visible}
  .day-filter button{display:none}
  .day-filter button{border:0;border-radius:20px;padding:7px 11px;background:#e3f2ee;color:#376f69;font-size:12px;font-weight:750}
  #day-filter-reset{background:none;color:#0c766e}
  #day-filter-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
  .date-marker{justify-content:space-between;align-items:center;gap:8px}
  .date-marker button{font-size:12px}.date-marker .all-days-filter{display:block;background:#e3f2ee;color:#376f69}.date-mobile-caret{display:inline}.date-desktop{display:none}
  .revenue-strip .stat strong,.revenue-strip .stat.month strong,.revenue-strip .stat:first-child strong{font-size:clamp(19px,5.3vw,25px);font-weight:690;letter-spacing:-.045em;white-space:nowrap;overflow-wrap:normal}
  .revenue-strip .stat.month{padding-left:10px}.revenue-strip .stat{padding-inline:4px}.revenue-strip{padding-inline:9px}
  .entry .bubble:has(.order-debt) .order-debt,.entry .bubble:has(.order-credit) .order-credit{grid-column:2;grid-row:3;margin:3px 0 0;font-size:11px;white-space:nowrap}
  .entry .bubble:has(.order-debt) .order-debt{white-space:normal;max-width:100%}
  .entry .order-controls{gap:4px}
  .entry .order-controls .debt-action{font-size:11px}
  .entry .bubble:has(.order-debt) .order-message,.entry .bubble:has(.order-credit) .order-message{grid-row:4}
.entry .bubble:has(.order-debt) .order-controls,.entry .bubble:has(.order-credit) .order-controls{grid-row:5}

  .entry .bubble:has(.order-debt) .notes,.entry .bubble:has(.order-credit) .notes{grid-row:6}
  .entry .bubble:has(.order-debt) .entry-warning,.entry .bubble:has(.order-credit) .entry-warning{grid-row:7}
  .composer .message-input{height:42px;min-height:42px;padding:10px 11px;font-size:14px}
  .detailed-create{right:8px;top:-38px;width:31px;height:31px}
  .detailed-create svg{width:18px;height:18px}
  .format-toolbar{padding-left:3px}
  .report-chart-mobile{min-height:225px}.report-chart-mobile svg{height:158px}
  .report-chart-mobile>.chart-detail{display:flex;justify-content:space-between;margin:4px 5px 0;font-size:12px}.report-chart-mobile>.chart-detail span{display:none}
  .report-chart-mobile>.chart-axis{display:flex;justify-content:space-between;margin:6px 5px 0}
  .chart-heading{margin:11px 0 5px;align-items:center;font-size:14px}.chart-heading strong{font-size:15px}
  .chart-modes button{font-size:11px;padding:6px 7px}
  .mobile-chart-heading{justify-content:flex-end;margin:0;min-height:20px}
  .report-controls label input{width:130px}
  .debts-view{padding:15px 12px 25px}.debts-head h2{font-size:19px}.debts-head p{font-size:12px}.debts-head button{font-size:12px;padding:9px}
  .debt-totals strong{font-size:19px}.debt-card{padding:13px}.debt-card-top{display:block}.debt-card-top>b{display:block;margin-top:8px}
}

/* Shipping lives below the order content; it does not expand the primary action row. */
.shipping-line{display:flex;align-items:center;gap:6px;max-width:calc(100% - 24px);margin:8px 12px 10px;padding:6px 10px;border:1px solid #bcded7;border-radius:8px;background:#edf8f5;color:#0d7068;font:700 12px/1.3 system-ui,"Segoe UI",sans-serif;cursor:pointer;text-align:left;overflow:hidden}
.shipping-line:hover{background:#e2f3ee}
.shipping-line.has-shipment{background:#f3f8f7;border-color:#d5e9e4;color:#23535b}
.shipping-line span:not(:first-child){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shipping-line strong{color:#0d746a;white-space:nowrap;font-size:11px;margin-left:auto}
.ship-fields{display:grid;gap:9px}
.ship-field{display:grid;gap:5px;color:#375d66;font-size:13px;font-weight:700}
.ship-field input,.ship-field select,.ship-quote select{width:100%;min-height:40px;border:1px solid #c9dfde;border-radius:8px;padding:8px 10px;background:#fff;color:#163f46;font-size:14px}
.ship-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.ship-extra{border-top:1px solid #e2eded;padding-top:10px}
.ship-extra summary{color:#0e746d;font-weight:700;cursor:pointer;margin-bottom:10px}
.ship-extra[open]{display:grid;gap:9px}
.ship-alert{background:#fff2e9;color:#9a4b2d;border-radius:9px;padding:10px;font-size:13px;line-height:1.4}
.ship-settings-status,.ship-quote{padding:12px;border-radius:9px;background:#eaf6f2;color:#285b5a;font-size:13px;line-height:1.7;margin-bottom:12px}
.ship-quote{margin:12px 0 0}.ship-quote label{display:block;font-weight:700;margin-bottom:5px}
.ship-detail{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#eaf6f2;padding:12px;border-radius:9px;color:#164d4d;margin-bottom:12px}
.ship-detail strong{font-size:18px;overflow-wrap:anywhere}.ship-detail span{white-space:nowrap;color:#0d7868}
.ship-tracking{display:inline-block;color:#0c786e;margin:4px 0 10px;font-size:13px;font-weight:700}
.ship-history-title{font-size:14px;color:#20505a}.ship-history{display:grid;gap:8px;max-height:160px;overflow:auto;color:#33565e;font-size:13px}
.ship-history>div{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #e4eeee;padding-bottom:7px}
.ship-history time{color:#718a8e;white-space:nowrap}
@media(max-width:690px){.shipping-line{grid-column:1/-1;grid-row:7;margin:8px 0 0;max-width:100%;min-height:38px}.entry .bubble:has(.order-debt) .shipping-line,.entry .bubble:has(.order-credit) .shipping-line{grid-row:8}.shipping-line.has-shipment{max-width:100%}.ship-grid{gap:7px}.modal:has(.ship-fields){max-height:90dvh}.modal:has(.ship-fields) .modal-actions{position:sticky;bottom:0;background:#fff;z-index:2;flex-wrap:wrap}}

/* Bộ lọc gọn, dùng chung cho bố cục máy tính và điện thoại. */
.order-filter-bar{flex:none;display:grid;gap:7px;padding:9px 18px 10px;border-bottom:1px solid #dfebe8;background:#f5fbfa}
.day-shortcuts,.status-filters{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.day-shortcuts::-webkit-scrollbar,.status-filters::-webkit-scrollbar{display:none}
.order-filter-bar button{flex:none;min-height:32px;padding:5px 11px;border:1px solid #d5e9e4;border-radius:18px;background:#fff;color:#456d6b;font-size:12px;font-weight:700}
.order-filter-bar button.active,.order-filter-bar button[aria-pressed=true]{background:#0d7d73;border-color:#0d7d73;color:#fff}
.mobile-order-status button{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:0;padding:7px 8px;border:0;border-radius:20px;cursor:pointer;font:inherit}
.system-message{padding:10px 16px;margin-block:7px 13px}
.system-message small{font-size:10px}
.system-message div{font-size:14px}
.system-message p{margin:3px 0 0;font-size:12px}
@media(max-width:690px){
  .order-filter-bar{padding:5px 12px 8px;gap:5px}
  .order-filter-bar button{min-height:34px;padding:6px 10px}
  .mobile-order-status button{font-size:clamp(10px,2.9vw,13px);font-weight:720;white-space:nowrap}
  .mobile-order-status .status-done{background:#e5f7f1;color:#086d59}
  .mobile-order-status .status-waiting{background:#fff0e5;color:#a34f2c}
  .system-message{margin:5px 3px 12px;padding:8px 12px}
}

.customers-view{flex:1;min-height:0;overflow:auto;padding:22px clamp(14px,3vw,34px);background:#f4faf8}
.customers-head{max-width:940px;margin:auto}
.customers-head h2{margin:0 0 4px;color:#194c51;font-size:22px}
.customers-head p{margin:0 0 12px;color:#6c8588;font-size:13px}
.customers-head input{width:100%;max-width:470px;border:1px solid #cce2dc;border-radius:9px;padding:11px 13px;background:#fff;color:#194c51;font-size:14px}
.customer-list,.customer-profile{max-width:940px;margin:16px auto}
.customer-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:15px;margin:0 0 8px;background:#fff;border:1px solid #d7e9e4;border-radius:12px;text-align:left;color:#194b50}
.customer-row span{min-width:0}.customer-row strong,.customer-row small{display:block}.customer-row small{margin-top:4px;color:#71898c;font-size:12px}
.customer-row b{white-space:nowrap;color:#0d786e}.customer-row:hover,.rank-row:hover{border-color:#8fcbbd;background:#f9fdfc}
.rank-row[data-customer-profile]{width:100%;font:inherit;text-align:left;cursor:pointer}
.customer-profile{padding:20px;background:#fff;border:1px solid #d7e9e4;border-radius:14px;color:#234d52}
.customer-profile h2{margin:12px 0 4px}.customer-profile h3{font-size:16px;margin:20px 0 9px}.customer-profile>p{color:#59777a;font-size:13px;white-space:pre-wrap}
.profile-back{border:0;background:transparent;color:#0b776e;font-weight:750;padding:5px 0}
.profile-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px;margin:18px 0}
.profile-stats span{padding:11px;border-radius:9px;background:#eef8f5;color:#617c7d;font-size:12px}.profile-stats b{display:block;color:#174e52;font-size:16px;margin-top:4px}
.profile-history{display:grid;gap:6px}.profile-history>div{display:flex;align-items:center;gap:12px;padding:11px;border:1px solid #e5efec;border-radius:8px;font-size:13px}
.profile-history>div span{margin-left:auto;color:#647e81}.profile-history small{color:#789095}
@media(max-width:690px){.customers-view{padding:12px}.customer-row{display:block}.customer-row b{display:block;margin-top:7px}.customer-profile{padding:14px}.profile-history>div{display:grid;gap:4px}.profile-history>div span{margin-left:0}}
.care-group-title{margin:18px 0 7px;color:#215c5b;font-size:13px}
.reminder-text{box-sizing:border-box;width:100%;min-height:140px;padding:12px;border:1px solid #bddbd2;border-radius:9px;color:#254d4d;font:inherit;line-height:1.5;resize:vertical}
.operations-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:10px 17px;background:#f4faf8}
.operations-overview button{display:flex;align-items:center;gap:8px;padding:9px 10px;border:1px solid #d8eae4;border-radius:9px;background:#fff;color:#245354;text-align:left;cursor:pointer}
.operations-overview b{font-size:18px;color:#087b70}.operations-overview span{font-size:12px;font-weight:650}
.report-extra-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}
.report-extra-kpis span{padding:12px;border:1px solid #e2dff3;border-radius:9px;background:#fff;color:#655b85;font-size:12px}.report-extra-kpis b{display:block;margin-top:4px;color:#3b306b;font-size:17px}
@media(max-width:690px){.operations-overview{display:flex;overflow-x:auto;padding:7px 12px;scrollbar-width:none}.operations-overview button{flex:0 0 130px;padding:7px 9px}.operations-overview b{font-size:16px}.operations-overview span{font-size:11px}.report-extra-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.audit-list{display:grid;gap:7px}.audit-list details{padding:10px;border:1px solid #dae9e6;border-radius:8px;font-size:12px;color:#365b5e;overflow-wrap:anywhere}.audit-list summary{cursor:pointer;display:flex;justify-content:space-between;gap:9px}.audit-list summary span{color:#779095}.audit-list details>div,.audit-list details>small{display:block;margin-top:7px}
/* Một hàng vận hành và bộ lọc; trên điện thoại chỉ hiện hai nút chọn. */
.orders-toolbar{display:flex;align-items:center;gap:10px;flex:none;padding:7px 16px;border-bottom:1px solid #dcebe6;background:#f5fbfa;min-width:0}
.operations-overview{display:flex;flex:1;align-items:center;gap:0;min-width:0;overflow-x:auto;padding:0;background:transparent;scrollbar-width:none}
.operations-overview::-webkit-scrollbar{display:none}
.operations-overview button{flex:0 0 auto;min-width:106px;min-height:36px;padding:5px 9px;gap:5px;border:0;border-right:1px solid #dcebe6;border-radius:0;background:transparent;white-space:nowrap}
.operations-overview button:last-child{border-right:0}
.operations-overview b{font-size:15px}.operations-overview span{font-size:11px}
.operations-overview button:hover{background:#e9f5f1;border-radius:7px}
.order-filter-bar{display:flex;flex:none;gap:6px;padding:0;border:0;background:transparent}
.order-filter-bar button{min-height:36px;padding:5px 10px;border-radius:8px;font-size:12px;white-space:nowrap}
.order-filter-bar button.selected{border-color:#8ccbbb;background:#e4f4ee;color:#086d61}
.mobile-order-status{display:none!important}
.date-marker>span{display:inline-block;background:#e2f2ee;color:#456f6b;border-radius:18px;padding:6px 12px;font-size:12px;font-weight:700}
.date-marker>span .date-desktop{background:none;padding:0;color:inherit;font-size:inherit}
.modal-layer.filter-sheet .modal{width:min(100%,370px)}
.filter-options{display:grid;gap:4px}
.filter-options button{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#284c4d;text-align:left;font-size:14px;font-weight:650}
.filter-options button:hover,.filter-options button[aria-pressed=true]{background:#eaf7f3;color:#087568}
.filter-options button span{flex:1}.filter-options button small{font-size:13px;color:#708a89}.filter-options button b{color:#0a7b6e}
.filter-date-fields{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:10px}
.filter-date-fields label{font-size:13px;font-weight:700;color:#426865}
.filter-date-fields input{display:block;width:100%;margin-top:7px;padding:10px;border:1px solid #cce2dc;border-radius:8px;color:#204f4d;font-size:16px}
@media(max-width:690px){
  .orders-toolbar{display:block;padding:7px 12px 8px}
  .operations-overview{display:none}
  .order-filter-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .order-filter-bar button{min-width:0;min-height:42px;overflow:hidden;text-overflow:ellipsis;text-align:left;padding:8px 11px;font-size:13px}
  .modal-layer.filter-sheet{align-items:end;justify-items:stretch;padding:0}
  .modal-layer.filter-sheet .modal{width:100%;max-height:min(88dvh,720px);border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .modal-layer.filter-sheet .modal-content{padding:9px 14px 16px}
  .modal-layer.filter-sheet .modal-actions{position:sticky;bottom:0;background:#fff}
  .date-marker{justify-content:flex-start}
}

/* Màn đăng nhập: cùng hệ màu với ứng dụng, form gọn trên điện thoại. */
.login-page{display:block;min-height:100dvh;width:100%;padding:0;overflow-x:hidden;background:#fff;color:#102832}
.auth-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100dvh;width:100vw;max-width:none;margin-left:calc(50% - 50vw)}
.auth-hero{position:relative;display:flex;flex-direction:column;justify-content:center;overflow:hidden;isolation:isolate;padding:clamp(32px,6vw,108px);background:radial-gradient(circle at 75% 25%,#4bdfc1 0,transparent 34%),linear-gradient(135deg,#068a94 0%,#0ab1a4 54%,#2bd3a6 100%);color:#fff}
.auth-hero::before,.auth-hero::after{content:"";position:absolute;border-radius:50%;background:#9dffe2;opacity:.12;z-index:-1}
.auth-hero::before{width:380px;height:380px;left:-210px;bottom:-160px}
.auth-hero::after{width:300px;height:300px;right:-145px;top:-120px}
.auth-hero-copy{max-width:650px;position:relative;z-index:1;margin-bottom:clamp(14px,2vw,32px)}
.auth-hero h1{font-size:clamp(36px,4.2vw,70px);line-height:1.08;letter-spacing:-.045em;margin:0 0 20px;font-weight:800}
.auth-hero p{font-size:clamp(16px,2vw,28px);line-height:1.45;margin:0;max-width:610px;color:#effffb}
.auth-art{display:block;width:min(100%,700px);height:auto;margin:0 auto -9%;filter:drop-shadow(0 20px 28px #075c6240)}
.auth-panel{display:grid;place-items:center;min-width:0;padding:38px 32px}
.auth-content{width:min(100%,560px);text-align:center}
.auth-logo{display:grid;place-items:center;width:88px;height:88px;margin:0 auto 18px;border:1px solid #e6eef0;border-radius:23px;background:#fff;box-shadow:0 12px 38px #204a4814}
.auth-logo svg{width:65px;height:65px}
.auth-brand{font-weight:850;font-size:clamp(21px,2.2vw,32px);line-height:1.22;letter-spacing:-.035em;color:#102832}
.auth-content .auth-description{font-size:16px;line-height:1.45;color:#61717f;margin:8px 0 0}
.auth-rule{width:58px;height:4px;border-radius:99px;background:#dde4e7;margin:25px auto 27px}
.auth-content h2{font-size:clamp(30px,3vw,43px);letter-spacing:-.045em;margin:0 0 6px;color:#102832}
.auth-content .auth-intro{font-size:16px;color:#78899a;margin:0 0 24px}
.auth-field{display:flex;align-items:center;gap:12px;height:57px;border:1px solid #dce5eb;border-radius:10px;background:#f7f9fa;margin:0 0 12px;padding:0 16px;transition:border-color .15s,box-shadow .15s}
.auth-field:focus-within{border-color:#0aa99f;box-shadow:0 0 0 3px #0aa99f19}
.auth-field>svg,.auth-eye svg{width:22px;height:22px;flex:none;fill:none;stroke:#8394a5;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.auth-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#15353a;font-size:16px;padding:0}
.auth-field input::placeholder{color:#8494a3}
.auth-eye{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;margin:0;border:0;border-radius:7px;background:transparent}
.auth-eye:hover,.auth-eye:focus-visible{background:#e8f4f2}
.auth-eye[aria-pressed="true"] .eye-slash{display:none}
.auth-content .login-error{min-height:0;margin:0;text-align:left;font-size:13px;line-height:1.4}
.auth-content .login-error:not(:empty){margin:2px 0 10px}
.auth-submit{width:100%;min-height:56px;border:0;border-radius:10px;background:linear-gradient(105deg,#08aaa8,#21c6a8);box-shadow:0 12px 25px #04a69d27;color:#fff;font-size:17px;font-weight:800;letter-spacing:.035em;margin:7px 0 0}
.auth-submit:hover{filter:brightness(.96)}
.auth-content .recovery-panel{margin:19px 0 0;padding:0;border:0;text-align:center;font-size:14px;color:#526f80}
.auth-content .recovery-panel summary{display:inline-block;list-style:none;text-decoration:underline;text-underline-offset:3px;color:#078d99;font-weight:650}
.auth-content .recovery-panel summary::-webkit-details-marker{display:none}
.auth-content .recovery-panel[open]{border-top:1px solid #e4edee;padding-top:14px;text-align:left}
.auth-content .recovery-panel[open] summary{display:block;text-align:center}
.auth-content .recovery-panel form{margin:12px 0 0}
.auth-content .recovery-panel label{display:block;font-size:13px;font-weight:700;margin:11px 0 5px}
.auth-content .recovery-panel input{display:block;width:100%;border:1px solid #c9dedf;border-radius:8px;padding:11px}
.auth-content .recovery-panel button{width:100%;margin:15px 0 0;padding:12px;border:0;border-radius:8px;background:#078f8a;color:#fff;font-weight:750}
@media(max-width:760px){
  .auth-layout{display:block}
  .auth-hero{height:170px;min-height:0;padding:0}
  .auth-hero-copy{display:none}
  .auth-art{position:absolute;width:300px;max-width:none;top:-53px;left:50%;transform:translateX(-50%);margin:0;filter:drop-shadow(0 8px 15px #075c6233)}
  .auth-panel{position:relative;display:block;min-height:calc(100dvh - 150px);margin-top:-20px;border-radius:24px 24px 0 0;background:#fff;padding:0 20px 28px}
  .auth-content{max-width:430px;margin:0 auto}
  .auth-logo{position:relative;top:-35px;width:70px;height:70px;margin:0 auto -27px;border-radius:19px;box-shadow:0 8px 25px #204a4817}
  .auth-logo svg{width:52px;height:52px}
  .auth-brand{font-size:22px}
  .auth-content .auth-description{font-size:13px;margin-top:4px}
  .auth-rule{width:42px;height:3px;margin:14px auto 15px}
  .auth-content h2{font-size:31px;margin-bottom:2px}
  .auth-content .auth-intro{font-size:13px;margin-bottom:17px}
  .auth-field{height:49px;margin-bottom:9px;padding:0 13px}
  .auth-submit{min-height:49px;margin-top:2px;font-size:15px}
  .auth-content .recovery-panel{margin-top:13px}
}
@media(max-width:360px){.auth-hero{height:140px}.auth-art{width:260px;top:-47px}.auth-panel{min-height:calc(100dvh - 122px);padding-inline:16px}.auth-brand{font-size:19px}.auth-content .auth-description{font-size:12px}}
.account-button.security-attention{position:relative;color:#b42318;box-shadow:0 0 0 2px #b42318 inset;border-radius:50%}
.account-button.security-attention::after{content:"";position:absolute;right:0;top:0;width:8px;height:8px;border-radius:50%;background:#b42318}
.auth-logout{display:block;margin:18px auto 0;border:0;background:transparent;color:#0d7772;font:inherit;cursor:pointer;text-decoration:underline}

/* Anchor restoration owns feed layout changes; avoid a second native correction. */
.orders-scroll,.feed{overflow-anchor:none}
.orders-view{position:relative}
.new-orders-button{position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:4;border:1px solid #b4dcd3;border-radius:20px;background:#fff;color:#0d756c;box-shadow:0 3px 12px #153d3526;padding:9px 17px;font-size:13px;font-weight:750;white-space:nowrap}
.new-orders-button:focus-visible{outline:3px solid #176b8a;outline-offset:2px}
.latest-orders-button{position:absolute;right:60px;top:-44px;display:grid;place-items:center;width:40px;height:40px;border:1px solid #b4dcd3;border-radius:50%;background:#fff;color:#0d756c;box-shadow:0 3px 12px #153d3526;padding:0;cursor:pointer}
.latest-orders-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.latest-orders-button:focus-visible{outline:3px solid #176b8a;outline-offset:2px}
.latest-orders-button:disabled{opacity:.6;cursor:wait}
@media(max-width:690px){.latest-orders-button{right:48px;top:-48px;width:44px;height:44px}.latest-orders-button svg{transform:rotate(180deg)}}

/* Clone draft only: a native paste field alongside the existing file picker. */
.clone-photo-composer{display:flex;align-items:stretch;gap:8px}.clone-photo-composer .photo-action{display:flex;flex-direction:column;flex:0 0 88px;gap:4px;margin:0;line-height:1.1;font-weight:500}.clone-photo-composer .clone-photo-paste{flex:1;min-width:0;width:auto;min-height:58px;resize:vertical;background:#eef8fa;border-color:#8ab7c6}.clone-photo-paste:focus{outline:2px solid #176b8a;outline-offset:2px}

/* Native selection is reserved for phone digits; other card gestures stay intact. */
.entry .order-phone-text{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
.order-phone-text{overflow-wrap:anywhere}

.debt-history-balance.prepaid{color:#15745b}.debt-history [data-edit-payment]{color:#0c766b;font-size:13px;font-weight:700;padding:6px}
