/* Nexus mobile — readable, touch-first workspace. PDF styles remain independent. */
:root{--bg:#f4f6fa;--panel:#fff;--card:#fff;--soft:#edf2f8;--text:#14243b;--muted:#52647a;--brand:#244fd8;--line:#dce3ed;--ok:#16613c;--warn:#864500;--danger:#a72332;color-scheme:light}
@media screen{
html{width:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:0;background:#f4f6fa!important;color:#14243b!important;font-size:16px;line-height:1.45}
.mobile-app{max-width:760px!important;margin:auto;padding:0 16px calc(100px + env(safe-area-inset-bottom))!important}.mobile-app *, .auth-panel *{min-width:0}
.mobile-top{position:relative!important;top:auto!important;display:flex;align-items:center;gap:16px;margin:0 -16px 24px!important;padding:calc(14px + env(safe-area-inset-top)) 20px 20px!important;background:#122642!important;color:white!important;border:0!important;border-radius:0 0 26px 26px;box-shadow:0 8px 24px #13243b12}.mobile-top>div{flex:1}.mobile-top h1{font-size:18px!important;line-height:1.3;color:#fff!important;margin:10px 0 4px;overflow-wrap:anywhere}.mobile-top p{color:#d5e2f5!important;font-size:13px!important;margin:0}.mobile-top #mobileLogout{flex:0 0 auto;min-height:40px!important;padding:9px 12px!important;background:#ffffff12!important;color:#fff!important;border:1px solid #ffffff45!important;border-radius:12px!important;font-size:13px!important}
.sync-pill{display:inline-flex;align-items:center;gap:6px;font-size:11px!important;background:#203c57!important;color:#dcfce7!important;border:1px solid #41657d!important;padding:4px 9px!important;border-radius:8px!important}.sync-pill::before{content:'';width:6px;height:6px;background:#65dc9b;border-radius:50%}
.field-heading{margin:20px 0}.field-heading>span{font-size:11px;font-weight:800;letter-spacing:.13em;color:#52647a}.field-heading h2{font-size:28px;line-height:1.15;letter-spacing:-.025em;margin:7px 0 9px;color:#14243b}.field-heading p{font-size:14px;color:#52647a;margin:0}.mobile-hero{background:#122642!important;border:0!important;border-radius:22px!important;padding:24px!important;box-shadow:0 8px 20px #13243b12!important}.mobile-hero span{font-size:11px!important;letter-spacing:.12em;color:#c9d9f7!important}.mobile-hero h2{font-size:36px!important;letter-spacing:-.03em;color:white!important}.mobile-hero p{color:#d5e2f5!important}
.mobile-card{padding:18px!important;margin:16px 0!important;border-radius:20px!important;border:1px solid #dce3ed!important;background:#fff!important;box-shadow:0 3px 10px #14243b04!important}.metric{padding:16px!important;border:1px solid #dce3ed!important;border-radius:17px!important;background:#fff!important;box-shadow:none!important}.metric b{font-size:21px!important;letter-spacing:-.02em;color:#14243b!important}.metric small,.muted,.row-card p{color:#52647a!important}.metric-grid{gap:10px!important}.row-card{padding:17px!important;background:#fff!important;border:1px solid #dce3ed!important;border-radius:18px!important;box-shadow:0 2px 6px #14243b03!important}.row-card h4{font-size:16px!important;line-height:1.35!important;color:#14243b!important;overflow-wrap:anywhere;letter-spacing:-.01em}.row-card p{font-size:14px!important;margin:7px 0!important}.row-card .top{align-items:flex-start;flex-wrap:wrap;gap:10px}.section-row{align-items:center;gap:8px;flex-wrap:wrap}.section-row h3{font-size:18px!important;letter-spacing:-.02em;margin:0}.section-row .muted{font-size:12px}.mobile-list{gap:12px!important}.empty{color:#52647a!important;background:#f5f7fb!important;border:1px dashed #ccd6e4!important;border-radius:14px!important;padding:22px 16px!important;font-size:14px!important}
.mobile-app button,.mobile-app .actions a{min-height:46px!important;font-size:14px!important;font-weight:650!important;border-radius:12px!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 13px!important;background:#eef2f8!important;color:#203b60!important;border:1px solid #dce4ef!important;box-shadow:none!important;text-decoration:none!important;opacity:1!important;transition:background .15s,transform .15s}.mobile-app button:active,.mobile-app .actions a:active{transform:scale(.98);background:#e0e7f2!important}.mobile-app button:disabled{background:#edf0f5!important;color:#677588!important;opacity:1!important;cursor:wait}.mobile-app .primary,.mobile-app .big-save{background:#244fd8!important;color:#fff!important;border-color:#244fd8!important;box-shadow:0 5px 12px #244fd824!important}.mobile-app .big-save{min-height:54px!important;width:100%;font-size:16px!important}.mobile-app .actions{display:flex!important;flex-wrap:wrap;gap:8px!important;margin-top:13px!important}.mobile-app .actions a,.mobile-app .actions button{flex:1 1 auto;min-width:94px}.mobile-app .actions a[href*="wa.me"]{color:#17603d!important;background:#eaf7ef!important;border-color:#bcdfc9!important}.mobile-app .actions .danger{color:#a72332!important;background:#fff0f1!important;border-color:#f0c6cd!important}.mobile-app .actions [data-view-invoice],.mobile-app .actions [data-share-invoice]{color:#2449b8!important;background:#edf2ff!important;border-color:#cdd9fb!important}.mobile-app .actions [data-mark-paid]{background:#eaf7ef!important;color:#17603d!important;border-color:#bcdfc9!important}
.mobile-app .badge{display:inline-flex;align-items:center;min-height:27px;padding:4px 9px!important;border-radius:7px!important;background:#edf1f7!important;color:#40536d!important;font-size:11px!important;font-weight:750!important;border:1px solid #d5deeb!important;opacity:1!important}.mobile-app .badge.warn{background:#fff2d9!important;color:#794200!important;border-color:#efcf92!important}.mobile-app .badge.danger{background:#ffebee!important;color:#9c2035!important;border-color:#efbec8!important}.mobile-app .badge.ok{background:#e8f6ed!important;color:#17603d!important;border-color:#b9ddc7!important}
.mobile-app input,.mobile-app select,.mobile-app textarea,.auth-panel input{width:100%!important;max-width:100%;font:inherit!important;font-size:16px!important;min-height:48px!important;padding:12px!important;background:#fff!important;color:#14243b!important;border:1px solid #bfcbdc!important;border-radius:11px!important;box-shadow:none!important}.mobile-app input::placeholder,.mobile-app textarea::placeholder{color:#67798f!important;opacity:1}.mobile-app input:focus,.mobile-app textarea:focus{border-color:#244fd8!important;outline:3px solid #244fd81a}.mobile-app [hidden]{display:none!important}.mobile-form{gap:16px!important}.mobile-form label{display:flex;flex-direction:column;gap:7px!important;font-size:13px!important;font-weight:650;color:#40536d!important}.mobile-app textarea{resize:vertical}.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.status-toggle button.active,.filter-bar button.active,.segmented button.active{color:#fff!important;background:#244fd8!important;border-color:#244fd8!important}.filter-bar,.segmented{position:static!important;display:flex;gap:7px;overflow-x:auto;background:transparent!important;padding:4px 0 14px!important}.filter-bar button,.segmented button{flex:0 0 auto;min-height:40px!important;padding:9px 12px!important;font-size:12px!important;white-space:nowrap}.search{margin:0 0 16px}.step-bar{display:none!important}.summary-card{display:block!important}.summary-side{border:0!important;margin-top:15px}.summary-row.total{color:#173da7!important}.action-strip{display:flex;flex-wrap:wrap;gap:8px}.action-strip button{flex:1 1 110px}
.quick-grid,.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:20px}.mobile-app .field-shortcuts button{justify-content:flex-start;min-height:67px!important;background:#fff!important;color:#203b60!important;border-radius:16px!important;font-size:13px!important;gap:10px!important;padding:15px!important}.mobile-app .field-shortcuts button:first-child{background:#244fd8!important;color:#fff!important;border-color:#244fd8!important}.app-icon{width:22px;height:22px;flex:0 0 22px}.tool-grid button{min-height:146px!important;align-items:flex-start!important;flex-direction:column;text-align:left;background:#fff!important;padding:17px!important;border-radius:18px!important;gap:8px!important}.tool-grid .app-icon{width:27px;height:27px;color:#244fd8}.tool-grid b{font-size:15px;color:#14243b}.tool-grid small{font-size:12px;font-weight:400;color:#52647a;line-height:1.4}
.mobile-tabs{position:fixed!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;transform:none!important;z-index:40!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;background:#fffffffa!important;border:1px solid #dce3ed!important;border-radius:20px 20px 0 0!important;padding:9px 8px calc(9px + env(safe-area-inset-bottom))!important;box-shadow:0 -5px 24px #14243b0a!important}.mobile-app .mobile-tabs button{display:flex;flex-direction:column;gap:4px;font-size:10px!important;min-height:54px!important;padding:6px 1px!important;color:#52647a!important;background:transparent!important;border:0!important;border-radius:12px!important;box-shadow:none!important}.mobile-tabs button.active,.mobile-tabs button[aria-current=page]{color:#244fd8!important;background:#edf2ff!important;box-shadow:none!important}.mobile-tabs .app-icon{width:23px;height:23px}
.client-picker+label{grid-column:1/-1}.client-picker{grid-column:1/-1;position:relative}.picker-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.picker-label label{font-size:14px!important}.mobile-app .picker-label button{font-size:12px!important;min-height:34px!important;padding:6px 10px!important;color:#2449b8!important;background:#edf2ff!important;border-color:#cdd9fb!important}.client-results{margin-top:6px;max-height:min(220px,32dvh);overflow-y:auto;overscroll-behavior:contain;border:1px solid #c9d5e8;border-radius:13px;background:#fff;box-shadow:0 6px 18px #14243b0d}.mobile-app .client-results button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;border:0!important;border-bottom:1px solid #e5eaf2!important;border-radius:0!important;background:#fff!important;color:#14243b!important;text-align:left;padding:12px!important;min-height:57px!important}.client-results button small{font-size:12px;color:#52647a;font-weight:400}.client-results button[aria-selected=true]{background:#edf2ff!important}.picker-selected{display:block;font-size:12px;color:#52647a;line-height:1.4;margin:7px 0 0}.client-results .empty{border:0!important;border-radius:0!important}.client-create summary,.follow-create summary{display:flex;flex-direction:column;gap:2px;cursor:pointer;font-size:16px;font-weight:750;color:#203b60;list-style:none}.client-create summary::after,.follow-create summary::after{content:'+ ';position:absolute;right:20px;font-size:24px;font-weight:400}.client-create,.follow-create{position:relative}.client-create summary span,.follow-create summary span{font-size:12px;color:#52647a;font-weight:400}.client-create[open] summary,.follow-create[open] summary{margin-bottom:18px}.client-create[open] summary::after,.follow-create[open] summary::after{content:'−'}.client-create:not([open]) form,.follow-create:not([open]) form{display:none!important}
.auth-panel{background:#fff!important;border:1px solid #dce3ed!important;border-radius:24px!important;padding:26px!important;box-shadow:0 16px 50px #14243b0b!important;color:#14243b!important}.mobile-auth{background:#f4f6fa!important;padding:24px!important}.auth-panel .app-mark{background:#244fd8!important;color:white!important}.auth-panel h1{color:#14243b!important}.auth-panel p,.auth-panel label{color:#52647a!important}.auth-panel button{background:#244fd8!important;color:#fff!important}.auth-panel input{margin:7px 0 14px}.mobile-notice{bottom:calc(90px + env(safe-area-inset-bottom))}.mobile-app :focus-visible{outline:3px solid #4776e8;outline-offset:3px}
#mobileApp #mStatusPending.active,#mobileApp #mStatusPaid.active{background:#244fd8!important;color:#fff!important;border-color:#244fd8!important}
@media(max-width:359px){.two-col{grid-template-columns:minmax(0,1fr)!important}.mobile-app{padding-left:12px!important;padding-right:12px!important}.mobile-top{margin-left:-12px!important;margin-right:-12px!important}.mobile-card{padding:14px!important}.tool-grid{gap:8px}.tool-grid button{padding:13px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.actions a[href^="tel:"]::before{content:""!important;display:inline-block;width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203h4l2%205-3%202a16%2016%200%200%200%206%206l2-3%205%202v4c-10%204-22-8-16-16%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203h4l2%205-3%202a16%2016%200%200%200%206%206l2-3%205%202v4c-10%204-22-8-16-16%22/%3E%3C/svg%3E") center/contain no-repeat;}
.actions a[href*="wa.me"]::before{content:""!important;display:inline-block;width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2011a9%209%200%200%201-9%209H4l-3%202%202-6a9%209%200%201%201%2018-5%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2011a9%209%200%200%201-9%209H4l-3%202%202-6a9%209%200%201%201%2018-5%22/%3E%3C/svg%3E") center/contain no-repeat;}
.actions a[href*="maps"]::before{content:""!important;display:inline-block;width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206l6-3%206%203%206-3v15l-6%203-6-3-6%203z%20M9%203v15%20M15%206v15%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206l6-3%206%203%206-3v15l-6%203-6-3-6%203z%20M9%203v15%20M15%206v15%22/%3E%3C/svg%3E") center/contain no-repeat;}
[data-new-invoice-client]::before{content:""!important;display:inline-block;width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%204v16%20M4%2012h16%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%204v16%20M4%2012h16%22/%3E%3C/svg%3E") center/contain no-repeat;}
[data-complete-follow]::before{content:""!important;display:inline-block;width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2012l5%205L20%206%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2012l5%205L20%206%22/%3E%3C/svg%3E") center/contain no-repeat;}
[data-delete-follow]::before{content:""!important;display:inline-block;width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18%20M9%206V3h6v3%20M6%206l1%2015h10l1-15%20M10%2010v7%20M14%2010v7%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18%20M9%206V3h6v3%20M6%206l1%2015h10l1-15%20M10%2010v7%20M14%2010v7%22/%3E%3C/svg%3E") center/contain no-repeat;}
[data-view-invoice]::before{content:""!important;display:inline-block;width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%202h10l4%204v16H5z%20M14%202v6h5%20M8%2012h8%20M8%2016h8%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%202h10l4%204v16H5z%20M14%202v6h5%20M8%2012h8%20M8%2016h8%22/%3E%3C/svg%3E") center/contain no-repeat;}
[data-share-invoice]::before{content:""!important;display:inline-block;width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2016V2%20M7%207l5-5%205%205%20M5%2011H3v11h18V11h-2%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2016V2%20M7%207l5-5%205%205%20M5%2011H3v11h18V11h-2%22/%3E%3C/svg%3E") center/contain no-repeat;}
[data-mark-paid]::before{content:""!important;display:inline-block;width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205h17v16H3z%20M3%205V3h14%20M16%2011h6v5h-6z%22/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205h17v16H3z%20M3%205V3h14%20M16%2011h6v5h-6z%22/%3E%3C/svg%3E") center/contain no-repeat;}
}

@media screen{.mobile-tabs{grid-template-columns:repeat(6,minmax(0,1fr))!important}#mInvoices .section-row{margin-bottom:16px}#mInvoicesStatus{margin:7px 0 18px}#mLoadMoreInvoices{width:100%;margin-top:18px}#mInvoices .row-card .primary{flex:1 1 100%}.mobile-app .mobile-tabs button{font-size:10px!important}}
