:root{
  --primary:#073A63;
  --primary-dark:#03243F;
  --primary-soft:#EAF4FA;
  --accent:#21B8A8;
  --bg:#F3F7FA;
  --card:#FFFFFF;
  --text:#102033;
  --muted:#64758A;
  --border:#D8E5EE;
  --danger:#B42318;
  --warning:#B7791F;
  --success:#157347;
  --shadow:0 10px 30px rgba(7,58,99,.08);
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  background:linear-gradient(180deg,#F7FAFC 0%,#EEF5F8 100%);
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:var(--text);
}

/* =========================
   LAYOUT
========================= */

.layout{
  display:flex;
  min-height:100vh;
  width:100%;
}

/* =========================
   SIDEBAR
========================= */

.sidebar{
  width:260px;
  min-width:260px;
  background:#ffffff;
  border-right:1px solid var(--border);
  padding:22px 16px;
  position:sticky;
  top:0;
  height:100vh;
  overflow-y:auto;
  box-shadow:6px 0 24px rgba(7,58,99,.04);
}

/* LOGO */

.sidebar-logo{
  text-align:center;
  padding-bottom:20px;
  margin-bottom:18px;
  border-bottom:1px solid var(--border);
}

.sidebar-logo img{
  width:180px;
  max-width:100%;
  height:auto;
  display:block;
  margin:0 auto;
}

.sidebar-role{
  text-align:center;
  font-size:12px;
  color:var(--muted);
  margin-bottom:18px;
  line-height:1.5;
}

.sidebar nav{
  display:grid;
  gap:6px;
}

.sidebar nav a{
  display:block;
  text-decoration:none;
  color:#173B59;
  font-weight:800;
  font-size:13px;
  padding:12px 14px;
  border-radius:14px;
  transition:.18s ease;
  border:1px solid transparent;
}

.sidebar nav a:hover{
  background:var(--primary-soft);
  color:var(--primary);
  transform:translateX(2px);
}

.sidebar nav a.active{
  background:linear-gradient(135deg,var(--primary),#0E5287);
  color:#fff;
  box-shadow:0 10px 20px rgba(7,58,99,.22);
}

.sidebar-footer{
  margin-top:28px;
  text-align:center;
}

.logout-link{
  color:#E05252;
  text-decoration:none;
  font-weight:900;
}

/* =========================
   MAIN CONTENT
========================= */

.main{
  flex:1;
  min-width:0;
  padding:26px 34px 60px;
}

.content{
  width:100%;
  max-width:1700px;
}

/* =========================
   TOPBAR
========================= */

.topbar{
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
  border:1px solid var(--border);
  border-radius:24px;
  padding:18px 24px;
  margin-bottom:24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  box-shadow:var(--shadow);
}

.topbar-role{
  background:var(--primary-soft);
  color:var(--primary);
  border-radius:999px;
  padding:8px 14px;
  font-weight:900;
  font-size:12px;
}

/* =========================
   GRID
========================= */

.grid{
  display:grid;
  gap:20px;
  margin-bottom:24px;
}

.grid.four{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.grid.three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.grid.two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

/* =========================
   CARDS
========================= */

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:28px;
  padding:24px;
  box-shadow:var(--shadow);
  margin-bottom:24px;
}

/* =========================
   KPI STATS
========================= */

.stat{
  min-height:125px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
  overflow:hidden;
}

.stat::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:linear-gradient(180deg,var(--accent),var(--primary));
}

.stat span{
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.stat strong{
  display:block;
  margin-top:10px;
  color:var(--primary);
  font-size:36px;
  line-height:1;
  font-weight:900;
}

/* =========================
   TYPOGRAPHY
========================= */

h1{
  color:var(--primary);
  margin:0 0 8px;
  font-size:34px;
  letter-spacing:-.03em;
}

h2{
  color:var(--primary);
  margin:0 0 18px;
  font-size:26px;
  letter-spacing:-.02em;
}

h3{
  color:var(--primary);
  margin-top:0;
}

p{
  color:var(--muted);
  line-height:1.6;
}

/* =========================
   EXECUTIVE BOX
========================= */

.decision{
  color:#173B59;
  font-weight:900;
  font-size:17px;
  background:linear-gradient(90deg,#EAF4FA,#FFFFFF);
  border:1px solid var(--border);
  border-left:5px solid var(--accent);
  border-radius:18px;
  padding:15px 18px;
  margin:16px 0 24px;
}

/* =========================
   TABLES
========================= */

.table-wrapper{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
  min-width:900px;
}

th{
  text-align:left;
  color:#66788E;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.07em;
  padding:8px 14px;
  font-weight:950;
}

td{
  background:#fff;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:16px 14px;
  vertical-align:middle;
  color:#18344E;
  font-size:14px;
}

td:first-child{
  border-left:1px solid var(--border);
  border-radius:16px 0 0 16px;
  font-weight:950;
  color:var(--primary);
}

td:last-child{
  border-right:1px solid var(--border);
  border-radius:0 16px 16px 0;
}

tr{
  transition:.16s ease;
}

tr:hover td{
  background:#F8FCFE;
  box-shadow:0 8px 18px rgba(7,58,99,.05);
}

td strong{
  display:block;
  color:#0D2740;
  font-weight:950;
  margin-bottom:4px;
}

td span{
  display:block;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}

/* =========================
   BUTTONS
========================= */

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:1px solid #BFD7E7;
  background:#fff;
  color:var(--primary);
  border-radius:999px;
  padding:9px 14px;
  font-weight:950;
  box-shadow:0 2px 8px rgba(7,58,99,.06);
  transition:.18s ease;
}

.button:hover{
  background:var(--primary);
  color:#fff;
}

.button.small{
  font-size:12px;
  padding:7px 11px;
  margin:2px;
}

.primary,
.btn-primary{
  background:linear-gradient(135deg,var(--primary),#0E5287);
  color:#fff;
  border:none;
  padding:12px 18px;
  border-radius:14px;
  font-weight:950;
  cursor:pointer;
}

/* =========================
   FORMS
========================= */

input,
textarea,
select{
  width:100%;
  border:1px solid #BCD4E7;
  border-radius:14px;
  padding:11px 12px;
  font:inherit;
  background:#fff;
  color:var(--text);
}

textarea:focus,
input:focus,
select:focus{
  border-color:var(--accent);
  outline:none;
  box-shadow:0 0 0 4px rgba(33,184,168,.13);
}

label{
  display:grid;
  gap:7px;
  color:#45657E;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  margin-bottom:12px;
}

/* =========================
   FLASH MESSAGES
========================= */

.flash{
  padding:14px 16px;
  border-radius:16px;
  margin-bottom:16px;
  background:#EAF4FA;
  border:1px solid var(--border);
  color:var(--primary);
  font-weight:800;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1200px){

  .grid.four{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .sidebar{
    width:220px;
    min-width:220px;
  }
}

@media(max-width:900px){

  .layout{
    display:block;
  }

  .sidebar{
    position:relative;
    width:100%;
    height:auto;
  }

  .main{
    padding:18px;
  }

  .grid.four,
  .grid.three,
  .grid.two{
    grid-template-columns:1fr;
  }

  table{
    min-width:760px;
  }
}

/* =========================================
   MOBILE COMMAND CENTER
========================================= */

.mobile-topbar{
  display:none;
}

.mobile-overlay{
  display:none;
}

@media(max-width:900px){

  body{
    overflow-x:hidden;
  }

  .mobile-topbar{
    position:sticky;
    top:0;
    z-index:1200;
    height:72px;
    background:#ffffff;
    border-bottom:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 16px;
    box-shadow:0 6px 24px rgba(7,58,99,.08);
  }

  .mobile-brand img{
    height:34px;
    width:auto;
    display:block;
  }

  .mobile-menu-btn{
    width:46px;
    height:46px;
    border:none;
    border-radius:14px;
    background:var(--primary-soft);
    color:var(--primary);
    font-size:24px;
    font-weight:900;
    cursor:pointer;
  }

  .mobile-role{
    background:var(--primary-soft);
    color:var(--primary);
    padding:8px 12px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
  }

  .sidebar{
    position:fixed;
    left:-280px;
    top:0;
    bottom:0;
    width:270px;
    height:100vh;
    z-index:1400;
    transition:.28s ease;
    overflow-y:auto;
  }

  body.sidebar-open .sidebar{
    left:0;
  }

  .mobile-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:1300;
  }

  body.sidebar-open .mobile-overlay{
    display:block;
  }

  .topbar{
    display:none;
  }

  .main{
    width:100%;
    padding:16px;
  }

  .content{
    width:100%;
    max-width:100%;
  }

  .card{
    border-radius:22px;
    padding:18px;
    margin-bottom:18px;
  }

  .stat{
    min-height:auto;
  }

  .stat strong{
    font-size:30px;
  }

  h1{
    font-size:28px;
    line-height:1.2;
  }

  h2{
    font-size:22px;
    line-height:1.3;
  }

  .button,
  .btn-primary,
  .primary{
    width:100%;
    min-height:48px;
  }

  input,
  textarea,
  select{
    min-height:48px;
    font-size:16px;
  }

  table{
    min-width:700px;
  }

  .table-wrapper{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border-radius:18px;
  }

  td,
  th{
    white-space:nowrap;
  }

  .sidebar nav a{
    padding:14px 16px;
    font-size:14px;
  }

  .sidebar-logo img{
    width:170px;
  }

  .flash{
    font-size:14px;
  }

}

/* =========================================
   PRODUCTS MOBILE CARDS
========================================= */

.mobile-card-list{
  display:none;
}

.section-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:18px;
}

.section-header p{
  margin:4px 0 0;
}

@media(max-width:900px){

  .products-desktop-table{
    display:none;
  }

  .mobile-card-list{
    display:grid;
    gap:16px;
  }

  .mobile-data-card{
    background:#ffffff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:18px;
    box-shadow:var(--shadow);
    cursor:pointer;
  }

  .mobile-card-top{
    display:grid;
    gap:12px;
    margin-bottom:16px;
  }

  .mobile-card-top h3{
    margin:0 0 6px;
    font-size:19px;
    color:var(--primary);
  }

  .mobile-card-top p{
    margin:0;
    font-size:14px;
    line-height:1.45;
  }

  .mobile-status-pill{
    display:inline-flex;
    width:max-content;
    max-width:100%;
    background:var(--primary-soft);
    color:var(--primary);
    border:1px solid var(--border);
    border-radius:999px;
    padding:7px 10px;
    font-size:11px;
    font-weight:950;
    text-transform:uppercase;
  }

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

  .mobile-field{
    background:#F7FBFD;
    border:1px solid var(--border);
    border-radius:16px;
    padding:12px;
  }

  .mobile-field.full{
    grid-column:1 / -1;
  }

  .mobile-field span{
    display:block;
    color:var(--muted);
    font-size:10px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.06em;
    margin-bottom:6px;
  }

  .mobile-field strong{
    display:block;
    color:#0D2740;
    font-size:14px;
    line-height:1.35;
  }

  .mobile-card-actions{
    margin-top:14px;
  }

  .mobile-card-actions .button{
    width:100%;
    min-height:46px;
  }

}

/* =========================================
   FINAL MOBILE DRAWER OVERRIDE
   Sidebar hidden until hamburger is clicked
========================================= */

@media(max-width:900px){

  .layout{
    display:block !important;
  }

  .mobile-topbar{
    display:flex !important;
    position:sticky !important;
    top:0 !important;
    z-index:3000 !important;
  }

  .sidebar{
    position:fixed !important;
    top:0 !important;
    left:-290px !important;
    width:280px !important;
    min-width:280px !important;
    height:100vh !important;
    z-index:4000 !important;
    background:#ffffff !important;
    transition:left .28s ease !important;
    overflow-y:auto !important;
  }

  body.sidebar-open .sidebar{
    left:0 !important;
  }

  .main{
    width:100% !important;
    padding:16px !important;
  }

  .mobile-overlay{
    display:none !important;
    position:fixed !important;
    inset:0 !important;
    background:rgba(0,0,0,.45) !important;
    z-index:3500 !important;
  }

  body.sidebar-open .mobile-overlay{
    display:block !important;
  }

}

/* =========================================
   HARD MOBILE SIDEBAR FIX
========================================= */

@media(max-width:900px){

  .sidebar{
    left:-320px !important;
    position:fixed !important;
    top:0 !important;
    width:280px !important;
    height:100vh !important;
    z-index:5000 !important;
    background:#fff !important;
    transition:left .30s ease !important;
  }

  body.sidebar-open .sidebar{
    left:0 !important;
  }

  .mobile-topbar{
    display:flex !important;
  }

  .topbar{
    display:none !important;
  }

  .main{
    width:100% !important;
    margin-left:0 !important;
  }

<<<<<<< HEAD
}

.login-logo{
    width:180px;
    max-width:70%;
    height:auto;
    display:block;
    margin:0 auto 24px auto;
}

/* Login page centered card layout */
.login-page {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #071f3d 0%, #123f91 55%, #1f5be0 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.login-logo {
    width: 72px;
    height: auto;
    display: block;
    margin: 0 0 18px 0;
}

.login-card h1 {
    margin: 0 0 10px 0;
    color: #071f3d;
    font-size: 28px;
    line-height: 1.15;
}

.login-card p {
    color: #50627a;
    font-size: 15px;
    margin-bottom: 22px;
}

.login-card label {
    display: block;
    color: #071f3d;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.login-card input {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    border: 1px solid #c9d8ef;
    border-radius: 10px;
    padding: 0 14px;
    margin-bottom: 14px;
    font-size: 14px;
}

.primary {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: #064a78;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.login-card > p:last-child {
    margin-top: 18px;
    margin-bottom: 0;
    font-size: 13px;
    color: #60728a;
=======
>>>>>>> 1d3625c51e5602b002caede66975af89f3e9184e
}