:root{
  --waste-bg:#04080d;--waste-bg2:#02050a;--panel:#0b1219;--panel2:#0f1720;--panel3:#111b27;
  --line:#1a2633;--line2:#2b3a4a;--text:#f4f7fb;--muted:#a9b3bf;--dim:#778392;
  --purple:#8047ff;--purple2:#b77dff;--purple3:#5b31d6;--green:#63d64c;--green2:#9cff68;
  --orange:#f4aa3f;--red:#ff5a55;--blue:#3e8bff;--cyan:#45c4ff;--shadow:0 22px 60px rgba(0,0,0,.38);
}
*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden;background:#010408;color:var(--text)}
body{font-family:"Tajawal","Cairo","Segoe UI",Tahoma,Arial,sans-serif;direction:rtl;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased}
button,select,input,textarea{font-family:inherit}button{cursor:pointer}
.viewport{position:fixed;inset:0;background:radial-gradient(1200px 520px at 64% -12%,rgba(127,71,255,.16),transparent 58%),radial-gradient(900px 420px at 13% 112%,rgba(46,116,255,.09),transparent 58%),linear-gradient(180deg,#050a11 0%,#02050a 100%);overflow:hidden}
.viewport:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(128,71,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(128,71,255,.025) 1px,transparent 1px);background-size:36px 36px;mask-image:radial-gradient(circle at 52% 34%,#000 0%,rgba(0,0,0,.58) 62%,transparent 100%);pointer-events:none}.shell{position:absolute;inset:18px;display:grid;grid-template-columns:224px 1fr;gap:16px;min-width:1120px}
.sidebar{position:relative;border:1px solid rgba(183,125,255,.18);background:linear-gradient(180deg,rgba(6,9,16,.97),rgba(4,7,12,.97));border-radius:20px;box-shadow:var(--shadow);overflow:hidden}.sidebar:after{content:"";position:absolute;inset:auto 18px 0;height:160px;background:radial-gradient(closest-side,rgba(128,71,255,.15),transparent);pointer-events:none}.brand{height:112px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid rgba(183,125,255,.13);background:radial-gradient(160px 70px at 48% 34%,rgba(128,71,255,.14),transparent 72%)}
.brand-lockup{display:grid;grid-template-columns:58px 1fr;gap:9px;align-items:center;direction:ltr}.brand-emblem{width:58px;height:58px;border-radius:18px;background:#060a12 url('assets/smartgreen-logo.svg') center/cover no-repeat;box-shadow:0 0 22px rgba(128,71,255,.35), inset 0 1px 0 rgba(255,255,255,.18);position:relative;border:1px solid rgba(183,125,255,.35)}.brand-copy{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.brand-copy strong{font-size:25px;line-height:1;color:#fff;letter-spacing:-.6px}.brand-copy span{font-size:11px;color:#b9c2cf;font-weight:800;letter-spacing:.2px}.nav{padding:10px}.nav button{width:100%;height:42px;border:1px solid transparent;background:transparent;color:#a7b0bd;border-radius:12px;display:flex;align-items:center;gap:11px;justify-content:flex-start;flex-direction:row-reverse;padding:0 12px;margin-bottom:4px;font-size:13px;font-weight:900;transition:.18s}.nav button:hover{color:#dccbff;background:rgba(128,71,255,.075)}.nav button.active{color:#d7c2ff;background:linear-gradient(90deg,rgba(128,71,255,.2),rgba(128,71,255,.045));border-color:rgba(183,125,255,.28);box-shadow:inset 0 0 22px rgba(128,71,255,.07),0 0 24px rgba(128,71,255,.04)}.nav i{width:24px;height:24px;border-radius:9px;display:grid;place-items:center;font-style:normal;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.06);font-size:13px}.nav .active i{color:#fff;background:rgba(128,71,255,.18);border-color:rgba(183,125,255,.24)}
.main{position:relative;border:1px solid rgba(255,255,255,.055);border-radius:22px;background:linear-gradient(180deg,rgba(5,9,15,.86),rgba(3,7,12,.96));box-shadow:var(--shadow);overflow:hidden}.main:before{content:"";position:absolute;inset:0;background:radial-gradient(760px 320px at 80% -4%,rgba(128,71,255,.16),transparent 61%),radial-gradient(650px 320px at 10% 92%,rgba(69,196,255,.06),transparent 62%);pointer-events:none}.topbar{position:relative;z-index:4;height:116px;padding:18px 20px 0;display:grid;grid-template-columns:1fr auto;gap:12px}.title h1{margin:0;font-size:30px;letter-spacing:-.8px;line-height:1.1}.title p{margin:8px 0 0;color:#9ba8b8;font-weight:800;font-size:13px}.top-actions{display:flex;gap:10px;align-items:flex-start}.pill{height:42px;border:1px solid rgba(183,125,255,.2);background:linear-gradient(180deg,rgba(15,22,32,.9),rgba(7,12,20,.95));border-radius:13px;color:#dbe6f1;display:flex;align-items:center;gap:8px;padding:0 12px;font-size:12px;font-weight:900;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}.pill b{color:var(--green)}.btn{height:38px;border:1px solid rgba(183,125,255,.24);border-radius:12px;background:linear-gradient(180deg,#1a2230,#0a1019);color:#f4f7fb;font-weight:950;font-size:12px;padding:0 14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.05);transition:.18s}.btn:hover{transform:translateY(-1px);box-shadow:0 0 24px rgba(128,71,255,.14),inset 0 1px 0 rgba(255,255,255,.08)}.btn.primary{background:linear-gradient(180deg,#8f57ff,#5a31d6);border-color:rgba(199,156,255,.45)}.btn.green{background:linear-gradient(180deg,#62d54c,#2d8d23);border-color:rgba(156,255,104,.42);color:#08110a}.btn.orange{background:linear-gradient(180deg,#f4aa3f,#a96513);border-color:rgba(244,170,63,.46);color:#160b00}.btn.red{background:linear-gradient(180deg,#ff6861,#a11e26);border-color:rgba(255,90,85,.45)}.btn.blue{background:linear-gradient(180deg,#45c4ff,#1b5dba);border-color:rgba(69,196,255,.42)}.btn.ghost{background:rgba(255,255,255,.035)}
.global-filters{position:absolute;z-index:5;right:20px;left:20px;top:72px;display:grid;grid-template-columns:1.05fr 1fr 1.35fr 1fr 1fr 1fr 1.3fr auto;gap:8px}.field{height:44px;border:1px solid rgba(183,125,255,.16);background:rgba(6,13,20,.82);border-radius:13px;display:flex;align-items:center;gap:7px;padding:0 11px;color:#9daaba;font-size:11px;font-weight:900;min-width:0}.field span{white-space:nowrap;color:#7f8b9d}.field select,.field input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:#f4f7fb;font-weight:900;font-size:12px}.field option{background:#0b1219;color:#fff}.field.search{grid-column:auto}.content{position:absolute;z-index:1;top:126px;right:20px;left:20px;bottom:18px;overflow:hidden}.scroll{height:100%;overflow:auto;padding-left:6px}.scroll::-webkit-scrollbar{width:8px}.scroll::-webkit-scrollbar-thumb{background:rgba(128,71,255,.35);border-radius:10px}.grid{display:grid;gap:12px}.grid.kpis{grid-template-columns:repeat(6,1fr)}.grid.two{grid-template-columns:1.35fr .9fr}.grid.three{grid-template-columns:repeat(3,1fr)}.grid.four{grid-template-columns:repeat(4,1fr)}.grid.page{grid-template-columns:1.2fr .95fr}.card{position:relative;border:1px solid rgba(183,125,255,.15);background:linear-gradient(180deg,rgba(13,20,30,.92),rgba(5,11,18,.96));border-radius:17px;box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 18px 28px rgba(0,0,0,.23);overflow:hidden}.card.pad{padding:16px}.card h2,.card h3{margin:0;color:#fff;letter-spacing:-.3px}.card h2{font-size:17px}.card h3{font-size:14px}.card .sub{color:#93a0b1;font-weight:800;font-size:12px;margin-top:5px}.kpi{height:122px;padding:14px 16px 10px;cursor:pointer;transition:.18s}.kpi:hover,.kpi.active{transform:translateY(-1px);border-color:rgba(199,156,255,.55);box-shadow:0 0 0 1px rgba(183,125,255,.11),0 0 30px rgba(128,71,255,.16),inset 0 1px 0 rgba(255,255,255,.05)}.kpi:before{content:"";position:absolute;left:0;right:0;bottom:0;height:34px;background:linear-gradient(180deg,transparent,rgba(128,71,255,.08))}.kpi i{position:absolute;right:14px;top:38px;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(128,71,255,.1);border:1px solid rgba(183,125,255,.26);font-style:normal;color:#c79cff;text-shadow:0 0 18px rgba(183,125,255,.4)}.kpi span{display:block;margin-right:54px;color:#cbd4df;font-size:12px;font-weight:950}.kpi b{display:block;margin:13px 54px 4px 0;color:#b77dff;font-size:28px;line-height:1}.kpi small{display:block;margin-right:54px;color:#96a2b0;font-size:10.5px;font-weight:800}.kpi.green b{color:var(--green)}.kpi.green i{color:var(--green);border-color:rgba(99,214,76,.27);background:rgba(99,214,76,.08)}.kpi.cyan b{color:var(--cyan)}.kpi.orange b{color:var(--orange)}.kpi.red b{color:var(--red)}
.map-card{height:435px}.map-toolbar{position:absolute;z-index:500;right:14px;left:14px;top:14px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.map-toolbar>*{pointer-events:auto}.map-title{border:1px solid rgba(183,125,255,.2);background:rgba(3,8,14,.72);backdrop-filter:blur(8px);border-radius:14px;padding:10px 12px}.map-title b{display:block}.map-title span{display:block;color:#96a2b2;font-size:11px;margin-top:4px;font-weight:800}.layer-toggles{display:flex;gap:6px}.toggle{height:32px;border:1px solid rgba(183,125,255,.2);background:rgba(5,10,18,.74);color:#dce6f4;border-radius:10px;font-size:11px;font-weight:900;padding:0 9px}.toggle.active{background:linear-gradient(180deg,#8047ff,#4f29bb);border-color:rgba(199,156,255,.45)}#gardenMap,.leaflet-map{height:100%;width:100%;background:#081019}.leaflet-container{background:#081019;font-family:inherit}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#0c1420;color:#fff;border:1px solid rgba(183,125,255,.25);box-shadow:0 20px 35px rgba(0,0,0,.42)}.map-pin{width:22px;height:22px;border-radius:50%;background:#8047ff;border:3px solid #eadfff;box-shadow:0 0 0 6px rgba(128,71,255,.18),0 0 22px rgba(128,71,255,.64)}.map-pin.good{background:#63d64c;box-shadow:0 0 0 6px rgba(99,214,76,.16),0 0 22px rgba(99,214,76,.48)}.map-pin.warn{background:#f4aa3f;box-shadow:0 0 0 6px rgba(244,170,63,.16),0 0 22px rgba(244,170,63,.48)}.map-pin.bad{background:#ff5a55;box-shadow:0 0 0 6px rgba(255,90,85,.16),0 0 22px rgba(255,90,85,.48)}.marker-cluster-small,.marker-cluster-medium,.marker-cluster-large{background:rgba(128,71,255,.25)}.marker-cluster div{background:linear-gradient(180deg,#b77dff,#8047ff);color:white;font-weight:900;border:1px solid rgba(255,255,255,.3)}
.chart-box{height:270px;padding:14px}.chart-box.tall{height:335px}.chart-wrap{position:absolute;left:12px;right:12px;bottom:12px;top:58px}.chart-wrap canvas{width:100%!important;height:100%!important}.list{display:grid;gap:9px}.item{border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.028);border-radius:13px;padding:11px;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.item b{display:block;font-size:13px}.item span{display:block;color:#93a0af;font-size:11px;font-weight:800;margin-top:4px}.badge{display:inline-flex;align-items:center;justify-content:center;height:24px;border-radius:999px;padding:0 9px;font-size:10px;font-weight:950;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05)}.badge.good{color:#9cff68;border-color:rgba(99,214,76,.25);background:rgba(99,214,76,.08)}.badge.warn{color:#ffd184;border-color:rgba(244,170,63,.25);background:rgba(244,170,63,.08)}.badge.bad{color:#ff9b98;border-color:rgba(255,90,85,.25);background:rgba(255,90,85,.08)}.badge.info{color:#9edcff;border-color:rgba(69,196,255,.25);background:rgba(69,196,255,.08)}.table{width:100%;border-collapse:separate;border-spacing:0 8px}.table th{text-align:right;color:#93a0b0;font-size:11px;font-weight:950;padding:0 10px}.table td{background:rgba(255,255,255,.032);border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06);padding:11px 10px;font-size:12px;font-weight:850}.table td:first-child{border-right:1px solid rgba(255,255,255,.06);border-radius:0 12px 12px 0}.table td:last-child{border-left:1px solid rgba(255,255,255,.06);border-radius:12px 0 0 12px}.table .actions{display:flex;gap:6px}.mini-btn{height:27px;border:1px solid rgba(183,125,255,.22);background:rgba(128,71,255,.08);color:#f4f7fb;border-radius:9px;font-size:10px;font-weight:900;padding:0 9px}.mini-btn.green{border-color:rgba(99,214,76,.25);background:rgba(99,214,76,.08);color:#b7ff9e}.mini-btn.red{border-color:rgba(255,90,85,.25);background:rgba(255,90,85,.08);color:#ffb1ad}.mini-btn.blue{border-color:rgba(69,196,255,.25);background:rgba(69,196,255,.08);color:#b5e9ff}.form{display:grid;gap:10px}.form input,.form select,.form textarea{height:42px;border:1px solid rgba(183,125,255,.16);background:rgba(255,255,255,.035);border-radius:12px;color:#fff;outline:0;padding:0 12px;font-weight:900}.form textarea{height:86px;padding:12px;resize:none}.form label{font-size:11px;color:#9ba8b8;font-weight:950}.split{display:grid;grid-template-columns:1fr 1fr;gap:10px}.control-strip{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.zone-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.zone{height:104px;border:1px solid rgba(183,125,255,.16);border-radius:15px;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));padding:12px;position:relative}.zone strong{display:block}.zone .switch{position:absolute;left:12px;top:12px}.switch{width:44px;height:24px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.1);position:relative}.switch:after{content:"";position:absolute;right:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#96a2b0;transition:.18s}.switch.on{background:rgba(99,214,76,.22);border-color:rgba(99,214,76,.34)}.switch.on:after{right:22px;background:#9cff68;box-shadow:0 0 14px rgba(99,214,76,.55)}.camera-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.camera{height:205px;border:1px solid rgba(183,125,255,.16);border-radius:16px;overflow:hidden;background:#050a10;position:relative}.camera-view{height:135px;background:radial-gradient(circle at 35% 32%,rgba(99,214,76,.12),transparent 24%),linear-gradient(135deg,#0b1720,#172331 44%,#050910);position:relative;overflow:hidden}.camera-view:before{content:"";position:absolute;inset:18px;background:linear-gradient(110deg,transparent 0 43%,rgba(255,255,255,.075) 45% 47%,transparent 50%);animation:scan 3.4s linear infinite}.camera.rec .camera-view:after{content:"REC";position:absolute;left:10px;top:9px;color:#ff7973;font-size:11px;font-weight:950}.camera.off .camera-view{filter:grayscale(1) brightness(.45)}@keyframes scan{to{transform:translateX(120%)}}.camera-info{padding:10px}.camera-info b{display:block}.camera-info span{font-size:11px;color:#94a1ae;font-weight:800}.slider{width:100%;accent-color:#8047ff}.modal-back{position:fixed;inset:0;background:rgba(0,0,0,.62);display:none;place-items:center;z-index:50}.modal-back.show{display:grid}.modal{width:min(720px,92vw);max-height:84vh;overflow:auto;border:1px solid rgba(183,125,255,.25);background:linear-gradient(180deg,#101824,#050a11);border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.55);padding:18px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.modal-head h2{margin:0}.toast-host{position:fixed;left:18px;bottom:18px;z-index:99;display:grid;gap:8px}.toast{min-width:260px;border:1px solid rgba(183,125,255,.26);background:linear-gradient(180deg,#111a26,#070d15);color:#fff;border-radius:13px;padding:12px;box-shadow:0 20px 40px rgba(0,0,0,.34);font-weight:900}.login{position:fixed;inset:0;display:grid;place-items:center;background:radial-gradient(900px 400px at 54% 0,rgba(128,71,255,.2),transparent 62%),linear-gradient(180deg,#050a11,#02050a)}.login-card{width:min(900px,92vw);min-height:520px;border:1px solid rgba(183,125,255,.25);border-radius:28px;background:linear-gradient(135deg,rgba(13,20,31,.94),rgba(5,10,17,.97));box-shadow:0 30px 90px rgba(0,0,0,.56);display:grid;grid-template-columns:1.1fr .9fr;overflow:hidden}.login-hero{padding:42px;background:radial-gradient(380px 220px at 70% 30%,rgba(99,214,76,.13),transparent 62%),radial-gradient(420px 240px at 18% 78%,rgba(128,71,255,.18),transparent 65%)}.login-hero h1{font-size:45px;margin:12px 0 12px;letter-spacing:-1px}.login-hero p{color:#b2bdca;font-weight:850;line-height:1.8}.login-panel{padding:42px;border-right:1px solid rgba(255,255,255,.06);background:rgba(0,0,0,.1)}.login-panel h2{margin:0 0 10px}.login-panel .form{margin-top:22px}.login-panel input{height:48px}.login-panel button{height:48px}.hero-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.hero-badges span{height:32px;border-radius:999px;border:1px solid rgba(183,125,255,.18);background:rgba(255,255,255,.035);display:flex;align-items:center;padding:0 11px;font-size:12px;font-weight:900;color:#d5ddea}.footer-note{position:absolute;right:18px;bottom:12px;color:#6f7b8a;font-size:11px;font-weight:800}.empty{height:180px;display:grid;place-items:center;color:#94a1b0;font-weight:900}.inline-map{height:320px;border-radius:16px;overflow:hidden}.progress{height:8px;background:rgba(255,255,255,.07);border-radius:999px;overflow:hidden;margin-top:8px}.progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#8047ff,#b77dff)}.metric-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.metric{border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.025);border-radius:13px;padding:12px}.metric span{color:#97a4b3;font-size:11px;font-weight:850}.metric b{display:block;margin-top:8px;font-size:18px}.mini-map-fallback{height:100%;background:radial-gradient(circle at 60% 30%,rgba(99,214,76,.12),transparent 20%),linear-gradient(135deg,#09131d,#111d29);position:relative}.mini-map-fallback:before{content:"";position:absolute;inset:0;background-image:linear-gradient(30deg,transparent 45%,rgba(128,71,255,.12) 46% 48%,transparent 49%),linear-gradient(120deg,transparent 43%,rgba(69,196,255,.1) 44% 46%,transparent 47%);background-size:120px 120px}.role-matrix{display:grid;grid-template-columns:180px repeat(5,1fr);gap:6px}.role-matrix div{padding:10px;border-radius:10px;background:rgba(255,255,255,.035);font-size:11px;font-weight:900;text-align:center}.role-matrix .head{color:#cbb7ff;background:rgba(128,71,255,.12)}@media(max-width:1250px){.shell{inset:10px;grid-template-columns:86px 1fr}.brand-copy{display:none}.brand-lockup{grid-template-columns:1fr}.sidebar{border-radius:17px}.nav button span{display:none}.nav button{justify-content:center;padding:0}.global-filters{grid-template-columns:repeat(4,1fr);top:72px}.topbar{height:160px}.content{top:170px}.grid.kpis{grid-template-columns:repeat(3,1fr)}.camera-grid{grid-template-columns:repeat(2,1fr)}}

.importance-grid{display:grid;grid-template-columns:1fr;gap:9px}.importance-card{border:1px solid rgba(183,125,255,.15);background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.014));border-radius:14px;padding:10px}.importance-card b{display:block;font-size:13px;color:#fff}.importance-card span{display:inline-flex;margin:7px 0 5px;height:22px;align-items:center;padding:0 8px;border-radius:999px;background:rgba(99,214,76,.08);border:1px solid rgba(99,214,76,.2);color:#b8ff9d;font-size:10px;font-weight:950}.importance-card p{margin:0;color:#99a7b8;font-size:11px;line-height:1.65;font-weight:800}.soil-metric small{display:block;color:#798696;font-size:10px;font-weight:800;margin-top:4px}.metric-row .soil-metric{min-height:92px}.brand-copy strong{font-family:Inter,Tahoma,Arial,sans-serif;letter-spacing:.2px}.brand-copy span{letter-spacing:.55px}

/* SmartGreen v4 enhancements */
.brand-lockup{grid-template-columns:158px 1fr;gap:8px}.brand-emblem{width:154px;height:62px;border-radius:0;background:transparent url('assets/smartgreen-logo.svg') center/contain no-repeat!important;border:0!important;box-shadow:none!important}.brand-copy strong{font-size:15px!important;letter-spacing:.1px}.brand-copy span{font-size:9px!important;letter-spacing:.25px}.login .brand-emblem{width:184px;height:74px}.grid.kpis{grid-template-columns:repeat(5,1fr)}.map-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.map-tools .layer-toggles{max-width:720px;flex-wrap:wrap;justify-content:flex-end}.toggle.full{background:linear-gradient(180deg,rgba(69,196,255,.24),rgba(69,196,255,.08));border-color:rgba(69,196,255,.32)}.map-fullscreen{position:fixed!important;inset:14px!important;height:auto!important;z-index:80!important;border-radius:20px!important}.map-fullscreen .leaflet-map{height:100%!important}.device-pin{width:22px;height:22px;border-radius:8px;display:grid;place-items:center;color:#061019;font-size:10px;font-weight:950}.tank-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.tank-card{display:grid;grid-template-columns:1fr 50px;gap:8px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.028);border-radius:14px;padding:10px;min-height:100px}.tank-card b{display:block;font-size:12px}.tank-card span,.tank-card small{color:#93a0af;font-size:10.5px;font-weight:800}.tank-gauge{grid-row:1/3;grid-column:2;width:38px;height:76px;border:1px solid rgba(69,196,255,.28);border-radius:12px;align-self:center;position:relative;overflow:hidden;background:rgba(69,196,255,.05)}.tank-gauge i{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,#45c4ff,#8047ff);border-radius:10px 10px 0 0}.tank-gauge em{position:absolute;inset:0;display:grid;place-items:center;font-size:10px;font-style:normal;font-weight:950;color:#fff;text-shadow:0 1px 2px #000}.visitor-score{border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:16px;margin:12px 0;background:rgba(255,255,255,.03);display:flex;align-items:center;justify-content:space-between}.visitor-score b{font-size:34px}.visitor-score span{font-weight:950}.visitor-score.good b,.visitor-score.good span{color:#9cff68}.visitor-score.warn b,.visitor-score.warn span{color:#ffd184}.visitor-score.bad b,.visitor-score.bad span{color:#ff9b98}.schedule-panel{margin-top:16px;border:1px solid rgba(183,125,255,.16);background:rgba(255,255,255,.025);border-radius:16px;padding:12px;display:grid;gap:10px}.mode-tabs{display:flex;gap:8px;justify-content:flex-start}.fallback-note{position:absolute;right:14px;top:14px;z-index:2;border:1px solid rgba(183,125,255,.25);background:rgba(4,8,14,.82);border-radius:12px;padding:9px 12px;font-size:12px;font-weight:900;color:#dce6f4}.fallback-pin{position:absolute;width:18px;height:18px;border-radius:50%;border:2px solid #fff;background:#8047ff;box-shadow:0 0 0 6px rgba(128,71,255,.18);cursor:pointer}.fallback-pin.good{background:#63d64c}.fallback-pin.warn{background:#f4aa3f}.fallback-pin.bad{background:#ff5a55}.chart-box canvas{filter:drop-shadow(0 0 2px rgba(183,125,255,.12))}@media(max-width:1250px){.grid.kpis{grid-template-columns:repeat(3,1fr)}.tank-grid{grid-template-columns:1fr}.brand-lockup{grid-template-columns:1fr}.brand-emblem{width:70px;height:64px}.map-tools .layer-toggles{max-width:520px}}


/* SmartGreen home page compact-control update */
.topbar{height:98px!important;padding:13px 16px 0!important;gap:8px!important}.title h1{font-size:20px!important;letter-spacing:-.25px!important;line-height:1!important}.title p{margin-top:4px!important;font-size:11px!important}.top-actions{gap:6px!important}.pill{height:34px!important;border-radius:10px!important;font-size:10px!important;padding:0 9px!important}.btn{height:32px!important;border-radius:10px!important;font-size:10px!important;padding:0 10px!important}.global-filters{top:58px!important;right:16px!important;left:16px!important;gap:6px!important}.field{height:36px!important;border-radius:10px!important;padding:0 8px!important;font-size:9.5px!important}.field select,.field input{font-size:10.5px!important}.content{top:108px!important;right:16px!important;left:16px!important;bottom:14px!important}.grid{gap:10px!important}.grid.kpis{grid-template-columns:repeat(5,1fr)!important}.kpi{height:84px!important;padding:9px 10px 8px!important}.kpi i{right:10px!important;top:26px!important;width:30px!important;height:30px!important;border-radius:10px!important;font-size:12px!important}.kpi span{margin-right:40px!important;font-size:10.5px!important}.kpi b{margin:8px 40px 2px 0!important;font-size:19px!important}.kpi small{margin-right:40px!important;font-size:9px!important}.dashboard-main{grid-template-columns:minmax(580px,1.45fr) minmax(360px,.85fr)!important;align-items:stretch}.home-map-card{height:520px!important}.dashboard-side{grid-template-rows:245px 1fr}.home-soil-chart{height:245px!important}.dashboard-health-card{min-height:260px}.compact-map-toolbar{right:8px!important;left:8px!important;top:8px!important;align-items:flex-start!important}.compact-map-toolbar .map-title{padding:5px 7px!important;border-radius:9px!important}.compact-map-toolbar .map-title b{font-size:10px!important}.compact-map-toolbar .map-title span{font-size:8.5px!important;margin-top:2px!important}.map-card .layer-toggles{gap:3px!important}.map-card .toggle{height:17px!important;min-width:auto!important;border-radius:6px!important;font-size:8px!important;line-height:1!important;padding:0 5px!important}.map-card .map-tools{gap:4px!important}.map-card .map-tools .layer-toggles{max-width:420px!important;gap:3px!important}.map-card .toggle.full,.map-full-btn{width:22px!important;padding:0!important;font-size:10px!important}.map-floating-full{position:absolute;z-index:610;left:12px;top:54px;width:34px;height:34px;border-radius:11px;border:1px solid rgba(69,196,255,.42);background:linear-gradient(180deg,rgba(69,196,255,.34),rgba(69,196,255,.11));color:#e8f8ff;font-weight:950;font-size:16px;box-shadow:0 0 22px rgba(69,196,255,.17);cursor:pointer}.map-fullscreen .map-floating-full{top:68px}.dash-health-block{border:1px solid rgba(255,255,255,.07);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015));padding:11px;margin-top:10px}.health-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.health-head b{font-size:12px}.mini-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:9px 0}.mini-metrics div{border:1px solid rgba(255,255,255,.055);background:rgba(0,0,0,.12);border-radius:10px;padding:8px}.mini-metrics span{display:block;color:#94a0b1;font-size:9px;font-weight:850}.mini-metrics b{display:block;margin-top:5px;font-size:14px}.health-score{height:7px;background:rgba(255,255,255,.07);border-radius:999px;overflow:hidden;position:relative}.health-score i{display:block;height:100%;background:linear-gradient(90deg,#8047ff,#45c4ff,#63d64c);border-radius:inherit}.health-score em{position:absolute;left:6px;top:-17px;color:#cfd8e5;font-size:10px;font-style:normal;font-weight:950}.compact-actions{margin-top:10px!important;gap:5px!important}.compact-actions .btn{height:28px!important;padding:0 8px!important;font-size:9.5px!important}.chart-box{height:260px}.chart-wrap{top:52px!important}.map-fullscreen{inset:10px!important;z-index:9999!important}.map-fullscreen .compact-map-toolbar .toggle{height:22px!important;font-size:10px!important}.map-fullscreen .map-tools .layer-toggles{max-width:800px!important}
@media(max-width:1250px){.dashboard-main{grid-template-columns:1fr!important}.home-map-card{height:440px!important}.dashboard-side{grid-template-rows:auto}.grid.kpis{grid-template-columns:repeat(3,1fr)!important}.mini-metrics{grid-template-columns:repeat(2,1fr)}}


/* SmartGreen v6: visible map controls and working home actions */
.map-card{position:relative!important;overflow:hidden!important}.map-toolbar{z-index:640!important}.leaflet-control-zoom{display:none!important}.map-overlay-controls{position:absolute;z-index:780;left:12px;top:12px;display:flex;gap:6px;align-items:center;direction:rtl;pointer-events:auto}.map-ctrl-btn{height:28px;border:1px solid rgba(69,196,255,.34);background:rgba(5,10,18,.84);color:#eaf8ff;border-radius:9px;padding:0 10px;font-size:10px;font-weight:950;box-shadow:0 0 18px rgba(69,196,255,.12);cursor:pointer;backdrop-filter:blur(8px)}.map-ctrl-btn.active{background:linear-gradient(180deg,#8047ff,#4f29bb);border-color:rgba(199,156,255,.5);color:#fff}.map-ctrl-btn.full{background:linear-gradient(180deg,rgba(99,214,76,.28),rgba(99,214,76,.11));border-color:rgba(99,214,76,.38);color:#dfffd8}.map-fullscreen{position:fixed!important;inset:10px!important;width:auto!important;height:auto!important;z-index:2147483000!important;border-radius:18px!important}.map-fullscreen .leaflet-map{height:100%!important}.map-fullscreen .map-overlay-controls{top:18px;left:18px}.map-fullscreen .map-toolbar{top:18px!important;right:18px!important;left:260px!important}.map-floating-full,.map-full-btn,#baseStreet,#baseSatellite{display:none!important}.action-buttons-fixed{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important}.action-buttons-fixed .btn{pointer-events:auto!important;cursor:pointer!important;min-width:96px!important}.action-status{margin-top:10px;border:1px solid rgba(69,196,255,.14);background:linear-gradient(180deg,rgba(69,196,255,.06),rgba(255,255,255,.015));border-radius:12px;padding:9px 11px;display:flex;gap:8px;align-items:center;justify-content:space-between}.action-status b{font-size:11px;color:#dce6f4}.action-status span{font-size:11px;color:#9fb0c2;font-weight:850}.home-map-card .compact-map-toolbar{right:8px!important;left:220px!important}.home-map-card .map-title{display:none!important}.home-map-card .map-tools .layer-toggles{max-width:520px!important}.home-map-card .toggle{height:18px!important;font-size:8px!important;padding:0 5px!important;border-radius:6px!important}
@media(max-width:900px){.map-overlay-controls{left:8px;right:8px;top:8px;justify-content:flex-start;flex-wrap:wrap}.home-map-card .compact-map-toolbar{display:none!important}.map-ctrl-btn{height:26px;font-size:9px;padding:0 8px}.action-buttons-fixed .btn{min-width:calc(50% - 8px)!important}.map-fullscreen .map-toolbar{display:none!important}}


/* SmartGreen v7: complete garden components form */
.gardens-page{grid-template-columns:minmax(760px,1.35fr) minmax(420px,.85fr)!important}
.gardens-table td small{display:block;color:#8f9cac;font-size:9.5px;font-weight:800;margin-top:3px}.gardens-table td b{font-size:14px;color:#eef5ff}.component-summary{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:8px 0 10px}.component-summary div{border:1px solid rgba(183,125,255,.13);background:rgba(255,255,255,.026);border-radius:12px;padding:9px}.component-summary span{display:block;color:#91a0b1;font-size:9.5px;font-weight:900}.component-summary b{display:block;font-size:17px;margin-top:4px;color:#b77dff}.component-summary small{display:block;color:#7f8b9a;font-size:9px;margin-top:2px;font-weight:800}.garden-form{gap:12px}.form-section{border:1px solid rgba(183,125,255,.16);background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.014));border-radius:16px;padding:12px;display:grid;gap:10px}.form-section h3{font-size:13px;color:#e9eff8;margin:0 0 2px}.form-note{border:1px solid rgba(99,214,76,.22);background:linear-gradient(90deg,rgba(99,214,76,.10),rgba(128,71,255,.055));border-radius:15px;padding:11px 12px}.form-note b{display:block;color:#c9ffb8;font-size:13px}.form-note span{display:block;color:#a8b4c2;font-size:11px;font-weight:800;margin-top:5px;line-height:1.6}.device-count-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.device-count-grid.compact{grid-template-columns:repeat(4,1fr)}.device-count-grid label{border:1px solid rgba(255,255,255,.065);background:rgba(0,0,0,.12);border-radius:13px;padding:9px;color:#aab7c5;font-size:10.5px;font-weight:950}.device-count-grid input{width:100%;height:34px;margin:6px 0;border-radius:10px}.device-count-grid small{display:block;color:#758397;font-size:9px;font-weight:800;line-height:1.4}.garden-component-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.garden-component-cards div{border:1px solid rgba(69,196,255,.16);background:rgba(69,196,255,.035);border-radius:12px;padding:9px}.garden-component-cards span{display:block;color:#9fdaff;font-size:9.5px;font-weight:900}.garden-component-cards b{display:block;color:#fff;font-size:18px;margin:4px 0}.garden-component-cards small{color:#8e9aaa;font-size:9px;font-weight:800}.modal-actions{display:flex;gap:8px;justify-content:flex-start;position:sticky;bottom:-18px;background:linear-gradient(180deg,rgba(5,10,17,0),#050a11 28%);padding-top:14px}.modal{width:min(980px,94vw)!important}.form select option{background:#0b1219;color:#fff}
@media(max-width:1250px){.gardens-page{grid-template-columns:1fr!important}.component-summary{grid-template-columns:repeat(3,1fr)}.device-count-grid,.device-count-grid.compact,.garden-component-cards{grid-template-columns:repeat(2,1fr)}}


/* SmartGreen v8: Soil sensors page - one chart per sensor and compact layout */
.soil-page{display:grid;gap:10px!important;padding-bottom:2px}.soil-page-head{display:grid;grid-template-columns:1.05fr 1.55fr auto;gap:12px;align-items:center}.soil-page-head h2{font-size:16px!important}.soil-page-head .sub{font-size:11px!important;line-height:1.5}.soil-head-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.mini-soil-stat{border:1px solid rgba(183,125,255,.13);background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012));border-radius:13px;padding:9px 10px}.mini-soil-stat span{display:block;color:#93a0b2;font-size:9.5px;font-weight:900}.mini-soil-stat b{display:block;margin-top:4px;color:#d9c8ff;font-size:18px;line-height:1}.mini-soil-stat small{display:block;margin-top:4px;color:#758397;font-size:8.5px;font-weight:800}.soil-overview-grid{display:grid;grid-template-columns:minmax(300px,1fr) minmax(300px,1fr) minmax(320px,.9fr);gap:10px}.soil-overview-chart{height:245px!important}.soil-importance-panel{min-height:245px!important;padding:12px!important}.soil-importance-panel .importance-grid{grid-template-columns:repeat(2,1fr);gap:7px}.soil-importance-panel .importance-card{padding:8px;border-radius:12px}.soil-importance-panel .importance-card b{font-size:11px}.soil-importance-panel .importance-card span{height:19px;font-size:8.5px;margin:5px 0 4px}.soil-importance-panel .importance-card p{font-size:9.5px;line-height:1.45}.soil-sensors-panel{padding:12px!important}.section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.section-title-row h2{font-size:15px!important}.section-title-row .sub{margin:4px 0 0!important;font-size:10.5px!important}.soil-sensor-chart-grid{display:grid;grid-template-columns:repeat(4,minmax(230px,1fr));gap:9px;align-items:stretch}.sensor-chart-card{border:1px solid rgba(183,125,255,.14);background:linear-gradient(180deg,rgba(8,15,23,.94),rgba(5,10,16,.98));border-radius:15px;padding:10px;min-height:230px;display:grid;grid-template-rows:auto auto 116px auto;gap:7px;overflow:hidden}.sensor-chart-card.good{border-color:rgba(99,214,76,.22)}.sensor-chart-card.warn{border-color:rgba(244,170,63,.27)}.sensor-chart-card.bad{border-color:rgba(255,90,85,.28)}.sensor-card-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.sensor-card-head b{display:block;color:#fff;font-size:12px}.sensor-card-head span{display:block;margin-top:3px;color:#8593a4;font-size:9px;font-weight:800}.sensor-card-head em{font-style:normal;border-radius:999px;height:22px;padding:0 8px;display:inline-grid;place-items:center;color:#0a0f14;font-size:9px;font-weight:950;background:#9cff68;white-space:nowrap}.sensor-chart-card.warn .sensor-card-head em{background:#ffd184}.sensor-chart-card.bad .sensor-card-head em{background:#ff9b98}.sensor-values{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.sensor-values span{border:1px solid rgba(255,255,255,.055);background:rgba(255,255,255,.025);border-radius:9px;padding:5px 6px;color:#8f9dac;font-size:8.5px;font-weight:900}.sensor-values b{display:block;color:#eef6ff;font-size:11px;margin-top:2px}.sensor-chart-wrap{position:relative;height:116px;width:100%;border-radius:11px;background:rgba(0,0,0,.10);border:1px solid rgba(255,255,255,.035);padding:4px}.sensor-chart-wrap canvas{width:100%!important;height:100%!important}.sensor-score{height:18px;background:rgba(255,255,255,.055);border-radius:999px;position:relative;overflow:hidden}.sensor-score i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8047ff,#45c4ff,#63d64c)}.sensor-score small{position:absolute;inset:0;display:grid;place-items:center;color:#e8eef6;font-size:8.5px;font-weight:950;text-shadow:0 1px 2px #000}.soil-bottom-grid{display:grid;grid-template-columns:1.25fr .9fr;gap:10px}.soil-bottom-grid .table th,.soil-bottom-grid .table td{font-size:10px;padding:8px}.soil-page .chart-wrap{top:48px!important}.soil-page .card h2{letter-spacing:-.2px}
@media(max-width:1500px){.soil-sensor-chart-grid{grid-template-columns:repeat(3,minmax(220px,1fr))}.soil-page-head{grid-template-columns:1fr}.soil-head-kpis{grid-template-columns:repeat(5,1fr)}.soil-overview-grid{grid-template-columns:1fr 1fr}.soil-importance-panel{grid-column:1/-1}.soil-importance-panel .importance-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:1050px){.soil-sensor-chart-grid{grid-template-columns:repeat(2,minmax(210px,1fr))}.soil-overview-grid,.soil-bottom-grid{grid-template-columns:1fr}.soil-head-kpis{grid-template-columns:repeat(2,1fr)}.soil-importance-panel .importance-grid{grid-template-columns:1fr 1fr}}


/* v9 irrigation scheduler refinements */
.irrigation-page{display:grid;gap:10px}.irrigation-hero{display:grid;grid-template-columns:1.05fr 1.2fr;gap:12px;align-items:start}.compact-actions{margin:0;justify-content:flex-start}.irrigation-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px;grid-column:1/-1}.irrigation-summary-grid div{border:1px solid rgba(183,125,255,.14);background:rgba(255,255,255,.026);border-radius:13px;padding:10px;min-height:58px}.irrigation-summary-grid span{display:block;color:#91a0b1;font-size:10px;font-weight:900}.irrigation-summary-grid b{display:block;color:#fff;font-size:14px;margin-top:5px;line-height:1.35}.irrigation-main-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:10px}.zone-card,.schedule-card{min-height:0}.compact-zones{grid-template-columns:repeat(4,1fr);gap:8px}.compact-zones .zone{height:96px;padding:10px}.compact-zones .zone strong{font-size:12px}.compact-zones .zone small{font-size:10px;color:#8795a6;font-weight:800}.irrigation-chart-grid{display:grid;grid-template-columns:1fr 1fr .9fr;gap:10px}.irrigation-chart-grid .compact-chart{height:300px}.pump-status-card{height:300px;overflow:auto}.pump-status-card .item{padding:9px;margin-bottom:6px}.compact-table{border-spacing:0 6px}.compact-table th{font-size:10px}.compact-table td{font-size:11px;padding:8px}.small-empty{height:86px}.irrigation-modal-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:14px;align-items:start}.irrigation-schedule-form{border:1px solid rgba(183,125,255,.16);background:rgba(255,255,255,.022);border-radius:16px;padding:12px}.irrigation-schedule-form small{display:block;color:#7f8d9f;font-size:10px;font-weight:800;margin-top:5px}.irrigation-schedule-list{border:1px solid rgba(69,196,255,.14);background:rgba(69,196,255,.025);border-radius:16px;padding:12px;overflow:auto}.irrigation-schedule-list h3{margin:0 0 8px;font-size:14px}.irrigation-page .section-title-row{margin-bottom:8px}@media(max-width:1250px){.irrigation-hero,.irrigation-main-grid,.irrigation-chart-grid,.irrigation-modal-layout{grid-template-columns:1fr}.irrigation-summary-grid{grid-template-columns:repeat(2,1fr)}.compact-zones{grid-template-columns:repeat(2,1fr)}}


/* v10: تعميم خريطة الصفحة الرئيسية على كل صفحات المنصة بنفس الخواص */
.universal-map-card{height:430px!important;margin-top:12px!important;min-height:430px!important;border-color:rgba(69,196,255,.16)!important;box-shadow:0 18px 45px rgba(0,0,0,.34),0 0 34px rgba(69,196,255,.08)!important}
.universal-map-card .leaflet-map{height:100%!important;min-height:430px!important}
.universal-map-card .compact-map-toolbar{right:8px!important;left:220px!important;top:8px!important}
.universal-map-card .map-title{display:none!important}
.universal-map-card .map-tools .layer-toggles{max-width:520px!important}
.universal-map-card .toggle{height:18px!important;font-size:8px!important;padding:0 5px!important;border-radius:6px!important}
@media(max-width:900px){.universal-map-card{height:360px!important;min-height:360px!important}.universal-map-card .leaflet-map{min-height:360px!important}.universal-map-card .compact-map-toolbar{display:none!important}}

/* v11: Gardens map position controls */
.gardens-page.gardens-map-top,.gardens-page.gardens-map-bottom{grid-template-columns:1fr!important;align-items:start!important}
.gardens-management-card{min-height:auto!important}
.gardens-map-card{height:500px!important;min-height:500px!important;margin:0!important;width:100%!important}
.gardens-map-card .leaflet-map{height:100%!important;min-height:500px!important}
.gardens-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}
.map-position-switch{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;border:1px solid rgba(69,196,255,.14);background:linear-gradient(180deg,rgba(69,196,255,.055),rgba(255,255,255,.012));padding:8px 9px;border-radius:13px;min-width:265px}
.map-position-switch span{font-size:10px;font-weight:950;color:#9fb0c2;margin-left:3px}
.map-position-switch .mini-btn{height:28px!important;border-radius:9px!important;font-size:10px!important;border-color:rgba(255,255,255,.12)!important;background:rgba(255,255,255,.045)!important;color:#dfe8f5!important}
.map-position-switch .mini-btn.active{background:linear-gradient(180deg,var(--purple),var(--purple3))!important;border-color:rgba(199,156,255,.5)!important;color:#fff!important;box-shadow:0 0 18px rgba(128,71,255,.22)}
.gardens-map-top .gardens-map-card{order:1}.gardens-map-top .gardens-management-card{order:2}.gardens-map-bottom .gardens-management-card{order:1}.gardens-map-bottom .gardens-map-card{order:2}
@media(max-width:900px){.gardens-head{display:block}.map-position-switch{margin-top:10px;justify-content:flex-start;min-width:0}.gardens-map-card{height:380px!important;min-height:380px!important}.gardens-map-card .leaflet-map{min-height:380px!important}}

/* v12 layout fixes: gardens map controls and home map alignment */
.gardens-page .gardens-map-card{
  min-height:430px!important;
}
.gardens-page .gardens-map-card .map-title{
  display:none!important;
}
.gardens-page .gardens-map-card .map-overlay-controls{
  top:10px!important;
  left:10px!important;
  right:auto!important;
  z-index:820!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:5px!important;
}
.gardens-page .gardens-map-card .map-ctrl-btn{
  height:26px!important;
  min-width:auto!important;
  padding:0 8px!important;
  font-size:9px!important;
  border-radius:8px!important;
}
.gardens-page .gardens-map-card .map-toolbar{
  top:48px!important;
  right:10px!important;
  left:10px!important;
  z-index:760!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:flex-end!important;
  pointer-events:none!important;
}
.gardens-page .gardens-map-card .map-tools{
  width:100%!important;
  display:flex!important;
  justify-content:flex-end!important;
  pointer-events:auto!important;
}
.gardens-page .gardens-map-card .layer-toggles{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:4px!important;
  max-width:calc(100% - 10px)!important;
}
.gardens-page .gardens-map-card .toggle{
  height:24px!important;
  padding:0 7px!important;
  font-size:9px!important;
  line-height:1!important;
  border-radius:8px!important;
  white-space:nowrap!important;
}
.gardens-page .gardens-map-card .leaflet-map{
  min-height:430px!important;
}
.dashboard-main{
  align-items:stretch!important;
}
.dashboard-main .home-map-card{
  height:100%!important;
  min-height:520px!important;
}
.dashboard-main .dashboard-side{
  height:100%!important;
  display:grid!important;
  grid-template-rows:minmax(260px,1fr) auto!important;
  gap:12px!important;
  align-content:stretch!important;
}
.dashboard-main .dashboard-side>.card{
  min-height:0!important;
}
@media(max-width:1250px){
  .dashboard-main .home-map-card{min-height:440px!important;height:440px!important}
  .dashboard-main .dashboard-side{height:auto!important;grid-template-rows:auto!important}
  .gardens-page .gardens-map-card .map-toolbar{top:50px!important}
  .gardens-page .gardens-map-card .layer-toggles{justify-content:flex-start!important}
}


/* v13: uploaded SmartGreen logo replacement */
.brand{height:138px!important}
.brand-lockup{grid-template-columns:1fr!important;justify-items:center!important;align-items:center!important;gap:0!important;width:100%!important}
.brand-emblem{width:168px!important;height:132px!important;border-radius:0!important;background:transparent url('assets/smartgreen-logo-uploaded.png') center/contain no-repeat!important;border:0!important;box-shadow:none!important}
.brand-copy{display:none!important}
.login .brand-emblem{width:250px!important;height:210px!important}
.login .brand-lockup{justify-content:center!important}
@media(max-width:1250px){.brand-emblem{width:142px!important;height:112px!important}.login .brand-emblem{width:220px!important;height:185px!important}}


/* v14 agricultural parameters control */
.nav button i{min-width:24px}
.agri-control-page{display:grid;gap:12px}
.agri-control-head{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:start}
.agri-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin-top:12px}
.agri-limits-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.agri-limits-grid section{border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:12px;background:rgba(8,13,24,.38)}
.agri-limits-grid h3{margin:0 0 10px;font-size:14px;color:#e9f5ee}
.agri-alarm-settings{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:10px}
.agri-alarm-settings label,.agri-limits-grid label{display:flex;flex-direction:column;gap:6px;color:#aeb9c9;font-size:12px;font-weight:bold}
.agri-alarm-settings input,.agri-alarm-settings select,.agri-limits-grid input{height:38px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#0b1322;color:#eaf4ef;padding:0 10px;outline:none}
.agri-limits-grid small,.agri-alarm-settings small{color:#728198;font-size:11px}
.map-pin.alarm{width:22px;height:22px;border-radius:50%;background:#ff3b30;border:3px solid #ffd0cd;box-shadow:0 0 0 0 rgba(255,59,48,.9),0 0 28px rgba(255,59,48,.9);animation:alarmPulse 1.1s infinite;position:relative}
.map-pin.alarm:after{content:'!';position:absolute;inset:0;display:grid;place-items:center;color:white;font-weight:900;font-size:14px}
.alarm-toggle.active{background:rgba(255,59,48,.20)!important;border-color:rgba(255,59,48,.55)!important;color:#ffd9d7!important}
@keyframes alarmPulse{0%{transform:scale(.94);box-shadow:0 0 0 0 rgba(255,59,48,.75),0 0 26px rgba(255,59,48,.65)}70%{transform:scale(1.08);box-shadow:0 0 0 14px rgba(255,59,48,0),0 0 26px rgba(255,59,48,.45)}100%{transform:scale(.94);box-shadow:0 0 0 0 rgba(255,59,48,0),0 0 26px rgba(255,59,48,.65)}}
@media(max-width:1100px){.agri-control-head{grid-template-columns:1fr}.agri-summary-grid,.agri-limits-grid,.agri-alarm-settings{grid-template-columns:1fr}}


/* v15: Auto-hidden sidebar, page scroll lists, and agricultural map position */
.shell{transition:grid-template-columns .24s ease!important}
.viewport.sidebar-collapsed .shell{grid-template-columns:72px 1fr!important}
.viewport.sidebar-expanded .shell,.viewport.sidebar-pinned .shell{grid-template-columns:224px 1fr!important}
.sidebar{transition:width .24s ease, box-shadow .24s ease!important}
.sidebar-auto-toggle{position:absolute;top:10px;left:10px;z-index:25;width:30px;height:30px;border-radius:10px;border:1px solid rgba(183,125,255,.22);background:rgba(5,10,18,.78);color:#d9c8ff;font-weight:900;display:grid;place-items:center}
.sidebar-scroll-list{height:calc(100vh - 190px);max-height:calc(100vh - 190px);overflow-y:auto;overflow-x:hidden;padding-inline-end:8px;scrollbar-width:thin;scrollbar-color:rgba(128,71,255,.52) transparent}
.sidebar-scroll-list::-webkit-scrollbar{width:7px}.sidebar-scroll-list::-webkit-scrollbar-thumb{background:rgba(128,71,255,.45);border-radius:999px}
.viewport.sidebar-collapsed:not(.sidebar-expanded) .sidebar{overflow:hidden!important}
.viewport.sidebar-collapsed:not(.sidebar-expanded) .brand{height:92px!important;padding-top:22px!important}
.viewport.sidebar-collapsed:not(.sidebar-expanded) .brand-lockup{display:flex!important;justify-content:center!important}
.viewport.sidebar-collapsed:not(.sidebar-expanded) .brand-emblem{width:54px!important;height:54px!important;background-size:contain!important}
.viewport.sidebar-collapsed:not(.sidebar-expanded) .brand-copy{display:none!important}
.viewport.sidebar-collapsed:not(.sidebar-expanded) .nav{padding:8px 7px!important;height:calc(100vh - 132px);max-height:calc(100vh - 132px)}
.viewport.sidebar-collapsed:not(.sidebar-expanded) .nav button{height:40px!important;padding:0!important;justify-content:center!important;gap:0!important}
.viewport.sidebar-collapsed:not(.sidebar-expanded) .nav button span{display:none!important}
.viewport.sidebar-collapsed:not(.sidebar-expanded) .nav i{width:34px!important;height:34px!important;font-size:15px!important}
.viewport.sidebar-collapsed:not(.sidebar-expanded) .sidebar:after{display:none!important}
.scroll-list,.scroll-list-region,.auto-list-card{scrollbar-width:thin;scrollbar-color:rgba(128,71,255,.42) transparent}
.scroll-list::-webkit-scrollbar,.scroll-list-region::-webkit-scrollbar,.auto-list-card::-webkit-scrollbar{width:7px;height:7px}.scroll-list::-webkit-scrollbar-thumb,.scroll-list-region::-webkit-scrollbar-thumb,.auto-list-card::-webkit-scrollbar-thumb{background:rgba(128,71,255,.42);border-radius:999px}
.table-scroll-list{max-height:350px;overflow:auto;border:1px solid rgba(183,125,255,.11);border-radius:14px;background:rgba(0,0,0,.10);padding:0 4px 4px;margin-top:8px}
.table-scroll-list .table{min-width:820px;margin:0!important}
.scroll-list-region{max-height:470px;overflow:auto;padding-inline-end:4px}
.auto-list-card{max-height:440px;overflow:auto}
.soil-sensor-chart-grid.scroll-list-region{max-height:500px}.zone-grid.scroll-list-region{max-height:360px}.component-summary.scroll-list-region{max-height:255px}.agri-limits-grid.scroll-list-region{max-height:470px}
.agri-control-page.agri-map-top,.agri-control-page.agri-map-bottom{grid-template-columns:1fr!important;align-items:start!important}
.agri-control-head{grid-template-columns:1fr auto auto!important;align-items:start!important}
.agri-position-switch{min-width:250px}.agri-map-block{order:2}.agri-map-top .agri-map-block{order:1}.agri-map-top .agri-control-head{order:0}.agri-map-bottom .agri-map-block{order:99}
.agri-map-block .universal-map-card{margin-top:0!important;margin-bottom:0!important;height:420px!important;min-height:420px!important}.agri-map-block .leaflet-map{min-height:420px!important}
.agri-violations-card{max-height:380px;overflow:auto}.agri-limits-card .agri-limits-grid{margin-top:10px}
@media(max-width:1250px){.agri-control-head{grid-template-columns:1fr!important}.agri-position-switch{justify-content:flex-start;min-width:0}.viewport.sidebar-collapsed .shell{grid-template-columns:64px 1fr!important}}

/* v16: White SmartGreen theme, user notifications, reset/logout icons */
:root{
  --waste-bg:#f6faf7!important;--waste-bg2:#eef6f0!important;--panel:#ffffff!important;--panel2:#f8fbf8!important;--panel3:#eef7f0!important;
  --line:#d8e4dc!important;--line2:#c7d8cf!important;--text:#12211a!important;--muted:#5c6d63!important;--dim:#83928a!important;
  --purple:#2fbf72!important;--purple2:#6de099!important;--purple3:#128a4b!important;--green:#25b768!important;--green2:#7ee6a4!important;
  --orange:#f59e0b!important;--red:#ef4444!important;--blue:#2563eb!important;--cyan:#0891b2!important;--shadow:0 18px 45px rgba(14,70,35,.12)!important;
}
html,body,#app{background:#f6faf7!important;color:var(--text)!important}
.viewport{background:radial-gradient(1200px 520px at 64% -12%,rgba(37,183,104,.14),transparent 58%),radial-gradient(900px 420px at 13% 112%,rgba(8,145,178,.08),transparent 58%),linear-gradient(180deg,#f8fcf9 0%,#eef7f1 100%)!important}
.viewport:before{background-image:linear-gradient(rgba(37,183,104,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(37,183,104,.045) 1px,transparent 1px)!important;opacity:.75!important}
.sidebar{border-color:rgba(36,122,75,.18)!important;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(243,250,245,.98))!important;box-shadow:0 20px 50px rgba(20,75,44,.13)!important}
.sidebar:after{background:radial-gradient(closest-side,rgba(37,183,104,.12),transparent)!important}.brand{border-bottom-color:rgba(36,122,75,.14)!important;background:radial-gradient(170px 80px at 50% 38%,rgba(37,183,104,.10),transparent 72%)!important}
.sidebar-auto-toggle{background:#fff!important;color:#15803d!important;border-color:#d5e7da!important;box-shadow:0 10px 24px rgba(15,90,45,.08)!important}
.nav button{color:#506358!important}.nav button:hover{color:#0f7d42!important;background:rgba(37,183,104,.08)!important}.nav button.active{color:#0b7a3e!important;background:linear-gradient(90deg,rgba(37,183,104,.18),rgba(37,183,104,.055))!important;border-color:rgba(37,183,104,.28)!important;box-shadow:inset 0 0 18px rgba(37,183,104,.08)!important}.nav i{background:#f5faf6!important;border-color:#dfeae2!important;color:#168447!important}.nav .active i{background:#e9f8ee!important;color:#0b7a3e!important;border-color:#bfe8cd!important}
.main{border-color:#dcebe1!important;background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(249,252,250,.98))!important;box-shadow:0 24px 56px rgba(20,75,44,.11)!important}.main:before{background:radial-gradient(760px 320px at 80% -4%,rgba(37,183,104,.10),transparent 61%),radial-gradient(650px 320px at 10% 92%,rgba(8,145,178,.06),transparent 62%)!important}.title h1,.card h2,.card h3{color:#12211a!important}.title p,.card .sub{color:#5f7267!important}
.global-filters{grid-template-columns:1.05fr 1fr 1.35fr 1fr 1fr 1fr 1.3fr!important}.field{border-color:#d6e4da!important;background:#ffffffcc!important;color:#33483b!important;box-shadow:0 8px 22px rgba(18,80,43,.045)!important}.field span{color:#698174!important}.field select,.field input{color:#12211a!important}.field option{background:#fff!important;color:#12211a!important}.scroll::-webkit-scrollbar-thumb,.sidebar-scroll-list::-webkit-scrollbar-thumb,.scroll-list::-webkit-scrollbar-thumb,.scroll-list-region::-webkit-scrollbar-thumb,.auto-list-card::-webkit-scrollbar-thumb{background:rgba(37,183,104,.38)!important}
.card{border-color:#dbe9df!important;background:linear-gradient(180deg,#ffffff,#f9fcfa)!important;box-shadow:0 14px 34px rgba(20,75,44,.08),inset 0 1px 0 rgba(255,255,255,.8)!important;color:#12211a!important}.card:before,.kpi:before{opacity:.35!important}.kpi span,.kpi small,.metric span,.item span,.tank-card span,.list .item span{color:#617368!important}.kpi b{color:#15803d!important}.kpi i{background:#eefaf2!important;color:#168447!important;border-color:#ccebd6!important;text-shadow:none!important}.kpi:hover,.kpi.active{border-color:#9ddfb5!important;box-shadow:0 0 0 1px rgba(37,183,104,.14),0 18px 32px rgba(37,183,104,.12)!important}
.btn{background:linear-gradient(180deg,#ffffff,#edf6f0)!important;color:#143522!important;border-color:#cfe3d5!important;box-shadow:0 10px 20px rgba(20,75,44,.06), inset 0 1px 0 rgba(255,255,255,.9)!important}.btn.primary{background:linear-gradient(180deg,#37c978,#159450)!important;color:#fff!important;border-color:#129252!important}.btn.green{background:linear-gradient(180deg,#35c979,#11924d)!important;color:#fff!important;border-color:#13934e!important}.btn.orange{background:linear-gradient(180deg,#f6b643,#e58b08)!important;color:#311b00!important}.btn.red{background:linear-gradient(180deg,#ff6b6b,#e53935)!important;color:#fff!important}.btn.blue{background:linear-gradient(180deg,#39a8ff,#2563eb)!important;color:#fff!important}.btn.ghost{background:#ffffff!important;color:#17462b!important}.pill{background:#fff!important;border-color:#d4e6da!important;color:#163623!important;box-shadow:0 10px 22px rgba(20,75,44,.06)!important}.pill b{color:#15803d!important}
.table{background:#fff!important;color:#17261d!important}.table th{background:#eff8f2!important;color:#234533!important;border-bottom-color:#dcebe1!important}.table td{border-bottom-color:#e7f1ea!important;color:#17261d!important}.table small{color:#64786c!important}.table-scroll-list{background:#fff!important;border-color:#dcebe1!important}.metric,.mini-soil-stat,.tank-card,.sensor-chart-card,.importance-card,.notification-item,.profile-panel,.dash-health-block{background:#fff!important;border-color:#dcebe1!important;color:#17261d!important;box-shadow:0 10px 24px rgba(18,80,43,.055)!important}.metric b,.tank-card b,.sensor-chart-card b,.importance-card b{color:#12351f!important}.badge.good{background:#e8f8ee!important;color:#0b7a3e!important}.badge.warn{background:#fff4dc!important;color:#9a5b00!important}.badge.bad,.badge.red{background:#ffe8e8!important;color:#b42318!important}.badge.info{background:#e8f4ff!important;color:#075985!important}
.map-title,.toggle,.map-ctrl-btn,.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#ffffffea!important;color:#14241b!important;border-color:#d7e9dd!important}.toggle.active,.map-ctrl-btn.active{background:linear-gradient(180deg,#35c979,#11924d)!important;color:#fff!important;border-color:#11924d!important}.leaflet-container{background:#eaf3ed!important}.map-pin{border-color:#fff!important}.modal-back{background:rgba(20,40,28,.25)!important}.modal{background:#ffffff!important;color:#12211a!important;border-color:#d4e7db!important;box-shadow:0 30px 70px rgba(11,72,37,.20)!important}.modal-head{border-bottom-color:#e1ede5!important}.form label{color:#315141!important}.form input,.form select,.form textarea,.agri-alarm-settings input,.agri-alarm-settings select,.agri-limits-grid input{background:#fff!important;color:#12211a!important;border-color:#d4e7db!important}.toast{background:#ffffff!important;color:#12211a!important;border:1px solid #cfe5d6!important;box-shadow:0 18px 42px rgba(20,75,44,.16)!important}
.user-top-actions{direction:ltr;align-items:flex-start;gap:8px!important}.top-icon-btn{height:42px;min-width:42px;border:1px solid #d2e5d8;background:#fff;color:#143522;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 11px;font-size:16px;font-weight:950;box-shadow:0 10px 24px rgba(20,75,44,.075);position:relative;transition:.18s}.top-icon-btn:hover{transform:translateY(-1px);border-color:#aee3bf;box-shadow:0 14px 30px rgba(37,183,104,.16)}.top-icon-btn em{font-style:normal;font-size:12px;color:#244634;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#37c978,#15803d);color:white;font-size:13px}.notification-icon b{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:999px;background:#ef4444;color:white;border:2px solid #fff;display:grid;place-items:center;font-size:10px;line-height:1}.logout-icon{color:#dc2626}.reset-icon{color:#0f766e}.refresh-icon{color:#2563eb}.notification-panel{display:grid;gap:8px;max-height:430px;overflow:auto}.notification-item{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:10px;border-radius:14px}.notification-item strong{color:#12211a}.notification-item span{color:#64786c;font-size:12px}.notification-item.danger{border-right:4px solid #ef4444!important}.notification-item.warn{border-right:4px solid #f59e0b!important}.notification-item.ok{border-right:4px solid #22c55e!important}.profile-panel{display:flex;gap:14px;align-items:center;padding:14px;border-radius:18px;margin-bottom:12px}.profile-avatar{width:58px;height:58px;border-radius:20px;background:linear-gradient(180deg,#37c978,#15803d);color:#fff;display:grid;place-items:center;font-size:26px;font-weight:950}.profile-panel h3{margin:0 0 5px;color:#12211a}.profile-panel p{margin:0 0 8px;color:#64786c}.profile-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.login{background:radial-gradient(900px 460px at 70% 8%,rgba(37,183,104,.14),transparent 62%),linear-gradient(180deg,#f8fcf9,#eef7f1)!important}.login-card{background:#ffffff!important;border-color:#d6e8dc!important;box-shadow:0 30px 80px rgba(20,75,44,.14)!important}.login-hero h1,.login-panel h2{color:#12211a!important}.login-hero p,.login-panel .sub,.footer-note{color:#5f7267!important}.hero-badges span{background:#edf8f1!important;border-color:#ccebd6!important;color:#15803d!important}
@media(max-width:1250px){.top-icon-btn em{display:none}.top-icon-btn{min-width:38px;height:38px;border-radius:12px}.global-filters{grid-template-columns:repeat(4,1fr)!important}.content{top:172px!important}.topbar{height:160px!important}}

/* v17: theme toggle + export layout correction */
.global-filters{
  grid-template-columns:minmax(90px,1.05fr) minmax(86px,1fr) minmax(120px,1.35fr) minmax(88px,1fr) minmax(88px,1fr) minmax(82px,.9fr) minmax(140px,1.3fr) minmax(70px,80px)!important;
  align-items:center!important;
  z-index:9!important;
  overflow:visible!important;
}
.global-filters>.btn{
  position:relative!important;
  z-index:12!important;
  width:100%!important;
  min-width:70px!important;
  height:36px!important;
  justify-self:stretch!important;
  align-self:center!important;
  white-space:nowrap!important;
  padding:0 8px!important;
  margin:0!important;
}
.top-icon-btn.theme-icon{color:#7c3aed}.theme-symbol{font-size:18px;line-height:1;display:inline-block}

html[data-theme="dark"]{
  --waste-bg:#04080d!important;--waste-bg2:#02050a!important;--panel:#0b1219!important;--panel2:#0f1720!important;--panel3:#111b27!important;
  --line:#1a2633!important;--line2:#2b3a4a!important;--text:#f4f7fb!important;--muted:#a9b3bf!important;--dim:#778392!important;
  --purple:#8047ff!important;--purple2:#b77dff!important;--purple3:#5b31d6!important;--green:#63d64c!important;--green2:#9cff68!important;
  --orange:#f4aa3f!important;--red:#ff5a55!important;--blue:#3e8bff!important;--cyan:#45c4ff!important;--shadow:0 22px 60px rgba(0,0,0,.38)!important;
}
html[data-theme="dark"] body,html[data-theme="dark"] #app{background:#010408!important;color:#f4f7fb!important}
html[data-theme="dark"] .viewport{background:radial-gradient(1200px 520px at 64% -12%,rgba(127,71,255,.16),transparent 58%),radial-gradient(900px 420px at 13% 112%,rgba(46,116,255,.09),transparent 58%),linear-gradient(180deg,#050a11 0%,#02050a 100%)!important}
html[data-theme="dark"] .viewport:before{background-image:linear-gradient(rgba(128,71,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(128,71,255,.025) 1px,transparent 1px)!important;opacity:1!important}
html[data-theme="dark"] .sidebar{border-color:rgba(183,125,255,.18)!important;background:linear-gradient(180deg,rgba(6,9,16,.97),rgba(4,7,12,.97))!important;box-shadow:var(--shadow)!important}
html[data-theme="dark"] .sidebar:after{background:radial-gradient(closest-side,rgba(128,71,255,.15),transparent)!important}
html[data-theme="dark"] .brand{border-bottom-color:rgba(183,125,255,.13)!important;background:radial-gradient(160px 70px at 48% 34%,rgba(128,71,255,.14),transparent 72%)!important}
html[data-theme="dark"] .sidebar-auto-toggle{background:#081019!important;color:#d7c2ff!important;border-color:rgba(183,125,255,.25)!important;box-shadow:0 10px 24px rgba(0,0,0,.2)!important}
html[data-theme="dark"] .nav button{color:#a7b0bd!important}html[data-theme="dark"] .nav button:hover{color:#dccbff!important;background:rgba(128,71,255,.075)!important}html[data-theme="dark"] .nav button.active{color:#d7c2ff!important;background:linear-gradient(90deg,rgba(128,71,255,.2),rgba(128,71,255,.045))!important;border-color:rgba(183,125,255,.28)!important;box-shadow:inset 0 0 22px rgba(128,71,255,.07),0 0 24px rgba(128,71,255,.04)!important}html[data-theme="dark"] .nav i{background:rgba(255,255,255,.035)!important;border-color:rgba(255,255,255,.06)!important;color:#a7b0bd!important}html[data-theme="dark"] .nav .active i{background:rgba(128,71,255,.18)!important;color:#fff!important;border-color:rgba(183,125,255,.24)!important}
html[data-theme="dark"] .main{border-color:rgba(255,255,255,.055)!important;background:linear-gradient(180deg,rgba(5,9,15,.86),rgba(3,7,12,.96))!important;box-shadow:var(--shadow)!important}html[data-theme="dark"] .main:before{background:radial-gradient(760px 320px at 80% -4%,rgba(128,71,255,.16),transparent 61%),radial-gradient(650px 320px at 10% 92%,rgba(69,196,255,.06),transparent 62%)!important}
html[data-theme="dark"] .title h1,html[data-theme="dark"] .card h2,html[data-theme="dark"] .card h3{color:#fff!important}html[data-theme="dark"] .title p,html[data-theme="dark"] .card .sub{color:#9ba8b8!important}
html[data-theme="dark"] .field{border-color:rgba(183,125,255,.16)!important;background:rgba(6,13,20,.82)!important;color:#9daaba!important;box-shadow:none!important}html[data-theme="dark"] .field span{color:#7f8b9d!important}html[data-theme="dark"] .field select,html[data-theme="dark"] .field input{color:#f4f7fb!important}html[data-theme="dark"] .field option{background:#0b1219!important;color:#fff!important}
html[data-theme="dark"] .card{border-color:rgba(183,125,255,.15)!important;background:linear-gradient(180deg,rgba(13,20,30,.92),rgba(5,11,18,.96))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 18px 28px rgba(0,0,0,.23)!important;color:#f4f7fb!important}
html[data-theme="dark"] .kpi span,html[data-theme="dark"] .kpi small,html[data-theme="dark"] .metric span,html[data-theme="dark"] .item span,html[data-theme="dark"] .tank-card span,html[data-theme="dark"] .list .item span{color:#96a2b0!important}html[data-theme="dark"] .kpi b{color:#b77dff!important}html[data-theme="dark"] .kpi.green b{color:#63d64c!important}html[data-theme="dark"] .kpi i{background:rgba(128,71,255,.10)!important;color:#c79cff!important;border-color:rgba(183,125,255,.26)!important;text-shadow:0 0 18px rgba(183,125,255,.4)!important}
html[data-theme="dark"] .btn{background:linear-gradient(180deg,#1a2230,#0a1019)!important;color:#f4f7fb!important;border-color:rgba(183,125,255,.24)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important}html[data-theme="dark"] .btn.primary{background:linear-gradient(180deg,#8f57ff,#5a31d6)!important;color:#fff!important;border-color:rgba(199,156,255,.45)!important}html[data-theme="dark"] .btn.green{background:linear-gradient(180deg,#62d54c,#2d8d23)!important;color:#08110a!important;border-color:rgba(156,255,104,.42)!important}html[data-theme="dark"] .btn.orange{background:linear-gradient(180deg,#f4aa3f,#a96513)!important;color:#160b00!important}html[data-theme="dark"] .btn.red{background:linear-gradient(180deg,#ff6861,#a11e26)!important;color:#fff!important}html[data-theme="dark"] .btn.blue{background:linear-gradient(180deg,#45c4ff,#1b5dba)!important;color:#fff!important}html[data-theme="dark"] .btn.ghost{background:rgba(255,255,255,.035)!important;color:#f4f7fb!important}
html[data-theme="dark"] .table{background:#0b1219!important;color:#dfe7f2!important}html[data-theme="dark"] .table th{background:#111b27!important;color:#d7c2ff!important;border-bottom-color:#243245!important}html[data-theme="dark"] .table td{border-bottom-color:#1d2938!important;color:#dfe7f2!important}html[data-theme="dark"] .table small{color:#96a2b0!important}
html[data-theme="dark"] .metric,html[data-theme="dark"] .mini-soil-stat,html[data-theme="dark"] .tank-card,html[data-theme="dark"] .sensor-chart-card,html[data-theme="dark"] .importance-card,html[data-theme="dark"] .notification-item,html[data-theme="dark"] .profile-panel,html[data-theme="dark"] .dash-health-block{background:rgba(255,255,255,.035)!important;border-color:rgba(183,125,255,.14)!important;color:#f4f7fb!important;box-shadow:none!important}html[data-theme="dark"] .metric b,html[data-theme="dark"] .tank-card b,html[data-theme="dark"] .sensor-chart-card b,html[data-theme="dark"] .importance-card b{color:#fff!important}
html[data-theme="dark"] .map-title,html[data-theme="dark"] .toggle,html[data-theme="dark"] .map-ctrl-btn,html[data-theme="dark"] .leaflet-popup-content-wrapper,html[data-theme="dark"] .leaflet-popup-tip{background:rgba(3,8,14,.86)!important;color:#fff!important;border-color:rgba(183,125,255,.28)!important}html[data-theme="dark"] .toggle.active,html[data-theme="dark"] .map-ctrl-btn.active{background:linear-gradient(180deg,#8047ff,#4f29bb)!important;color:#fff!important;border-color:rgba(199,156,255,.45)!important}html[data-theme="dark"] .leaflet-container{background:#081019!important}
html[data-theme="dark"] .modal-back{background:rgba(0,0,0,.52)!important}html[data-theme="dark"] .modal{background:#0b1219!important;color:#f4f7fb!important;border-color:rgba(183,125,255,.22)!important;box-shadow:0 30px 70px rgba(0,0,0,.48)!important}html[data-theme="dark"] .modal-head{border-bottom-color:#233044!important}html[data-theme="dark"] .form label{color:#cbd4df!important}html[data-theme="dark"] .form input,html[data-theme="dark"] .form select,html[data-theme="dark"] .form textarea,html[data-theme="dark"] .agri-alarm-settings input,html[data-theme="dark"] .agri-alarm-settings select,html[data-theme="dark"] .agri-limits-grid input{background:#0f1720!important;color:#f4f7fb!important;border-color:#2b3a4a!important}
html[data-theme="dark"] .top-icon-btn{background:#0f1720!important;color:#dbe6f1!important;border-color:rgba(183,125,255,.22)!important;box-shadow:0 10px 24px rgba(0,0,0,.22)!important}html[data-theme="dark"] .top-icon-btn em{color:#dbe6f1!important}html[data-theme="dark"] .top-avatar{background:linear-gradient(180deg,#8f57ff,#5a31d6)!important}.theme-icon{min-width:42px!important}
html[data-theme="dark"] .login{background:radial-gradient(900px 400px at 54% 0,rgba(128,71,255,.2),transparent 62%),linear-gradient(180deg,#050a11,#02050a)!important}html[data-theme="dark"] .login-card{background:linear-gradient(135deg,rgba(13,20,31,.94),rgba(5,10,17,.97))!important;border-color:rgba(183,125,255,.25)!important;box-shadow:0 30px 90px rgba(0,0,0,.56)!important}html[data-theme="dark"] .login-hero h1,html[data-theme="dark"] .login-panel h2{color:#fff!important}html[data-theme="dark"] .login-hero p,html[data-theme="dark"] .login-panel .sub,html[data-theme="dark"] .footer-note{color:#b2bdca!important}
@media(max-width:1250px){.global-filters{grid-template-columns:repeat(4,minmax(0,1fr))!important}.global-filters>.btn{grid-column:auto!important}.theme-icon{min-width:38px!important}}

/* ===== الشريط العلوي — مطابق لشريط منصة النفايات (تدرّج + شعار + زرّان منسدلان) — 2026-06-11 ===== */
/* في وضع الشريط العلوي: نلغي بقايا تخطيط الشريط الجانبي (inset/min-width) التي تزحزح الشريط */
.sg-topnav-mode .shell{position:static!important;inset:auto!important;margin:0!important;min-width:0!important;width:100%!important;display:flex;flex-direction:column;height:100vh;gap:0!important;}
/* عنصر وسطي حيّ يملأ فراغ الشريط ويثبت أن البيانات حيّة */
.sg-bar-center{flex:1 1 auto;display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;}
.sg-bar-status{display:inline-flex;align-items:center;gap:9px;height:32px;padding:0 14px;border-radius:999px;border:1px solid rgba(99,214,76,.22);background:rgba(99,214,76,.06);font-weight:800;font-size:12px;color:#bfeecb;white-space:nowrap;}
.sg-bar-status b{color:#eafff0;font-weight:900;}
.sg-bar-status .sep{opacity:.4;}
.sg-live-dot{width:9px;height:9px;border-radius:50%;background:#63d64c;box-shadow:0 0 0 0 rgba(99,214,76,.6);animation:sgPulse 2s ease-out infinite;}
.sg-bar-status.local{border-color:rgba(244,170,63,.28);background:rgba(244,170,63,.07);color:#ffd9a3;}
.sg-bar-status.local .sg-live-dot{background:#f4aa3f;box-shadow:0 0 0 0 rgba(244,170,63,.6);}
@keyframes sgPulse{0%{box-shadow:0 0 0 0 rgba(99,214,76,.55)}70%{box-shadow:0 0 0 7px rgba(99,214,76,0)}100%{box-shadow:0 0 0 0 rgba(99,214,76,0)}}
html[data-theme="light"] .sg-bar-status{color:#1f7a3a;}
html[data-theme="light"] .sg-bar-status b{color:#0f3d1f;}
@media(max-width:1100px){.sg-bar-center{display:none;}}

/* ===== موجة تحسين بصري (أنيميشن + حالات فارغة + تهدئة التوهّج) — 2026-06-12 ===== */
/* دخول البطاقات متدرّج — يعمل فقط عند التنقّل (class sg-anim) لا في كل رسم */
@keyframes sgCardIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.sg-anim .content .card{animation:sgCardIn .42s cubic-bezier(.2,.8,.3,1) both;}
.sg-anim .content .kpis .kpi:nth-child(1){animation-delay:.02s}
.sg-anim .content .kpis .kpi:nth-child(2){animation-delay:.05s}
.sg-anim .content .kpis .kpi:nth-child(3){animation-delay:.08s}
.sg-anim .content .kpis .kpi:nth-child(4){animation-delay:.11s}
.sg-anim .content .kpis .kpi:nth-child(5){animation-delay:.14s}
.sg-anim .content .kpis .kpi:nth-child(6){animation-delay:.17s}
.sg-anim .content .kpis .kpi:nth-child(7){animation-delay:.20s}
.sg-anim .content .kpis .kpi:nth-child(8){animation-delay:.23s}
.sg-anim .content .kpis .kpi:nth-child(9){animation-delay:.26s}
.sg-anim .content .kpis .kpi:nth-child(10){animation-delay:.29s}
/* تفاعل بطاقات المؤشّر عند المرور (micro-interaction) */
.kpi{transition:transform .16s cubic-bezier(.2,.8,.3,1),border-color .16s ease,box-shadow .16s ease;}
.kpi:hover{transform:translateY(-3px);}
/* تهدئة التوهّج النيون المبالغ */
.kpi:hover,.kpi.active{box-shadow:0 10px 26px rgba(0,0,0,.28),0 0 0 1px rgba(183,125,255,.14)!important;}
.kpi i{text-shadow:0 0 8px rgba(183,125,255,.22)!important;}
/* حالة فارغة لبطاقة مؤشّر بلا بيانات */
.kpi.is-empty b{color:#5d6b7a!important;font-weight:800!important;}
.kpi.is-empty i{opacity:.5;}
/* نبضة حيّة للإنذارات فقط (النقاط الحرجة/المتابعة) — لا نُحرّك كل النقاط (أداء) */
.map-pin.warn{animation:sgMarkerPulseW 1.8s ease-out infinite;}
@keyframes sgMarkerPulseW{0%{box-shadow:0 0 0 0 rgba(244,170,63,.5)}70%{box-shadow:0 0 0 11px rgba(244,170,63,0)}100%{box-shadow:0 0 0 0 rgba(244,170,63,0)}}
.map-pin.bad{animation:sgMarkerPulseB 1.2s ease-out infinite;}
@keyframes sgMarkerPulseB{0%{box-shadow:0 0 0 0 rgba(255,90,85,.6)}70%{box-shadow:0 0 0 13px rgba(255,90,85,0)}100%{box-shadow:0 0 0 0 rgba(255,90,85,0)}}
@media(prefers-reduced-motion:reduce){.sg-anim .content .card,.map-pin,.sg-live-dot{animation:none!important;}}
/* أيقونات SVG: محاذاة ومقاس داخل القائمة وبطاقات المؤشّر */
.sg-section-panel .nav-ico{display:inline-flex!important;align-items:center;justify-content:center;}
.sg-section-panel .nav-ico svg{width:18px;height:18px;display:block;}
.kpi i svg{width:21px;height:21px;display:block;}
.kpi i{overflow:visible;}
.sg-topnav-mode .sidebar{display:none!important;}

/* ===== سطاير رفيعة سوداء في كل المنصة ===== */
*{scrollbar-width:thin;scrollbar-color:#0b0b14 transparent;}
::-webkit-scrollbar{width:6px;height:6px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:#0b0b14;border-radius:6px;}
::-webkit-scrollbar-thumb:hover{background:#15151f;}
.scroll::-webkit-scrollbar,.scroll-list::-webkit-scrollbar,.scroll-list-region::-webkit-scrollbar,.auto-list-card::-webkit-scrollbar,.sidebar-scroll-list::-webkit-scrollbar,.sg-section-panel::-webkit-scrollbar,.sg-tools-menu::-webkit-scrollbar{width:6px!important;height:6px!important;}
.scroll::-webkit-scrollbar-thumb,.scroll-list::-webkit-scrollbar-thumb,.scroll-list-region::-webkit-scrollbar-thumb,.auto-list-card::-webkit-scrollbar-thumb,.sidebar-scroll-list::-webkit-scrollbar-thumb,.sg-section-panel::-webkit-scrollbar-thumb,.sg-tools-menu::-webkit-scrollbar-thumb{background:#0b0b14!important;border-radius:6px!important;}
html[data-theme="light"] *{scrollbar-color:#0b0b14 transparent;}

/* ===== تخفيف توهّج نقاط الحدائق على الخريطة ===== */
.map-pin{box-shadow:0 0 0 2px rgba(128,71,255,.14),0 0 7px rgba(128,71,255,.28)!important;}
.map-pin.good{box-shadow:0 0 0 2px rgba(99,214,76,.14),0 0 7px rgba(99,214,76,.28)!important;}
/* نقاط مسطّحة بسيطة (أداء + وضوح): بلا توهّج، حجم صغير ثابت */
.map-pin{width:14px!important;height:14px!important;border-width:2px!important;box-shadow:none!important;animation:none!important;}
.map-pin.good{background:#2ecc40!important;border-color:#eafff0!important;box-shadow:none!important;}
.map-pin.na-pin{background:#ff4136!important;border-color:#fff0ef!important;box-shadow:none!important;width:13px!important;height:13px!important;}

/* ===== تخصيص الخريطة + مفتاح الألوان ===== */
.map-customize{display:flex;align-items:center;gap:4px;pointer-events:auto;background:rgba(5,10,18,.85);border:1px solid rgba(183,125,255,.3);border-radius:10px;padding:0 8px;height:30px;backdrop-filter:blur(8px);}
.map-customize select{background:transparent;border:0;color:#dce6f4;font-weight:900;font-size:11px;outline:none;cursor:pointer;height:100%;font-family:inherit;}
.map-customize select option{background:#0b1219;color:#fff;}
.map-customize .mc-ico{color:#b77dff;font-size:10px;}
.map-legend2{display:flex;gap:12px;align-items:center;pointer-events:none;background:rgba(5,10,18,.72);border:1px solid rgba(255,255,255,.07);border-radius:9px;padding:5px 11px;font-size:11px;font-weight:900;color:#cdd8e6;backdrop-filter:blur(8px);}
.map-legend2 .lg-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-inline-end:5px;vertical-align:middle;}
.map-legend2 .lg-dot.good{background:#63d64c;box-shadow:0 0 6px rgba(99,214,76,.6);}
.map-legend2 .lg-dot.bad{background:#ff5a55;box-shadow:0 0 6px rgba(255,90,85,.6);}
.leaflet-interactive{cursor:pointer;}

/* ===== صفحة التحكّم في الحديقة — تخطيط متّسق بلا تراكب ===== */
.garden-control-page{display:flex;flex-direction:column;gap:12px;}
.garden-control-page .gc-head{padding:16px 18px;}
.gc-head-main{display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.gc-back{flex:0 0 auto;height:34px!important;padding:0 14px!important;}
.gc-title{flex:1 1 200px;min-width:0;}
.gc-title h2{margin:0;}
.gc-status{flex:0 0 auto;}
.gc-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.gc-quick .btn{flex:0 0 auto;}
.grid.kpis.gc-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;}
.gc-kpis .kpi{height:96px!important;}
.gc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start;}
.gc-grid>.card{min-width:0;height:auto;}
.gc-grid .gc-zones,.gc-grid .gc-cams,.gc-grid .gc-alerts,.gc-grid .gc-locmap{grid-column:1 / -1;}
.gc-grid .gc-zones .zone-grid{grid-template-columns:repeat(4,1fr);}
@media(max-width:1200px){.gc-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.gc-grid .gc-zones .zone-grid{grid-template-columns:repeat(3,1fr);}}
@media(max-width:760px){.gc-grid{grid-template-columns:1fr;}.gc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}

/* ===== تحسين شكل وألوان الأزرار في كل المنصة ===== */
.btn{height:38px!important;border-radius:11px!important;font-weight:800!important;font-size:12.5px!important;letter-spacing:.1px!important;border:1px solid transparent!important;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;cursor:pointer;transition:transform .15s cubic-bezier(.2,.8,.3,1),box-shadow .18s ease,filter .18s ease!important;box-shadow:0 4px 12px rgba(0,0,0,.22)!important;}
.btn:hover{transform:translateY(-2px)!important;filter:brightness(1.08)!important;box-shadow:0 8px 20px rgba(0,0,0,.3)!important;}
.btn:active{transform:translateY(0)!important;}
.btn.primary{background:linear-gradient(180deg,#9b6bff,#6a37e0)!important;color:#fff!important;border-color:rgba(199,156,255,.5)!important;box-shadow:0 6px 18px rgba(128,71,255,.32)!important;}
.btn.green{background:linear-gradient(180deg,#52d168,#2ea84a)!important;color:#04210c!important;border-color:rgba(120,240,150,.45)!important;box-shadow:0 6px 18px rgba(46,168,74,.3)!important;}
.btn.red{background:linear-gradient(180deg,#ff6b62,#d23b34)!important;color:#fff!important;border-color:rgba(255,140,135,.45)!important;box-shadow:0 6px 18px rgba(210,59,52,.3)!important;}
.btn.orange{background:linear-gradient(180deg,#f7b34a,#d4861a)!important;color:#241500!important;border-color:rgba(255,200,120,.45)!important;box-shadow:0 6px 18px rgba(212,134,26,.28)!important;}
.btn.blue{background:linear-gradient(180deg,#4fc6ff,#1f7fd6)!important;color:#04121f!important;border-color:rgba(140,220,255,.45)!important;box-shadow:0 6px 18px rgba(31,127,214,.3)!important;}
.btn.ghost{background:rgba(255,255,255,.06)!important;color:#dde7f2!important;border-color:rgba(255,255,255,.12)!important;box-shadow:none!important;}
.btn.ghost:hover{background:rgba(155,107,255,.16)!important;border-color:rgba(155,107,255,.4)!important;}
/* أزرار صغيرة موحّدة */
.mini-btn{height:30px!important;border-radius:9px!important;font-weight:800!important;font-size:11px!important;display:inline-flex;align-items:center;gap:4px;cursor:pointer;transition:transform .14s ease,background .16s ease,border-color .16s ease!important;}
.mini-btn:hover{transform:translateY(-1px);}
.toggle{transition:transform .14s ease,background .16s ease,border-color .16s ease!important;}
.toggle:hover{transform:translateY(-1px);}
html[data-theme="light"] .btn.ghost{background:#eef2f8!important;color:#26405c!important;border-color:#dbe3ee!important;}
.gc-locmap{padding:0!important;overflow:hidden;}
.gc-locmap-head{padding:14px 16px 8px;}
.garden-detail-map{height:360px;width:100%;background:#0a121d;}
.garden-detail-map .leaflet-control-zoom{margin:10px;}
/* كارت الرأس — تنسيق أنظف */
.garden-control-page .gc-head{background:linear-gradient(135deg,rgba(128,71,255,.12),rgba(13,20,30,.92) 55%);border-color:rgba(183,125,255,.28);}
.gc-back{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.12)!important;color:#dfe7f0!important;border-radius:10px!important;font-weight:900!important;}
.gc-back:hover{background:rgba(183,125,255,.18)!important;border-color:rgba(183,125,255,.4)!important;transform:translateX(2px);}
.gc-title h2{font-size:21px;}
.gc-status{height:28px;display:inline-flex;align-items:center;}
.gc-quick .btn{height:36px;border-radius:11px;}
.gc-locmap{overflow:hidden;padding:0!important;}
.gc-locmap-head{padding:15px 18px 10px;}
.garden-detail-map{height:360px;width:100%;}
.garden-detail-map .leaflet-control-zoom a{background:#0c1420;color:#dce6f4;border-color:rgba(183,125,255,.25);}
@media(max-width:760px){.gc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}

/* ===== سيلكتور الدولة في صفحة الدخول ===== */
.sg-login-card select{width:100%;height:46px;border-radius:12px;border:1px solid #1d2a26;background:rgba(2,5,4,.9);color:#eaf0f7;padding:0 12px;font:inherit;font-weight:800;outline:none;cursor:pointer;}
.sg-login-card select:focus{border-color:rgba(125,255,138,.7);box-shadow:0 0 0 3px rgba(125,255,138,.15);}
.sg-login-card option{background:#0b1219;color:#fff;}
.sg-topnav-mode .main{flex:1 1 auto;width:100%;min-height:0;overflow:auto;border:0!important;border-radius:0!important;box-shadow:none!important;}
.sg-topbar{display:flex;align-items:center;gap:14px;height:60px;flex:0 0 60px;padding:0 22px;direction:rtl;position:relative;z-index:60;
  background:linear-gradient(to left,#05060c 0%,#0a0816 42%,#1c1140 78%,#2c1a5e 100%);
  border-bottom:1px solid rgba(143,75,255,.22);
  box-shadow:0 3px 16px rgba(0,0,0,.4);overflow:visible;}
/* تقليل الفجوة تحت الشريط: رفع الفلاتر والمحتوى لأعلى (لا عنوان فوقهما) */
.sg-topnav-mode .global-filters{top:12px!important;}
.sg-topnav-mode .content{top:62px!important;}
@media(max-width:1250px){.sg-topnav-mode .content{top:108px!important;}}
/* الشعار + الاسم يمين */
.sg-brand{display:flex;align-items:center;gap:11px;flex:0 0 auto;}
.sg-brand-logo{display:flex;align-items:center;justify-content:center;}
.sg-brand-copy{display:flex;flex-direction:column;line-height:1.12;}
.sg-brand-copy strong{color:#eafff0;font-size:16px;font-weight:900;letter-spacing:-.2px;}
.sg-brand-copy span{color:#7fa890;font-size:9.5px;font-weight:800;letter-spacing:1.2px;}
.sg-bar-spacer{flex:1 1 auto;}
/* المجموعة يسار */
.sg-bar-controls{display:flex;align-items:center;gap:10px;flex:0 0 auto;}
.sg-bar-icon,.sg-bar-user{height:38px;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.09);border-radius:11px;background:rgba(255,255,255,.045);color:#dce6ff;cursor:pointer;font-family:"Tajawal","Cairo","Segoe UI",Tahoma,Arial,sans-serif;font-weight:900;transition:background .18s ease,border-color .18s ease,transform .18s ease;position:relative;}
.sg-bar-icon{width:38px;justify-content:center;font-size:16px;}
.sg-bar-icon>b{position:absolute;top:-5px;left:-5px;min-width:17px;height:17px;padding:0 3px;border-radius:9px;background:#e2453f;color:#fff;font-size:10px;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(226,69,63,.5);}
.sg-bar-user{padding:0 12px 0 6px;font-size:12.5px;}
.sg-bar-avatar{width:28px;height:28px;border-radius:50%;background:linear-gradient(180deg,#63d64c,#2f9742);color:#04210c;font-weight:900;display:flex;align-items:center;justify-content:center;font-size:13px;}
.sg-bar-icon:hover,.sg-bar-user:hover{background:rgba(99,214,76,.14);border-color:rgba(99,214,76,.34);transform:translateY(-1px);}
/* نفس تدرّج الأسود→البنفسجي في الوضعين (الشريط داكن دائماً للهوية) */
html[data-theme="light"] .sg-section-panel,html[data-theme="light"] .sg-tools-menu{background:#ffffff;border-color:rgba(42,144,68,.20);box-shadow:0 26px 58px rgba(20,35,50,.16);}
html[data-theme="light"] .sg-section-panel a,html[data-theme="light"] .sg-tools-menu button{background:#f5f8fc;color:#172a1c;border-color:rgba(20,70,35,.10);}
html[data-theme="light"] .sg-section-panel a:hover,html[data-theme="light"] .sg-tools-menu button:hover{color:#0c1d12;background:linear-gradient(135deg,rgba(55,177,82,.18),rgba(118,85,255,.10));border-color:rgba(55,177,82,.30);}
html[data-theme="light"] .sg-section-panel a.active{background:linear-gradient(135deg,rgba(55,177,82,.30),rgba(118,85,255,.12));border-color:rgba(55,177,82,.42);color:#0c1d12;}
.sg-topbar-logo-wrap{flex:1;display:flex;align-items:center;justify-content:center;pointer-events:none;height:100%;overflow:visible;}
.sg-topbar-logo-pill{display:flex;align-items:center;justify-content:center;}
.sg-topbar-spacer{flex:1;}
.sg-topbar-logo{height:40px;max-width:340px;width:auto;object-fit:contain;display:block;user-select:none;}
.sg-tools,.sg-section-menu{position:relative;display:flex;align-items:center;direction:rtl;flex-shrink:0;}
.sg-tools>button,.sg-section-menu>button{height:32px;padding:0 4px;border:0;background:transparent;color:#dce6ff;font-size:13.5px;font-weight:900;font-family:"Tajawal","Cairo","Segoe UI",Tahoma,Arial,sans-serif;line-height:1;letter-spacing:.025em;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;position:relative;overflow:visible;-webkit-font-smoothing:antialiased;transition:color .22s ease,transform .22s cubic-bezier(.2,.8,.3,1),text-shadow .22s ease;}
.sg-tools>button:hover,.sg-tools.open>button,.sg-section-menu>button:hover,.sg-section-menu.open>button{color:#fff;transform:translateY(-2px);text-shadow:0 0 18px rgba(220,190,255,.75),0 0 8px rgba(190,150,255,.55);}
.sg-tools>button::after,.sg-section-menu>button::after{content:"";position:absolute;bottom:1px;left:6px;right:6px;height:1.5px;border-radius:2px;background:linear-gradient(90deg,transparent,rgba(210,170,255,.85),transparent);transform:scaleX(0);transform-origin:center;transition:transform .30s cubic-bezier(.2,.8,.3,1);pointer-events:none;}
.sg-tools>button:hover::after,.sg-tools.open>button::after,.sg-section-menu>button:hover::after,.sg-section-menu.open>button::after{transform:scaleX(1);}
.sg-tools-ico,.sg-menu-chevron{display:inline-block;opacity:.72;color:#d8e0f3;font-size:15px;line-height:1;transition:transform .3s ease,opacity .22s ease;}
.sg-tools:not(.open)>button:hover .sg-tools-ico{transform:rotate(28deg) scale(1.12);opacity:1;}
.sg-section-menu:not(.open)>button:hover .sg-menu-chevron{transform:translateY(2px);opacity:1;}
.sg-section-menu.open>button .sg-menu-chevron{transform:rotate(180deg);}
.sg-section-panel,.sg-tools-menu{display:none;position:absolute;top:43px;z-index:2147483200;gap:6px;padding:12px;border-radius:20px;border:1px solid rgba(125,255,138,.22);background:radial-gradient(circle at 88% 10%,rgba(125,255,138,.11),transparent 32%),radial-gradient(circle at 12% 22%,rgba(133,86,255,.16),transparent 34%),rgba(7,13,22,.97);box-shadow:0 28px 70px rgba(0,0,0,.50),inset 0 1px 0 rgba(255,255,255,.06);backdrop-filter:blur(16px);overflow:auto;overscroll-behavior:contain;}
.sg-section-menu.open .sg-section-panel,.sg-tools.open .sg-tools-menu{display:grid;}
.sg-section-panel{left:0;right:auto;width:min(360px,calc(100vw - 28px));max-height:calc(100vh - 84px);}
.sg-tools-menu{left:0;right:auto;width:236px;max-height:calc(100vh - 84px);}
.sg-section-panel a,.sg-tools-menu button{min-height:36px;height:auto;margin:3px 0;padding:8px 11px;border-radius:13px;border:1px solid rgba(255,255,255,.065);background:linear-gradient(135deg,rgba(255,255,255,.048),rgba(255,255,255,.018));color:#edfef1;font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:flex-start;gap:10px;text-decoration:none;cursor:pointer;transition:transform .18s ease,background .18s ease,border-color .18s ease;}
.sg-tools-menu button{justify-content:space-between;}
.sg-section-panel a:hover,.sg-tools-menu button:hover{color:#fff;border-color:rgba(125,255,138,.28);background:linear-gradient(135deg,rgba(47,151,74,.28),rgba(119,86,255,.14));transform:translateX(-2px);}
.sg-section-panel a.active{background:linear-gradient(135deg,rgba(55,177,82,.43),rgba(118,85,255,.21));border-color:rgba(125,255,138,.38);color:#fff;}
.sg-section-panel .nav-ico{font-style:normal;width:18px;flex:0 0 18px;text-align:center;}
@media(max-width:900px){.sg-topbar{height:56px;flex-basis:56px;padding:0 12px;gap:8px;}.sg-section-panel,.sg-tools-menu{top:42px;}}
@media(max-width:720px){.sg-brand-copy{display:none;}.sg-bar-user em{display:none;}.sg-bar-user{padding:0;width:38px;justify-content:center;}.sg-bar-controls{gap:7px;}}

/* ===== صفحة الدخول الجديدة — خلفية جسيمات متشابكة + بطاقة حقول فقط (نمط النفايات) — 2026-06-11 ===== */
.sg-login{position:fixed;inset:0;overflow:hidden;background:#000;color:#eaf0f7;display:block;}
.sg-login-aurora{position:fixed;inset:0;z-index:0;overflow:hidden;background:radial-gradient(60% 50% at 50% -10%,rgba(0,0,0,0),#000 70%);}
.sg-login-aurora::before,.sg-login-aurora::after{content:"";position:absolute;width:56vmax;height:56vmax;border-radius:50%;filter:blur(95px);opacity:.30;will-change:transform;}
.sg-login-aurora::before{background:radial-gradient(circle,#7dff8a,transparent 60%);top:-20vmax;right:-10vmax;animation:sgDrift1 18s ease-in-out infinite alternate;}
.sg-login-aurora::after{background:radial-gradient(circle,#b77dff,transparent 60%);bottom:-22vmax;left:-12vmax;animation:sgDrift2 22s ease-in-out infinite alternate;}
@keyframes sgDrift1{from{transform:translate(0,0) scale(1)}to{transform:translate(-8vmax,6vmax) scale(1.15)}}
@keyframes sgDrift2{from{transform:translate(0,0) scale(1)}to{transform:translate(9vmax,-5vmax) scale(1.2)}}
.sg-login-fx{position:fixed;inset:0;width:100%;height:100%;z-index:1;display:block;}
.sg-login-stage{position:fixed;inset:0;z-index:2;display:grid;place-items:center;padding:24px;}
.sg-login-card{width:min(420px,92vw);background:linear-gradient(180deg,rgba(9,14,12,.92),rgba(4,7,6,.94));border:1px solid rgba(125,255,138,.30);border-radius:20px;padding:30px 28px;box-shadow:0 30px 80px rgba(0,0,0,.7),0 0 40px rgba(125,255,138,.06),inset 0 1px 0 rgba(255,255,255,.05);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);}
.sg-login-brand{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.07);}
.sg-login-logo{height:46px;width:auto;object-fit:contain;}
.sg-login-brand-copy{display:flex;flex-direction:column;line-height:1.15;}
.sg-login-brand-copy strong{font-size:18px;font-weight:900;background:linear-gradient(90deg,#7dff8a,#b77dff);-webkit-background-clip:text;background-clip:text;color:transparent;}
.sg-login-brand-copy span{color:#7fa890;font-size:9.5px;font-weight:800;letter-spacing:1.1px;}
.sg-login-card label{display:block;margin:14px 0 6px;color:#bcc8d6;font-weight:800;font-size:13.5px;}
.sg-login-card input{width:100%;height:46px;border-radius:12px;border:1px solid #1d2a26;background:rgba(2,5,4,.9);color:#eaf0f7;padding:0 14px;font:inherit;font-weight:700;outline:none;transition:border-color .15s,box-shadow .15s;}
.sg-login-card input::placeholder{color:#5d6e66;}
.sg-login-card input:focus{border-color:rgba(125,255,138,.7);box-shadow:0 0 0 3px rgba(125,255,138,.15);}
.sg-login-btn{margin-top:22px;width:100%;height:48px;border:none;border-radius:12px;cursor:pointer;font:inherit;font-weight:900;font-size:15px;color:#04140a;background:linear-gradient(90deg,#7dff8a,#b77dff);background-size:200% 100%;box-shadow:0 10px 26px rgba(125,255,138,.28);transition:background-position .4s,transform .08s,box-shadow .2s;}
.sg-login-btn:hover{background-position:100% 0;box-shadow:0 12px 32px rgba(183,125,255,.4);}
.sg-login-btn:active{transform:translateY(1px);}
.sg-login-link{margin-top:12px;width:100%;height:40px;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:rgba(255,255,255,.03);color:#9fb0a6;font:inherit;font-weight:800;font-size:12.5px;cursor:pointer;transition:.15s;}
.sg-login-link:hover{color:#cfe9d6;border-color:rgba(125,255,138,.28);background:rgba(125,255,138,.07);}
@media(prefers-reduced-motion:reduce){.sg-login-aurora::before,.sg-login-aurora::after{animation:none;}}

/* ===== تحسين أزرار كارد الحديقة (صف الحدائق) — 2026-06-11 ===== */
.gardens-table td .actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
.gardens-table td .actions .mini-btn{height:32px;padding:0 13px;border-radius:10px;font-size:11.5px;font-weight:900;display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(255,255,255,.10);background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));color:#dfe7f0;transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease;}
.gardens-table td .actions .mini-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(0,0,0,.30);}
.gardens-table td .actions .mini-btn.blue{border-color:rgba(69,196,255,.40);background:linear-gradient(180deg,rgba(69,196,255,.20),rgba(69,196,255,.07));color:#cdeeff;}
.gardens-table td .actions .mini-btn.blue:hover{background:linear-gradient(180deg,rgba(69,196,255,.32),rgba(69,196,255,.12));border-color:rgba(69,196,255,.6);}
.gardens-table td .actions .mini-btn.red{border-color:rgba(255,90,85,.40);background:linear-gradient(180deg,rgba(255,90,85,.18),rgba(255,90,85,.06));color:#ffd2d0;}
.gardens-table td .actions .mini-btn.red:hover{background:linear-gradient(180deg,rgba(255,90,85,.30),rgba(255,90,85,.12));border-color:rgba(255,90,85,.6);}
.gardens-table td .actions .mini-btn:not(.blue):not(.red):hover{border-color:rgba(99,214,76,.45);background:linear-gradient(180deg,rgba(99,214,76,.20),rgba(99,214,76,.07));color:#c8ffce;}
html[data-theme="light"] .gardens-table td .actions .mini-btn{background:#f4f7fb;border-color:#dde5ef;color:#26405c;}

/* شعار أكبر وأوضح في الشريط */
.sg-topbar-logo{height:46px;max-width:230px;}

/* الخريطة تتناسق مع الوضع الداكن: فلتر داكن على بلاطات الشارع فقط (لا القمر الصناعي) */
html[data-theme="dark"] .leaflet-container{background:#0a121d!important;}
html[data-theme="dark"] .sg-street-tiles{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.92) saturate(.78);}

/* حاوية الخريطة الدائمة تملأ بطاقتها (إصلاح ارتفاع 0) */
.map-card .sg-map-mount{position:absolute;inset:0;border-radius:inherit;overflow:hidden;z-index:0;}
.sg-map-mount>#gardenMap,.sg-map-mount>.leaflet-map{height:100%!important;width:100%!important;}
