:root {
  --nav: #063b57;
  --cyan: #08a9df;
  --bg: #f3f6f8;
  --text: #102331;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}
.brand {
  display: grid;
  place-content: center;
  padding: 10%;
  background: linear-gradient(140deg, #043249, #087ba4);
  color: white;
}
.brand img,
aside img {
  width: 250px;
  filter: brightness(0) invert(1);
}
.brand h1 {
  font-size: 40px;
  max-width: 600px;
}
.login form {
  display: grid;
  place-content: center;
  gap: 18px;
  padding: 12%;
  background: white;
}
.login label,
.form label,
.cart label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}
.login input,
.form input,
.form select,
.form textarea,
.cart input {
  width: 100%;
  padding: 13px;
  border: 1px solid #ccd7df;
  border-radius: 10px;
}
.login button,
.form button,
.cart button,
.toolbar button {
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--nav);
  color: white;
  font-weight: 700;
}
#error,
#msg {
  min-height: 20px;
  color: #be123c;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 22px 14px;
  background: var(--nav);
  color: white;
}
aside img {
  width: 190px;
  margin: 0 15px 35px;
}
aside small {
  display: block;
  margin: 12px;
  color: #81d9f4;
  font-size: 10px;
}
aside > button {
  display: flex;
  width: 100%;
  gap: 12px;
  margin: 4px 0;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e6f6fb;
  text-align: left;
}
aside > button:hover {
  background: #ffffff18;
}
aside footer {
  position: absolute;
  bottom: 15px;
  left: 14px;
  right: 14px;
  border-top: 1px solid #ffffff22;
  padding-top: 14px;
}
aside footer button {
  border: 0;
  background: none;
  color: white;
}
.workspace {
  margin-left: 250px;
}
.workspace header {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  background: white;
  border-bottom: 1px solid #dfe7ec;
}
.workspace header h1,
.workspace header p {
  margin: 2px;
}
.workspace header p {
  font-size: 12px;
  color: #789;
}
.online {
  margin-left: auto;
  color: #079669;
}
#menu {
  display: none;
}
#content {
  padding: 26px;
  max-width: 1500px;
  margin: auto;
}
.cards,
.warehouse-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.cards article,
.warehouse-tabs article,
.panel {
  padding: 20px;
  border: 1px solid #dfe7ec;
  border-radius: 16px;
  background: white;
  box-shadow: 0 1px 2px #0011;
}
.cards h2 {
  margin: 12px 0;
  font-size: 24px;
}
.panel {
  overflow: auto;
}
.panel h3 {
  margin-top: 0;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.toolbar input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccd7df;
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5ebef;
}
th {
  font-size: 11px;
  color: #70808c;
}
.sales-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 18px;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 70vh;
  overflow: auto;
}
.product {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dce5ea;
  border-radius: 12px;
  background: white;
  text-align: left;
}
.product:hover {
  border-color: var(--cyan);
  background: #effbff;
}
.product em {
  font-size: 9px;
  color: #087ba4;
}
.product strong {
  font-size: 20px;
}
.product small {
  color: #789;
}
.cart {
  display: grid;
  gap: 14px;
  height: max-content;
}
.selected {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  border-radius: 10px;
  background: #eef8fb;
}
.status {
  padding: 5px 8px;
  border-radius: 20px;
  background: #e8f8ef;
  color: #087e4b;
}
.warehouse-tabs {
  grid-template-columns: repeat(5, 1fr);
}
.warehouse-tabs article p {
  font-size: 12px;
  color: #70808c;
}
.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
}
.form h3,
.form #msg {
  grid-column: 1/-1;
}
.form textarea {
  min-height: 90px;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 15px;
  background: #09131a;
  color: white;
}
dialog video {
  width: min(80vw, 600px);
  display: block;
  border-radius: 12px;
}
dialog button {
  padding: 10px 20px;
}
@media (max-width: 900px) {
  .login {
    grid-template-columns: 1fr;
  }
  .brand {
    display: none;
  }
  aside {
    transform: translateX(-100%);
    z-index: 9;
    transition: 0.2s;
  }
  aside.open {
    transform: none;
  }
  .workspace {
    margin-left: 0;
  }
  #menu {
    display: block;
  }
  .cards,
  .warehouse-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .sales-grid {
    grid-template-columns: 1fr;
  }
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  #content {
    padding: 14px;
  }
  .cards,
  .warehouse-tabs,
  .products,
  .form {
    grid-template-columns: 1fr;
  }
  .workspace header {
    padding: 0 12px;
  }
  .online {
    display: none;
  }
}
.shift-start {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #063b57, #087ba4);
  color: white;
}
.shift-start h2,
.shift-start p {
  margin: 5px 0;
}
.shift-start label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}
.shift-start select {
  padding: 12px;
  border: 0;
  border-radius: 10px;
}
.shift-start button {
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: #21c3ee;
  color: #063b57;
  font-weight: 800;
}
.automatic-shift {
  display: grid;
  gap: 7px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #ffffff17;
}
.automatic-shift small {
  color: #aeeeff;
}
.shift-active {
  margin-bottom: 14px;
  padding: 13px 18px;
  border: 1px solid #a7e5c5;
  border-radius: 12px;
  background: #eafaf2;
  color: #087e4b;
  font-weight: 700;
}
.locked {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.25);
}
.user-list{margin-top:20px}.user-list select{min-width:150px;padding:9px;border:1px solid #ccd7df;border-radius:9px;background:white}.user-list button{padding:9px 12px;border:0;border-radius:9px;background:#087ba4;color:white;font-weight:700}
@media (max-width: 900px) {
  .shift-start {
    grid-template-columns: 1fr 1fr;
  }
  .shift-start > div:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 520px) {
  .shift-start {
    grid-template-columns: 1fr;
  }
}
