*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:#071b24 url("../img/vessel-background.jpg") center top/cover fixed no-repeat;color:#102631;min-height:100vh}.hero{min-height:190px;width:100%;padding:18px 4%;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:linear-gradient(110deg,#031722,#063542,#05212d);border-bottom:1px solid #18d4dc}.hero:before,.hero:after{content:"";position:absolute;width:65%;height:120px;border:2px solid rgba(0,225,230,.18);border-radius:50%;transform:rotate(-5deg);left:-8%;bottom:-65px}.hero:after{left:45%;bottom:-75px;border-color:rgba(60,190,210,.12)}.brand{text-align:center;z-index:1}.brand img{width:min(680px,70vw);max-height:125px;object-fit:contain}.tag{color:#bfeff1;letter-spacing:3px;font-size:12px;margin-top:3px}.identity{position:absolute;right:3%;top:22px;z-index:2;display:flex;gap:8px;flex-direction:column;align-items:flex-end;color:#dff}.identity b{color:#25e2e4}.nav{background:#061e29;display:flex;gap:4px;padding:0 3%;box-shadow:0 3px 12px #0003}.nav a{color:#d9f7f7;text-decoration:none;padding:14px 15px;font-size:14px}.nav a:hover{background:#0b3a47;color:#32e3e5}.nav .logout{margin-left:auto}.container{max-width:1250px;margin:28px auto;padding:0 20px;min-height:60vh}.panel,.card{background:rgba(255,255,255,.90);backdrop-filter:blur(2px);border-radius:14px;box-shadow:0 7px 25px #173b4b16;border:1px solid #dbe8eb}.panel{padding:24px;margin-bottom:22px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field label{display:block;font-weight:700;margin-bottom:7px;color:#244753}.field input,.field select,.field textarea{width:100%;padding:12px 13px;border:1px solid #bdd1d7;border-radius:8px;background:#fbfdfe;font:inherit}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid #24cbd2;border-color:transparent}.full{grid-column:1/-1}.btn{display:inline-block;border:0;border-radius:8px;background:#087d8a;color:white;padding:11px 16px;text-decoration:none;font-weight:700;cursor:pointer}.btn.alt{background:#173f50}.btn.danger{background:#9d2630}.btn.light{background:#e5f4f5;color:#16434b}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.steps{display:flex;gap:7px;margin-bottom:18px}.steps span{flex:1;text-align:center;padding:9px;background:#dbe9ec;border-radius:7px;font-size:13px;font-weight:700}.steps .active{background:#0a8793;color:#fff}.fleet-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}.vessel-card{overflow:hidden;cursor:pointer;transition:.2s}.vessel-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #163e4d29}.photo-wrap{height:175px;background:#082631;position:relative;overflow:hidden}.photo-wrap img{width:100%;height:100%;object-fit:cover}.overlay{position:absolute;left:0;right:0;bottom:0;padding:30px 14px 12px;background:linear-gradient(transparent,#001820e8);color:white}.overlay b{display:block;font-size:18px}.card-body{padding:14px}.meta{color:#5d747d;font-size:13px;line-height:1.7}.searchbar{display:grid;grid-template-columns:2fr 1fr auto;gap:10px}.profile-photo{height:430px;border-radius:14px;overflow:hidden;position:relative;background:#082631}.profile-photo img{width:100%;height:100%;object-fit:cover}.profile-photo .overlay{padding:80px 28px 24px}.profile-photo .overlay b{font-size:30px}.info-table{width:100%;border-collapse:collapse}.info-table td{padding:10px;border-bottom:1px solid #e2ecee}.info-table td:first-child{font-weight:700;width:35%;color:#31515c}.alert{padding:12px 14px;border-radius:8px;margin:12px 0;background:#e7f7f5;color:#15584f}.error{background:#fde8e8;color:#8b1d28}h1,h2,h3{color:#123b49}footer{text-align:center;padding:24px;color:#d8e7eb;font-size:13px;text-shadow:0 1px 3px #000}@media(max-width:800px){.hero{padding-top:65px}.identity{left:0;right:0;top:8px;align-items:center;flex-direction:row;justify-content:center;flex-wrap:wrap}.brand img{width:90vw}.nav{overflow-x:auto}.nav a{white-space:nowrap}.grid,.searchbar{grid-template-columns:1fr}.profile-photo{height:280px}}


