*{
  margin: 0px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
h1{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 36px;
  font-weight: lighter;
  margin: 10px;
  
}
h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
p{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

width: 500px;
text-overflow: ellipsis;
}
body {
  font-family: Roboto;
    display: block;
      background-color: white;
     
}
h2{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 10px;
}

 .navbutton, .button{
      appearance:none; border:0; cursor:pointer; text-decoration:none;
      padding:10px 14px; border-radius:999px; font-weight:700;
      background:rgba(255,255,255,.15); color:#fff;
      display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
        white-space: nowrap;  
    }
  .button--ghost{background:rgba(255,255,255,.40)}
    .button--light{background:#5D36A8}
    .button--purple{background:rgba(255,255,255,.18)}
    .button:hover{filter:brightness(1.02)}

.button:active {
  background-color: #5D36A8;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  transform: translateY(2px);
}

.navbutton:hover {
  background-color: #854DFF;
}

.navbutton:active {
  background-color: #854DFF;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  transform: translateY(2px);
}

.buttoncircle {
  background-color: #854DFF;
padding: 10px;
margin: 10px;
height: 40px;
width: 40px;
border: none;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
border-radius: 50%;
color: white
}

.buttoncircle:hover {
  background-color: #5D36A8;
}

.buttoncircle:active {
  background-color: #5D36A8;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  transform: translateY(2px);
}
option{
    font-size: 18px;
}

#topnav {
  background-image: linear-gradient(#5D36A8,#854DFF);
  overflow: hidden;
  height: 70px;
  width: 100%;
    display: flex;                  /* NEW */
  align-items: center;            /* NEW */
  gap: 16px;    
}

/* Style the links inside the navigation bar */
#topnav a {
  float: none;               /* stop floating just this anchor */
  margin: 15px 12px 15px 0;
}

/* Change the color of links on hover */
#topnav a:hover {
  color: #ddd;
}

/* Add a color to the active/current link */
#topnav a.active {
 border-bottom: white solid 2px;
  
}
#topnav img{
  height: 50px;
  width: auto;
  
  margin: 10px 50px;
}

#title {
  position: absolute;
  top: 150px;
  left: 100px;
  color: white;
  margin: 10px;
}
#title h2{
  font-size: 66px;
  background-color: #9982C5;
  width: fit-content;
  margin-bottom: -20px;
  padding-bottom: -20px;
  font-weight: lighter;
}

#title p {
  font-size: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
}

#title img {
  width: 45%;
  height: auto;
  margin-top: -20px;
}
.strip1 {
  height: 750px;
  width: 100%;
  margin-top:  -20;
  padding: 0;
  position: relative;
  text-align: center;
}

.strip2 {

  height: 600px;
  width: fill;
  margin-top:  -20;
  padding: 0;
 text-align: center;

}
.strip2 .back{
  height:800px;
  width: auto;
  opacity: 20%;
  margin: 0;
  position: absolute;
  top: 760px;
  align-items: center;
}
.strip2 .icon{
  height:150px;
  width: auto;
  margin: 10px;
  

}

.strip2 h2 {
  font-weight: lighter;
  font-size: 45px;
  text-align: center;
  margin: 20px;
  margin-top: 80px;
}

.strip3 {
  background-color: #C0AFE2;
  height: 300px;
  width: 100%;
  margin-top:  0;
  padding: 0;
} 

.box1 {
  background-color: whitesmoke;
  height: fit-content;
  width: 45%;
  margin: 20px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border-radius: 25px;
}

tr:hover {
  background-color: lightgrey;
}
tr:nth-child(even):hover {
  background-color: lightgrey;
}

.box2 {
  background-color: whitesmoke;
  height: fit-content;
  width: 20%;
  margin: 20px;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border-radius: 25px;
}

.box2 #insimage{
  height: auto;
  width: 100vw;
padding: 0px;
margin: 0%;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border-radius: 20px;
}
.write {
  margin: 10px;
}

