:root {
  --ink: #181820;
  --muted: #667078;
  --paper: #f6f8f8;
  --card: #ffffff;
  --line: #dce4e8;
  --green: #148fc2;
  --green2: #e3f3f9;
  --gold: #81bc3b;
  --danger: #a43d36;
  --shadow: 0 12px 35px rgba(20, 54, 73, .09);
}
body:has(.public-report) .sidebar { display: none; }
body { background: radial-gradient(circle at 90% 0, #e7f4f9 0, transparent 28rem), var(--paper); }
.shell:has(.public-report) { display: block; }
.public-report { max-width: 1100px; margin: 0 auto; }
.sidebar { background: #191920; }
.logo-link {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}
.brand-logo { width: 100%; height: auto; display: block; }
.nav-link { display: flex; align-items: center; gap: 10px; }
.nav-link.active { background: #81bc3b; color: #181820; }
.nav a:hover { background: #148fc2; color: #fff; }
.nav a.active:hover { background: #81bc3b; color: #181820; }
.button { box-shadow: 0 5px 14px rgba(20, 143, 194, .18); }
.button.secondary { box-shadow: none; }
.supplier-group { border-top-color: #81bc3b; }
.mobile-label { display: none; }

@media (max-width: 850px) {
  .sidebar .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    z-index: 50;
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 3px;
    margin: 0;
    padding: 7px 7px max(7px, env(safe-area-inset-bottom));
    overflow: visible;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 18px;
    background: rgba(25,25,32,.97);
    box-shadow: 0 12px 36px rgba(13,32,25,.28);
    backdrop-filter: blur(14px);
  }
  .sidebar .nav-link {
    min-width: 0;
    min-height: 55px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 6px 3px;
    border-radius: 12px;
    color: #d7e3dd;
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
  }
  .sidebar .nav-link.active { color: #181820; background: #81bc3b; }
  .sidebar .nav-link:active { transform: scale(.97); }
  .nav-icon { width: 21px; height: 21px; }
  .desktop-label { display: none; }
  .mobile-label { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .main { padding-bottom: calc(105px + env(safe-area-inset-bottom)); }
  .logo-link { width: 168px; padding: 7px; margin: 0; }
  .product-table-wrap { overflow: visible; border: 0; background: transparent; }
  .product-table,
  .product-table tbody,
  .product-table tr,
  .product-table td { display: block; width: 100%; }
  .product-table thead { display: none; }
  .product-table tbody { display: grid; gap: 14px; }
  .product-table tr {
    padding: 17px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 15px;
    background: var(--card);
    box-shadow: var(--shadow);
  }
  .product-table td {
    display: grid;
    grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
  .product-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .product-table td:first-child { padding-top: 0; }
  .product-table td:last-child { padding: 14px 0 0; border-bottom: 0; }
  .product-table .product-actions { display: block; }
  .product-table .product-actions::before { content: none; }
  .product-table .product-actions .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-table .product-actions form:last-child { grid-column: 1 / -1; }
  .product-table .product-actions .button,
  .product-table .product-actions form { width: 100%; }
}