/* ===== VESSELMETRICA FINAL WIZARD UI ===== */
html{min-height:100%;background:#071b24!important}
body{
  min-height:100vh!important;
  background-color:#071b24!important;
  background-image:url("../img/vessel-background.jpg")!important;
  background-position:center top!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-attachment:fixed!important;
}
.container{background:transparent!important}
.page-title{color:#fff!important;text-shadow:0 2px 8px rgba(0,0,0,.65)!important}

/* completely neutralize the old .steps rules */
.steps.wizard-tabs{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  margin:0 0 18px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}
.steps.wizard-tabs > .step-tab{
  all:unset;
  box-sizing:border-box!important;
  min-height:64px!important;
  width:100%!important;
  padding:10px 14px!important;
  border:1px solid #c8dadd!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.96)!important;
  color:#123b49!important;
  box-shadow:0 5px 18px rgba(0,22,34,.20)!important;
  cursor:pointer!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  text-align:center!important;
  font-family:Inter,Segoe UI,Arial,sans-serif!important;
}
.steps.wizard-tabs > .step-tab strong{
  font-size:20px!important;
  line-height:1!important;
  font-weight:800!important;
}
.steps.wizard-tabs > .step-tab span{
  font-size:14px!important;
  line-height:1.15!important;
  font-weight:800!important;
}
.steps.wizard-tabs > .step-tab.active{
  background:#0a8793!important;
  border-color:#32d6dd!important;
  color:#fff!important;
}

/* only one card is shown */
.wizard-panel{display:none!important}
.wizard-panel.active{
  display:block!important;
  background:rgba(255,255,255,.97)!important;
  backdrop-filter:blur(2px)!important;
}
.wizard-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-top:24px!important;
}
.boiler2-head{display:flex;align-items:center;gap:10px;margin-top:24px}
.boiler2-head span{background:#e5f4f5;color:#16434b;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800}
.review-note{color:#526b74}
.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.review-section{grid-column:1/-1;color:#087d8a;border-bottom:1px solid #d5e5e8;padding-bottom:7px;margin:10px 0 0}
.review-item{background:#f6fafb;border:1px solid #dce8ea;border-radius:8px;padding:10px 12px}
.review-item b{display:block;color:#31515c;font-size:12px;margin-bottom:4px}
@media(max-width:800px){
  .steps.wizard-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .review-grid{grid-template-columns:1fr}
}


/* ===== VESSELMETRICA FINAL RELEASE — DARK MARITIME UI ===== */
:root{
  --vm-navy:#031f30;
  --vm-navy2:#052b40;
  --vm-teal:#0b91a0;
  --vm-cyan:#18c8d6;
  --vm-text:#f2fbfd;
  --vm-muted:#a9c5ce;
}
body{
  color:var(--vm-text)!important;
  background:#05273b url("../img/vessel-background.jpg") center top/cover fixed no-repeat!important;
}
.page-title{color:#fff!important}
.steps.wizard-tabs>.step-tab{
  background:rgba(3,31,48,.94)!important;
  color:#e9f8fa!important;
  border:1px solid rgba(70,154,177,.75)!important;
}
.steps.wizard-tabs>.step-tab.active{
  background:linear-gradient(135deg,#0a8291,#129eaa)!important;
  border-color:#36d7df!important;
  color:#fff!important;
}
.steps.wizard-tabs>.step-tab strong{
  background:rgba(86,190,205,.38)!important;
  width:34px!important;height:34px!important;border-radius:50%!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
}
.wizard-panel.active,.panel{
  background:linear-gradient(180deg,rgba(2,31,47,.97),rgba(2,25,39,.98))!important;
  border:1px solid rgba(23,183,204,.68)!important;
  box-shadow:0 12px 34px rgba(0,13,23,.35)!important;
  color:var(--vm-text)!important;
}
.wizard-panel h2{
  margin:-18px -18px 20px!important;
  padding:13px 18px!important;
  border-radius:10px 10px 6px 6px!important;
  background:linear-gradient(90deg,#0a5e82,#08789b)!important;
  color:#75f1f5!important;
  letter-spacing:.4px!important;
}
.wizard-panel h3{color:#e9f9fb!important}
.field label{color:#f2fbfd!important}
.field input,.field select,.field textarea{
  background:linear-gradient(180deg,#073650,#062c43)!important;
  color:#fff!important;
  border:1px solid #10b8d0!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.28)!important;
}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:#56edf1!important;
  box-shadow:0 0 0 3px rgba(24,200,214,.15)!important;
  outline:none!important;
}
.field input::placeholder,.field textarea::placeholder{color:#8eb5c0!important}
.field select option{background:#062c43!important;color:#fff!important}
input[type=file]{color:#dceff3!important}
.wizard-actions{border-top:1px solid rgba(31,160,182,.35)!important;padding-top:18px!important}
.btn,.wizard-actions .btn{
  background:linear-gradient(135deg,#0b8998,#0ca5b2)!important;
  color:#fff!important;
  border:1px solid #39d7df!important;
}
.btn.light{background:#07364b!important;color:#dff7f9!important}
.boiler2-head span{background:#0b5364!important;color:#dffbfc!important}
.review-note{color:#b8d2d8!important}
.review-item{background:#073249!important;border-color:#0c8da1!important;color:#fff!important}
.review-item b{color:#85e9ee!important}
.review-section{color:#66edf2!important;border-color:#0c6f80!important}


/* ===== STANDALONE CHEMICALS ONBOARD ===== */
.chemicals-page{background:linear-gradient(180deg,rgba(2,31,47,.97),rgba(2,25,39,.98))!important;border:1px solid rgba(23,183,204,.68)!important;color:#f2fbfd!important}
.chemicals-page h2{margin:-18px -18px 20px!important;padding:13px 18px!important;background:linear-gradient(90deg,#0a5e82,#08789b)!important;color:#75f1f5!important;border-radius:10px 10px 6px 6px!important}
.vessel-picker{display:grid;grid-template-columns:120px minmax(260px,520px);align-items:center;gap:12px;margin-bottom:22px}
.vessel-picker label{font-weight:800;color:#fff}
.vessel-picker select{background:#073650;color:#fff;border:1px solid #10b8d0;border-radius:7px;padding:11px 12px}
.chemical-table{border:1px solid #0d8ea3;border-radius:10px;overflow:hidden}
.chemical-head,.chemical-row{display:grid;grid-template-columns:1.45fr .55fr 1fr 1fr 1fr;gap:14px;align-items:center}
.chemical-head{padding:12px 16px;background:linear-gradient(90deg,#084c6d,#08638a);color:#dff8fa;font-size:12px;font-weight:800}
.chemical-row{padding:14px 16px;background:rgba(3,37,55,.94);border-top:1px solid rgba(20,154,177,.45)}
.chemical-name{display:flex;flex-direction:column;gap:4px;color:#fff}
.chemical-name b{font-size:16px}.chemical-name small{color:#a8c9d1}
.chemical-unit{border:1px solid #168da3;background:#073249;color:#e9fbfd;border-radius:7px;padding:11px 12px}
.chemical-row input{width:100%;box-sizing:border-box;border:1px solid #11b9d0;background:#062f48;color:#fff;border-radius:7px;padding:11px 12px;font:inherit}
.chem-remaining{display:block;box-sizing:border-box;border:1px solid #16d1c0;background:#06384c;color:#42f0df;border-radius:7px;padding:11px 12px;font-weight:900;min-height:44px}
.chemical-save{display:flex;justify-content:flex-end;margin-top:18px}.chemical-empty{color:#b9d9df}
@media(max-width:900px){.chemical-head{display:none}.chemical-row{grid-template-columns:1fr 1fr}.chemical-name{grid-column:1/-1}.vessel-picker{grid-template-columns:1fr}}

/* ===== CHEMICAL INVENTORY TABLE FINAL ===== */
.chem-grid{margin-top:24px;border:1px solid #168da3;border-radius:10px;overflow:hidden;background:#061f30}
.chem-grid-head,.chem-grid-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:1px;align-items:stretch}
.chem-grid-head>div{background:#087f91;color:#fff;padding:13px 15px;font-weight:900;text-align:center}
.chem-grid-row>div,.chem-grid-row>input,.chem-grid-row>output{box-sizing:border-box;min-height:62px;border:0;border-top:1px solid #14516a;border-right:1px solid #14516a;border-radius:0;background:#08283b;color:#fff;padding:13px 15px}
.chem-product{display:flex;flex-direction:column;justify-content:center}
.chem-product strong{color:#5ee9f0;font-size:16px}.chem-product small{color:#b9d7dd;margin-top:4px}
.chem-grid-row input{text-align:center;font-weight:800;font-size:16px;outline:none}
.chem-grid-row input:focus{background:#0a344a;box-shadow:inset 0 0 0 1px #32e3ea}
.chem-view,.chem-remaining{display:flex;align-items:center;justify-content:center;font-weight:900;font-size:17px}
.chem-remaining{color:#67f0d1!important;background:#07384a!important}
.chem-actions{margin-top:18px;text-align:right}.chem-audit{color:#a8cbd2;margin-top:15px;font-size:13px}
@media(max-width:800px){.chem-grid-head,.chem-grid-row{grid-template-columns:1.5fr 1fr 1fr 1fr}.chem-grid-head>div,.chem-grid-row>div,.chem-grid-row>input,.chem-grid-row>output{padding:9px 7px;font-size:12px}}

/* ===== FINAL WIZARD BUTTON LOCK ===== */
.steps.wizard-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
.steps.wizard-tabs>.step-tab{
 appearance:none!important;-webkit-appearance:none!important;background:#031f30!important;color:#f2fbfd!important;
 border:1px solid #397f94!important;border-radius:10px!important;min-height:68px!important;padding:10px 14px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;
 box-shadow:0 6px 18px rgba(0,15,25,.28)!important
}
.steps.wizard-tabs>.step-tab span{background:transparent!important;color:inherit!important;padding:0!important;border:0!important;border-radius:0!important}
.steps.wizard-tabs>.step-tab strong{
 width:36px!important;height:36px!important;border-radius:50%!important;display:inline-flex!important;
 align-items:center!important;justify-content:center!important;background:#164b60!important;color:#fff!important;flex:0 0 36px!important
}
.steps.wizard-tabs>.step-tab.active{background:linear-gradient(135deg,#078797,#13a7b3)!important;color:#fff!important;border-color:#35dbe3!important}
.steps.wizard-tabs>.step-tab.active strong{background:#075f70!important}
@media(max-width:800px){.steps.wizard-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* ===== ACTIVE NAVIGATION TAB ===== */
.nav a.active{background:linear-gradient(135deg,#078797,#13a7b3)!important;color:#fff!important;border-bottom:3px solid #59f2f4!important;box-shadow:0 0 16px rgba(24,200,214,.38)!important;font-weight:800!important}
.nav a.active:hover{background:linear-gradient(135deg,#0795a6,#16b3bf)!important;color:#fff!important}
