:root{
  --nav:#073b4c;
  --bg:#f3f8fa;
  --card:#fff;
  --text:#12313a;
  --muted:#66808a;
  --line:#d9e6ea;
  --blue:#1389b2;
  --green:#14966f;
  --orange:#f39c3d;
  --red:#e65364;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Segoe UI,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

button,input,select{
  font:inherit;
}

.hidden{
  display:none!important;
}

.login{
  min-height:100vh;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#073b4c,#0e7490);
}

.login-card{
  width:min(410px,92vw);
  background:#fff;
  padding:28px;
  border-radius:18px;
  box-shadow:0 20px 60px #00222b66;
}

.login-card h1{
  margin:0 0 5px;
}

.login-card p{
  color:var(--muted);
}

label{
  display:block;
  font-size:13px;
  font-weight:700;
  margin:12px 0 5px;
}

input,select{
  width:100%;
  padding:10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
}

.btn{
  border:0;
  border-radius:7px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:700;
  background:#edf2f5;
  color:#284650;
}

.btn:disabled{
  opacity:.6;
  cursor:not-allowed;
}

.btn.primary{
  background:var(--blue);
  color:#fff;
}

.btn.success{
  background:var(--green);
  color:#fff;
}

.btn.danger{
  background:#ffe6ea;
  color:#b72440;
}

.btn.small{
  padding:6px 9px;
  font-size:12px;
  margin:2px;
}

.wide{
  width:100%;
  margin-top:15px;
}

.app{
  display:grid;
  grid-template-columns:220px 1fr;
  min-height:100vh;
}

aside{
  background:linear-gradient(180deg,var(--nav),#052b38);
  color:#fff;
  padding:18px 14px;
  position:sticky;
  top:0;
  height:100vh;
}

.brand{
  font-size:20px;
  font-weight:800;
  margin:0 8px 22px;
}

nav button{
  width:100%;
  border:0;
  background:transparent;
  color:#d9edf2;
  text-align:left;
  padding:11px;
  border-radius:8px;
  margin:3px 0;
  cursor:pointer;
}

nav button.active,
nav button:hover{
  background:#0d607a;
}

main{
  padding:24px;
  overflow:auto;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 14px;
  margin-bottom:16px;
}

.tag{
  margin-left:8px;
  padding:5px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.tag-admin{
  background:#e6f1ff;
  color:#1260a3;
}

.tag-employee{
  background:#e8f8ef;
  color:#08724d;
}

.hero{
  min-height:180px;
  border-radius:14px;
  background:linear-gradient(120deg,#073b4c,#159ab0);
  color:#fff;
  padding:35px;
  margin-bottom:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.hero h1{
  font-size:35px;
  margin:0 0 8px;
}

.hero p{
  font-size:18px;
  margin:0;
  color:#d8f3f6;
}

.sea{
  font-size:65px;
}

.grid4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.metric{
  color:#fff;
  border-radius:10px;
  padding:18px;
  min-height:112px;
}

.metric b{
  display:block;
  font-size:25px;
  margin-top:14px;
}

.green{background:#14966f;}
.blue{background:#1389b2;}
.orange{background:#f39c3d;}
.red{background:#e65364;}

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:18px;
  margin-top:16px;
  overflow:auto;
}

.card h3{
  margin:0 0 14px;
}

.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.actions{
  display:flex;
  gap:8px;
  margin-top:14px;
}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  min-width:700px;
}

th,td{
  border-bottom:1px solid var(--line);
  padding:10px;
  text-align:left;
  vertical-align:top;
}

th{
  background:#f5f9fa;
  font-size:12px;
  color:#516276;
}

.preview{
  margin-top:14px;
  background:#eef8fb;
  border-radius:8px;
  padding:12px;
}

.msg{
  padding:10px;
  border-radius:8px;
  background:#ffe6ea;
  color:#a51c38;
  margin:10px 0;
}

.msg.success{
  background:#e1f6ec;
  color:#087247;
}

.muted{
  color:var(--muted);
}

.alert-line{
  border:1px solid var(--line);
  border-radius:9px;
  padding:12px;
  margin:9px 0;
}

.delivery-alert{
  background:#fff9eb;
  border-left:5px solid var(--orange);
}

.stock-alert{
  background:#fff5f6;
  border-left:5px solid var(--red);
}

.delivery-badge{
  display:inline-block;
  border-radius:999px;
  padding:5px 8px;
  font-size:12px;
  font-weight:700;
}

.delivery-badge.pending{
  background:#fff0d5;
  color:#9b6100;
}

.delivery-badge.delivered{
  background:#dff7ea;
  color:#087947;
}

.security-card{
  max-width:600px;
}

@media(max-width:900px){
  .app{
    grid-template-columns:1fr;
  }

  aside{
    position:relative;
    height:auto;
  }

  .grid4,
  .row{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:600px){
  main{
    padding:14px;
  }

  .grid4,
  .row,
  .form-grid{
    grid-template-columns:1fr;
  }

  .hero{
    padding:25px;
  }

  .sea{
    font-size:40px;
  }

  .section-title{
    align-items:stretch;
    flex-direction:column;
  }
}
