@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#123d78;--blue:#2369c8;--blue2:#4b8ee8;--ink:#18263c;--muted:#8190a5;--line:#e8edf4;--bg:#f5f7fb;--white:#fff;--green:#0e9b76;--shadow:0 12px 36px rgba(26,55,99,.07)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.sidebar{width:258px;background:#fff;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;padding:25px 17px 15px;display:flex;flex-direction:column;z-index:20;overflow:auto}.brand{display:flex;align-items:center;gap:11px;padding:0 9px 26px}.brand b{display:block;font:800 16px Manrope;letter-spacing:1.6px;color:#183e70}.brand small{display:block;color:#93a2b8;font-size:9px;letter-spacing:2px;margin-top:3px}.brand-mark{width:38px;height:38px;border-radius:13px;background:linear-gradient(145deg,#1c559b,#4d98f2);display:grid;place-items:center;color:white;font:800 23px Manrope;box-shadow:0 6px 16px #2a69b544}.workspace{background:#f5f8fc;border:1px solid #edf1f7;padding:12px;border-radius:12px;display:flex;align-items:center;gap:9px;margin-bottom:23px}.workspace b,.workspace small{display:block}.workspace b{font-size:12px}.workspace small{font-size:10px;color:var(--muted);margin-top:3px}.dot{width:8px;height:8px;border-radius:50%;background:#1ab68b;box-shadow:0 0 0 4px #1ab68b20}.chevron{margin-left:auto;color:#9aa8b8}.nav-caption{display:block;color:#a3afc0;font-size:9px;font-weight:800;letter-spacing:1.5px;padding:13px 11px 8px}.nav-link{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:9px;color:#687991;font-weight:600;font-size:12px;margin:2px 0;transition:.2s}.nav-link span{width:18px;text-align:center;font-size:16px}.nav-link:hover,.nav-link.active{background:linear-gradient(100deg,#eaf2ff,#f4f8ff);color:#2164b9}.sidebar-bottom{margin-top:auto}.help-card{background:linear-gradient(135deg,#153f79,#286fc6);border-radius:13px;color:white;padding:15px;margin:15px 1px}.help-card b,.help-card small{display:block}.help-card small{color:#d5e5fb;margin:6px 0 12px;font-size:11px}.help-card a{font-size:10px;font-weight:700}.profile{display:flex;align-items:center;gap:10px;padding:13px 5px 0;border-top:1px solid var(--line)}.profile b,.profile small{display:block}.profile b{font-size:11px}.profile small{font-size:9px;color:var(--muted);margin-top:4px}.profile>span{margin-left:auto}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e4efff;color:#2465b9;font-weight:800}.main-area{margin-left:258px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 35px;position:sticky;top:0;z-index:10}.crumb{font-size:12px;color:#8b99ad}.crumb span{padding:0 10px;color:#c1cbd8}.crumb b{color:#33445d}.top-actions{display:flex;align-items:center;gap:19px}.today{color:#8a98aa;font-size:11px}.icon-btn{border:0;background:#f4f7fb;border-radius:9px;width:34px;height:34px;color:#60748f}.avatar.mini{width:31px;height:31px}.mobile-menu{display:none}.content{padding:30px 35px 45px;max-width:1600px;width:100%;margin:0 auto;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:23px}.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.8px;color:#c2d9f8}.eyebrow.blue{color:#397acb}.page-heading h1{font:800 27px Manrope;margin:6px 0 5px;letter-spacing:-.8px}.page-heading p,.muted{color:var(--muted);font-size:12px;margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:9px;padding:11px 16px;font-size:11px;font-weight:700;cursor:pointer;transition:.2s}.btn:hover{transform:translateY(-1px);filter:brightness(1.03)}.btn.primary{background:linear-gradient(110deg,#1c559b,#347bd6);color:white;box-shadow:0 6px 15px #286bc52a}.btn.soft{background:#edf4ff;color:#2869b9}.btn.full{width:100%;margin-top:22px;padding:14px}.btn.tiny{padding:7px 10px;background:#eaf2ff;color:#2869b9}.welcome-banner{background:linear-gradient(110deg,#153e78 0%,#2368b7 60%,#4d91df 100%);border-radius:17px;padding:26px 30px;color:white;display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;margin-bottom:20px;box-shadow:0 12px 25px #164d8c24}.welcome-banner h2{font:700 22px Manrope;margin:9px 0}.welcome-banner p{color:#d7e7fb;margin:0;font-size:12px}.banner-orb{width:100px;height:100px;border-radius:50%;background:#ffffff18;border:1px solid #ffffff30;display:grid;place-items:center;font-size:43px;color:#fff9;box-shadow:0 0 0 18px #ffffff0b,0 0 0 36px #ffffff08}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}.stat-card,.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.stat-card{padding:17px 18px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#7e8da2;font-size:11px}.stat-top i{font-style:normal;background:#edf4ff;color:#3477c7;border-radius:8px;padding:7px}.stat-card strong{display:block;font:800 24px Manrope;margin:13px 0 5px;letter-spacing:-.6px}.stat-card small{font-size:10px;color:#97a3b4}.stat-money{font-size:19px!important}.positive{color:#12a77c}.two-col{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;margin-bottom:19px}.panel{padding:20px;margin-bottom:18px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.panel-head h3,.form-panel h3{font:700 14px Manrope;margin:0 0 5px}.panel-head p{font-size:10px;color:var(--muted);margin:0}.panel-head>a{color:#3476c4;font-size:10px;font-weight:700}.list-row{display:flex;align-items:center;gap:11px;padding:12px 0;border-top:1px solid #f0f3f7}.list-icon{width:34px;height:34px;background:#eff5ff;color:#3478c7;border-radius:10px;display:grid;place-items:center}.list-main{flex:1;min-width:0}.list-main b,.list-main small{display:block}.list-main b{font-size:11px}.list-main small{font-size:10px;color:#95a1b1;margin-top:4px}.date-chip{font-size:9px;color:#77869a;background:#f4f6f9;padding:6px 8px;border-radius:7px}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.quick-grid>a{border:1px solid #edf1f6;border-radius:11px;padding:13px;transition:.2s}.quick-grid>a:hover{border-color:#b8d2f3;background:#f8fbff;transform:translateY(-2px)}.quick-grid>a>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#edf4ff;color:#3478c7;font-weight:800;margin-bottom:10px}.quick-grid b,.quick-grid small{display:block}.quick-grid b{font-size:10px}.quick-grid small{font-size:9px;color:#94a1b2;margin-top:4px}.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:28px 15px;color:#8b9aaf;gap:7px}.empty>div{font-size:24px;color:#83a9d7}.empty b{font-size:12px;color:#42536b}.empty span{font-size:10px}.empty .btn{margin-top:8px}.empty.compact{padding:23px;font-size:11px}.table-tools{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;gap:15px}.search{max-width:330px;width:100%;border:1px solid var(--line);background:#fbfcfe;border-radius:8px;padding:10px 12px;font-size:11px;outline:none}.search:focus,input:focus,select:focus,textarea:focus{border-color:#8db5e9;box-shadow:0 0 0 3px #347bd614;outline:0}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;font-size:9px;color:#96a3b5;letter-spacing:.7px;text-transform:uppercase;background:#fafbfd;padding:12px 13px;font-weight:800}td{padding:13px;border-bottom:1px solid #f0f3f7;font-size:10px;color:#586980}td b{color:#293b54;font-size:11px}.cell-sub{display:block;color:#9aa6b5;font-size:9px;margin-top:4px}.tag{display:inline-block;background:#edf4ff;color:#3875bc;border-radius:20px;padding:5px 8px;font-size:9px;font-weight:700}.tag.warning{background:#fff4e3;color:#b7791f}.tag.success-tag{background:#e7f8f1;color:#16845f}.form-panel{max-width:950px;padding:25px}.form-panel h3{margin-bottom:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 19px}.form-grid>div{min-width:0}.form-grid .span-2{grid-column:span 2}label{display:block;font-size:10px;font-weight:700;color:#53647b;margin-bottom:7px}input,select,textarea{width:100%;border:1px solid #e3e9f1;border-radius:8px;padding:11px 12px;color:#34465e;background:#fff;font-size:11px;min-width:0}input::placeholder,textarea::placeholder{color:#b0bac8}textarea{resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #edf0f5;padding-top:18px;margin-top:22px}.inline-form{display:flex;gap:5px}.inline-form input{width:140px;padding:7px}.small-stats{grid-template-columns:repeat(3,1fr)}.small-stats .stat-card{padding:13px 16px}.small-stats .stat-card strong{font-size:20px;margin:5px 0 0}.small-stats .stat-card>span{font-size:10px;color:#8190a5}.document-grid{grid-template-columns:repeat(4,1fr);margin-bottom:20px}.document-grid>a{background:#fff;box-shadow:var(--shadow)}.footer{padding:16px 35px;border-top:1px solid var(--line);color:#9aa7b8;font-size:9px}.footer span{float:right}.alert{padding:12px 14px;border-radius:9px;font-size:11px;margin-bottom:16px}.alert.success{background:#e8f8f1;color:#137e5e}.alert.danger{background:#fff0ef;color:#bd4b45}.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;background:#fff}.auth-art{background:radial-gradient(circle at 80% 20%,#4789d8 0,transparent 30%),linear-gradient(145deg,#102f5d,#1d5ba4 65%,#367ed0);padding:9vw 8vw;color:#fff;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-art:after{content:'';position:absolute;width:440px;height:440px;border:1px solid #ffffff20;border-radius:50%;right:-160px;bottom:-180px;box-shadow:0 0 0 45px #ffffff08,0 0 0 90px #ffffff06}.auth-art .brand-mark{background:#ffffff20;border:1px solid #ffffff50;margin-bottom:55px}.auth-art h1{font:800 clamp(38px,5vw,65px) Manrope;line-height:1.12;letter-spacing:-2px;margin:17px 0}.auth-art h1 em{font-style:normal;color:#b8d8ff}.auth-art p{color:#d4e5f9;max-width:420px;line-height:1.8;font-size:13px}.auth-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:35px}.auth-pills span{border:1px solid #ffffff40;border-radius:20px;padding:8px 12px;font-size:9px;letter-spacing:1px}.auth-card{width:min(420px,85%);margin:auto}.brand.small{padding:0;margin-bottom:48px}.auth-card h2{font:800 25px Manrope;margin:0 0 8px}.auth-card form{margin-top:28px}.auth-card label{margin:18px 0 8px}.setup-link{display:block;text-align:center;margin-top:18px;color:#4a7fbe;font-size:10px}.auth-foot{display:block;text-align:center;color:#a2adbc;margin-top:65px;font-size:9px}
@media(max-width:1100px){.sidebar{width:225px}.main-area{margin-left:225px}.content{padding:25px 22px}.topbar{padding:0 22px}.stat-grid{grid-template-columns:repeat(2,1fr)}.document-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.25s;width:270px;box-shadow:var(--shadow)}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0}.mobile-menu{display:block;border:0;background:#eff4fb;color:#285f9e;border-radius:8px;width:34px;height:34px}.topbar{height:60px;padding:0 15px;gap:10px}.crumb{font-size:10px;flex:1}.crumb span{padding:0 4px}.today{display:none}.content{padding:21px 14px 35px}.page-heading{align-items:flex-start;flex-direction:column;gap:13px}.page-heading h1{font-size:23px}.page-heading>.btn{align-self:stretch}.welcome-banner{padding:21px;border-radius:13px}.welcome-banner h2{font-size:18px}.welcome-banner p{max-width:250px;line-height:1.6}.banner-orb{width:65px;height:65px;font-size:28px;flex-shrink:0}.stat-grid{gap:10px}.stat-card{padding:13px}.stat-card strong{font-size:21px}.stat-money{font-size:16px!important}.two-col{grid-template-columns:1fr;gap:0}.panel{padding:15px;border-radius:12px}.quick-grid{gap:8px}.quick-grid>a{padding:11px}.form-grid{grid-template-columns:1fr;gap:13px}.form-grid .span-2{grid-column:span 1}.form-panel{padding:17px}.form-actions{position:sticky;bottom:0;background:#fff;padding:12px 0 0}.document-grid{grid-template-columns:repeat(2,1fr)}.small-stats{grid-template-columns:repeat(3,1fr)}.small-stats .stat-card{padding:10px}.small-stats .stat-card strong{font-size:17px}.table-tools{align-items:stretch;flex-direction:column}.search{max-width:none}.footer{padding:14px;text-align:center}.footer span{display:block;float:none;margin-top:5px}.auth-wrap{grid-template-columns:1fr;min-height:100vh}.auth-art{display:none}.auth-card{width:min(420px,88%);padding:45px 0}.brand.small{margin-bottom:55px}.auth-foot{margin-top:55px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.price-edit{min-width:220px;padding:12px;background:#f5f8fd;border:1px solid #e1e9f4;border-radius:12px;margin-top:8px;display:grid;gap:7px}
.price-edit label{font-size:12px;font-weight:700;color:#53657e}
.price-edit input,.price-edit select{width:100%;min-width:0;padding:8px 10px;border:1px solid #d7e1ee;border-radius:8px;background:#fff}
.btn.small{padding:7px 10px;font-size:12px}
details summary{cursor:pointer;list-style:none;display:inline-flex}
details summary::-webkit-details-marker{display:none}

.order-preview{background:linear-gradient(135deg,#f3f8ff,#f4fbfa);border:1px solid #dce9f7;border-radius:15px;padding:16px;display:grid;gap:9px}
.order-preview>div{display:flex;justify-content:space-between;gap:12px;color:#52647b}
.order-preview .preview-total{border-top:1px solid #d5e2f0;padding-top:10px;color:#163c70;font-weight:800;font-size:16px}
.order-preview> b{color:#163c70;margin-bottom:3px}

.doc-actions{display:flex;gap:5px;flex-wrap:wrap;align-items:center}
.doc-actions .btn{white-space:nowrap}
.btn.tiny{padding:6px 9px;font-size:11px}


/* NUTRIFARMA ERP PRO — visual system refresh */
:root{
 --erp-ink:#182b49;--erp-muted:#7d8da6;--erp-line:#e8eef7;
 --erp-blue:#246bd0;--erp-violet:#7654d8;--erp-cyan:#159bb5;
 --erp-green:#139b79;--erp-orange:#e58a35;
}
html{scroll-behavior:smooth}
body{background:radial-gradient(circle at 85% 0%,#eaf2ff 0,transparent 25%),#f5f7fc;color:var(--erp-ink)}
.sidebar{box-shadow:8px 0 32px rgba(23,53,99,.035);border-right-color:#eaf0f8}
.brand-mark{background:linear-gradient(135deg,#124b91 0%,#2f85e9 52%,#8b69e8 100%);box-shadow:0 9px 22px #276fc34a;animation:brandGlow 5s ease-in-out infinite}
.workspace{background:linear-gradient(110deg,#f3f7ff,#fbfcff);border-color:#e7eef9}
.nav-link{border-radius:11px;padding:11px 13px;position:relative;overflow:hidden}
.nav-link:before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,#e4efff,#f4f0ff);opacity:0;transition:opacity .25s}
.nav-link:hover:before,.nav-link.active:before{opacity:1}
.nav-link span,.nav-link{isolation:isolate}
.nav-link.active{color:#205eaf;box-shadow:inset 3px 0 #3987e8;font-weight:800}
.main-area{min-width:0}
.topbar{backdrop-filter:blur(16px);background:rgba(255,255,255,.9);box-shadow:0 4px 22px rgba(31,62,107,.035)}
.content{max-width:1680px;padding:30px clamp(18px,3vw,42px) 50px;animation:pageIn .45s ease both}
.page-heading{margin-bottom:25px}
.page-heading h1{font-size:clamp(24px,2vw,31px);letter-spacing:-1.1px;color:#152c4d}
.eyebrow.blue{color:#4381cb}
.btn{border-radius:11px;min-height:38px;letter-spacing:.1px}
.btn.primary{background:linear-gradient(115deg,#17549c,#2879d7 58%,#6556cf);box-shadow:0 8px 19px #276dc72b}
.btn.primary:hover{box-shadow:0 12px 25px #276dc744;transform:translateY(-2px)}
.btn.soft{background:linear-gradient(110deg,#eaf3ff,#f0edff);color:#2b67b3}
.panel{border:1px solid rgba(225,234,246,.95);border-radius:17px;box-shadow:0 10px 30px rgba(31,64,112,.045);transition:transform .25s ease,box-shadow .25s ease}
.panel:hover{box-shadow:0 15px 36px rgba(31,64,112,.075)}
.stat-grid{gap:17px}
.stat-card{position:relative;overflow:hidden;border:0;border-radius:17px;box-shadow:0 12px 25px rgba(35,77,137,.11);transition:transform .28s ease,box-shadow .28s ease;isolation:isolate}
.stat-card:before{content:"";position:absolute;width:155px;height:155px;border-radius:50%;right:-48px;top:-72px;background:rgba(255,255,255,.15);z-index:-1;transition:transform .5s ease}
.stat-card:after{content:"";position:absolute;width:95px;height:95px;border-radius:50%;right:35px;bottom:-62px;background:rgba(255,255,255,.09);z-index:-1}
.stat-card:hover{transform:translateY(-5px);box-shadow:0 18px 32px rgba(35,77,137,.18)}
.stat-card:hover:before{transform:scale(1.35) translate(-5px,8px)}
.stat-grid:not(.small-stats) .stat-card:nth-child(1),.grad-blue{background:linear-gradient(130deg,#174f99,#2878d4 60%,#4b9ce9);color:#fff}
.stat-grid:not(.small-stats) .stat-card:nth-child(2),.grad-violet{background:linear-gradient(130deg,#5142a9,#765bd4 60%,#9c77e8);color:#fff}
.stat-grid:not(.small-stats) .stat-card:nth-child(3),.grad-green{background:linear-gradient(130deg,#087b68,#13a987 60%,#43c7a2);color:#fff}
.stat-grid:not(.small-stats) .stat-card:nth-child(4),.grad-orange{background:linear-gradient(130deg,#bd642b,#e58c3a 60%,#f0b45a);color:#fff}
.grad-cyan{background:linear-gradient(130deg,#087c9c,#16a9c5 60%,#55c5d8);color:#fff}
.stat-card .stat-top,.stat-card .stat-top span,.stat-card strong,.stat-card small{color:inherit}
.stat-card .stat-top{opacity:.92}
.stat-card .stat-top i{background:#ffffff25;color:#fff;border:1px solid #ffffff2b;border-radius:10px}
.stat-card strong{font-size:28px;text-shadow:0 2px 10px #102c4a18}
.stat-card small{opacity:.82}
.stat-card .positive{color:#d7fff0}
.stat-money{font-size:clamp(16px,1.5vw,21px)!important}
.gradient-card{animation:cardRise .55s cubic-bezier(.2,.8,.2,1) both}
.gradient-card:nth-child(2){animation-delay:.06s}.gradient-card:nth-child(3){animation-delay:.12s}.gradient-card:nth-child(4){animation-delay:.18s}
.welcome-banner{border-radius:20px;background:linear-gradient(112deg,#123d78 0%,#216cc1 50%,#715bd1 100%);box-shadow:0 17px 35px rgba(30,82,151,.2);animation:bannerIn .6s ease both}
.welcome-banner:after{content:"";position:absolute;width:320px;height:320px;border:1px solid #ffffff20;border-radius:50%;right:70px;top:-210px;box-shadow:0 0 0 30px #ffffff08,0 0 0 60px #ffffff06;pointer-events:none}
.banner-orb{animation:orbFloat 6s ease-in-out infinite;background:linear-gradient(135deg,#ffffff24,#ffffff08)}
.quick-grid>a{border-radius:13px;background:linear-gradient(145deg,#fff,#f8fbff);box-shadow:0 3px 12px rgba(30,70,130,.025)}
.quick-grid>a>span{background:linear-gradient(135deg,#e5f1ff,#eeeaff);color:#356fc1}
.table-wrap{border-radius:12px}
th{background:linear-gradient(90deg,#f5f8fd,#fbfcff);color:#8192aa;position:sticky;top:0}
tbody tr{transition:background .18s ease}
tbody tr:hover{background:#f6f9ff}
td{font-size:11px}
input,select,textarea{border-radius:10px;background:#fcfdff}
input:focus,select:focus,textarea:focus{background:#fff;border-color:#85b1e9;box-shadow:0 0 0 4px #347bd612}
.form-panel{border-radius:18px}
.tag{border-radius:30px}
.workflow-ribbon{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:17px 20px;margin:0 0 20px;background:linear-gradient(110deg,#fff,#f7faff);border:1px solid #e7eef8;border-radius:16px;box-shadow:0 7px 22px rgba(35,70,120,.04)}
.workflow-step{display:flex;flex-direction:column;gap:4px;min-width:0}
.workflow-step span{display:grid;place-items:center;width:26px;height:26px;border-radius:9px;background:linear-gradient(135deg,#1d62ad,#7b65d8);color:white;font-size:10px;font-weight:800}
.workflow-step b{font-size:11px;color:#27456c}
.workflow-step small{font-size:9px;color:#8a9ab0}
.workflow-ribbon>i{font-style:normal;color:#aab9cc;font-size:16px}
.report-bars{display:grid;gap:14px;padding:10px 0}
.report-bar-row{display:grid;grid-template-columns:90px minmax(80px,1fr) minmax(110px,auto);align-items:center;gap:13px;font-size:10px;color:#73849b}
.report-bar-row b{text-align:right;color:#334c70;font-size:10px}
.report-bar-track{height:11px;border-radius:20px;background:#edf2fa;overflow:hidden}
.report-bar-track i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#246bd0,#7c65dc,#26b99c);animation:barGrow .9s ease both}
.small-stats .stat-card{min-height:112px}
.alert{border-radius:12px}
.doc-actions{gap:6px}
.mobile-menu{border:0;background:linear-gradient(135deg,#eaf3ff,#f0edff);border-radius:10px;padding:8px 10px;color:#245f9f}
@keyframes pageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes cardRise{from{opacity:0;transform:translateY(13px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes bannerIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes orbFloat{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-9px) rotate(5deg)}}
@keyframes brandGlow{0%,100%{filter:saturate(1)}50%{filter:saturate(1.35) brightness(1.08)}}
@keyframes barGrow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:1100px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:24px 22px 40px}.topbar{padding:0 22px}}
@media(max-width:760px){
 .sidebar{transform:translateX(-105%);transition:transform .28s ease;box-shadow:18px 0 45px #183c6a20}
 .sidebar.open{transform:translateX(0)}
 .main-area{margin-left:0}
 .topbar{height:60px;padding:0 14px;gap:10px}
 .mobile-menu{display:inline-flex;align-items:center;justify-content:center}
 .crumb{font-size:10px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .top-actions{gap:8px}.today{display:none}
 .content{padding:20px 14px 35px}
 .page-heading{align-items:flex-start;flex-direction:column;gap:12px}
 .page-heading h1{font-size:24px}
 .page-heading>.btn{width:100%}
 .welcome-banner{padding:22px 20px;border-radius:16px}
 .welcome-banner h2{font-size:19px}
 .banner-orb{width:66px;height:66px;font-size:30px;flex:0 0 auto}
 .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .stat-card{padding:14px;min-width:0}
 .stat-card strong{font-size:22px}
 .stat-top{font-size:10px}
 .two-col{grid-template-columns:1fr;gap:12px}
 .workflow-ribbon{overflow-x:auto;justify-content:flex-start;padding:13px;gap:12px}
 .workflow-step{min-width:105px}.workflow-ribbon>i{flex:0 0 auto}
 .panel{padding:15px;margin-bottom:13px;border-radius:14px}
 .panel-head{align-items:flex-start;gap:10px}
 .form-grid{grid-template-columns:1fr;gap:13px}
 .form-grid .span-2{grid-column:auto}
 .form-actions{flex-wrap:wrap}
 .form-actions .btn{flex:1}
 .table-tools{align-items:stretch;flex-direction:column}
 .search{max-width:none}
 .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .report-bar-row{grid-template-columns:65px minmax(45px,1fr);gap:8px}
 .report-bar-row b{grid-column:2;text-align:left}
}
@media(max-width:390px){.stat-grid{grid-template-columns:1fr}.quick-grid{grid-template-columns:1fr}.welcome-banner{align-items:flex-start}.banner-orb{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

.purchase-lines-head{display:grid;grid-template-columns:minmax(220px,1fr) 110px minmax(150px,190px) 38px;gap:9px;padding:15px 0 8px;color:#8b9bb0;font-size:9px;font-weight:800;letter-spacing:1px}
.purchase-line{display:grid;grid-template-columns:minmax(220px,1fr) 110px minmax(150px,190px) 38px;gap:9px;margin:7px 0;align-items:center}
.purchase-line .remove-line{font-size:18px;padding:5px;background:#fff0f0;color:#d35c67}
.purchase-line select,.purchase-line input{min-width:0}
.workflow-ribbon .workflow-step{animation:cardRise .45s ease both}
.workflow-ribbon .workflow-step:nth-child(3){animation-delay:.06s}
.workflow-ribbon .workflow-step:nth-child(5){animation-delay:.12s}
.workflow-ribbon .workflow-step:nth-child(7){animation-delay:.18s}
.workflow-ribbon .workflow-step:nth-child(9){animation-delay:.24s}
.auth-wrap{background:radial-gradient(circle at 12% 15%,#3b91e9 0,transparent 28%),radial-gradient(circle at 85% 80%,#8064dc 0,transparent 30%),linear-gradient(135deg,#102f5d,#1e65ac 55%,#463c96)}
.auth-art h1{letter-spacing:-1.8px}
.auth-card{box-shadow:0 25px 70px rgba(5,25,55,.22);border:1px solid #ffffffa8}
.footer{color:#96a5b9}
@media(max-width:760px){
 .purchase-lines-head{display:none}
 .purchase-line{grid-template-columns:minmax(0,1fr) 75px;gap:8px;padding:10px 0;border-bottom:1px solid #edf1f6}
 .purchase-line select{grid-column:1 / -1}
 .purchase-line input[name="qty[]"]{grid-column:1}
 .purchase-line input[name="price[]"]{grid-column:1}
 .purchase-line .remove-line{grid-column:2;grid-row:2 / span 2;align-self:center}
}


/* ERP PRO — sidebar contrast & reading comfort update */
:root{
 --erp-sidebar:#102b50;
 --erp-sidebar-2:#153a68;
 --erp-sidebar-text:#e7f0ff;
 --erp-sidebar-muted:#a9bdd8;
 --erp-active:#2c78d5;
}
.sidebar{
 background:linear-gradient(180deg,#102b50 0%,#12345f 58%,#102b50 100%);
 border-right:1px solid #23466f;
 box-shadow:10px 0 34px rgba(14,39,73,.12);
 padding:24px 15px 15px;
 scrollbar-width:thin;
 scrollbar-color:#42658d transparent;
}
.brand{padding:0 9px 23px}
.brand b{color:#fff;font-size:16px;letter-spacing:1.35px}
.brand small{color:#a9c0de;letter-spacing:1.8px}
.brand-mark{
 background:linear-gradient(140deg,#3289ec 0%,#5b73dc 58%,#8765d8 100%);
 box-shadow:0 8px 22px #071c3e70, inset 0 1px #ffffff55;
}
.workspace{
 background:linear-gradient(120deg,#ffffff13,#ffffff08);
 border:1px solid #ffffff20;
 color:#fff;
 border-radius:13px;
 padding:12px 11px;
 margin:0 1px 19px;
}
.workspace b{color:#f4f8ff;font-size:11px;font-weight:750}
.workspace small{color:#b5c9e2;font-size:10px}
.workspace .chevron{color:#b5c9e2}
.nav-caption{
 color:#91aaca;
 font-size:9px;
 letter-spacing:1.65px;
 font-weight:800;
 padding:17px 12px 8px;
}
.nav-link{
 position:relative;
 display:flex;
 align-items:center;
 min-height:41px;
 gap:11px;
 margin:3px 0;
 padding:10px 12px;
 border:1px solid transparent;
 border-radius:11px;
 color:#d2deed;
 font-size:12px;
 font-weight:550;
 line-height:1.35;
 letter-spacing:.05px;
 transition:background .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.nav-link:before{display:none}
.nav-link span{
 flex:0 0 19px;
 width:19px;
 display:inline-grid;
 place-items:center;
 color:#a9c5e7;
 font-size:16px;
 line-height:1;
 transition:color .2s ease,transform .2s ease;
}
.nav-link:hover{
 color:#fff;
 background:#ffffff12;
 border-color:#ffffff12;
 transform:translateX(2px);
}
.nav-link:hover span{color:#fff;transform:scale(1.06)}
.nav-link.active{
 color:#fff;
 font-weight:750;
 background:linear-gradient(105deg,#2879d3 0%,#397fe0 55%,#665fd0 100%);
 border-color:#8dbbfa55;
 box-shadow:0 7px 18px #061c3c55,inset 0 1px #ffffff30;
}
.nav-link.active span{color:#fff}
.sidebar-bottom{padding-top:12px}
.help-card{
 background:linear-gradient(135deg,#1e5b9b,#315eb2 58%,#6357b9);
 border:1px solid #ffffff24;
 box-shadow:0 9px 24px #061b3c55;
}
.help-card b{color:#fff;font-size:12px}
.help-card small{color:#e0edff;line-height:1.5}
.help-card a{color:#fff;text-decoration:underline;text-decoration-color:#ffffff80;text-underline-offset:3px}
.profile{border-top:1px solid #ffffff20;color:#fff}
.profile b{color:#f7faff;font-size:11px}
.profile small{color:#b8cbe3}
.profile>span{color:#b8cbe3}
.avatar{background:linear-gradient(135deg,#d9ebff,#b8d6ff);color:#164d8e}
.topbar{
 padding-left:clamp(20px,2.7vw,38px);
 padding-right:clamp(20px,2.7vw,38px);
}
.crumb{color:#7889a2;font-size:12px}
.crumb b{color:#243d60;font-weight:750}
.content{
 max-width:1720px;
 padding:30px clamp(20px,2.7vw,40px) 48px;
}
.page-heading{margin-bottom:25px}
.page-heading h1{
 color:#172f50;
 font-size:clamp(24px,2vw,30px);
 line-height:1.2;
 letter-spacing:-.75px;
}
.page-heading p{font-size:12px;line-height:1.65;color:#74849a}
.panel{
 padding:22px;
 border-radius:16px;
 box-shadow:0 7px 24px rgba(25,55,96,.045);
}
.panel-head{margin-bottom:18px}
.panel-head h3,.form-panel h3{color:#203958;font-size:14px;line-height:1.45}
.panel-head p{font-size:11px;line-height:1.6;color:#7d8da3}
th{
 padding:13px 14px;
 color:#71839c;
 font-size:9px;
 letter-spacing:.75px;
 background:#f5f8fd;
}
td{
 padding:14px;
 color:#536780;
 font-size:11px;
 line-height:1.55;
}
td b{color:#263e5e;font-size:11px}
.cell-sub{color:#8292a8;font-size:10px}
label{color:#405773;font-size:11px;font-weight:750}
input,select,textarea{
 color:#263e5c;
 font-size:12px;
 padding:12px 13px;
 border-color:#dfe7f1;
 background:#fff;
}
input::placeholder,textarea::placeholder{color:#9aa9bc}
.stat-top{font-size:11px;font-weight:650}
.stat-card small{font-size:10px;line-height:1.5}
.quick-grid b{font-size:11px;color:#2d4666}
.quick-grid small{font-size:10px;line-height:1.5;color:#7e8fa6}
.list-main b{font-size:12px;color:#2b4261}
.list-main small{font-size:10px;line-height:1.5;color:#7f90a7}
.footer{color:#8292a8}
@media(max-width:760px){
 .sidebar{
  background:linear-gradient(180deg,#102b50 0%,#153a68 60%,#102b50 100%);
  box-shadow:18px 0 42px rgba(7,26,54,.35);
  border-right:1px solid #31547b;
 }
 .nav-link{min-height:43px;font-size:12px}
 .nav-caption{padding-top:16px}
 .content{padding:21px 14px 34px}
 .panel{padding:16px}
 .page-heading p{font-size:11px}
 th{padding:11px 12px}
 td{padding:12px}
}
@media(prefers-reduced-motion:reduce){
 .nav-link,.nav-link span{transition:none}
}

/* NUTRIFARMA ERP — unified readability, navigation and process refinement */
:root{
 --ink:#172f4f;--ink-2:#294361;--muted:#71839a;--line:#e5ecf5;
 --surface:#fff;--canvas:#f4f7fc;--blue:#256fca;--blue-2:#428ee4;
 --navy:#102b50;--violet:#7561d2;--teal:#159b9b;--green:#169a75;
 --radius-lg:18px;--shadow-card:0 9px 28px rgba(24,54,94,.055);
}
*{box-sizing:border-box}
body{background:linear-gradient(135deg,#f4f7fc 0%,#f8faff 55%,#f1f5fb 100%);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px;line-height:1.55}
a{color:#286bb4;text-decoration:none}
a:hover{color:#164e8e}
.sidebar{background:linear-gradient(180deg,#102947 0%,#12355e 58%,#102b50 100%);border-right:1px solid #23466f;box-shadow:10px 0 34px rgba(14,39,73,.11);padding:22px 14px 14px}
.brand{padding:0 9px 22px;gap:11px}.brand b{color:#fff;font-size:15px;letter-spacing:1.1px}.brand small{color:#afc4df;font-size:9px;letter-spacing:1.6px}
.brand-mark{background:linear-gradient(140deg,#3289ec,#5b73dc 58%,#8765d8);box-shadow:0 8px 22px #071c3e70,inset 0 1px #ffffff55;border-radius:13px}
.workspace{background:#ffffff0e;border:1px solid #ffffff20;border-radius:12px;color:#fff;padding:11px;margin:0 1px 16px}.workspace b{color:#f4f8ff}.workspace small{color:#b5c9e2}
.nav-caption{color:#8fa9c9;font-size:9px;letter-spacing:1.5px;font-weight:800;padding:16px 12px 7px}
.nav-link{min-height:41px;display:flex;align-items:center;gap:11px;margin:3px 0;padding:10px 12px;border:1px solid transparent;border-radius:11px;color:#d6e2f1;font-size:12px;font-weight:560;line-height:1.35;transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
.nav-link:before{display:none}.nav-link span{width:20px;flex:0 0 20px;display:inline-grid;place-items:center;color:#a9c5e7;font-size:16px}.nav-link:hover{background:#ffffff13;color:#fff;border-color:#ffffff12;transform:translateX(2px)}.nav-link:hover span{color:#fff}.nav-link.active{color:#fff;font-weight:760;background:linear-gradient(105deg,#2879d3,#397fe0 55%,#665fd0);border-color:#8dbbfa55;box-shadow:0 7px 18px #061c3c55,inset 0 1px #ffffff30}.nav-link.active span{color:#fff}
.sidebar-bottom{padding-top:12px}.help-card{border:1px solid #ffffff24;background:linear-gradient(135deg,#1e5b9b,#315eb2 58%,#6357b9);box-shadow:0 9px 24px #061b3c55;border-radius:13px}.help-card b,.help-card a{color:#fff}.help-card small{color:#e0edff}.profile{border-top:1px solid #ffffff20}.profile b{color:#f7faff}.profile small{color:#b8cbe3}
.topbar{height:68px;padding:0 clamp(20px,2.8vw,42px);background:#ffffffed;border-bottom:1px solid #e8eef7;box-shadow:0 4px 18px rgba(30,62,104,.035);backdrop-filter:blur(14px)}.crumb{font-size:12px;color:#8191a7}.crumb b{color:#243d60}.today{font-size:11px;color:#788aa2}.icon-btn{border:1px solid #e7edf6;border-radius:11px;background:#f7faff;color:#386aab}
.content{width:100%;max-width:1740px;margin:0 auto;padding:30px clamp(18px,2.8vw,42px) 48px;animation:pageIn .35s ease both}.page-heading{align-items:center;gap:16px;margin-bottom:23px}.page-heading h1{font-size:clamp(23px,2vw,30px);font-weight:800;line-height:1.2;letter-spacing:-.8px;color:#172f4f}.page-heading p{font-size:12px;line-height:1.65;color:#75869d;margin-top:7px}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:800}.panel{padding:21px;border:1px solid #e6edf6;border-radius:16px;background:#fff;box-shadow:var(--shadow-card);margin-bottom:17px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}.panel-head h3,.panel h3,.form-panel h3{font-size:14px;font-weight:800;line-height:1.4;color:#203958}.panel-head p{font-size:11px;color:#7c8da3;line-height:1.6;margin-top:3px}.text-link{font-size:11px;font-weight:750;white-space:nowrap}
.stat-grid{gap:16px;margin:17px 0 20px}.stat-card{position:relative;overflow:hidden;border:0;border-radius:17px;padding:18px 19px;box-shadow:0 12px 25px rgba(35,77,137,.11);transition:transform .22s ease,box-shadow .22s ease}.stat-card:before{content:"";position:absolute;width:150px;height:150px;border-radius:50%;right:-48px;top:-75px;background:#ffffff18;pointer-events:none}.stat-card:hover{transform:translateY(-4px);box-shadow:0 18px 32px rgba(35,77,137,.16)}.stat-card:nth-child(1){background:linear-gradient(130deg,#174f99,#2878d4 60%,#4b9ce9);color:#fff}.stat-card:nth-child(2){background:linear-gradient(130deg,#5142a9,#765bd4 60%,#9c77e8);color:#fff}.stat-card:nth-child(3){background:linear-gradient(130deg,#087b68,#13a987 60%,#43c7a2);color:#fff}.stat-card:nth-child(4){background:linear-gradient(130deg,#bd642b,#e58c3a 60%,#f0b45a);color:#fff}.stat-card .stat-top,.stat-card .stat-top span,.stat-card strong,.stat-card small{color:inherit}.stat-card .stat-top{font-size:11px;font-weight:700;opacity:.94}.stat-card .stat-top i{background:#ffffff25;border:1px solid #ffffff2a;border-radius:10px;color:#fff}.stat-card strong{font-size:28px;letter-spacing:-.5px;text-shadow:0 2px 10px #102c4a18}.stat-card small{font-size:10px;opacity:.85}.small-stats .stat-card{min-height:104px;padding:15px 17px}
.welcome-banner{border-radius:20px;background:linear-gradient(112deg,#123d78 0%,#216cc1 50%,#715bd1 100%);box-shadow:0 17px 35px rgba(30,82,151,.18);padding:25px 28px}.welcome-banner h2{font-size:22px;letter-spacing:-.6px}.welcome-banner p{font-size:12px;color:#e1edff}.banner-orb{background:linear-gradient(135deg,#ffffff2c,#ffffff0b);box-shadow:inset 0 1px #ffffff30}
.two-col{gap:17px}.quick-grid{gap:10px}.quick-grid>a{min-height:90px;padding:13px;border:1px solid #edf1f7;border-radius:13px;background:linear-gradient(145deg,#fff,#f8fbff);transition:transform .18s ease,box-shadow .18s ease}.quick-grid>a:hover{transform:translateY(-3px);box-shadow:0 9px 22px #234b7a12}.quick-grid>a>span{background:linear-gradient(135deg,#e5f1ff,#eeeaff);color:#356fc1;border-radius:10px}.quick-grid b{font-size:11px;color:#2d4666}.quick-grid small{font-size:10px;color:#7e8fa6}
.table-wrap{width:100%;overflow:auto;border:1px solid #edf1f6;border-radius:12px}table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px}th{position:sticky;top:0;z-index:1;padding:13px 14px;background:#f5f8fd;color:#74859d;font-size:9px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;white-space:nowrap;border-bottom:1px solid #e8eef6}td{padding:13px 14px;color:#536780;font-size:11px;line-height:1.5;border-bottom:1px solid #eef2f7;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8fbff}td b{color:#263e5e;font-size:11px}.cell-sub{display:block;color:#8292a8;font-size:10px;margin-top:3px}.table-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.search{max-width:360px}
label{display:block;margin-bottom:6px;color:#405773;font-size:11px;font-weight:750}input,select,textarea{width:100%;min-height:41px;padding:10px 12px;border:1px solid #dfe7f1;border-radius:10px;background:#fcfdff;color:#263e5c;font:inherit;font-size:12px;outline:0;transition:border .18s ease,box-shadow .18s ease,background .18s ease}input::placeholder,textarea::placeholder{color:#9aa9bc}input:focus,select:focus,textarea:focus{background:#fff;border-color:#85b1e9;box-shadow:0 0 0 4px #347bd612}textarea{min-height:90px;resize:vertical}.form-grid{gap:15px 17px}.form-grid>div{min-width:0}.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:20px;padding-top:16px;border-top:1px solid #edf1f6}.btn{min-height:38px;padding:9px 14px;border-radius:10px;font-size:11px;font-weight:750;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.btn.primary{background:linear-gradient(115deg,#17549c,#2879d7 58%,#6556cf);box-shadow:0 8px 19px #276dc72b}.btn.primary:hover{transform:translateY(-2px);box-shadow:0 12px 25px #276dc744}.btn.soft{background:linear-gradient(110deg,#eaf3ff,#f0edff);color:#2b67b3;border:1px solid #e1eafa}.btn.tiny{min-height:29px;padding:6px 9px;font-size:10px}.tag{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:30px;background:#edf3fb;color:#476482;font-size:9px;font-weight:800;white-space:nowrap}.tag.success-tag{background:#e7f8f1;color:#13805f}.tag.warning{background:#fff4df;color:#a76a12}
.alert{padding:12px 15px;border-radius:12px;font-size:12px}.alert.success{background:#eaf8f2;color:#167a5c;border:1px solid #ccefe0}.alert.danger{background:#fff0f0;color:#b43d49;border:1px solid #f7d7da}.empty{padding:28px 18px;color:#8191a7;text-align:center}.empty b{display:block;color:#304966;margin:8px 0 3px}.empty span{display:block;font-size:11px}
.process-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px 18px;margin:0 0 17px;background:linear-gradient(110deg,#fff,#f7faff);border:1px solid #e7eef8;border-radius:15px;box-shadow:0 7px 22px rgba(35,70,120,.035)}.process-node{display:flex;align-items:center;gap:8px;min-width:0}.process-node i{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#edf2f8;color:#7d8ea5;font-size:10px;font-style:normal;font-weight:850}.process-node b{display:block;color:#38516f;font-size:10px}.process-node small{display:block;color:#8a9ab0;font-size:9px}.process-node.current i{background:linear-gradient(135deg,#1d62ad,#7b65d8);color:white}.process-node.current b{color:#2367b6}.process-strip>span{height:1px;flex:1;min-width:8px;background:#dce5f1}
.order-lines-title{margin-top:25px;padding-top:18px;border-top:1px solid #edf1f6}.sales-lines-label,.sales-line{display:grid;grid-template-columns:minmax(240px,1fr) 105px minmax(150px,190px) minmax(110px,140px) 36px;gap:10px;align-items:center}.sales-lines-label{padding:10px 0 6px;color:#8b9bb0;font-size:9px;font-weight:850;letter-spacing:.8px}.sales-line{margin:7px 0;padding:10px;border:1px solid #edf1f6;border-radius:12px;background:#fbfdff}.sales-line select,.sales-line input{min-width:0}.line-subtotal{font-size:11px;color:#2b496c;text-align:right;white-space:nowrap}.remove-line{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:9px;background:#fff0f0;color:#c84e5d;font-size:19px;cursor:pointer}.remove-line:hover{background:#ffe1e4}.order-finance-grid{margin-top:20px;padding-top:18px;border-top:1px solid #edf1f6}.order-summary{max-width:560px;margin:22px 0 0 auto;padding:18px 20px;border:1px solid #e5edf8;border-radius:15px;background:linear-gradient(145deg,#f8fbff,#f5f7ff)}.summary-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.summary-title span{font-size:10px;letter-spacing:1px;font-weight:850;color:#31547e}.summary-title small{font-size:9px;color:#8b9bb0}.order-summary>div:not(.summary-title){display:flex;justify-content:space-between;gap:14px;padding:6px 0;color:#72839a;font-size:11px}.order-summary b{color:#334d6d;font-size:11px}.order-summary .summary-grand{margin-top:6px;padding-top:12px!important;border-top:1px solid #dce6f3;color:#25466f!important}.order-summary .summary-grand b{font-size:17px;color:#1c5da5}.order-summary .summary-balance{margin-top:5px;padding:10px 11px!important;border-radius:9px;background:#eaf7f2;color:#19765c!important}.order-summary .summary-balance b{color:#147c5d}
.inline-form{display:flex;align-items:center;gap:6px;min-width:160px}.inline-form input{min-width:120px}.doc-actions{display:flex;flex-wrap:wrap;gap:5px}.price-edit{min-width:190px;padding:10px}.price-edit label{margin-top:7px}.workflow-ribbon{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 19px;margin:0 0 18px;background:linear-gradient(110deg,#fff,#f7faff);border:1px solid #e7eef8;border-radius:15px;box-shadow:0 7px 22px rgba(35,70,120,.035)}.workflow-step{display:flex;flex-direction:column;gap:4px;min-width:0}.workflow-step span{display:grid;place-items:center;width:26px;height:26px;border-radius:9px;background:linear-gradient(135deg,#1d62ad,#7b65d8);color:white;font-size:10px;font-weight:800}.workflow-step b{font-size:11px;color:#27456c}.workflow-step small{font-size:9px;color:#8a9ab0}.workflow-ribbon>i{font-style:normal;color:#aab9cc;font-size:16px}
.report-bars{display:grid;gap:14px;padding:10px 0}.report-bar-row{display:grid;grid-template-columns:90px minmax(80px,1fr) minmax(110px,auto);align-items:center;gap:13px;font-size:10px;color:#73849b}.report-bar-row b{text-align:right;color:#334c70;font-size:10px}.report-bar-track{height:11px;border-radius:20px;background:#edf2fa;overflow:hidden}.report-bar-track i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#246bd0,#7c65dc,#26b99c);transform-origin:left;animation:barGrow .9s ease both}.footer{color:#8797ac;font-size:10px;padding:17px 25px;border-top:1px solid #e7edf5}.footer span{float:right}
@keyframes pageIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes barGrow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:1100px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:24px 22px 40px}.topbar{padding:0 22px}}
@media(max-width:760px){.sidebar{transform:translateX(-105%);transition:transform .25s ease;box-shadow:18px 0 45px #183c6a30}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0}.topbar{height:60px;padding:0 14px;gap:10px}.mobile-menu{display:inline-flex;align-items:center;justify-content:center}.crumb{font-size:10px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.today{display:none}.content{padding:19px 13px 32px}.page-heading{align-items:flex-start;flex-direction:column;gap:10px}.page-heading h1{font-size:24px}.page-heading>.btn{width:100%}.welcome-banner{padding:21px 18px;border-radius:16px}.welcome-banner h2{font-size:19px}.banner-orb{width:64px;height:64px;font-size:28px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:14px;min-width:0}.stat-card strong{font-size:22px}.two-col{grid-template-columns:1fr;gap:12px}.workflow-ribbon,.process-strip{overflow-x:auto;justify-content:flex-start;padding:13px;gap:12px}.workflow-step{min-width:100px}.process-node{min-width:115px}.process-strip>span{flex:0 0 18px}.panel{padding:15px;margin-bottom:13px;border-radius:14px}.panel-head{align-items:flex-start;gap:10px}.form-grid{grid-template-columns:1fr;gap:13px}.form-grid .span-2{grid-column:auto}.form-actions{flex-wrap:wrap}.form-actions .btn{flex:1}.table-tools{align-items:stretch;flex-direction:column}.search{max-width:none}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-bar-row{grid-template-columns:65px minmax(45px,1fr);gap:8px}.report-bar-row b{grid-column:2;text-align:left}.sales-lines-label{display:none}.sales-line{grid-template-columns:minmax(0,1fr) 78px;gap:8px;padding:10px}.sales-line select{grid-column:1/-1}.sales-line .sales-qty{grid-column:1}.sales-line .sales-price{grid-column:1}.sales-line .line-subtotal{grid-column:1;text-align:left}.sales-line .remove-line{grid-column:2;grid-row:2/span 3;align-self:center}.order-summary{max-width:none;margin-top:18px}.footer{padding:15px}.footer span{float:none;display:block;margin-top:3px}}
@media(max-width:390px){.stat-grid{grid-template-columns:1fr}.quick-grid{grid-template-columns:1fr}.banner-orb{display:none}.process-node{min-width:105px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

.attention-strip{display:flex;align-items:center;gap:12px;padding:13px 15px;margin:0 0 17px;border:1px solid #f5dfb5;border-radius:13px;background:linear-gradient(100deg,#fff9eb,#fffdf7);color:#805a19}
.attention-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:10px;background:#ffedc7;color:#a66a0a;font-weight:900}
.attention-strip b{display:block;font-size:11px;color:#8a5c12}.attention-strip small{display:block;margin-top:2px;font-size:10px;color:#9a7a43}.attention-strip .btn{margin-left:auto;white-space:nowrap}
.balance-cell{color:#b36b17!important}.sales-order-form .panel-head{margin-bottom:14px}.sales-order-form .notes-heading{margin-top:22px;padding-top:17px;border-top:1px solid #edf1f6}
@media(max-width:760px){.attention-strip{align-items:flex-start;flex-wrap:wrap}.attention-strip .btn{margin-left:42px}}


/* Public full-screen landing and login refresh */
.public-home{min-height:100vh;background:radial-gradient(circle at 82% 8%,#e8f1ff 0,transparent 27%),linear-gradient(145deg,#f8fbff,#eef4fc);color:#183453}
.public-nav{height:88px;max-width:1320px;margin:auto;padding:0 34px;display:flex;align-items:center;justify-content:space-between}
.public-nav .brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.public-nav .brand b{color:#173b66;letter-spacing:1.2px}
.public-nav .brand small{color:#7188a5}
.public-hero{max-width:1320px;min-height:620px;margin:auto;padding:65px 34px 80px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:50px}
.hero-copy{max-width:620px;position:relative;z-index:2}
.hero-copy .eyebrow{color:#337ac5;font-size:10px;letter-spacing:2px;font-weight:850}
.hero-copy h1{font-size:clamp(40px,5.2vw,66px);line-height:1.07;letter-spacing:-2.7px;color:#15375f;margin:20px 0}
.hero-copy h1 em{font-style:normal;color:#3d83d2}
.hero-copy p{font-size:16px;line-height:1.8;color:#6c809a;max-width:560px}
.hero-actions{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}
.hero-actions .btn{padding:13px 19px}
.hero-trust{display:flex;gap:18px;flex-wrap:wrap;margin-top:30px;color:#627b99;font-size:11px;font-weight:650}
.hero-visual{position:relative;min-height:440px;display:grid;place-items:center}
.hero-glow{position:absolute;width:390px;height:390px;border-radius:50%;background:linear-gradient(135deg,#cfe4ff,#dcd8ff);filter:blur(2px);opacity:.85}
.hero-dashboard{position:relative;width:min(100%,500px);padding:25px;border:1px solid #ffffff;border-radius:22px;background:linear-gradient(145deg,#fff,#f6f9ff);box-shadow:0 30px 80px #214b7b25;transform:rotate(-2deg);animation:heroFloat 7s ease-in-out infinite}
.mock-top{display:flex;align-items:center;justify-content:space-between;color:#20466f;font-size:12px}
.mock-top span{font-size:8px;letter-spacing:1.2px;color:#8ba0ba}
.mock-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}
.mock-kpis div{background:linear-gradient(140deg,#eaf3ff,#f1efff);padding:15px;border-radius:12px}
.mock-kpis small{display:block;color:#7d91aa;font-size:8px;letter-spacing:.8px}
.mock-kpis b{display:block;margin-top:9px;color:#286ab1;font-size:16px}
.mock-chart{height:145px;display:flex;align-items:end;gap:12px;padding:18px;background:#f5f8fd;border-radius:14px}
.mock-chart span{flex:1;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,#5e9de1,#8d82df);height:var(--h,60%);animation:barPulse 4s ease-in-out infinite alternate}
.mock-chart span:nth-child(1){height:35%}.mock-chart span:nth-child(2){height:52%}.mock-chart span:nth-child(3){height:43%}.mock-chart span:nth-child(4){height:70%}.mock-chart span:nth-child(5){height:58%}.mock-chart span:nth-child(6){height:82%}.mock-chart span:nth-child(7){height:65%}.mock-chart span:nth-child(8){height:92%}.mock-chart span:nth-child(9){height:76%}
.mock-bottom{display:flex;gap:10px;margin-top:18px}.mock-bottom i{height:8px;border-radius:8px;background:#e3ebf6;flex:1}
.float-chip{position:absolute;padding:13px 17px;border-radius:12px;background:#fff;box-shadow:0 12px 35px #214b7b22;color:#315a84;font-size:11px;font-weight:800}
.chip-one{top:48px;left:-10px;animation:heroFloat 6s ease-in-out infinite}
.chip-two{bottom:48px;right:-10px;animation:heroFloat 7s ease-in-out infinite reverse}
.public-features{max-width:1320px;margin:auto;padding:65px 34px 90px}
.public-features h2{font-size:clamp(26px,3vw,38px);letter-spacing:-1.2px;color:#17395f;margin:12px 0 30px}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.feature-grid article{padding:24px;border:1px solid #e1eaf5;border-radius:16px;background:#ffffffc9;box-shadow:0 8px 25px #214b7b08}
.feature-grid article>b{color:#3983ce;font-size:11px;letter-spacing:1px}
.feature-grid h3{color:#24486f;font-size:15px;margin:14px 0 8px}
.feature-grid p{color:#71849b;font-size:12px;line-height:1.7;margin:0}
.public-footer{padding:22px 34px;display:flex;justify-content:space-between;gap:16px;border-top:1px solid #e0e9f4;color:#7589a1;font-size:10px}
@keyframes heroFloat{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-10px) rotate(-1deg)}}
@keyframes barPulse{from{filter:saturate(.8);opacity:.8}to{filter:saturate(1.25);opacity:1}}
.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:5vw;padding:clamp(25px,7vw,100px);background:radial-gradient(circle at 12% 15%,#3285d8 0,transparent 30%),radial-gradient(circle at 88% 85%,#7564d7 0,transparent 30%),linear-gradient(130deg,#0d2a4e,#1d5d9d 58%,#3f438d)}
.auth-art h1{font-size:clamp(40px,5vw,64px);line-height:1.06;letter-spacing:-2px;color:#fff}
.auth-art p{max-width:500px;color:#d8e8fb;font-size:15px;line-height:1.8}
.auth-card{width:min(100%,470px);justify-self:center;padding:clamp(25px,4vw,42px);border-radius:22px;background:#fff;box-shadow:0 28px 90px #061c3b55}
@media(max-width:850px){.public-hero{grid-template-columns:1fr;padding-top:35px;gap:20px}.hero-copy{max-width:720px}.hero-visual{min-height:350px}.hero-dashboard{max-width:470px}.feature-grid{grid-template-columns:repeat(2,1fr)}.auth-wrap{grid-template-columns:1fr;padding:28px 18px}.auth-art{max-width:600px;margin:0 auto}.auth-art h1{font-size:38px}.auth-card{margin:0 auto}}
@media(max-width:560px){.public-nav{height:72px;padding:0 16px}.public-nav .brand b{font-size:13px}.public-hero{padding:30px 18px 50px}.hero-copy h1{font-size:41px;letter-spacing:-1.8px}.hero-copy p{font-size:13px}.hero-trust{gap:10px;font-size:9px}.hero-visual{min-height:300px}.hero-glow{width:270px;height:270px}.hero-dashboard{padding:17px;border-radius:16px}.mock-chart{height:110px;gap:7px}.float-chip{font-size:9px;padding:10px}.chip-one{left:-2px;top:18px}.chip-two{right:-2px;bottom:18px}.public-features{padding:45px 18px}.feature-grid{grid-template-columns:1fr}.public-footer{padding:18px;flex-direction:column}.auth-wrap{gap:20px}.auth-art p{font-size:12px}.auth-card{padding:24px 19px}}


/* NUTRIFARMA ERP — unified admin configuration and refined interface */
.nav-caption{margin-top:10px}
.nav-link{min-height:43px;border-radius:11px;font-weight:600;letter-spacing:.08px}
.nav-link.active{box-shadow:0 8px 20px rgba(25,92,168,.24)}
.content{max-width:1760px}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}
.page-heading h1{font-size:clamp(25px,2.2vw,32px);letter-spacing:-.9px;color:#183858}
.page-heading p{max-width:760px;line-height:1.7}
.panel{border:1px solid #e8eef6;box-shadow:0 9px 30px rgba(23,53,88,.055);border-radius:17px}
.panel-head{padding-bottom:13px;border-bottom:1px solid #edf1f7}
.form-panel{max-width:1180px}
.form-grid{gap:17px}
.form-grid>div{min-width:0}
.form-grid .span-2{grid-column:span 2}
label{display:block;margin-bottom:7px}
input,select,textarea{width:100%;border-radius:10px;min-height:43px}
textarea{line-height:1.65;resize:vertical}
.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px;padding-top:18px;border-top:1px solid #edf1f7}
.btn{border-radius:10px;font-weight:700;letter-spacing:.1px}
.btn.primary{background:linear-gradient(115deg,#246fbd,#426bd0);box-shadow:0 7px 16px rgba(48,105,190,.18)}
.btn.primary:hover{filter:brightness(1.05);transform:translateY(-1px)}
.auth-card{border:1px solid #e6edf6}
.auth-card h2{color:#1a3b60;font-size:25px;letter-spacing:-.6px}
.auth-card .muted{color:#7789a0;line-height:1.65}
.auth-card input{min-height:47px}
.auth-card .btn.full{min-height:47px;margin-top:12px}
@media(max-width:760px){
 .page-heading{align-items:flex-start;flex-direction:column}
 .form-grid .span-2{grid-column:span 1}
 .form-actions{flex-direction:column}
 .form-actions .btn{width:100%}
}

/* Universal table filter toolbar */
.nf-filterbar{padding:16px 18px;margin:0 0 14px;border:1px solid #e5edf7;border-radius:14px;background:linear-gradient(135deg,#f8fbff,#f2f6fc);box-shadow:0 5px 18px rgba(23,53,88,.035)}
.nf-filter-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:#25486d}
.nf-filter-head small{display:block;color:#8294aa;font-size:10px;margin-top:3px}
.nf-filter-reset,.nf-filter-export{border:1px solid #d8e4f2;border-radius:9px;background:#fff;color:#326ca9;padding:8px 12px;font-size:11px;font-weight:750;cursor:pointer}
.nf-filter-controls{display:grid;grid-template-columns:minmax(220px,1fr) 165px 165px;gap:9px}
.nf-filter-controls input,.nf-column-filter select{min-height:39px;border:1px solid #dce6f2;background:#fff;border-radius:9px;padding:8px 11px;color:#294867;font-size:12px}
.nf-filter-columns{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}
.nf-column-filter{display:flex;align-items:center;gap:7px;padding:5px 8px;border:1px solid #e1e9f3;border-radius:9px;background:#fff;color:#72859c;font-size:10px}
.nf-column-filter select{min-height:30px;padding:4px 7px;max-width:190px}
.nf-filter-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}
.nf-filter-hint{font-size:10px;color:#8a9bb0}
table tbody tr[hidden]{display:none!important}
@media(max-width:650px){.nf-filter-controls{grid-template-columns:1fr 1fr}.nf-filter-controls .nf-filter-search{grid-column:1/-1}.nf-filter-actions{align-items:flex-start;flex-direction:column}.nf-filter-export,.nf-filter-reset{min-height:36px}}

.master-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0 24px}
.master-grid>.panel{min-width:0}
.master-grid .panel-head{padding:18px 20px}
.master-grid .table-wrap{max-height:420px;overflow:auto}
@media(max-width:900px){.master-grid{grid-template-columns:1fr}}

.assignment-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 20px}
.assignment-step{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #e3ebf5;border-radius:13px;background:linear-gradient(135deg,#f8fbff,#edf4fc);color:#315678;font-size:12px;font-weight:750}
.assignment-step b{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#2e73bb;color:#fff}
.assignment-product-list{margin-top:20px;border:1px solid #e5edf6;border-radius:13px;overflow:hidden}
.assignment-product-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#f6f9fd;color:#345675;font-size:12px}
.assignment-product{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid #edf1f6;cursor:pointer}
.assignment-product input{width:17px;height:17px;min-height:0;accent-color:#2875c2}
.assignment-product span{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.assignment-product b{font-size:12px;color:#294866}
.assignment-product small{font-size:10px;color:#8294a9}
.assignment-product em{font-style:normal;font-size:10px;color:#a47726}
@media(max-width:620px){.assignment-steps{grid-template-columns:1fr}.assignment-product{align-items:flex-start;flex-wrap:wrap}.assignment-product em{margin-left:29px}}

/* Product edit modal */
.product-edit-dialog{width:min(640px,calc(100vw - 28px));max-width:640px;max-height:min(90vh,820px);padding:0;border:1px solid rgba(210,224,240,.9);border-radius:22px;background:#fff;color:#20364d;box-shadow:0 28px 90px rgba(13,37,66,.28);overflow:auto}
.product-edit-dialog::backdrop{background:rgba(13,29,49,.56);backdrop-filter:blur(5px)}
.product-edit-form{display:flex;flex-direction:column;min-height:100%}
.modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:24px 26px 18px;background:linear-gradient(125deg,#f3f8ff,#fff 72%);border-bottom:1px solid #eaf0f7}
.modal-header h2{font-size:22px;line-height:1.25;margin:6px 0 4px;color:#173c61}
.modal-header p{margin:0;color:#73869a;font-size:12px}
.modal-close{width:36px;height:36px;flex:0 0 36px;border:1px solid #e2eaf3;border-radius:11px;background:#fff;color:#61778d;font-size:25px;line-height:1;cursor:pointer}
.modal-body{padding:20px 26px 22px}
.edit-product-summary{display:flex;align-items:center;gap:12px;padding:13px 15px;margin-bottom:20px;border:1px solid #e2edf9;border-radius:14px;background:linear-gradient(110deg,#f5f9ff,#fbfdff)}
.summary-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#e2efff;color:#2771b9;font-size:20px}
.edit-product-summary div{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.edit-product-summary b{font-size:13px;color:#23496d}
.edit-product-summary small{font-size:11px;color:#8294a8}
.summary-tag{font-size:9px;letter-spacing:.08em;font-weight:800;color:#3477b7;background:#e9f3ff;padding:6px 8px;border-radius:7px}
.form-section-title{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#64809b;margin:18px 0 11px}
.modal-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 15px}
.modal-form-grid>div{min-width:0}
.modal-form-grid .field-full{grid-column:1/-1}
.modal-form-grid label{display:block;font-size:11px;font-weight:700;color:#526a82;margin-bottom:6px}
.modal-form-grid input,.modal-form-grid select{width:100%;min-height:42px;border:1px solid #dce6f0;border-radius:10px;background:#fff;padding:9px 11px;color:#29445f;font-size:13px;outline:none}
.modal-form-grid input:focus,.modal-form-grid select:focus{border-color:#5b9cda;box-shadow:0 0 0 3px rgba(67,139,207,.13)}
.modal-note{font-size:11px;line-height:1.55;color:#7b8da0;background:#f7f9fc;border:1px solid #edf1f6;padding:11px 13px;border-radius:10px;margin:18px 0 0}
.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:15px 26px 20px;border-top:1px solid #edf1f6;background:#fcfdff}
@media(max-width:560px){.product-edit-dialog{width:calc(100vw - 16px);max-height:94vh;border-radius:17px}.modal-header{padding:19px 18px 15px}.modal-body{padding:16px 18px}.modal-footer{padding:13px 18px 17px}.modal-form-grid{grid-template-columns:1fr}.modal-form-grid .field-full{grid-column:auto}.summary-tag{display:none}}

.modal-field-help{display:block;margin-top:6px;font-size:10px;line-height:1.5;color:#8092a6}
.modal-field-help a{color:#2875b9;font-weight:750;text-decoration:none}
.modal-field-help a:hover{text-decoration:underline}
