:root{
  --bg: #0b0f1a;
  --desk: radial-gradient(circle at 20% 10%, #1b2a52 0%, #0b0f1a 45%, #070a12 100%);
  --win: #c0c0c0;
  --win2:#dfdfdf;
  --border:#2a2a2a;
  --shadow:#00000055;
  --title:#1b3a8a;
  --text:#101010;
  --panel:#efefef;
  --field:#ffffff;
  --fieldBorder:#7f7f7f;
  --btn:#dcdcdc;
  --btnBorder:#6b6b6b;
  --accent:#2b66ff;
  --accent2:#0d3cc9;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  min-height:100vh;
  background: var(--desk);
  display:grid;
  place-items:center;
  padding:22px;
  font-family: Tahoma, Verdana, Segoe UI, system-ui, sans-serif;
}

.desktop{ width:min(1100px, 100%); }

.window{
  background: var(--win);
  border: 2px solid var(--border);
  box-shadow: 0 18px 45px var(--shadow);
}

.titlebar{
  background: linear-gradient(90deg, var(--title), #2f57b8);
  color: #fff;
  padding: 6px 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.title-left{ display:flex; align-items:center; gap:8px; }
.appicon{
  width:14px;
  height:14px;
  background: #ffffff url("/assets/RMS_Icon.png") center/contain no-repeat;
  border: 1px solid #1b1b1b;
  box-shadow: inset 1px 1px 0 #fff;
}

.title{ font-size: 13px; font-weight: 700; letter-spacing: .2px; }

.winbtns{ display:flex; gap:6px; }
.winbtns .btn{
  width:24px; height:18px;
  background: var(--win2);
  border: 1px solid #1a1a1a;
  display:grid; place-items:center;
  font-size: 12px; color:#111;
  box-shadow: inset 1px 1px 0 #fff;
}
.winbtns .close{ background:#ff6b6b; }

.menubar{
  background: var(--win2);
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #8a8a8a;
  padding: 4px 8px;
  display:flex; gap:18px;
  font-size: 12px;
  color:#111;
}

.content{
  padding: 10px;
  background: #bdbdbd;
}

.statusline{
  background: #0e0e0e;
  color: #7CFF86;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 12px;
  padding: 6px 8px;
  display:flex;
  justify-content:space-between;
  border: 1px solid #2d2d2d;
  margin-bottom: 10px;
}

.form{ background: transparent; }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panel{
  background: var(--panel);
  border: 2px solid #8a8a8a;
  box-shadow: inset 1px 1px 0 #fff;
  padding: 10px;
}

.panel-title{
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #b3b3b3;
  color:#111;
}

label{
  display:grid;
  gap:5px;
  margin: 10px 0;
  color:#111;
  font-size: 12px;
}

input, select, textarea{
  background: var(--field);
  border: 2px inset var(--fieldBorder);
  padding: 7px 8px;
  font-size: 13px;
  color:#111;
}

textarea{ resize: vertical; min-height: 110px; }

.row{ display:flex; gap:10px; align-items:flex-end; }
.grow{ flex:1; }

.hint{
  font-size: 12px;
  background: #fff7cc;
  border: 1px solid #c2b26c;
  padding: 8px;
  margin-bottom: 10px;
}

.checkgrid{
  border: 1px solid #9c9c9c;
  padding: 10px;
  margin: 0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  background: #f6f6f6;
}
.checkgrid label{
  margin:0;
  display:flex;
  gap:8px;
  align-items:center;
  font-size: 12px;
}

.footerbar{
  margin-top: 10px;
  background: var(--win2);
  border: 2px solid #8a8a8a;
  box-shadow: inset 1px 1px 0 #fff;
  padding: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.statusbox{
  background: #ffffff;
  border: 2px inset #7f7f7f;
  padding: 8px 10px;
  font-size: 12px;
  width: 55%;
  min-height: 36px;
  display:flex;
  align-items:center;
}

.actions{ display:flex; gap:10px; }
button{
  padding: 8px 12px;
  background: var(--btn);
  border: 2px outset var(--btnBorder);
  font-weight: 700;
  cursor:pointer;
  font-size: 12px;
}
button:active{ border-style: inset; }
button:disabled{ opacity: .6; cursor:not-allowed; }

.primary{
  background: linear-gradient(#4b80ff, var(--accent2));
  color:#fff;
  border-color:#1a2b66;
}
.ghost{ background: #efefef; }

.fineprint{
  margin-top: 10px;
  font-size: 12px;
  color:#111;
  opacity:.9;
}

@media (max-width: 900px){
  .grid2{ grid-template-columns: 1fr; }
  .statusbox{ width: 100%; }
  .footerbar{ flex-direction: column; align-items: stretch; }
  .actions{ justify-content:flex-end; }
}

.menu-link{
  color:#111;
  text-decoration:none;
  padding: 2px 4px;
  border: 1px solid transparent;
}
.menu-link:hover{
  border-color:#6b6b6b;
  background:#f2f2f2;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  margin: 6px 0 14px;
}
.brand-logo{
  width:46px; height:46px;
  border: 2px solid #1a1a1a;
  background: linear-gradient(#ffe27a, #ffd23d);
  box-shadow: inset 1px 1px 0 #fff7b8;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:22px;
}
.brand-name{ font-weight:900; font-size:18px; color:#111; }
.brand-tag{ font-size:12px; color:#222; opacity:.9; margin-top:2px; }

.hero{ margin: 10px 0 14px; }
.hero-img{
  height: 210px;
  border: 2px inset #7f7f7f;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.18), rgba(0,0,0,0)),
    url("/assets/Delivery.jpg");
  background-size: cover;
  background-position: center;
}


.hero-caption{
  margin-top: 8px;
  font-size: 12px;
  color:#111;
  opacity:.9;
}

.actions-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 6px;
}

.linkbtn{
  display:inline-block;
  padding: 8px 12px;
  background: #dcdcdc;
  border: 2px outset #6b6b6b;
  color:#111;
  text-decoration:none;
  font-weight: 800;
  font-size: 12px;
}
.linkbtn:active{ border-style: inset; }
.linkbtn.primary{
  background: linear-gradient(#4b80ff, #0d3cc9);
  color:#fff;
  border-color:#1a2b66;
}
.linkbtn.ghost{ background:#efefef; }

.p{
  margin: 8px 0 12px;
  font-size: 12px;
  color:#111;
  line-height: 1.45;
}

.listbox{
  background:#f6f6f6;
  border: 1px solid #9c9c9c;
  padding: 10px;
}
.listbox-title{
  font-weight:800;
  font-size:12px;
  margin-bottom: 8px;
}
.bullets{
  margin:0;
  padding-left: 18px;
  font-size: 12px;
  color:#111;
}
.bullets li{ margin: 6px 0; }

.statuspanel{
  margin-top: 12px;
  background:#f6f6f6;
  border: 1px solid #9c9c9c;
  padding: 10px;
}
.statuspanel-title{ font-weight:800; font-size:12px; margin-bottom: 8px; }
.statusgrid{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 10px;
  font-size: 12px;
  color:#111;
}
.ok{ font-weight: 900; }

.optional{
  font-size: 11px;
  font-weight: normal;
  opacity: .7;
}

html[data-rms-boot="skip"] #boot{
  display: none !important;
}


.boot{
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, #1b2a52 0%, #0b0f1a 45%, #070a12 100%);
  display: grid;
  place-items: center;
  z-index: 9999;
}

.boot-window{
  width: min(520px, calc(100% - 32px));
  background: #c0c0c0;
  border: 2px solid #2a2a2a;
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
  padding: 16px;
}

.boot-title{
  font-weight: 900;
  font-size: 18px;
  color: #111;
  margin-bottom: 6px;
}

.boot-sub{
  font-size: 12px;
  color: #111;
  opacity: .9;
  margin-bottom: 12px;
}

.boot-bar{
  height: 18px;
  border: 2px inset #7f7f7f;
  background: #ffffff;
  overflow: hidden;
}

.boot-bar-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(#4b80ff, #0d3cc9);
  animation: bootFill 1.35s ease-out forwards;
}

.boot-foot{
  margin-top: 10px;
  font-size: 11px;
  color: #111;
  opacity: .8;
}

@keyframes bootFill{
  from { width: 0%; }
  to   { width: 100%; }
}

.boot.hide{
  animation: bootFade .35s ease forwards;
}

@keyframes bootFade{
  to { opacity: 0; transform: scale(1.02); }
}

.brand-logo-img{
  width:46px;
  height:46px;
  border: 2px solid #1a1a1a;
  background:#fff;
  object-fit: contain;
  padding: 2px;
  box-shadow: inset 1px 1px 0 #ffffff;
}

.boot-log{
  height: 140px;
  border: 2px inset #7f7f7f;
  background: #0e0e0e;
  color: #7CFF86;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 12px;
  padding: 8px;
  overflow: auto;
  margin: 10px 0;
  white-space: pre-wrap;
}
