*{box-sizing:border-box}body{margin:0;font:14px Arial,sans-serif;background:#f5f7fb;color:#18212f}aside{position:fixed;left:0;top:0;bottom:0;width:245px;background:#111827;color:#fff;overflow:auto;padding:14px}main{margin-left:245px}.brand{font-size:19px;font-weight:700;padding:10px 8px 18px}.brand small{display:block;font-size:11px;color:#9ca3af;margin-top:4px}.navgroup{margin:9px 0 16px}.navgroup b{display:block;color:#93c5fd;font-size:11px;text-transform:uppercase;padding:5px 8px}.navgroup a,.logout{display:block;color:#d1d5db;text-decoration:none;padding:6px 8px;border-radius:6px}.navgroup a:hover{background:#1f2937;color:#fff}header{height:68px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 26px}h1{font-size:22px}.content{padding:24px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.metric,.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:18px;box-shadow:0 2px 8px #00000008}.metric span{display:block;color:#64748b}.metric strong{font-size:28px;display:block;margin-top:8px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.toolbar{display:flex;justify-content:space-between;margin-bottom:14px}.toolbar input{width:320px}input,textarea,select{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff}button,.btn{border:0;background:#2563eb;color:white;padding:10px 14px;border-radius:7px;text-decoration:none;display:inline-block;cursor:pointer}.secondary{background:#64748b}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px;border-bottom:1px solid #e5e7eb;vertical-align:top}th{background:#f8fafc}.tablewrap{overflow:auto}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.formgrid label{font-weight:600}.formgrid input,.formgrid textarea{margin-top:5px;font-weight:400}.full{grid-column:1/-1}.login,.install{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#0f172a,#1d4ed8)}.loginbox,.installbox{width:min(460px,92vw);background:white;padding:30px;border-radius:16px;box-shadow:0 20px 50px #0004}.loginbox label,.installbox label{display:block;margin:12px 0}.error{background:#fee2e2;color:#991b1b;padding:10px;border-radius:7px;margin:10px 0}.ok{background:#dcfce7;color:#166534;padding:10px;border-radius:7px;margin:10px 0}@media(max-width:900px){aside{width:200px}main{margin-left:200px}.cards{grid-template-columns:repeat(2,1fr)}.grid2,.formgrid{grid-template-columns:1fr}}.muted{color:#64748b;margin-top:-6px}.removeBom{padding:7px 10px}.formgrid h2{margin:4px 0 10px}.formgrid table input,.formgrid table select{min-width:130px}.formgrid table .rmSelect{min-width:320px}


/* Home login page - manufacturing background */
body.login-home{margin:0;min-height:100vh;font:14px Arial,sans-serif;background:#0b1220;color:#fff;overflow-x:hidden}
.home-shell{min-height:100vh;display:grid;grid-template-columns:1.3fr .85fr}
.home-hero{position:relative;min-height:100vh;overflow:hidden;background:
 radial-gradient(circle at 15% 20%, rgba(59,130,246,.28), transparent 28%),
 radial-gradient(circle at 80% 18%, rgba(16,185,129,.15), transparent 22%),
 linear-gradient(135deg, rgba(8,15,31,.98), rgba(16,36,73,.95));}
.home-hero:before{content:"";position:absolute;inset:0;background:
 linear-gradient(to top, rgba(3,8,20,.88) 0 18%, transparent 18%),
 linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
 linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
 background-size:auto, 64px 64px, 64px 64px;
 opacity:.35}
.home-hero:after{content:"";position:absolute;left:0;right:0;bottom:0;height:47%;background:
 linear-gradient(to top, rgba(10,18,34,.98), rgba(10,18,34,.2)),
 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 500'%3E%3Cg fill='%23233455'%3E%3Crect x='0' y='320' width='1600' height='180'/%3E%3Crect x='80' y='220' width='210' height='100'/%3E%3Crect x='120' y='150' width='20' height='70'/%3E%3Crect x='170' y='130' width='22' height='90'/%3E%3Crect x='215' y='165' width='18' height='55'/%3E%3Crect x='350' y='250' width='260' height='70'/%3E%3Crect x='390' y='200' width='35' height='50'/%3E%3Crect x='445' y='190' width='32' height='60'/%3E%3Crect x='505' y='160' width='28' height='90'/%3E%3Crect x='700' y='235' width='230' height='85'/%3E%3Crect x='740' y='175' width='22' height='60'/%3E%3Crect x='780' y='155' width='20' height='80'/%3E%3Crect x='830' y='185' width='18' height='50'/%3E%3Crect x='1010' y='215' width='250' height='105'/%3E%3Crect x='1070' y='150' width='24' height='65'/%3E%3Crect x='1125' y='120' width='28' height='95'/%3E%3Crect x='1180' y='180' width='18' height='35'/%3E%3Crect x='1310' y='255' width='180' height='65'/%3E%3Crect x='1360' y='205' width='18' height='50'/%3E%3Crect x='1405' y='175' width='20' height='80'/%3E%3C/g%3E%3Cg fill='%23314b72' opacity='.9'%3E%3Ccircle cx='265' cy='332' r='34'/%3E%3Ccircle cx='534' cy='332' r='28'/%3E%3Ccircle cx='882' cy='334' r='32'/%3E%3Ccircle cx='1225' cy='336' r='31'/%3E%3C/g%3E%3Cg fill='none' stroke='%2359b0ff' stroke-width='6' opacity='.65'%3E%3Cpath d='M170 115h90v58h85'/%3E%3Cpath d='M505 150h122v48h72'/%3E%3Cpath d='M1125 115h120v58h90'/%3E%3C/g%3E%3C/svg%3E") center bottom / cover no-repeat;
 opacity:1}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,18,32,.2),rgba(11,18,32,0));pointer-events:none}
