@font-face {
  font-family: Shabnam;
  src: url("/Shabnam.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Shabnam;
  src: url("/Shabnam-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  font: 16px/1.65 Shabnam, Tahoma, Arial, sans-serif;
  color: #15232d;
  background: #f4f7fa;
  --primary: #006b5e;
  --border: #dce5eb;
  --sidebar: #14233a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .85rem clamp(1rem, 4vw, 2.5rem);
  background: white;
  border-bottom: 1px solid var(--border);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { display: grid; grid-template-columns: 235px minmax(0, 1fr); min-height: 100vh; }
.workspace { min-width: 0; }
.sidebar {
  background: var(--sidebar);
  color: #dce5ef;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
  padding: 1.5rem 1rem;
}
.brand {
  color: inherit;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.brand:hover, .sidebar a:hover { text-decoration: none; }
.brand small { display: block; font-weight: normal; font-size: .72rem; opacity: .78; }
.brand-mark, .identity > span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .7rem;
  background: #baf1e5;
  color: #10483e;
}
.sidebar nav { display: grid; gap: .4rem; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .7rem;
  font-size: .9rem;
  color: inherit;
  border-radius: .55rem;
}
.sidebar nav a span { display: inline-block; width: 1.3rem; text-align: center; font-size: 1.15rem; }
.sidebar nav a:hover { background: #243651; }
.sidebar nav a[aria-current] { background: #284960; color: white; font-weight: bold; }
.signout { margin-top: auto; }
.signout button { background: transparent; border-color: #53647c; width: 100%; color: inherit; }
.identity { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.identity > span { width: 2rem; height: 2rem; border-radius: 50%; }
.menu-toggle { display: none; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; }
main { max-width: 1320px; margin: auto; padding: 2rem clamp(1rem, 4vw, 2.5rem) 4rem; }
.login-shell { min-height: 100dvh; max-width: 480px; display: grid; align-content: center; }
.login-shell .brand { margin-bottom: 1.5rem; }
.login-shell .card { width: 100%; }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 1.25rem; }
h2, legend { font-size: 1rem; font-weight: bold; margin-top: 0; }
.card, .table, .empty {
  background: white;
  border: 1px solid var(--border);
  border-radius: .9rem;
}
.card, .empty { padding: clamp(1rem, 3vw, 1.6rem); margin: 0 0 1.25rem; }
.login { max-width: 420px; }
fieldset { padding: 0; border: 0; margin: 0 0 1.2rem; min-width: 0; }
legend { margin-bottom: .55rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
input, select, textarea, output {
  font: inherit;
  color: inherit;
  min-width: 0;
  border: 1px solid #b8c8cc;
  border-radius: .5rem;
  padding: .55rem .7rem;
  min-height: 42px;
  background: white;
}
output { background: #edf7f5; }
textarea { resize: vertical; min-height: 88px; }
details { margin-top: .75rem; }
summary { cursor: pointer; color: var(--primary); margin-bottom: .55rem; }
button, .button {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: .5rem;
  font: inherit;
  padding: .55rem .9rem;
  background: var(--primary);
  color: white;
  cursor: pointer;
}
.card > button, .actions { margin-top: 1rem; }
.actions { margin-bottom: 1rem; }
.secondary { background: #e3f3ef; color: var(--primary); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 1.5rem 0 2rem; }
.metrics article {
  padding: 1rem;
  min-width: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: .9rem;
}
.metrics article > span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem; background: #e3f3ef; color: var(--primary); }
.metrics p { margin: .55rem 0 .2rem; color: #465870; font-size: .82rem; }
.metrics strong { font-size: 1.6rem; }
.list-heading { display: flex; align-items: end; justify-content: space-between; gap: .65rem; margin-bottom: .65rem; flex-wrap: wrap; }
.list-heading h2 { margin: 0; font-size: 1.15rem; }
.search { width: min(100%, 285px); }
:focus-visible { outline: 3px solid #008477; outline-offset: 3px; }
.table { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: right; }
th, td { padding: .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #eaf3f2; white-space: nowrap; }
td { min-width: 5rem; overflow-wrap: anywhere; white-space: pre-wrap; }
tr:last-child td { border-bottom: 0; }
.alert { color: #842119; background: #fff0ee; border-radius: .5rem; padding: .6rem .8rem; }
.order-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 0; }
.order-summary dt { color: #465870; font-size: .83rem; }
.order-summary dd { margin: .25rem 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.card form > button, [data-print] { margin: .8rem 0; }
.gallery { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.gallery img { width: 120px; height: 100px; border-radius: .6rem; object-fit: cover; }
.tracking-link a { display: inline-block; overflow-wrap: anywhere; }
.month-picker { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.month-picker > button { margin: 0; }
.month-picker input { max-width: 9rem; }
.calendar-scroll { overflow: auto; border: 1px solid var(--border); border-radius: .9rem; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); min-width: 770px; background: white; }
.calendar > b { padding: .6rem; background: #eaf3f2; font-size: .85rem; }
.calendar-day, .calendar-gap { border: 1px solid var(--border); padding: .55rem; min-height: 90px; }
.calendar-event { display: block; margin-top: .3rem; padding: .15rem .35rem; background: #e3f3ef; border-radius: .3rem; overflow-wrap: anywhere; font-size: .82rem; }
@media print {
  :root { background: white; color: black; }
  .sidebar, .topbar, [data-print] { display: none !important; }
  .shell { display: block; }
  main { padding: 0; }
  .receipt { border: 0; padding: 0; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  main { padding-top: 1.25rem; }
}
@media (max-width: 850px) {
  .shell { display: block; }
  .sidebar { display: none; position: static; height: auto; }
  .sidebar.is-open { display: flex; }
  .menu-toggle { display: inline-block; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
