/* ==========================================================================
   ECO REPORT — structure : shell, sidebar, topbar, contenu
   ========================================================================== */

.app{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100vh}

/* ------------------------------- sidebar ------------------------------- */
.sidebar{
  position:sticky;top:0;height:100vh;display:flex;flex-direction:column;
  background:linear-gradient(180deg,#003f63 0%,#00324f 55%,#002b45 100%);
  color:#dbe8f2;z-index:40;
}
.side-head{
  display:flex;align-items:center;gap:11px;
  padding:20px 18px 18px;border-bottom:1px solid rgba(255,255,255,.09);
}
.side-logo{
  height:42px;width:auto;max-width:76px;object-fit:contain;
  border-radius:8px;background:#fff;padding:4px;
}
.side-product{
  font-size:14.5px;font-weight:700;letter-spacing:.06em;color:#fff;line-height:1.2;
}
.side-product span{
  display:block;margin-top:3px;font-size:10.5px;font-weight:500;
  letter-spacing:.05em;color:#9dc0d6;text-transform:none;
}

.nav{flex:1;overflow-y:auto;padding:16px 12px 8px}
.nav::-webkit-scrollbar{width:6px}
.nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:3px}
.nav-group{margin-bottom:18px}
.nav-title{
  padding:0 10px 8px;font-size:10px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:#7ea6be;
}
.nav-item{
  display:flex;align-items:center;gap:10px;width:100%;
  padding:9px 10px;margin-bottom:2px;border:0;border-radius:8px;
  background:transparent;color:#c9dce9;font-size:13px;font-weight:500;
  text-align:left;cursor:pointer;transition:background .15s,color .15s;
}
.nav-item .ico{width:16.5px;height:16.5px;opacity:.85}
.nav-item:hover{background:rgba(255,255,255,.07);color:#fff}
.nav-item.active{
  background:#fff;color:var(--navy-800);font-weight:650;
  box-shadow:0 2px 8px rgba(0,20,35,.25);
}
.nav-item.active .ico{opacity:1;color:var(--blue)}

.side-foot{padding:12px;border-top:1px solid rgba(255,255,255,.09)}
.freshness{
  padding:10px 12px;margin-bottom:10px;border-radius:10px;
  background:rgba(255,255,255,.06);
}
.freshness-title{font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:#8fb4ca}
.freshness-date{font-size:14px;font-weight:650;color:#fff;margin-top:2px}
.freshness-meta{font-size:10.5px;color:#9dc0d6;margin-top:1px}
.side-profile{
  display:flex;align-items:center;gap:9px;width:100%;padding:8px;
  background:transparent;border:0;border-radius:9px;cursor:pointer;text-align:left;
}
.side-profile:hover{background:rgba(255,255,255,.07)}
.side-profile span:last-child{display:flex;flex-direction:column;min-width:0}
.side-profile b{
  font-size:12px;font-weight:650;color:#fff;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
}
.side-profile em{font-size:10.5px;font-style:normal;color:#9dc0d6}
.profile-badge.sm{width:28px;height:28px;font-size:10.5px}

.sidebar-veil{
  display:none;position:fixed;inset:0;background:rgba(6,24,38,.5);
  z-index:35;backdrop-filter:blur(2px);
}
.sidebar-veil.show{display:block}

/* ------------------------------- main ---------------------------------- */
.main{min-width:0;display:flex;flex-direction:column}
.topbar{
  position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:14px;
  padding:13px 24px;background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line);
}
.topbar-title{flex:1;min-width:0}
.topbar-title h1{font-size:17px;font-weight:650}
.topbar-title p{margin-top:1px;font-size:11.5px;color:var(--muted)}
.topbar-actions{display:flex;align-items:center;gap:9px}
.filters{display:flex;align-items:center;gap:8px}

.content{padding:22px 24px 40px;max-width:1560px;width:100%;margin:0 auto}
.page{display:flex;flex-direction:column;gap:18px;animation:fade .25s ease}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

.page-head{padding:2px 2px 0}
.page-head .kicker{
  display:inline-block;margin-bottom:6px;color:var(--blue);
  font-size:10.5px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;
}
.page-head h1{font-size:25px;letter-spacing:-.02em}
.page-head p{margin-top:5px;max-width:820px;color:var(--muted);font-size:13px}

/* ------------------------------ responsive ----------------------------- */
@media (max-width:1180px){
  .filters .select-wrap:nth-child(2){display:none}
}
@media (max-width:1024px){
  .app{grid-template-columns:1fr}
  .sidebar{
    position:fixed;left:0;top:0;width:274px;height:100dvh;
    transform:translateX(-100%);transition:transform .25s ease;
  }
  .sidebar.open{transform:none;box-shadow:0 0 40px rgba(0,0,0,.4)}
  .menu-btn{display:inline-flex}
  .topbar{padding:11px 16px;gap:10px}
  .content{padding:18px 16px 34px}
  .page-head h1{font-size:21px}
}
@media (max-width:720px){
  .topbar{flex-wrap:wrap}
  .topbar-title h1{font-size:15.5px}
  .topbar-title p{display:none}
  .topbar-actions{width:100%;justify-content:space-between;gap:8px}
  .filters{flex:1}
  .select-wrap{flex:1}
  .select-wrap select{width:100%;max-width:none}
  .filters .select-wrap:nth-child(2){display:block}
  #btn-export-top{display:none}
  .content{padding:14px 14px 40px}
  .page{gap:14px}
}
