@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#192c3a;--muted:#6e7d89;--line:#e2e9ed;--bg:#f4f7f8;--white:#fff;--blue:#155e75;--blue2:#0e7490;--teal:#dff4ef;--green:#167c55;--red:#b93832;--shadow:0 8px 28px rgba(24,48,63,.055)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px;line-height:1.5}h1,h2,h3{font-family:Manrope,sans-serif;letter-spacing:-.035em;margin:0 0 8px}h1{font-size:31px;font-weight:800}h2{font-size:18px;font-weight:750}p{margin:0 0 12px}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:11px;margin-top:18px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#0e7490;margin-bottom:8px}.topbar{height:76px;background:#102b3a;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100% - 1240px)/2));gap:20px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;background:#b7e5db;color:#123a45;border-radius:12px;font-family:Manrope;font-weight:900;font-size:17px}.brand strong{display:block;font-family:Manrope;font-size:15px}.brand small{display:block;color:#a9c2cb;font-size:11px;margin-top:2px}.userbox{display:flex;align-items:center;gap:14px;font-size:12px}.userbox small{color:#b8cbd1}.nav{display:flex;align-items:center;gap:4px;padding:0 max(24px,calc((100% - 1240px)/2));background:#fff;border-bottom:1px solid var(--line);overflow-x:auto;white-space:nowrap}.nav a{display:inline-block;padding:15px 13px;color:#526672;text-decoration:none;font-size:12px;font-weight:700;border-bottom:2px solid transparent}.nav a:hover{color:var(--blue);border-color:#5bb9ad}.container{max-width:1240px;margin:0 auto;padding:30px 24px 48px;min-height:calc(100vh - 190px)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.page-heading p{margin:0}.heading-actions{display:flex;gap:10px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.metrics-3{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px}.metric{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;position:relative;box-shadow:var(--shadow);min-width:0}.metric-icon{float:right;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e2f2ef;color:#0c766b;font-size:18px}.metric-label{font-size:12px;color:#657985;font-weight:600;margin:2px 0 10px}.metric-value{font-family:Manrope;font-size:27px;font-weight:800;letter-spacing:-.05em;white-space:nowrap}.metric-value small{font-family:'DM Sans';font-size:11px;letter-spacing:0;color:#75848d;font-weight:600}.metric-note{font-size:11px;color:#85939c;margin-top:5px}.grid-2{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px;box-shadow:var(--shadow);min-width:0}.section-gap{margin-top:20px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.section-heading h2{margin:0}.section-heading p{font-size:12px;margin:3px 0 0}.text-link{color:var(--blue2);font-weight:700;font-size:12px;text-decoration:none;white-space:nowrap}.text-link:hover{text-decoration:underline}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{text-align:left;text-transform:uppercase;letter-spacing:.06em;font-size:10px;color:#778893;background:#f7f9fa;font-weight:800}th,td{padding:12px 13px;border-bottom:1px solid #edf1f3}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcfc}.status{display:inline-flex;align-items:center;padding:4px 8px;border-radius:20px;font-size:10px;font-weight:800}.status-ok{background:#e2f5eb;color:#16744c}.status-low{background:#fff0d9;color:#99600b}.status-off{background:#eef1f3;color:#697781}.stat-list{margin:10px 0 20px}.stat-list>div{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #edf1f3;gap:15px}.stat-list>div:last-child{border-bottom:0}.stat-list span{color:#6e7d89;font-size:12px}.stat-list strong{font-family:Manrope;font-size:14px}.btn{border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 15px;border-radius:9px;text-decoration:none;font:700 12px 'DM Sans';cursor:pointer;transition:.15s}.btn-primary{background:#155e75;color:#fff}.btn-primary:hover{background:#0d4a5d}.btn-outline{background:#fff;color:#35515f;border:1px solid #d8e1e5}.btn-outline:hover,.btn-light:hover{background:#eef5f5}.btn-light{background:#fff;color:#1a3947;padding:8px 12px}.btn-sm{font-size:11px}.btn-full{width:100%}.form-actions{display:flex;gap:10px;margin-top:16px}form label,label{display:block;font-size:12px;color:#405763;font-weight:700;margin-bottom:15px}input,select,textarea{display:block;width:100%;margin-top:7px;border:1px solid #d8e2e6;background:#fff;border-radius:8px;padding:11px 12px;color:#1b3340;font:400 13px 'DM Sans';outline:none}input:focus,select:focus,textarea:focus{border-color:#319b9d;box-shadow:0 0 0 3px rgba(49,155,157,.12)}textarea{resize:vertical}form button{margin-top:3px}.alert{padding:12px 15px;border-radius:9px;margin-bottom:18px;font-size:12px;font-weight:600}.alert.success{background:#e3f6eb;color:#176d48}.alert.error{background:#fff0ee;color:#a22e28}.alert.warning{background:#fff6e5;color:#8a5b0b}.empty{padding:22px;text-align:center;background:#f8fafb;border:1px dashed #dbe4e8;border-radius:10px;color:#81909a;font-size:12px}.info-block{border-left:3px solid #8ccfc4;padding:3px 0 3px 13px;margin:17px 0}.info-block strong{font-size:12px}.info-block p{font-size:12px;color:#71828c;margin:4px 0 0}.divider{height:1px;background:#e9eef0;margin:20px 0}.simple-list>div{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf1f3;gap:12px}.simple-list>div:last-child{border:0}.simple-list small{display:block;color:#87949b;font-size:11px;margin-top:3px}.link-button{background:none;border:0;padding:4px 0;color:#0e7490;font:700 11px 'DM Sans';cursor:pointer}.inline{display:inline;margin:0}.inline button{margin:0}.actions{display:flex;gap:12px;align-items:center}.filter-form{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) auto auto;align-items:end;gap:12px}.filter-form label{margin:0}.filter-form .btn{margin-bottom:0;white-space:nowrap}.calc-panel{background:#f3f8f8;border:1px solid #dcebea;border-radius:11px;padding:5px 14px;margin:5px 0 17px}.calc-panel>div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e2eceb}.calc-panel>div:last-child{border-bottom:0}.calc-panel span{font-size:11px;color:#6e7f88}.calc-panel strong{font-family:Manrope;font-size:13px}.formula-card{display:flex;flex-direction:column;align-items:center;gap:8px;background:#f1f8f7;border-radius:12px;padding:24px;margin:15px 0;color:#5b737d;font-size:12px}.formula-card strong{font-family:Manrope;font-size:23px;color:#183d4b}.formula-card .formula-result{color:#087c68}.formula-sign{font-weight:800;color:#167c73}.login-wrap{display:grid;grid-template-columns:1fr 420px;gap:65px;align-items:center;max-width:1050px;margin:65px auto;padding:0 25px}.login-art{background:#143b4b;border-radius:20px;padding:55px 45px;min-height:440px;color:#fff;position:relative;overflow:hidden}.login-art .eyebrow{color:#a4e1d6}.login-art h1{font-size:43px;line-height:1.15;margin:20px 0}.login-art p{color:#bed1d8;max-width:340px;line-height:1.8}.steel-lines{display:flex;gap:9px;align-items:end;height:100px;margin-top:25px;opacity:.8}.steel-lines i{display:block;width:42px;border:5px solid #7ac9bf;border-radius:50%;height:90px;transform:rotate(25deg)}.steel-lines i:nth-child(2){height:70px}.steel-lines i:nth-child(3){height:110px}.steel-lines i:nth-child(4){height:80px}.steel-lines i:nth-child(5){height:55px}.login-card{background:#fff;padding:32px;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.login-card h2{font-size:26px}.login-card .muted{font-size:12px;margin-bottom:24px}.narrow{max-width:540px;margin:30px auto}footer{text-align:center;padding:20px;color:#91a0a8;font-size:11px}footer span{padding:0 7px;color:#5aaea4}code{background:#eef3f5;padding:2px 5px;border-radius:4px;font-size:11px}
@media(max-width:900px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2{grid-template-columns:1fr}.filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.login-wrap{grid-template-columns:1fr;gap:20px;margin:25px auto}.login-art{min-height:260px;padding:30px}.login-art h1{font-size:34px}.steel-lines{height:60px;margin-top:12px}.steel-lines i{height:55px}.steel-lines i:nth-child(2){height:42px}.steel-lines i:nth-child(3){height:65px}.steel-lines i:nth-child(4){height:48px}.steel-lines i:nth-child(5){height:34px}.login-card{max-width:100%}}
@media(max-width:560px){.topbar{height:66px;padding:0 14px}.brand-mark{width:36px;height:36px}.userbox{gap:8px}.userbox>span{display:none}.nav{padding:0 8px}.nav a{padding:13px 10px}.container{padding:22px 13px 35px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:26px}.metrics,.metrics-3{grid-template-columns:1fr 1fr;gap:9px}.metric{padding:14px}.metric-value{font-size:21px}.metric-icon{width:28px;height:28px}.card{padding:16px}.filter-form{grid-template-columns:1fr}.login-art{padding:25px}.login-art h1{font-size:30px}.login-card{padding:23px}.section-heading{align-items:flex-start}.heading-actions{width:100%}.heading-actions .btn{width:100%}}

