@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f8f8;
  color: #173737;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 0;
}
a {
  color: #007d7d;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.shell {
  display: grid;
  grid-template-columns: 242px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: white;
  border-left: 1px solid #e0ebeb;
  padding: 35px 22px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mark {
  display: grid;
  place-items: center;
  background: #009595;
  color: white;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  font-size: 24px;
  font-weight: bold;
}
.brand strong {
  font-size: 20px;
}
.sub {
  font-size: 11px;
  color: #829797;
  margin-top: 5px;
}
.nav {
  display: grid;
  gap: 9px;
}
.nav button {
  background: transparent;
  color: #678181;
  text-align: right;
  padding: 14px 17px;
  border-radius: 10px;
}
.nav button.active {
  background: #e5f5f3;
  color: #007c7c;
  font-weight: bold;
}
.nav button span {
  margin-left: 12px;
  font-size: 18px;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #e9eeee;
  padding-top: 20px;
  color: #7b9292;
  font-size: 12px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 88px;
  background: #fff;
  border-bottom: 1px solid #e5eded;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar small {
  color: #718b8b;
}
.identity {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  background: #dff1ef;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #008888;
}
.quiet {
  background: #eef4f4;
  color: #486b6b;
  padding: 9px 14px;
  border-radius: 8px;
}
main {
  padding: 36px 42px;
  max-width: 1600px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
h1 {
  font-size: 26px;
  margin: 0 0 10px;
  font-weight: 800;
}
p {
  line-height: 1.9;
}
.muted {
  color: #7c9292;
  font-size: 13px;
}
.primary {
  background: #009595;
  color: #fff;
  padding: 12px 23px;
  border-radius: 9px;
  box-shadow: 0 4px 10px #00959519;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat {
  background: white;
  padding: 23px;
  border: 1px solid #e2ebeb;
  border-radius: 14px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  color: #6b8585;
  font-size: 13px;
}
.stat-icon {
  color: #009595;
  background: #e9f7f5;
  padding: 8px;
  border-radius: 10px;
  font-size: 18px;
}
.stat strong {
  display: block;
  font-size: 28px;
  margin-top: 12px;
}
.stat small {
  font-size: 12px;
  color: #789090;
}
.panel {
  background: white;
  border: 1px solid #e2ebeb;
  border-radius: 14px;
  overflow: hidden;
}
.panel-head {
  padding: 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eef2f2;
  gap: 15px;
}
.panel-head h2 {
  font-size: 17px;
  margin: 0;
}
.filters {
  display: flex;
  gap: 10px;
}
.filters input {
  width: 230px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: right;
}
th {
  background: #fafcfc;
  color: #809494;
  font-size: 12px;
  font-weight: normal;
}
td,
th {
  padding: 18px 24px;
  border-bottom: 1px solid #edf2f2;
}
td {
  font-size: 13px;
}
tr:last-child td {
  border: 0;
}
.customer {
  font-weight: bold;
}
.customer small {
  display: block;
  font-weight: normal;
  color: #91a2a2;
  margin-top: 6px;
  direction: ltr;
  text-align: right;
}
.badge {
  display: inline-block;
  background: #edf5f5;
  color: #607e7e;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
}
.badge.new {
  background: #e8f6f4;
  color: #008585;
}
.badge.design {
  background: #f2ecfb;
  color: #8863b0;
}
.badge.printing {
  background: #fff3e2;
  color: #ac7b29;
}
.badge.delivered,
.badge.ready {
  background: #eaf5ed;
  color: #4c8d66;
}
.badge.cancelled {
  background: #fbecec;
  color: #b86161;
}
.empty {
  text-align: center;
  padding: 65px 20px;
  color: #809696;
}
.empty strong {
  display: block;
  font-size: 18px;
  color: #466767;
  margin-bottom: 10px;
}
.welcome {
  background: #e6f4f2;
  border: 1px solid #d5eae7;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 25px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.welcome b {
  color: #007f7f;
}
.welcome p {
  margin: 3px 0;
  font-size: 12px;
  color: #648985;
}
.footer-note {
  font-size: 11px;
  color: #90a3a3;
  margin-top: 22px;
  text-align: center;
}
input,
select,
textarea {
  border: 1px solid #d9e5e5;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: #234646;
  min-width: 0;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #00959555;
  border-color: #009595;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #557575;
}
label small {
  color: #96a6a6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.full {
  grid-column: 1/-1;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #e6eeee;
  padding-top: 22px;
  margin-top: 25px;
}
dialog {
  border: 1px solid #dfebeb;
  border-radius: 18px;
  padding: 28px;
  width: 650px;
  max-width: calc(100% - 28px);
  max-height: 90vh;
  color: #224343;
  box-shadow: 0 30px 100px #103c3c30;
}
dialog::backdrop {
  background: #0b34345e;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal-head h2 {
  margin: 0;
  font-size: 21px;
}
.close {
  background: #f2f6f6;
  color: #628383;
  font-size: 22px;
  border-radius: 8px;
  width: 33px;
  height: 33px;
}
.form-error {
  color: #b33b3b;
  line-height: 1.8;
  margin-top: 12px;
}
.upload {
  border: 1px dashed #9cc9c5;
  background: #f7fbfa;
  padding: 18px;
  border-radius: 10px;
}
.upload input {
  border: 0;
  padding: 4px;
  background: transparent;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: #008c8c;
  color: #fff;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 80px solid #ffffff0b;
  border-radius: 50%;
  left: -250px;
  bottom: -250px;
}
.login-art .mark {
  background: #ffffff20;
}
.login-art h1 {
  font-size: 42px;
  line-height: 1.6;
  margin-top: 65px;
}
.login-art p {
  color: #d0eeee;
  max-width: 390px;
}
.login-form {
  padding: 35px;
  display: grid;
  place-items: center;
}
.login-card {
  width: 100%;
  max-width: 360px;
}
.login-card h2 {
  font-size: 26px;
}
.login-card form {
  display: grid;
  gap: 22px;
  margin-top: 35px;
}
.login-card .primary {
  width: 100%;
  margin-top: 5px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 26px;
  background: #163f3f;
  color: white;
  padding: 14px 25px;
  border-radius: 11px;
  display: none;
  z-index: 5;
}
.loading {
  text-align: center;
  margin: 100px;
}
.row-actions {
  display: flex;
  gap: 8px;
}
.small-btn {
  background: #edf6f5;
  color: #008080;
  padding: 7px 12px;
  border-radius: 7px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card {
  background: white;
  border: 1px solid #deebeb;
  padding: 24px;
  border-radius: 13px;
}
.product-card h3 {
  font-size: 17px;
}
.product-card .row-actions {
  margin-top: 20px;
}
.file-note {
  font-size: 11px;
  color: #789292;
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 200px 1fr;
  }
  main {
    padding: 26px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 15px;
    gap: 15px;
    border-bottom: 1px solid #dceaea;
  }
  .sidebar .brand {
    justify-content: center;
  }
  .nav {
    display: flex;
    overflow: auto;
    gap: 3px;
  }
  .nav button {
    white-space: nowrap;
    padding: 10px;
    font-size: 12px;
  }
  .sidebar-foot {
    display: none;
  }
  .topbar {
    height: 70px;
    padding: 0 16px;
  }
  .topbar > small {
    display: none;
  }
  main {
    padding: 25px 15px;
  }
  .heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 22px;
  }
  .heading .primary {
    padding: 11px 15px;
    white-space: nowrap;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 24px;
  }
  .panel-head {
    padding: 17px;
    align-items: flex-start;
    flex-direction: column;
  }
  .filters {
    width: 100%;
  }
  .filters input {
    width: 100%;
  }
  .filters select {
    max-width: 130px;
  }
  td,
  th {
    padding: 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .login {
    display: block;
  }
  .login-art {
    padding: 30px;
  }
  .login-art h1 {
    font-size: 25px;
    margin-top: 25px;
  }
  .login-art p {
    display: none;
  }
  .login-form {
    padding: 25px;
  }
  .welcome {
    align-items: flex-start;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-icon {
    font-size: 14px;
  }
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  font-size: 12px;
  color: #678181;
}
.product-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.product-filters [aria-pressed="true"] {
  background: #dff1ef;
  color: #007d7d;
  font-weight: bold;
}
.danger {
  background: #fbecec;
  color: #ac3838;
}
.danger-solid {
  background: #b83e3e;
  box-shadow: none;
}
.row-actions {
  flex-wrap: wrap;
}