.hero-content{position:relative;z-index:2;padding:68px 7vw;max-width:760px}
.hero-kicker{display:inline-block;background:rgba(59,130,246,.16);border:1px solid rgba(147,197,253,.25);color:#bfdbfe;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;margin-bottom:18px}
.home-hero h1{font-size:46px;line-height:1.1;color:#fff;margin:0 0 16px;max-width:740px}
.home-hero p{font-size:16px;line-height:1.7;color:#dbe5f4;max-width:620px;margin:0 0 22px}
.hero-points{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 26px}
.hero-chip{padding:9px 12px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#e5eefb;font-size:13px}
.hero-stats{display:grid;grid-template-columns:1fr;gap:12px;max-width:610px}
.hero-stat{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:16px 18px;backdrop-filter: blur(6px)}
.hero-stat strong{display:block;font-size:16px;color:#fff;margin-bottom:6px}
.hero-stat span{display:block;color:#d0def5;line-height:1.5}
.home-login-panel{display:flex;align-items:center;justify-content:center;padding:34px;background:linear-gradient(180deg,#eef3f9,#dfe8f3)}
.home-loginbox{width:min(470px,94vw);padding:32px 30px;border-radius:24px;box-shadow:0 30px 60px rgba(15,23,42,.18);border:1px solid rgba(148,163,184,.2)}
.home-loginbox h2{margin:0 0 6px;font-size:28px;color:#0f172a}
.login-brand-mark{width:62px;height:62px;border-radius:18px;display:grid;place-items:center;font-size:28px;background:linear-gradient(135deg,#1d4ed8,#0f766e);color:#fff;margin-bottom:14px;box-shadow:0 10px 25px rgba(29,78,216,.25)}
.home-loginbox .muted{margin:0 0 14px;color:#64748b}
.home-loginbox label{display:block;margin:12px 0;color:#0f172a;font-weight:600}
.home-loginbox input{margin-top:6px}
.fullbtn{width:100%;margin-top:8px;padding:12px 14px;font-size:15px;font-weight:700}
.login-help{margin-top:14px;color:#475569;line-height:1.5}
@media(max-width:1100px){.home-shell{grid-template-columns:1fr}.home-hero{min-height:auto}.hero-content{padding:52px 24px 280px}.home-login-panel{margin-top:-240px;background:transparent;position:relative;z-index:3;padding:0 24px 30px}.home-hero h1{font-size:36px}}
@media(max-width:640px){.hero-content{padding:40px 18px 260px}.home-hero h1{font-size:31px}.hero-points{gap:8px}.hero-chip{font-size:12px;padding:8px 10px}.home-login-panel{padding:0 16px 24px}.home-loginbox{padding:24px 20px;border-radius:18px}}

.avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;display:inline-grid;place-items:center}.avatar-empty{background:#e2e8f0;color:#334155;font-weight:700}.status-badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700}.status-active{background:#dcfce7;color:#166534}.status-inactive{background:#fee2e2;color:#991b1b}.profile-preview img{width:110px;height:110px;border-radius:16px;object-fit:cover;border:1px solid #cbd5e1}

/* Syncora ERP branding */
.login-brand-logo{display:flex;align-items:center;justify-content:center;margin:0 0 16px}
.login-brand-logo img{display:block;width:min(260px,80%);height:auto;max-height:150px;object-fit:contain}
.brand-with-logo{display:flex;align-items:center;gap:10px;padding:7px 5px 16px}
.brand-with-logo>img{width:44px;height:44px;object-fit:contain;border-radius:10px;background:#fff;padding:3px}
.brand-with-logo>div{min-width:0}
.company-logo-preview{margin-top:10px;display:flex;align-items:center;gap:10px}
.company-logo-preview img{width:120px;height:70px;object-fit:contain;border:1px solid #e2e8f0;border-radius:8px;background:#fff;padding:4px}
.company-logo-preview span{font-size:12px;color:#64748b}