/* Colorful analytics additions */
.metric-accent-blue{background:linear-gradient(135deg,#fff 0%,#eef8ff 100%);border-top:3px solid #0284c7}
.metric-accent-orange{background:linear-gradient(135deg,#fff 0%,#fff5e9 100%);border-top:3px solid #f97316}
.metric-accent-green{background:linear-gradient(135deg,#fff 0%,#ecfdf5 100%);border-top:3px solid #10b981}
.metric-accent-purple{background:linear-gradient(135deg,#fff 0%,#f5f3ff 100%);border-top:3px solid #8b5cf6}
.metric-accent-blue .metric-icon{background:#dbeafe;color:#1d4ed8}.metric-accent-orange .metric-icon{background:#ffedd5;color:#c2410c}.metric-accent-green .metric-icon{background:#d1fae5;color:#047857}.metric-accent-purple .metric-icon{background:#ede9fe;color:#6d28d9}
.chart-card{background:linear-gradient(145deg,#fff 0%,#f8fcff 100%)}.chart-wrap{position:relative;height:280px;width:100%}
.progress{height:7px;width:90px;display:inline-block;vertical-align:middle;margin-right:7px;background:#edf2f7;border-radius:20px;overflow:hidden}.progress span{display:block;height:100%;background:linear-gradient(90deg,#0ea5e9,#10b981);border-radius:20px}
.nav a[href="scrap.php"]{color:#087f8c}.nav a:hover{background:#f1fbfa}
@media(max-width:560px){.chart-wrap{height:230px}.progress{width:55px}}

/* RG Industries: consistent colorful styling across all modules */
:root{--accent-cyan:#0891b2;--accent-blue:#2563eb;--accent-violet:#7c3aed;--accent-orange:#ea580c;--accent-green:#059669;--accent-pink:#db2777}
.topbar{background:linear-gradient(110deg,#102b3a 0%,#164e63 58%,#155e75 100%)}
.brand-mark{box-shadow:0 5px 14px rgba(183,229,219,.18)}
.nav a{transition:background .18s ease,color .18s ease,border-color .18s ease;border-radius:8px 8px 0 0}
.nav a:hover{background:#effbfc;color:#0e7490}
.nav a:focus-visible,.btn:focus-visible,.text-link:focus-visible{outline:3px solid rgba(8,145,178,.28);outline-offset:2px}
.card,.metric,.login-card{transition:box-shadow .18s ease,transform .18s ease}
.card:hover,.metric:hover{box-shadow:0 12px 32px rgba(24,48,63,.09)}
.metric:nth-child(4n+1){border-top:3px solid #0284c7}
.metric:nth-child(4n+2){border-top:3px solid #f97316}
.metric:nth-child(4n+3){border-top:3px solid #10b981}
.metric:nth-child(4n){border-top:3px solid #8b5cf6}
.metric-icon{box-shadow:inset 0 0 0 1px rgba(20,60,80,.035)}
.btn-primary{background:linear-gradient(135deg,#0e7490,#155e75);box-shadow:0 4px 10px rgba(21,94,117,.13)}
.btn-primary:hover{background:linear-gradient(135deg,#0c657d,#0d4a5d);transform:translateY(-1px)}
.btn-outline{transition:background .15s ease,border-color .15s ease,transform .15s ease}
.btn-outline:hover{border-color:#8bcacb;transform:translateY(-1px)}
input:focus,select:focus,textarea:focus{border-color:#0891b2;box-shadow:0 0 0 3px rgba(8,145,178,.13)}
th{background:linear-gradient(180deg,#f2f8fa,#f7f9fa)}
tbody tr:nth-child(even){background:#fcfdfd}
tbody tr:hover{background:#effafb}
.status-ok{background:#dcfce7;color:#166534}.status-low{background:#ffedd5;color:#9a3412}.status-off{background:#f1f5f9;color:#475569}
.alert.success{border-left:4px solid #10b981}.alert.error{border-left:4px solid #ef4444}.alert.warning{border-left:4px solid #f59e0b}
.calc-panel{background:linear-gradient(135deg,#f0fdfa,#f0f9ff);border-color:#ccebe9}
.formula-card{background:linear-gradient(135deg,#ecfeff,#f0fdfa);border:1px solid #ccebe9}
.info-block{border-left-color:#0ea5a4}
footer{border-top:1px solid rgba(226,233,237,.7);background:rgba(255,255,255,.55)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
