/* ALNECTUS ERP Full Theme v1 — system-wide UI only. No external fonts or assets. */
:root{--bg:#f7f9fc;--text:#152841;--muted:#738196;--orange:#f97316;--border:#e6ebf2;--radius:12px;--shadow:0 3px 17px rgba(25,48,80,.035)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:#f7f9fc;color:#1b2c45;font-size:13px;line-height:1.5}
button,input,select,textarea{font:inherit}
button:not(:disabled){cursor:pointer}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #fb923c!important;outline-offset:2px}
.shell{min-height:100vh;align-items:stretch}
.sidebar{background:#fff!important;color:#3e4f69!important;min-width:229px;width:229px;border-right:1px solid #e7ecf4!important;box-shadow:none!important;z-index:10}
.brand{height:72px!important;min-height:72px!important;border-bottom:1px solid #ecf0f6;background:#fff!important;padding:8px 19px!important}
.brand-link{min-height:48px!important}
.target-brand-logo{width:172px!important;max-height:52px;object-fit:contain}
.nav-container{padding:17px 9px 20px!important;overflow-y:auto}
.sidebar .nav-link{height:43px!important;min-height:43px;margin:2px 0!important;padding:0 13px!important;gap:11px!important;border:0!important;border-radius:9px!important;color:#45546f!important;background:transparent!important;box-shadow:none!important;font-size:13px!important;font-weight:570!important}
.sidebar .nav-link svg.icon{width:19px!important;height:19px!important;flex-shrink:0}
.sidebar .nav-link:hover,.sidebar .nav-link:focus-visible{background:#f7f9fc!important;color:#243650!important}
.sidebar .nav-link.active,.sidebar .nav-group-open>.nav-link{background:#fff1e7!important;color:#eb6808!important;font-weight:750!important}
.sidebar .nav-link.active svg.icon,.sidebar .nav-group-open>.nav-link svg.icon{color:#eb6808!important}
.nav-trailing{margin-left:auto;width:15px!important;height:15px!important;transition:transform .2s}
.nav-group-open>.nav-link .nav-trailing{transform:rotate(90deg)}
.nav-submenu{display:none;flex-direction:column;margin:1px 0 7px 30px;padding-left:11px;border-left:1px solid #e8ecf3}
.nav-group-open .nav-submenu{display:flex}
.nav-sublink{font-size:12px;color:#8190a4;text-decoration:none;line-height:1.3;padding:9px 10px;border-radius:7px;white-space:normal}
.nav-sublink:hover,.nav-sublink.active{background:#fff6ef;color:#e87015;font-weight:750}
.sidebar .nav-divider{height:1px;background:#ebeff5;margin:14px 7px}
.nav-label{color:#9cabbc;font-weight:800;letter-spacing:1.05px;font-size:9px;padding:7px 13px 4px}
.sidebar-bottom{margin-top:auto;background:#fff!important;border-top:1px solid #edf0f5;color:#344b65!important;padding:13px 18px!important;font-weight:740;font-size:12px;display:flex;align-items:center;gap:10px}
.sidebar-bottom small{color:#97a2b1}
.sidebar-bottom-logo{background:#fff0e6;color:#ef751a!important;border-radius:8px;padding:6px 9px;width:auto!important}
.main-wrap{min-width:0;min-height:100vh;background:#f8fafc}
.topbar{height:69px!important;background:#fff!important;border-bottom:1px solid #e8edf4!important;padding:0 24px!important;display:flex;align-items:center;justify-content:space-between;gap:16px}
.header-left{display:flex;align-items:center;gap:9px!important}
.header-left .mobile-menu{width:36px!important;height:36px!important;border-radius:9px;color:#60738c}
.header-left .mobile-menu:hover{background:#f5f7fb}
.header-left .mobile-menu .icon{width:20px;height:20px}
.topbar-page{display:inline!important;font-size:12px!important;font-weight:700;color:#8b98ab!important}
.header-right{display:flex;align-items:center;gap:16px!important;min-width:0}
.search-trigger{display:flex!important;align-items:center;justify-content:flex-start!important;gap:9px;border:1px solid #edf0f5!important;background:#f6f8fb!important;color:#8290a5!important;border-radius:10px!important;width:clamp(180px,28vw,350px)!important;height:38px!important;padding:0 12px!important;font-size:12px}
.search-trigger .icon{width:16px!important;height:16px!important;flex-shrink:0}
.search-trigger span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;text-align:left}
.search-trigger kbd{font-size:10px;border:1px solid #e3e8f0;background:#fff;padding:2px 5px;border-radius:5px;color:#96a4b4;white-space:nowrap}
.notification-symbol{color:#45566c!important}.notification-symbol:after{content:'';height:7px;width:7px;position:absolute;top:0;right:-2px;border-radius:50%;background:#fb7a1f;border:2px solid #fff;box-sizing:content-box}
.user-chip{border-left:1px solid #edf0f5!important;padding-left:14px!important;gap:10px!important}
.user-avatar{background:#eaf0f7!important;color:#30455e!important;border-radius:50%;width:34px!important;height:34px!important;display:grid;place-items:center;font-weight:820;font-size:12px}
.user-text strong{font-size:11px!important}.user-text small{font-size:10px!important;color:#9aa7b8!important}
.logout-form .text-button{color:#74849a;font-size:11px;padding:5px}.logout-form .text-button:hover{color:#e76c17}
.topbar-clock{font-size:11px;color:#8c9bae;min-width:97px}
.content{max-width:none!important;padding:25px clamp(15px,2vw,29px) 26px!important;min-width:0;min-height:calc(100vh - 69px)!important}
.content>*,.ft-page-head,.ft-panel{min-width:0}
.footer.theme-footer{border-top:1px solid #edf0f4!important;background:transparent!important;box-shadow:none!important;min-height:0!important;margin-top:25px!important;padding:14px 1px!important;border-radius:0!important;color:#96a3b3!important;font-size:10px!important}
.footer.theme-footer:before,.footer-slogan:after{display:none!important}.footer-slogan{font-family:inherit!important;font-style:normal!important;font-size:10px!important;color:#96a3b3!important}
/* A reusable header and set of real-data cards for home and section pages. */
.ft-page-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 19px}
.ft-overline{font-size:10px;letter-spacing:1.1px;font-weight:800;color:#f2751b;margin:0 0 6px!important}
.ft-page-head h1{font-size:clamp(24px,2.5vw,32px);line-height:1.2;letter-spacing:-.8px;font-weight:820;margin:0 0 6px;color:#14283f}
.ft-page-head p:not(.ft-overline){margin:0;color:#8290a4;font-size:13px}
.ft-head-chip,.ft-soft-pill{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid #e8edf3;padding:9px 12px;border-radius:9px;font-size:11px;color:#6c7f94;white-space:nowrap}
.ft-head-chip .icon{height:17px;width:17px;color:#21a46a}
.ft-dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 18px}
.ft-stat{background:#fff;border:1px solid #e7ecf3;border-radius:12px;padding:20px 17px 18px;min-height:140px;display:flex;flex-direction:column;position:relative;box-shadow:0 3px 12px rgba(20,40,70,.024)}
.ft-stat>span:not(.ft-stat-icon){color:#68798d;font-size:12px;font-weight:620;padding-right:27px}
.ft-stat strong{font-size:29px;color:#152942;font-weight:830;line-height:1.3;letter-spacing:-.6px;margin:13px 0 1px;overflow-wrap:anywhere}
.ft-stat strong.ft-stat-text{font-size:18px;letter-spacing:-.4px;margin-top:19px}
.ft-stat small{color:#95a1b1;font-size:11px}
.ft-stat-icon{position:absolute;top:17px;right:15px;width:37px;height:37px;border-radius:11px;display:grid;place-items:center}
.ft-stat-icon svg.icon{height:19px;width:19px;stroke-width:2.1}
.ft-stat-icon.orange,.ft-quick-icon.orange{background:#fff0e4;color:#f47718}.ft-stat-icon.blue,.ft-quick-icon.blue{background:#eaf4ff;color:#4b91df}.ft-stat-icon.green,.ft-quick-icon.green{background:#e5f8ee;color:#229d60}.ft-stat-icon.amber{background:#fff2de;color:#e69c27}
.ft-panel{background:#fff;border:1px solid #e7ecf3;border-radius:12px;padding:20px;box-shadow:0 3px 14px rgba(20,45,70,.025)}
.ft-panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.ft-panel-head h2{font-size:18px;font-weight:770;letter-spacing:-.3px;color:#1a2e49;margin:0 0 4px}
.ft-panel-head p{font-size:12px;color:#8997a9;margin:0}
.ft-soft-pill{background:#f8fafc;border-color:#eef1f5;padding:6px 10px}
.ft-module-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ft-module-card{text-decoration:none;color:#293a50;border:1px solid #e8edf4;border-radius:11px;min-height:194px;padding:19px;background:#fff;display:flex;flex-direction:column;gap:8px;transition:box-shadow .15s,border-color .15s,transform .15s}
.ft-module-card:hover{border-color:#f9bc8f;box-shadow:0 11px 27px rgba(25,50,70,.07);transform:translateY(-2px)}
.ft-mod-icon{width:47px;height:47px;border-radius:12px;display:grid;place-items:center;background:#fff0e5;color:#f47718;margin-bottom:6px}
.ft-mod-icon .icon{width:24px;height:24px;stroke-width:2.1}
.ft-module-gamyba .ft-mod-icon{background:#e9f3ff;color:#478adb}.ft-module-pardavimai .ft-mod-icon{background:#e9f7ed;color:#32a66e}.ft-module-sandelis .ft-mod-icon{background:#f1ecff;color:#8f6ad2}
.ft-module-card strong{font-size:16px;font-weight:790;line-height:1.2}.ft-module-card>span:not(.ft-mod-icon){font-size:11px;color:#8796a9;line-height:1.6;max-width:240px}
.ft-module-card small{margin-top:auto;display:flex;align-items:center;gap:6px;color:#ed751b;font-size:11px;font-weight:730}.ft-module-card small .icon{width:13px;height:13px}
.ft-bottom-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:17px;margin-top:17px}
.ft-quick-panel,.ft-activity-panel{min-height:275px}
.ft-quick-link{display:flex;align-items:center;gap:12px;text-decoration:none;padding:11px 3px;border-top:1px solid #f0f2f6;color:#263950}
.ft-quick-link:hover{color:#ed751b}.ft-quick-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}.ft-quick-icon .icon{width:20px;height:20px}
.ft-quick-link>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.ft-quick-link strong{font-size:12px;font-weight:710}.ft-quick-link small{font-size:10px;color:#919eaf}.ft-chevron{width:15px;height:15px;color:#a1adbc}
.ft-info-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #f0f2f6;padding:11px 2px;font-size:12px}
.ft-info-row>span{display:flex;gap:8px;color:#8695a8;align-items:center}.ft-info-row .icon{width:16px;height:16px}.ft-info-row strong{font-size:12px;font-weight:760;color:#35475c;text-align:right}
.ft-footnote{font-size:10px;color:#a0aabd;margin:14px 0 0;line-height:1.55}.ft-empty{min-height:260px;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#8a99ad}.ft-empty>.icon{width:44px;height:44px;color:#f7a16a}.ft-empty h3{color:#293f59;font-size:17px;margin:14px 0 7px}.ft-empty p{max-width:400px;font-size:12px;line-height:1.6}.ft-section-panel{min-height:430px}
/* Compatible cosmetics for existing admin, updater, automation and detail templates. */
.page-head{margin-bottom:19px!important;padding:0!important}.page-head h1{font-size:clamp(24px,2.5vw,30px)!important;letter-spacing:-.7px!important;color:#162a43!important}.page-head p{color:#8795a8!important}.eyebrow{font-size:10px!important;color:#e87c2e!important;letter-spacing:.9px!important}.eyebrow-dot{background:#f47c19!important}.version-badge{color:#698097!important;border:1px solid #e5eaf1!important;background:#fff!important}
.section-detail,.erp-users-pane,.aln-update-panel,.ai-panel,.ir-panel{border:1px solid #e7ebf2!important;box-shadow:0 3px 15px rgba(18,44,73,.03)!important;border-radius:12px!important;background:#fff!important}
.ai-panel{padding:20px!important}.ai-panel h3,.erp-users-pane h3,.aln-update-panel h3{color:#243852}
.ai-btn,.erp-primary,.aln-update-form button:not(.aln-secondary){background:#f97316!important;color:#fff!important;border-radius:8px!important;border:1px solid #f97316!important}
.ai-stop{background:#fff3f2!important;color:#bf4444!important;border-color:#facbcc!important}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{border-radius:9px;max-width:100%}
.ir-panel input:not([type=checkbox]):not([type=radio]),.ir-panel select,.erp-user-form input,.erp-user-form select{border-color:#e0e5ed!important}
.alert{border-radius:9px!important}
/* Login screen uses core.css independently; match the same brand style without adding app shell. */
.login-body{background:radial-gradient(circle at 82% 17%,#fff0e5 0%,transparent 38%),linear-gradient(135deg,#f8fafc,#edf2f9)!important}
.login-card{border-radius:17px!important;border:1px solid #e7edf3!important;box-shadow:0 25px 65px rgba(16,39,72,.07)!important;padding:40px!important}
.login-card button{background:#f97316!important}.login-caption{color:#f97316!important}.login-card input:focus{outline:2px solid #fb923c}
/* Keep the invoice screen fully aligned with this white-sidebar theme. */
body:has(.ir-workspace) .sidebar{width:229px!important;min-width:229px!important}
body:has(.ir-workspace) .topbar{height:69px!important}
body:has(.ir-workspace) .content{padding:25px clamp(15px,2vw,29px) 26px!important}
body:has(.ir-workspace) .sidebar .nav-link.active{background:#fff1e7!important;color:#eb6808!important}
@media(min-width:921px){
 .shell.sidebar-collapsed .sidebar,.shell.sidebar-collapsed:has(.ir-workspace) .sidebar{width:76px!important;min-width:76px!important}
 .sidebar-collapsed .nav-submenu,.sidebar-collapsed .nav-label,.sidebar-collapsed .sidebar-bottom{display:none!important}
 .sidebar-collapsed .nav-link .nav-trailing{display:none!important}
 .sidebar-collapsed .sidebar .nav-link{padding:0!important;justify-content:center}
 .sidebar-collapsed .brand{padding:8px!important}
}
@media(max-width:1350px){.ft-module-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.ft-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar-clock{display:none}}
@media(max-width:1100px){.ft-bottom-grid{grid-template-columns:1fr}.search-trigger{width:180px!important}.search-trigger kbd{display:none}}
@media(max-width:920px){.sidebar,body:has(.ir-workspace) .sidebar{width:250px!important;min-width:250px!important}.topbar-page{display:inline!important}.ft-module-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:18px!important}}
@media(max-width:690px){.topbar{padding:0 13px!important}.search-trigger{height:35px!important;width:37px!important;padding:0!important;justify-content:center!important}.search-trigger span,.search-trigger kbd{display:none}.header-right{gap:11px!important}.topbar-page{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-text,.logout-form,.notification-symbol{display:none!important}.ft-page-head{align-items:flex-start;flex-direction:column}.ft-dashboard-stats{gap:9px}.ft-stat{min-height:122px;padding:15px}.ft-stat strong{font-size:23px}.ft-stat strong.ft-stat-text{font-size:15px}.ft-stat-icon{width:29px;height:29px;right:9px;top:12px}.ft-module-cards{grid-template-columns:1fr}.ft-module-card{min-height:145px}.ft-panel{padding:15px}.ft-page-head h1{font-size:26px}.ft-head-chip{display:none}}
@media(max-width:390px){.ft-dashboard-stats{grid-template-columns:1fr}.ft-stat{min-height:114px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
