:root{--p:#03aa92;--pd:#087f73;--soft:#e8f8f5;--ink:#17252a;--muted:#718087;--line:#dce8e6;--bg:#f1f6f5}*{box-sizing:border-box}body{margin:0;font-family:Manrope,Arial,sans-serif;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}.app{display:grid;grid-template-columns:88px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:88px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;padding:22px 10px;gap:18px}.logo{width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,var(--p),var(--pd));color:#fff;display:grid;place-items:center;font-weight:800;margin-bottom:22px}.nav{width:68px;border:0;background:transparent;border-radius:14px;padding:9px 3px;color:#789;display:grid;gap:5px;justify-items:center;cursor:pointer;font-size:20px}.nav small{font-size:9px;line-height:1.05}.nav.active,.nav:hover{background:var(--soft);color:var(--pd)}main{grid-column:2;padding:32px 42px 56px;max-width:1560px;width:100%;margin:auto}.page{display:none}.page.active{display:block}.header{display:flex;justify-content:space-between;gap:20px;margin-bottom:28px}.eyebrow{margin:0 0 6px;color:var(--pd);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}h1{margin:0 0 8px;font-size:40px;letter-spacing:-.045em}h2{margin:0;font-size:18px}.sub{margin:0;color:var(--muted)}.profile{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:7px 12px 7px 7px}.profile>span{width:36px;height:36px;background:var(--p);color:#fff;border-radius:12px;display:grid;place-items:center;font-weight:800}.profile div{display:grid}.profile small{color:var(--muted)}.loading,.error{background:#fff;border:1px solid var(--line);padding:30px;border-radius:20px}.kpis{display:grid;grid-template-columns:1.25fr repeat(3,1fr);gap:16px;margin-bottom:18px}.kpi,.panel{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 18px 50px rgba(26,73,68,.07)}.kpi{padding:23px;min-height:145px}.kpi.primary{background:linear-gradient(145deg,#0db7a1,#078677);color:#fff;border:0}.kpi p{margin:0 0 12px;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase}.kpi.primary p,.kpi.primary small{color:rgba(255,255,255,.82)}.kpi strong{display:block;font-size:34px}.kpi small{display:block;margin-top:10px;color:var(--muted)}.grid{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.panel{padding:24px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:22px}.panel-head button{border:0;background:transparent;color:var(--pd);font-weight:800;cursor:pointer}.chip,.badge{background:var(--soft);color:var(--pd);padding:7px 10px;border-radius:999px;font-size:11px;font-weight:800}.badge.draft{background:#fff4dc;color:#98711c}.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}label{display:grid;gap:8px}label span,.stat span{font-size:12px;color:var(--muted);font-weight:700}input,select{min-height:45px;border:1px solid var(--line);border-radius:12px;padding:0 13px;background:#fff;outline:none}.stat{padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:#f9fbfb;display:grid;gap:8px}.revenues{display:grid;gap:14px}.revenues>div{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;padding:14px;border:1px solid var(--line);border-radius:16px}.revenues strong{min-width:120px;padding:14px;border-radius:12px;background:var(--soft);color:var(--pd);text-align:center}.chart{height:250px;display:flex;align-items:flex-end;gap:10px;overflow-x:auto}.bar{min-width:33px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px}.track{height:190px;width:100%;display:flex;align-items:flex-end;background:#eff5f4;border-radius:10px;overflow:hidden}.fill{width:100%;background:linear-gradient(#19c2ac,#078677);border-radius:10px 10px 0 0}.bar small,.bar b{font-size:10px}.program-preview{margin-top:18px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:700px}table.wide{min-width:1250px}th,td{padding:13px 10px;border-bottom:1px solid #edf2f1;text-align:left;font-size:12px;vertical-align:middle}th{font-size:10px;color:var(--muted);text-transform:uppercase}.toolbar{display:grid;grid-template-columns:1fr 190px 220px;gap:12px;margin-bottom:18px}.outline{border:1px solid var(--p);background:#fff;color:var(--pd);border-radius:12px;padding:10px 14px;font-weight:800}.program-input{min-width:135px;width:100%;height:38px;min-height:38px;border-radius:9px}.staff{min-width:185px}.save{border:0;background:var(--p);color:#fff;border-radius:10px;padding:9px 12px;font-weight:800;cursor:pointer}.toast{position:fixed;right:24px;bottom:24px;background:var(--ink);color:#fff;padding:13px 17px;border-radius:13px;opacity:0;transform:translateY(10px);transition:.2s}.toast.show{opacity:1;transform:none}@media(max-width:1100px){.kpis{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}}@media(max-width:720px){.app{display:block}.sidebar{inset:auto 0 0 0;width:auto;height:75px;flex-direction:row;justify-content:center;border-right:0;border-top:1px solid var(--line);z-index:10}.logo{display:none}.nav{width:88px}main{padding:24px 16px 95px}.header{display:block}.profile{margin-top:16px;width:max-content}.kpis{grid-template-columns:1fr}.filters,.toolbar{grid-template-columns:1fr}.revenues>div{grid-template-columns:1fr}h1{font-size:31px}}

/* ===== UI Polish: Sidebar & Admin Profile ===== */
.sidebar{
  width:96px;
  padding:24px 12px;
  gap:14px;
  box-shadow:8px 0 30px rgba(26,73,68,.035);
}

.logo{
  width:52px;
  height:52px;
  border-radius:17px;
  margin-bottom:30px;
  box-shadow:0 12px 26px rgba(3,170,146,.24);
  letter-spacing:-.03em;
}

.nav{
  width:72px;
  min-height:76px;
  padding:10px 6px;
  gap:7px;
  border:1px solid transparent;
  transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}

.nav:hover{
  transform:translateY(-1px);
  border-color:#d7eeea;
  box-shadow:0 8px 20px rgba(3,170,146,.08);
}

.nav.active{
  background:linear-gradient(180deg,#e9faf7,#def5f1);
  border-color:#d3efea;
  box-shadow:0 10px 24px rgba(3,170,146,.10);
}

.nav-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  color:#6d7f82;
  background:#f7faf9;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}

.nav-icon svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.nav.active .nav-icon{
  color:#fff;
  background:linear-gradient(145deg,var(--p),var(--pd));
  box-shadow:0 8px 18px rgba(3,170,146,.22);
}

.nav:hover .nav-icon{
  color:var(--pd);
  transform:scale(1.04);
}

.nav.active:hover .nav-icon{
  color:#fff;
}

.nav small{
  color:#78888d;
  font-size:9.5px;
  font-weight:700;
  letter-spacing:-.01em;
}

.nav.active small{
  color:var(--pd);
}

.app{
  grid-template-columns:96px 1fr;
}

.profile{
  min-width:218px;
  min-height:70px;
  padding:10px 14px 10px 10px;
  gap:12px;
  border-radius:20px;
  border:1px solid #dce9e7;
  box-shadow:0 14px 34px rgba(26,73,68,.08);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.profile:hover{
  transform:translateY(-1px);
  border-color:#cce8e3;
  box-shadow:0 18px 38px rgba(26,73,68,.11);
}

.profile-avatar{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:#fff;
  background:linear-gradient(145deg,#13bba4,#068575);
  border-radius:15px;
  font-size:15px;
  font-weight:800;
  box-shadow:0 9px 20px rgba(3,170,146,.22);
}

.profile-copy{
  display:grid;
  gap:4px;
  min-width:0;
}

.profile-title{
  display:flex;
  align-items:center;
  gap:7px;
}

.profile-title b{
  font-size:15px;
  line-height:1;
}

.profile-copy small{
  color:#718087;
  font-size:12px;
  white-space:nowrap;
}

.online-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#29c590;
  box-shadow:0 0 0 3px #e3f9f1;
}

.profile-chevron{
  width:18px;
  height:18px;
  margin-left:auto;
  fill:none;
  stroke:#92a1a4;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

@media(max-width:720px){
  .sidebar{
    width:auto;
    height:78px;
    padding:8px 12px;
  }

  .nav{
    width:94px;
    min-height:60px;
    padding:5px;
  }

  .nav-icon{
    width:30px;
    height:30px;
  }

  .nav small{
    font-size:8px;
  }

  .profile{
    min-width:unset;
    width:max-content;
  }
}


/* ===== Secure Login: Profile Menu ===== */
.profile-wrap{
  position:relative;
}

.profile{
  cursor:pointer;
  font:inherit;
  color:inherit;
  text-align:left;
}

.profile-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:230px;
  padding:10px;
  z-index:40;
  border:1px solid #dce9e7;
  border-radius:17px;
  background:#fff;
  box-shadow:0 22px 50px rgba(26,73,68,.16);
}

.profile-menu-copy{
  display:grid;
  gap:4px;
  padding:10px 11px 12px;
  border-bottom:1px solid #edf3f2;
}

.profile-menu-copy strong{
  font-size:13px;
}

.profile-menu-copy span{
  color:#7f8f92;
  font-size:10px;
}

.profile-menu button{
  width:100%;
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:8px;
  padding:10px 11px;
  border:0;
  border-radius:11px;
  color:#a33d49;
  background:#fff5f6;
  font-weight:800;
  cursor:pointer;
}

.profile-menu button:hover{
  background:#ffecef;
}

.profile-menu button svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
