:root {
  --red: #ba302b;
  --ink: #232323;
  --muted: #7b7b77;
  --cream: #f7f5ef;
  --border: #e8e6df;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fafaf8;
  color: var(--ink);
  font:
    14px/1.5 "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
}
button {
  border: 0;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -1.3px;
  margin-bottom: 12px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 14px;
}
p {
  color: var(--muted);
}
.sidebar {
  width: 236px;
  background: #fff;
  border-right: 1px solid var(--border);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
}
.logo {
  text-decoration: none;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1.6px;
  line-height: 1.1;
}
.logo > span {
  color: var(--red);
  margin-left: 4px;
}
.logo small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.6px;
  font-weight: 600;
  margin-top: 10px;
  color: var(--muted);
}
.workspace-tag {
  background: var(--cream);
  padding: 10px;
  font-size: 11px;
  margin: 30px 0;
  color: #61615d;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.workspace-tag i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 5px;
}
.nav-label {
  color: #a09e97;
  font-size: 10px;
  letter-spacing: 1.6px;
  margin: 12px 10px;
}
nav button {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #686862;
  border-radius: 6px;
  padding: 13px 12px;
  margin-bottom: 5px;
  font-size: 13px;
}
nav button span {
  font-size: 20px;
  line-height: 1;
}
nav button.active {
  background: #f9ece8;
  color: var(--red);
  font-weight: 600;
}
nav button:hover {
  background: var(--cream);
}
nav .nav-label {
  margin-top: 32px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1e6dd;
  color: #7b5a46;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.sidebar-bottom strong {
  font-size: 11px;
  display: block;
}
.sidebar-bottom small {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.sidebar-bottom button {
  margin-left: auto;
  background: transparent;
  font-size: 18px;
  color: #777;
}
.main {
  margin-left: 236px;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 38px;
  font-size: 12px;
  background: #fff;
}
.topbar > div {
  margin-right: auto;
  color: #888;
}
.topbar > div span {
  color: #333;
  margin-left: 12px;
}
.today {
  color: #777;
}
.text-button {
  background: transparent;
  color: #555;
  font-size: 12px;
}
.content {
  padding: 36px 38px 20px;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.page-heading p {
  margin-bottom: 0;
}
.eyebrow {
  font-size: 10px;
  color: var(--red);
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 12px !important;
}
.primary,
.secondary {
  border-radius: 5px;
  padding: 11px 17px;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 3px #a72b2618;
}
.primary:hover {
  background: #a02722;
}
.secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: #555;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.filters input,
.filters select {
  height: 39px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 12px;
}
.location-filter {
  position: relative;
  display: flex;
  align-items: center;
}
.location-filter span {
  position: absolute;
  left: 12px;
  color: var(--red);
}
.location-filter select {
  padding-left: 34px;
  min-width: 185px;
}
.search {
  margin-left: auto;
  width: 300px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}
.stat {
  border: 1px solid var(--border);
  background: #fff;
  padding: 20px 22px;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.stat > span {
  font-size: 12px;
  color: #777;
}
.stat > strong {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 8px 0 3px;
}
.stat > small {
  font-size: 10px;
  color: #999;
}
.stat.accent {
  background: var(--cream);
  border-top: 3px solid var(--red);
  padding-top: 18px;
}
.stat.accent strong {
  color: var(--red);
}
.section-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.section-line h2 {
  margin: 0;
  font-size: 16px;
}
.section-line h2 span {
  margin-left: 10px;
  font-size: 11px;
  font-weight: 400;
  color: #888;
}
.muted {
  color: #92928a;
  font-size: 12px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  overflow-x: auto;
  padding-bottom: 15px;
  gap: 16px;
  align-items: start;
}
.column {
  background: #f2f1ec;
  border-radius: 7px;
  min-height: 350px;
  border: 1px solid #eae8e2;
}
.column h3 {
  font-size: 11px;
  font-weight: 600;
  margin: 0;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.column h3 > span {
  margin-left: auto;
  background: #e5e3dc;
  border-radius: 5px;
  font-size: 10px;
  min-width: 20px;
  text-align: center;
  padding: 1px 4px;
  color: #777;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999;
}
.dot-1 {
  background: #c2994e;
}
.dot-2 {
  background: #6c87a1;
}
.dot-3 {
  background: #67846c;
}
.dot-4 {
  background: #9366a5;
}
.cards {
  padding: 0 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-card {
  text-align: left;
  background: #fff;
  border: 1px solid #e4e1d8;
  border-radius: 5px;
  padding: 15px 12px;
  width: 100%;
  box-shadow: 0 2px 3px #2b241406;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.order-card:hover {
  transform: translateY(-2px);
  border-color: #c88777;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
  font-size: 9px;
  color: #999;
}
.method {
  background: #eff1f2;
  color: #637987;
  font-size: 9px;
  padding: 3px 5px;
  border-radius: 3px;
  white-space: nowrap;
}
.method.pickup {
  background: #f6eee4;
  color: #a87843;
}
.order-card h4 {
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: 650;
}
.products {
  font-size: 11px;
  line-height: 1.7;
  color: #85847d;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}
.amount {
  font-size: 16px;
  display: block;
  margin: 15px 0 18px;
}
.card-meta {
  border-top: 1px solid #f0eee9;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #777;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: #999;
  margin-top: 9px;
}
.empty-column {
  text-align: center;
  font-size: 11px;
  color: #a4a198;
  padding: 40px 5px;
  border: 1px dashed #ddd9cd;
  border-radius: 5px;
}
.onboarding {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--cream);
}
.onboarding p {
  margin: 6px 0 0;
  font-size: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 9px;
  letter-spacing: 1px;
  color: #a5a198;
}
footer span {
  letter-spacing: 0;
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 23px;
}
.full {
  grid-column: 1/-1;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}
.panel-title h2 {
  font-size: 15px;
  margin: 0;
}
.panel-title > span {
  font-size: 10px;
  color: #999;
}
.bar-row {
  margin: 20px 0;
}
.bar-row > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.bar-row strong {
  font-weight: 500;
}
.bar-row small {
  font-size: 10px;
  color: #999;
}
progress {
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #f1eee7;
  margin: 7px 0;
}
progress::-webkit-progress-bar {
  background: #f1eee7;
}
progress::-webkit-progress-value {
  background: var(--red);
}
progress::-moz-progress-bar {
  background: var(--red);
}
.month-chart {
  display: flex;
  gap: 15px;
  align-items: end;
  min-height: 220px;
  padding-top: 20px;
}
.month {
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 10px;
  gap: 8px;
  min-width: 35px;
}
.month strong {
  font-size: 11px;
  white-space: nowrap;
}
.vertical-progress {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 32px;
  height: 150px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  background: var(--cream);
  padding: 13px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid #efede7;
  vertical-align: top;
}
tbody tr:last-child td {
  border: 0;
}
.table-link {
  color: var(--red);
  padding: 0;
  background: transparent;
  font-size: inherit;
  text-align: left;
}
.status {
  font-size: 10px;
  background: var(--cream);
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.daily-panel {
  padding: 0;
}
.daily-panel .panel-title {
  padding: 22px 22px 0;
}
.delivery-table {
  min-width: 1350px;
  font-size: 11px;
}
.delivery-table tbody tr:nth-child(even) {
  background: #faf9f5;
}
.product-cell {
  min-width: 220px;
  white-space: pre-wrap;
}
.delivery-table a {
  color: var(--red);
}
.table-foot {
  font-size: 10px;
  color: #999;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
}
.empty {
  text-align: center;
  padding: 50px 20px;
  color: #999;
}
.access-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
  border-radius: 7px;
}
.access-banner p {
  font-size: 12px;
  margin: 6px 0 0;
}
.pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--red);
  background: #f8e9e3;
  padding: 7px 10px;
  border-radius: 4px;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.role-grid p {
  font-size: 12px;
  margin-bottom: 0;
}
.inline-label {
  font-size: 11px;
  color: #888;
  display: flex;
  gap: 8px;
  align-items: center;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 80px #0002;
  padding: 30px;
  width: 680px;
  max-width: 94vw;
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #211d18a6;
  backdrop-filter: blur(3px);
}
.close {
  position: absolute;
  right: 17px;
  top: 13px;
  background: transparent;
  font-size: 26px;
  color: #999;
}
.dialog-heading {
  padding-right: 25px;
}
.dialog-heading h2,
dialog > h2 {
  font-size: 25px;
  margin-bottom: 25px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  color: #666;
}
input,
select,
textarea {
  min-width: 0;
  border: 1px solid #dedbd2;
  border-radius: 5px;
  padding: 10px 11px;
  background: #fff;
  color: #333;
  width: 100%;
}
textarea {
  resize: vertical;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 24px;
}
.error {
  color: var(--red);
  font-size: 12px;
  min-height: 10px;
  margin: 10px 0;
}
.attachment-section {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.attachment-section h3 span {
  color: #999;
  margin-left: 7px;
}
.attachment-list {
  margin-bottom: 18px;
}
.attachment-list a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  padding: 10px;
  background: var(--cream);
  margin: 5px 0;
  border-radius: 4px;
  font-size: 12px;
}
.attachment-list small {
  display: block;
  color: #999;
  font-size: 10px;
}
.attachment-section form {
  display: grid;
  gap: 12px;
}
.read-details p {
  margin-bottom: 8px;
  white-space: pre-wrap;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand {
  background: var(--cream);
  padding: 55px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
}
.auth-brand h1 {
  font-size: 56px;
  line-height: 1.13;
  letter-spacing: -2px;
}
.auth-brand p {
  line-height: 1.8;
}
.auth-brand > small {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #8b8880;
}
.auth-form {
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.auth-form > div {
  width: 360px;
}
.auth-form h2 {
  font-size: 32px;
  margin: 25px 0 10px;
}
.auth-form p {
  font-size: 13px;
}
.auth-form label {
  margin: 18px 0;
}
.auth-form input {
  padding: 12px;
}
.auth-form button {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.auth-form .muted {
  font-size: 11px;
  margin-top: 25px;
}
.auth-form small {
  color: #999;
  font-size: 11px;
}
.loading {
  padding: 60px;
  text-align: center;
  color: #888;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #252923;
  color: #fff;
  padding: 12px 22px;
  border-radius: 6px;
  z-index: 50;
  transition: transform 0.2s;
  font-size: 13px;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}
#password-form label {
  margin-bottom: 18px;
}
@media (min-width: 1500px) {
  .card-top {
    font-size: 10px;
  }
  .order-card {
    padding: 18px;
  }
  .column h3 {
    font-size: 12px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding: 28px 16px;
  }
  .main {
    margin-left: 200px;
  }
  .content {
    padding: 26px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .kanban {
    gap: 10px;
    grid-template-columns: repeat(5, 230px);
    overflow-x: auto;
    padding-bottom: 15px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat > strong {
    font-size: 26px;
  }
  .section-line > .muted {
    display: none;
  }
  .auth-brand {
    padding: 40px;
  }
  .auth-brand h1 {
    font-size: 44px;
  }
}
@media (max-width: 750px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 18px;
  }
  .sidebar .logo {
    font-size: 25px;
  }
  .sidebar .logo small {
    font-size: 8px;
  }
  .workspace-tag,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 20px;
    gap: 5px;
  }
  nav button {
    white-space: nowrap;
    width: auto;
    font-size: 11px;
    padding: 9px;
  }
  nav button span {
    font-size: 15px;
  }
  nav .nav-label {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 48px;
    padding: 0 18px;
    font-size: 10px;
  }
  .topbar > div span,
  .today {
    display: none;
  }
  .content {
    padding: 25px 18px;
  }
  h1 {
    font-size: 28px;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading .primary {
    padding: 10px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 25px;
  }
  .stat > strong {
    font-size: 27px;
  }
  .filters {
    gap: 8px;
  }
  .search {
    width: 100%;
    margin: 0;
  }
  .kanban {
    grid-template-columns: repeat(5, 240px);
  }
  .report-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    padding: 25px;
    min-height: 240px;
  }
  .auth-brand > div:nth-child(2) {
    display: none;
  }
  .auth-brand > small {
    margin-top: 25px;
  }
  .auth-form {
    padding: 35px 25px;
  }
  .auth-form h2 {
    font-size: 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  dialog {
    padding: 24px;
  }
  .access-banner {
    display: block;
  }
  .access-banner > .pill {
    display: inline-block;
    margin-top: 15px;
  }
  .panel {
    padding: 16px;
  }
  .panel-title {
    align-items: start;
  }
  footer {
    gap: 15px;
  }
  .inline-label {
    flex: 1;
  }
}
@media print {
  .sidebar,
  .topbar,
  .filters,
  .page-heading > .primary,
  footer,
  #toast {
    display: none !important;
  }
  .main {
    margin: 0;
  }
  .content {
    padding: 0;
  }
  .stats {
    display: none;
  }
  .page-heading {
    margin: 10px 0;
  }
  .panel {
    border: 0;
  }
  .table-wrap {
    overflow: visible;
  }
  .delivery-table {
    min-width: 0;
    font-size: 8px;
  }
  th,
  td {
    padding: 6px;
  }
  .product-cell {
    min-width: 0;
  }
  .table-foot {
    display: none;
  }
  @page {
    size: landscape;
    margin: 10mm;
  }
}
.activity-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.activity-sort:hover {
  background: transparent;
  text-decoration: underline;
}
.activity-sort:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
