.mobile-menu-toggle,.mobile-menu-overlay,.mobile-bottom-nav{display:none}
@media(max-width:820px){
 html{scroll-behavior:smooth}body{overflow-x:hidden;background:#f4f6fa;-webkit-tap-highlight-color:transparent}
 body>aside{position:fixed!important;inset:0 auto 0 0!important;z-index:1200;width:min(82vw,310px)!important;height:100dvh!important;padding:22px 18px 28px!important;overflow-y:auto;background:#10182b;transform:translateX(-105%);transition:transform .25s ease;box-shadow:14px 0 38px rgba(16,24,43,.25)}
 body.mobile-menu-open>aside{transform:translateX(0)}
 body.mobile-menu-open{overflow:hidden}
 body>aside .brand{font-size:21px}
 body>aside .sidebar-logo-wrap{max-height:105px;margin:18px 0}
 body>aside .sidebar-logo{max-height:90px}
 body>aside nav{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;margin:10px 0 20px!important}
 body>aside nav a,body>aside .logout{min-height:46px;display:flex;align-items:center;padding:11px 13px!important;border-radius:10px;font-size:15px}
 body>aside .logout{flex:0 0 auto;justify-content:center;margin-top:12px!important;background:#6252f5!important;color:#fff!important;font-weight:800;box-shadow:0 8px 20px rgba(0,0,0,.22)}
 body>aside nav a:active{background:#27324a;color:#fff}
 body>main{margin-left:0!important;min-width:0;width:100%}
 body>main>header{position:sticky;top:0;z-index:900;height:64px!important;padding:9px 14px!important;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);box-shadow:0 1px 10px rgba(22,31,53,.08)}
 body>main>header>div{min-width:0;text-align:right}body>main>header>div b,body>main>header>div small{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-company-number{color:#5143db!important;font-weight:750;font-size:10px}
 .current-plan-badge{margin-left:auto;margin-right:0!important;font-size:10px!important;padding:6px 9px!important;white-space:nowrap}
 .mobile-menu-toggle{display:grid!important;position:relative;z-index:1050;width:42px;height:42px;min-height:42px;flex:0 0 42px;place-content:center;gap:4px;border:0;border-radius:11px;background:#f0eeff!important;padding:0!important;cursor:pointer;touch-action:manipulation}
 .mobile-menu-toggle span{display:block;width:19px;height:2px;border-radius:3px;background:#5143db}
 .mobile-menu-overlay{display:block;position:fixed;inset:0;z-index:1100;border:0;background:rgba(10,17,32,.48);opacity:0;visibility:hidden;transition:.2s}
 body.mobile-menu-open .mobile-menu-overlay{opacity:1;visibility:visible}
 .content{width:100%;max-width:none;padding:18px 14px 92px!important}
 .page-head{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:12px;margin-bottom:16px}.page-head h1{font-size:25px;line-height:1.15}.page-head .button,.page-head>button{width:auto;white-space:nowrap}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.stats article{padding:15px!important;border-radius:13px!important}.stats strong{font-size:20px!important;overflow-wrap:anywhere}
 .panel{padding:16px!important;border-radius:14px!important;box-shadow:0 4px 18px rgba(25,35,60,.06)!important;overflow-x:auto}
 .grid2,.grid3,.form-split,.pricing{grid-template-columns:1fr!important;gap:12px!important}
 label{font-size:13px}input,select,textarea{min-height:46px;font-size:16px!important;border-radius:10px!important}textarea{min-height:100px}
 button,.button{min-height:44px;border-radius:10px!important}
 table{display:block;width:100%;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}th,td{padding:11px 9px!important}
 dialog{width:calc(100vw - 24px);max-width:none;padding:18px;border-radius:16px}dialog::backdrop{background:rgba(10,17,32,.55)}
 .actions{width:100%;display:grid!important;grid-template-columns:1fr;gap:8px}.actions form{display:grid;grid-template-columns:1fr;gap:8px}.actions button{width:100%}
 .invoice-paper{width:100%!important;padding:18px!important;border-radius:14px!important}.invoice-top{display:grid!important;grid-template-columns:1fr!important}.align-right{text-align:left!important}.invoice-summary{width:100%!important}
 .document-form #items{min-width:680px}.totals-box{width:100%}.advance-payment-box{padding:15px!important}
 .mobile-bottom-nav{display:grid!important;position:fixed;z-index:1050;inset:auto 8px max(8px,env(safe-area-inset-bottom)) 8px;height:68px;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;margin:0!important;padding:5px 4px;border:1px solid rgba(220,224,235,.9);border-radius:18px;background:rgba(255,255,255,.97);backdrop-filter:blur(16px);box-shadow:0 10px 35px rgba(18,27,48,.18)}
 .mobile-bottom-nav a,.mobile-bottom-nav button{height:57px;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-radius:13px;background:transparent;color:#697386;text-decoration:none;font:inherit;padding:0}
 .mobile-bottom-nav i{font-style:normal;font-size:23px;line-height:1}.mobile-bottom-nav span{font-size:10px;font-weight:700}.mobile-bottom-nav a.active{color:#5b4cf0;background:#f3f1ff}
 .mobile-bottom-nav .mobile-create{transform:translateY(-13px);width:58px;height:58px;justify-self:center;border-radius:18px;background:linear-gradient(145deg,#6b5cff,#5143db);color:#fff;box-shadow:0 8px 20px rgba(81,67,219,.35)}.mobile-bottom-nav .mobile-create i{font-size:29px}.mobile-bottom-nav .mobile-create span{display:none}
}
@media(max-width:390px){.content{padding-inline:10px!important}.stats{gap:8px!important}.stats article{padding:13px!important}.stats strong{font-size:18px!important}.page-head h1{font-size:22px}.current-plan-badge{display:none}.mobile-bottom-nav{inset-inline:5px}}