.page-title{
  background-color: whitesmoke;
  height: fit-content;
}
#subalign1 {
  display: flex;
}
#subalign2 {
  display: block;
}
#subbox1 {
  width: 30vw;
  height: 27vh;
  background-color: white;
  border-radius: 20px;
  margin: 10px;
  padding: 30px;
}

#subbox1 table{
  width:100%;
}

#subbox1 label{
  font-size: 20px;
}
#subbox2 {
  width: 500px;
  height: 60vh;
  background-color: white;
  border-radius: 20px;
  margin: 20px;

}
#subbox3 {
  width: 60%;
  height: 66vhx;
  background-color: white;
  border-radius: 20px;
  margin: 15px;
  padding: 30px;
}

#subbox4 {
  width: 55%;
  height: 64vh;
  background-color: white;
  border-radius: 20px;
  padding: 30px;
 margin: 10px;
 
}

#subbox4 table{
width: 100%;
font-size: 18px;
}
tr:nth-child(even) {
  background-color: #f5f0fd;
}

.side_nav{
  position: absolute;         /* <- not absolute */
  left: 0;
  top: 70px;               /* height of your top bar */
  bottom: 0;               /* pin to bottom instead of height:100% */
  width: 70px;
  background: #fff;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;        /* scroll inside if it gets long */
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  z-index: 100;            /* keep above content if needed */
}
.side_nav a {
  display: block;
  color: black;
  padding: 16px;
  margin: 5px;
  text-decoration: none;
  width: 20px;
  align-items: center;
}

.side_nav a.active {
  color: #854DFF;
}
.sidebar a:hover {
  background-color: #555;
  color: white;
}

#bodyback {
  background-color: #f5f0fd;
  width: 100% - 70px;
  height: 100% - 70px;
  margin: 0 0 0 70px ;
  padding: 10px;
  display: block;
}
.dgrRating {
  height: 20px;
  width: auto;
  background-color: red;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
}
.entrybox-container {
  width:100%;
}
.entrybox {
  display: grid;                    /* info left, status right */
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  align-items: center;

  margin: 0 0 12px 0;               /* no dark “halo” around box */
  padding: 12px 14px;
  background: #ffffff;
  color: #111827;                   /* readable text */
  border: 3px solid #22c55e;        /* green by default */
  border-radius: 12px;
}
.entrybox.risk { border-color: #ef4444; }
.entry-card.risk-dot::before { border-color: #ef4444; }

.entrybox table{
  margin:10px;
  width: 100%;
  border-collapse: collapse;
}
td {
  width:auto;
  padding: 10px;
  text-align: center;
  margin-right: 10px;
}


.entity-1 {
  background: white;
  padding: 20px;
  color: black;
  border-radius: 20px;
  height:150px;
  width: auto;
}

.entity-2 {
  background: #f5f0fd;
  padding: 20px;
  color: black;
  border-radius: 20px;
  height:100%;
  width: auto;
}
.entities-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  margin: 20px;
  height:90vh;
  width: auto;
  margin-left: 20px;
  margin-right: 20px;
}

#map {
  background: darkseagreen;
  padding: 20px;
  color: white;
  border-radius: 20px;
}
.entities-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  margin: 20px;
  margin-left: 100px;
  margin-right: 30px;
  height:90vh;
  width: auto;
  
}
input {
  margin: 5px;
  border: 1px solid transparent;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  height: 32px;
  outline: none;
  border-radius: 10px;
  padding: 2px;
}
.litre-col {
  text-align: right;
}
.type-col {
  width: 110px;
}

table{
  border: 0px solid transparent;
  border-collapse: collapse;
}
.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* The actual popup (appears on top) */
.popup .popuptext {
  visibility: hidden;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
}

/* Popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}

.form img{
  height: 100px;
  width: auto;
}
#checkinform{
 text-align: center;
  display: block;
  
}

#checkinform input{
border-bottom: solid;
width: 20vw;
border-color:#5D36A8;
}
.purplebox {
  background-color: #5D36A8;
  color: #fff;
  width: 1000px;
  height: 80px;
  text-align: center;
  align-items: center;
  display:flex;
}
.purplebox label{
font-size: 24px;
}
.purplebox i{
  font-size: 50px;
  }
#current{
  font-size: 50px;
width: 100%;
  }
  .entrybox-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 8px;
    height: 600px;
  }
  #entrybox-container::-webkit-scrollbar,
#risk-container::-webkit-scrollbar { width: 8px; }
#entrybox-container::-webkit-scrollbar-thumb,
#risk-container::-webkit-scrollbar-thumb { 
  background: rgba(0,0,0,.25); border-radius: 8px; 
}
 .entries-timeline { padding-left: 0 !important; }
.entries-timeline::before { content: none !important; }  /* left green line */
.entry-card::before { content: none !important; } 

  /* Card */
 .entry-card {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: 0 !important;
  position: static !important;
  color: inherit !important;
}

  /* The green dot connecting to the timeline */
  .entry-card::before {
    content: "";
    position: absolute;
    left: -5px; top: 18px;
    width: 14px; height: 14px;
    background: #111827;           /* page bg under dot */
    border: 3px solid #22c55e;
    border-radius: 50%;
  }

  .entry-info { flex: 1 1 auto; min-width: 0; }
  .entry-title { color: #111827; font-weight: 700; font-size: 1.05rem; }
.entry-sub, .entry-when { color: #374151; }

  /* Right-side status icon */
  .entry-status { flex: 0 0 auto; display: grid; place-items: center; }
  .entry-status .ok    { color: #22c55e; }   /* green */
  .entry-status .warn  { color: #f59e0b; }   /* amber */
  .entry-status .bad   { color: #ef4444; }   /* red */

  /* Robust wrapping */
  .entry-title, .entry-sub, .entry-when { word-break: break-word; }

  /* Optional: respect system dark mode for the page around it */
  @media (prefers-color-scheme: light) {
    .entry-card { background: #ffffff; color: #111827; border-color: #e5e7eb; }
    .entry-title { color: #111827; }
    .entry-sub, .entry-when { color: #374151; }
  }

  .entriesbox {
  background-color: whitesmoke;
  height: fit-content;
  width: 20%;
  margin: 20px;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border-radius: 25px;
}

.welcome { margin-right: 12px; font-weight: 600; }
.entry-status { color: inherit; }

/* Target only the icons we care about */
.entry-status .status-icon.ok   { color: #22c55e !important; } /* green */
.entry-status .status-icon.warn { color: #f59e0b !important; } /* amber */

/* Optional: red style if you ever use it */
.entry-status .status-icon.bad  { color: #ef4444 !important; } /* red */

#subbox3 { 
  display: flex; 
  flex-direction: column; 
}
#subbox3 h3 {
  position: sticky; top: 0;
  background: inherit;        /* keeps header readable while scrolling */
  padding: 6px 0;
  z-index: 1;
}
#entrybox-container {
  position: relative;         /* for the timeline ::before */
  max-height: 535px;  
  height: auto;
   flex: 1 1 auto;
   min-height: 0;         /* adjust to taste */
  overflow-y: auto;
  padding-right: 8px;         /* space for scrollbar */
  overscroll-behavior: contain;
}

/* Make the Possible Biosecurity Risks list scroll */
#findDetails {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;             /* critical for scrolling inside flex containers */
}

/* 3) Risk list: fill the remaining height, scroll, no hard max-height */
#risk-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  max-height: none;          /* override earlier 40vh rule */
}

/* (optional) tidy the inner card margins so they don't touch the panel edges */
#risk-container .entrybox { margin: 8px 6px; }

/* Container scroll inside the white panel */
#subbox4 { display:flex; flex-direction:column; overflow:hidden; }
.chem-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 8px; }

/* Card */
.chem-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 8px 0;
  display: grid;
  grid-template-columns: 1fr auto; /* info | qty+icon */
  align-items: center;
  gap: 12px;
}

/* Colored left rail (changes with hazard) */
.chem-card::before {
  content: "";
  position: absolute;
  left: 10px; top: 10px; bottom: 10px;
  width: 6px;
  border-radius: 9999px;
  background: #9ca3af; /* default/unknown */
}
.chem-card.haz-nonhaz::before { background: #22c55e; }     /* green */
.chem-card.haz-caution::before { background: #f59e0b; }     /* yellow */
.chem-card.haz-poisonous::before { background: #f97316; }   /* orange */
.chem-card.haz-dangerous::before { background: #ef4444; }   /* red */
.chem-card.haz-dangerous-poison::before { background: #dc2626; } /* deep red */

/* Spacing so rail doesn't overlap text */
.chem-info { padding-left: 18px; }

/* Typography */
.chem-title { font-weight: 800; font-size: 1.15rem; color: #111827; }
.chem-type  { color: #0ea5e9; text-decoration: none; }
.chem-type:hover { text-decoration: underline; }
.chem-hazard, .chem-updated { color: #6b7280; }

/* Right side */
.chem-right { display:grid; gap:6px; justify-items:end; align-items:center; }
.chem-qty   { font-weight: 800; font-size: 1.2rem; color: #111827; }
.chem-icon  { font-size: 1.2rem; color: #0891b2; } /* teal-ish */

/* Make list look nice inside panel */
.chem-list::-webkit-scrollbar { width: 8px; }
.chem-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,.25); border-radius: 8px; }

#subbox4 {
  padding: 14px 16px 12px;   /* was ~30px */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Compact toolbar and push buttons to the right */
.chem-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end; /* buttons right, remove left empty space */
  margin: 0 0 8px;           /* less vertical space */
}

/* Smaller buttons */
.chem-toolbar .navbutton,
.chem-toolbar .button {
  padding: 6px 12px;
  height: 30px;
  line-height: 1;
  font-size: 14px;
  border-radius: 10px;
  margin: 0;                 /* kill extra margins */
}
#chemStats1, #chemStats2 { display:flex; flex-direction:column; gap:10px; }

/* small grid for key figures */
.stats-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
.stat {
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px 12px;
}
.stat .label { color:#6b7280; font-size:12px; }
.stat .value { font-weight:800; font-size:18px; }

/* chips */
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip {
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 8px; border-radius:9999px; font-size:12px;
  border:1px solid #e5e7eb; background:#fff; color:#111827;
}
.chip .dot { width:8px; height:8px; border-radius:9999px; }

/* hazard colors match your cards’ left rail */
.dot-nonhaz { background:#22c55e; }
.dot-caution { background:#f59e0b; }
.dot-dangerous { background:#ef4444; }
.dot-dangerous-poison { background:#dc2626; }
.dot-poisonous { background:#f97316; }

/* list of low-stock items */
.low-list { display:flex; flex-direction:column; gap:8px; }
.low-item { display:flex; justify-content:space-between; align-items:center; }
.low-name { font-weight:600; }
.low-qty  { color:#6b7280; }

#title h2,
#title p,
#title img,
#title .button {
  opacity: 0;
  transform: translateX(-24px);
}

/* play the staggered fade-up when #title gets the .in class */
#title.in h2 { animation: fadeLeft .6s ease-out .3s forwards; }
#title.in p  { animation: fadeLeft .6s ease-out .3s forwards; }
#title.in img  { animation: fadeLeft .6s ease-out .3s forwards; }
#title.in .button { animation: fadeLeft .6s ease-out .3s forwards; }

@keyframes fadeLeft {
to { opacity: 1; transform: translateX(0); }
}

/* accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #title h2, #title p, #title .button, #title img { opacity: 1; transform: none; animation: none; }
}

/* Top bar */
    .topbar{
      position:sticky; top:0; z-index:10;
      background:linear-gradient(90deg,var(--brand) 0%, var(--brand-2) 100%);
      color:#fff;
      box-shadow:0 2px 10px rgba(0,0,0,.12);
    }
    .topbar__inner{
      max-width:1200px; margin:0 auto; padding:10px 1px;
      display:flex; gap:16px; align-items:center;
    }
    .topbar__logo{display:flex; align-items:center; font-weight:800; letter-spacing:.2px}
    .topbar__spacer{flex:1}
    .topbar a{color:#fff; text-decoration:none; opacity:.95}
    .topbar a:hover{opacity:1}
   
    .button--ghost{background:rgba(255,255,255,.40)}
    .button--light{background:rgba(255,255,255,.18)}
.chem-card{
  display: grid;
  grid-template-columns: 1fr 280px; /* fixed, small media column */
  gap: 10px;
  align-items: center;
}
    .chem-card__media img{
  width: 100%;
  max-width: 40px;   /* was 380px — pick what looks right */
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.chem-card__media,
.chem-card__media figure,
.chem-card__media img {
  display: block;
  margin: 0;            /* <- kills top/bottom gap from <figure> */
}
/* --- Clean submissions layout --- */
:root{
  --mv-brand:#5D36A8;
  --mv-ink:#111827;
  --mv-muted:#6b7280;
  --mv-bg:#f5f0fd;
  --mv-card:#fff;
  --mv-border:#e5e7eb;
}

body{ background:var(--mv-bg); color:var(--mv-ink); }

/* Top bar */
.mv-topbar{
  position: sticky; top:0; z-index: 20;
  background: linear-gradient(90deg,#5D36A8,#854DFF);
  color:#fff; box-shadow: 0 2px 12px rgba(0,0,0,.15);
  overflow: hidden;
}
.mv-topbar__inner{
  max-width:1200px; margin:0 auto; padding:10px 16px;
  display:flex; gap:16px; align-items:center; justify-content:space-between;
}
.mv-topbar__logo{ height:44px; width:auto; }
.mv-topbar__nav a{
  color:#fff; text-decoration:none; margin-left:10px; font-size:18px; opacity:.95;
}
.mv-topbar__nav a:hover{ opacity:1; }
.mv-topbar__nav a.active{ border-bottom:2px solid #fff; }

/* Content wrapper */
.mv-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  min-height: calc(100vh - 110px);
}
@media (max-width: 900px){ .mv-wrap{ grid-template-columns: 1fr; } }

.mv-col {
  min-height: 0;
}

.mv-h1{ font-weight:800; margin:4px 0; }

/* KPI cards */
.mv-kpis{
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px;
}
@media (max-width: 900px){ .mv-kpis{ grid-template-columns: 1fr; } }

.mv-kpi{
  background:var(--mv-card);
  border-radius:14px; padding:12px 14px;
  display:grid; gap:6px;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
}
.mv-kpi__label{ color:var(--mv-muted); font-size:14px; }
.mv-kpi__value{ font-weight:800; font-size:28px; }
.mv-kpi__actions{ display:flex; gap:8px; flex-wrap:wrap; }

/* Reuse your existing button tokens, just robust defaults */
.button{
  appearance:none; border:0; cursor:pointer; text-decoration:none;
  padding:10px 14px; border-radius:999px; font-weight:700;
  background:#5D36A8; color:#fff; display:inline-flex; align-items:center; justify-content:center;
  white-space:nowrap;
}
.button--light{ background:rgba(93,54,168,.14); color:#5D36A8; }

/* Panels */
.panel{
  background:var(--mv-card);
  border-radius:14px;
  display:flex; flex-direction:column; min-height: 300px; /* feel free to tweak */
box-shadow:0 6px 16px rgba(0,0,0,.08);
}
.panel__header{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 14px; border-bottom:1px solid var(--mv-border);
}
.panel__header h3{ margin:0; font-size:18px; }
.panel__header input{
  height:36px; padding:0 10px; border:1px solid var(--mv-border); border-radius:8px; font:inherit; width:200px;
}
.panel__scroll{
  flex:1 1 auto; min-height: 0;
  overflow:auto; padding: 12px 14px;
}

.panel--flex {
  height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
}

.panel--flex .panel__header {
  flex: 0 0 auto;
}

.panel--flex .panel__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* Tidy your entry cards (you already have good tokens for these) */
.entries-timeline{ padding-left: 0 !important; }
.entry-card::before{ content:none !important; }
.entrybox{
  display:grid; grid-template-columns: 1fr auto; gap:12px; align-items:center;
  margin:0 0 12px 0; padding:12px 14px; background:#fff; color:#111827;
  border: 2px solid #22c55e; border-radius: 12px;
}
.entrybox.risk{ border-color:#ef4444; }
.entry-title{ font-weight:700; font-size:1.05rem; }
.entry-sub,.entry-when{ color:#374151; }
.entry-status .ok{ color:#22c55e; }
.entry-status .warn{ color:#f59e0b; }

/* Welcome badge (keeps your ID) */
.welcome{ margin-right:8px; font-weight:600; color:#6b7280; }

    :root{
      --brand:#5D36A8;
      --brand-2:#7B5CE6;
      --ink:#0f1222;
      --muted:#6b7280;
      --bg:#faf7ff;
      --card:#ffffff;
      --rule:#e7e3f7;
    }
    *{box-sizing:border-box}
    html,body{margin:0}
    body{font-family:system-ui,-apple-system,Segoe UI,Inter,Roboto,Arial,sans-serif;color:var(--ink);background:#fff}

    /* Top bar */
    .topbar{
      position:sticky; top:0; z-index:10;
      background:linear-gradient(90deg,var(--brand) 0%, var(--brand-2) 100%);
      color:#fff;
      box-shadow:0 2px 10px rgba(0,0,0,.12);
    }
    .topbar__inner{
      max-width:1200px; margin:0 auto; padding:10px 1px;
      display:flex; gap:16px; align-items:center;
    }
    .topbar__logo{display:flex; align-items:center; font-weight:800; letter-spacing:.2px}
    .topbar__spacer{flex:1}
    .topbar a{color:#fff; text-decoration:none; opacity:.95}
    .topbar a:hover{opacity:1}
    .navbutton, .button{
      appearance:none; border:0; cursor:pointer; text-decoration:none;
      padding:10px 14px; border-radius:999px; font-weight:700;
      background:rgba(255,255,255,.15); color:#fff;
      display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
    }
    .button--ghost{background:rgba(255,255,255,.40)}
    .button--light{background:rgba(255,255,255,.18)}
    .button:hover{filter:brightness(1.02)}

    /* Containers */
    .wrap{max-width:1200px; margin:0 auto; padding:0 16px}
    .section{padding:56px 0}
    .section--tint{background:var(--bg)}
    .center{text-align:center}

    /* Hero (“How it works”) */
    .hero{
      background:var(--bg);
      border-bottom:1px solid var(--rule);
      padding:72px 0 64px;
    }
    .hero h1{
      font-size:clamp(32px, 4.6vw, 46px);
      margin:0 0 10px; font-weight:900; letter-spacing:.3px;
    }
    .hero p{
      max-width:800px; margin:8px auto 22px; color:var(--muted); line-height:1.6;
      font-size:clamp(16px, 2.1vw, 18px);
    }

    /* Three-up explainer */
    .tri{
      display:grid; grid-template-columns:repeat(3, 1fr); gap:26px;
      margin-top:24px;
    }
    .tri__item h3{
      color:var(--brand); margin:.2rem 0 .5rem; font-size:1.15rem
    }
    .tri__item p{color:var(--muted); line-height:1.7}

    /* Pricing block */
    .pricing{
      display:grid; grid-template-columns:1fr 1fr; gap:28px;
      align-items:stretch;
    }
    .card{
      background:var(--card); border-radius:20px; padding:22px;
      box-shadow:0 10px 24px rgba(17,18,34,.08), 0 1px 0 rgba(17,18,34,.06);
      border:1px solid var(--rule);
    }
    .card--tint{background:var(--bg)}
    .price{
      display:grid; place-items:center; text-align:center; padding:18px;
      height:100%;
    }
    .price__big{
      font-size: clamp(40px, 8vw, 76px);
      font-weight:900; color:var(--brand);
      line-height:1; letter-spacing: .5px;
    }
    .price__small{color:var(--muted); margin-top:6px}
    .plus{font-size:42px; color:var(--brand); font-weight:900; margin:8px 0}
    .list{margin:0; padding-left:20px; color:#333}
    .list li{margin:.35rem 0}
    .rule{height:2px; background:#3b3f4a; width:100%; opacity:.25; margin:12px 0 0; border-radius:2px}

    /* Footer band */
    .footer{
      background:var(--brand); color:#eae3ff; margin-top:56px
    }
    .footer__inner{max-width:1200px; margin:0 auto; padding:38px 16px}
    .footer h4{color:#fff; margin:0 0 16px}
    .footer a{color:#fff; text-decoration:none}
    .footer__grid{
      display:grid; gap:24px; grid-template-columns: 1.2fr 1fr 1fr;
    }
    .socials{display:flex; gap:10px}
    .socials a{
      width:40px; height:40px; border-radius:50%; background:#fff; color:var(--brand);
      display:inline-flex; align-items:center; justify-content:center; font-weight:800
    }
    .mailing{
      display:flex; gap:8px; align-items:center
    }
    .mailing input{
      width:100%; height:42px; border-radius:999px; border:0; padding:0 14px;
    }
    .mailing button{
      height:42px; border-radius:999px; border:0; padding:0 16px; font-weight:700;
      background:#fff; color:var(--brand); cursor:pointer
    }

    /* --- Chemical storage section --- */
.section--chem{background:var(--bg); border-top:1px solid var(--rule); border-bottom:1px solid var(--rule)}
.chem__grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:28px; align-items:stretch}
.chem__pill{display:inline-block; background:#efe7ff; color:#432d82; border-radius:999px; padding:4px 12px; font-weight:800; font-size:.85rem; margin-bottom:10px}
.chem__title{font-size:clamp(24px,3.4vw,34px); margin:.2rem 0 .6rem; font-weight:900}
.chem__lead{color:var(--ink); opacity:.9; line-height:1.7; margin:0 0 12px; max-width:56ch}
.chem__points{margin:12px 0 14px; padding-left:20px; color:#2b2e3a}
.chem__points li{margin:.45rem 0}
.chem__badges{display:flex; flex-wrap:wrap; gap:8px}
.tag{display:inline-block; padding:4px 10px; border-radius:999px; background:#f0eaff; color:var(--brand); font-weight:700; font-size:.85rem}

/* Mock card */
.chem-card{
  background:#fff; border-radius:18px; border:1px solid var(--rule);
  box-shadow:0 10px 24px rgba(17,18,34,.08), 0 1px 0 rgba(17,18,34,.06);
  padding:18px; display:grid; gap:14px;
}
.chem-card__scan{
  display:flex; gap:12px; align-items:center;
  background:linear-gradient(90deg, #f1eaff 0%, #faf7ff 100%);
  border:1px dashed #d7ccff; border-radius:14px; padding:12px;
}
.chem-scan__icon{width:42px; height:42px; border-radius:10px; background:#5D36A8; color:#fff; display:grid; place-items:center; font-weight:900}
.chem-scan__title{font-weight:800; margin-bottom:2px}
.chem-scan__sub{color:var(--muted); font-size:.9rem}

.chem-form{display:grid; gap:10px}
.chem-label{display:block; font-weight:700; margin-bottom:4px}
.chem-input{
  width:100%; height:40px; border:1px solid #e5e7eb; border-radius:10px; padding:8px 10px; font:inherit; background:#fff;
}
.chem-row{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.chem-btn{background:var(--brand); color:#fff; width:100%; margin-top:6px}
.chem-note{color:var(--muted); font-size:.85rem; text-align:center}


    /* Utilities */
    .muted{color:var(--muted)}
    .mb-8{margin-bottom:8px}
    .mb-16{margin-bottom:16px}
    .mb-24{margin-bottom:24px}
    .mt-8{margin-top:8px}
    .mt-16{margin-top:16px}

    /* Responsive */
    @media (max-width:960px){
      .tri{grid-template-columns:1fr}
      .pricing{grid-template-columns:1fr}
      .footer__grid{grid-template-columns:1fr}
      .chem__grid{grid-template-columns:1fr}
    }

    /* --- Entrants page polish --- */

#bodyback {
  min-height: calc(100vh - 70px);
  padding: 28px;
  background: #f5f0fd;
}

.mv-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  max-width: 1500px;
  margin: 0 auto;
  min-height: calc(100vh - 126px);
}

.mv-h1 {
  font-size: 42px;
  line-height: 1;
  font-weight: 850;
  margin: 8px 0 20px;
  color: #0f1222;
}

.mv-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.mv-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mv-kpi {
  min-height: 132px;
  border-radius: 18px;
  padding: 18px 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(45, 28, 80, 0.08);
  border: 1px solid rgba(93, 54, 168, 0.08);
}

.mv-kpi__label {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.2;
}

.mv-kpi__value {
  font-size: 48px;
  font-weight: 850;
  margin-top: 12px;
}

.mv-kpi__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  align-items: flex-start;
}

/* Buttons that are currently hard to see */
.mv-kpi .button,
.panel__header .button,
.button--purple,
#downloadEntriesCsv,
#editEntries,
#downloadEntryCsv {
  background: #5D36A8 !important;
  color: #fff !important;
  border: 1px solid #5D36A8 !important;
  box-shadow: 0 8px 18px rgba(93,54,168,.22);
}

.mv-kpi .button:hover,
.panel__header .button:hover {
  background: #854DFF !important;
}

.button--light {
  background: #efe7ff !important;
  color: #5D36A8 !important;
  border: 1px solid rgba(93,54,168,.18) !important;
}

/* Panels */
.panel {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(93, 54, 168, 0.08);
  box-shadow: 0 12px 30px rgba(45, 28, 80, 0.09);
  overflow: hidden;
}

.mv-col:first-child .panel {
  flex: 1 1 auto;
  min-height: 420px;
}

.panel--flex {
  height: 100%;
  min-height: calc(100vh - 126px);
}

.panel__header {
  min-height: 76px;
  padding: 18px 20px;
  gap: 14px;
  border-bottom: 1px solid #ece7f6;
}

.panel__header h3 {
  font-size: 22px;
  font-weight: 850;
  color: #0f1222;
  white-space: nowrap;
}

.panel__header input {
  width: min(280px, 45%);
  height: 44px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid #ddd8e8;
  background: #fff;
}

.panel__scroll {
  padding: 18px;
  overflow-y: auto;
}

/* Entry cards */
.entrybox {
  border-width: 2px;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 14px 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.035);
}

.entry-title {
  font-size: 17px;
  font-weight: 850;
}

.entry-sub,
.entry-when {
  font-size: 16px;
  line-height: 1.25;
}

.entry-status .status-icon {
  font-size: 24px;
}

/* Scrollbars */
.panel__scroll::-webkit-scrollbar {
  width: 8px;
}

.panel__scroll::-webkit-scrollbar-thumb {
  background: rgba(93,54,168,.28);
  border-radius: 999px;
}

/* Mobile */
@media (max-width: 1000px) {
  #bodyback {
    padding: 20px 16px 20px 86px;
  }

  .mv-wrap {
    grid-template-columns: 1fr;
  }

  .panel--flex {
    min-height: 620px;
  }

  .mv-kpis {
    grid-template-columns: 1fr;
  }
}

.csv-dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  width: min(420px, 92vw);

  /* 🔥 THIS centers it perfectly */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.csv-dialog::backdrop {
  background: rgba(0,0,0,.35);
}

.csv-dialog__body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.csv-dialog__body h3 {
  margin: 0 0 4px;
}

.csv-dialog__body label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 650;
}

.csv-dialog__body select {
  height: 42px;
  border: 1px solid #ddd8e8;
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
}

.csv-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}