@font-face {
  font-family: Unused;
  src: local('Segoe UI');
}

* {
  box-sizing: border-box;
}

:root {
  --bg: #f8f7f3;
  --paper: #fff;
  --ink: #482b24;
  --muted: #9a7a6e;
  --line: #ebe2df;
  --coffee: #713b2d;
  --latte: #f0e9e7;
  --amber: #af7c34;
  --rust: #b16445;
  --radius: 14px;
}

body {
  margin: 0;
  background: var(--bg);
  color: #483229;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b38b53;
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
}

small {
  font-size: 11px;
  color: var(--muted);
}

.bi {
  display: inline-block;
}

.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  background: var(--coffee);
  color: #fff;
  padding: 10px;
  z-index: 100;
}

.skip:focus {
  top: 10px;
}

.sidebar {
  width: 245px;
  background: #fcf9f8;
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 31px 19px 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0 8px;
  margin-bottom: 32px;
}

.brand-logo {
  width: 44px;
  height: 48px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong {
  font-family: Georgia, serif;
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 500;
  line-height: 1.1;
}

.brand span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.65px;
  color: #9a7a6e;
  margin-top: 6px;
}

.workspace {
  border: 1px solid #e8ddd9;
  border-radius: 9px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 29px;
  background: #f5f0ee;
}

.workspace > .bi:first-child {
  font-size: 19px;
  color: #886a5f;
}

.workspace span {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
}

.workspace small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 1px;
}

.workspace > .bi:last-child {
  font-size: 10px;
  color: #aaa;
}

.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #a5897e;
  padding: 0 13px;
  margin-bottom: 13px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 8px;
  margin-bottom: 5px;
  color: #876a5e;
  font-size: 12px;
  font-weight: 500;
}

.nav-item > .bi {
  font-size: 17px;
}

.nav-item.active {
  background: #eee5e2;
  color: #553a30;
  font-weight: 650;
}

.nav-item:hover {
  background: #f2ece9;
}

.nav-item .count {
  margin-left: auto;
  font-size: 10px;
  background: #ded1cc;
  padding: 0 5px;
  border-radius: 4px;
}

.count:empty {
  display: none;
}

.side-bottom {
  margin-top: auto;
}

.side-note {
  margin: 35px 10px 25px;
  padding: 19px 0;
  border-top: 1px solid #e8deda;
  display: flex;
  gap: 13px;
  color: #ae948a;
}

.side-note > .bi {
  font-size: 30px;
}

.side-note p {
  font-size: 11px;
  color: #9a7a6d;
}

.side-note strong {
  font-weight: 500;
  color: #7a5f55;
}

.profile {
  margin: 0 -19px;
  padding: 18px 17px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  align-items: center;
}

.avatar {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: #e8ddd9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #704d3f;
  font-family: Georgia, serif;
  font-size: 12px;
  flex-shrink: 0;
}

.avatar.small {
  width: 30px;
  height: 30px;
  font-size: 10px;
}

.profile > span:nth-child(2) {
  flex: 1;
  overflow: hidden;
}

.profile strong {
  display: block;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile small {
  display: block;
  font-size: 9px;
}

.app-body {
  margin-left: 245px;
}

.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  padding: 0 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fcfaf9;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  color: #a5897e;
}

.crumb > .bi {
  font-size: 9px;
  color: #c0aca4;
}

.crumb strong {
  font-weight: 500;
  color: #6f4c3f;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 19px;
}

.mode-label {
  font-size: 10px;
  color: #957568;
  display: flex;
  gap: 7px;
  align-items: center;
}

.mode-label .bi {
  color: #a5897e;
}

.notification {
  position: relative;
}

.notification span {
  position: absolute;
  right: 8px;
  top: 5px;
  width: 5px;
  height: 5px;
  background: #b68b54;
  border-radius: 50%;
  border: 1px solid white;
}

.icon-btn {
  border: 0;
  background: transparent;
  width: 30px;
  height: 32px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #99786b;
  border-radius: 6px;
  vertical-align: middle;
  font-size: 15px;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: #f0e7e4;
  color: var(--coffee);
}

.menu-toggle {
  display: none;
}

main {
  max-width: 1560px;
  margin: auto;
  padding: 33px 37px 0;
}

.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}

.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #9f8175;
  font-weight: 600;
  margin-bottom: 9px;
}

.heading h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.6px;
}

.heading p {
  font-size: 11px;
  color: #9d7e71;
  margin-top: 9px;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-chip {
  border: 1px solid #e8ddd9;
  border-radius: 7px;
  padding: 10px 12px;
  color: #917165;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  background: #fdfaf9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  min-height: 37px;
  border: 1px solid #e6dbd6;
  border-radius: 7px;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.btn:hover {
  background: #f3edeb;
  border-color: #ccbcb6;
}

.btn.primary {
  color: #fff;
  background: #74392d;
  border-color: #74392d;
}

.btn.primary:hover {
  background: #5b2c23;
}

.btn.cream {
  background: #f5f2df;
  color: #563b30;
  border-color: transparent;
  font-size: 10px;
  gap: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}

.stat {
  border: 1px solid #e9e0dc;
  background: #fffefb;
  border-radius: 11px;
  padding: 15px 18px;
}

.stat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #957467;
  gap: 10px;
}

.stat-label > span {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #f4ece9;
  color: #957467;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.stat > strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 30px;
  letter-spacing: -0.5px;
  font-weight: 400;
  color: #4d352b;
  margin-top: 7px;
  line-height: 1.2;
}

.stat small {
  font-size: 9px;
  display: block;
  margin-top: 9px;
  color: #a4877c;
}

.stat.amber {
  background: #fdfaf2;
}

.stat.amber .stat-label > span {
  color: #b4904f;
  background: #f6edda;
}

.stat.amber > strong {
  color: #aa8241;
}

.stat.rust .stat-label > span {
  background: #faeee5;
  color: #bb896b;
}

.stat.rust > strong {
  color: #a67454;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 13px;
  padding: 29px 33px;
  background: #793e30;
  color: #eee0da;
  display: flex;
  justify-content: space-between;
  min-height: 247px;
  margin-bottom: 26px;
}

.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 80% 60%, #896b6036, transparent 60%),
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 9px,
      #ffffff02 10px,
      #ffffff02 11px
    );
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #cbbab3;
}

.hero-tag .bi {
  font-size: 13px;
  color: #d5bf88;
}

.hero h2 {
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1.25;
  font-weight: 400;
  color: #f5f2df;
  letter-spacing: -0.4px;
  margin-top: 13px;
}

.hero p {
  font-size: 10px;
  color: #cab9b2;
  line-height: 1.8;
  margin: 12px 0 18px;
}

.hero-art {
  position: relative;
  width: 36%;
  max-width: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero-art img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: sepia(0.6);
  position: relative;
  z-index: 1;
}

.art-ring {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid #d1c39924;
  border-radius: 50%;
  top: 0;
}

.art-ring:before,
.art-ring:after {
  content: '';
  position: absolute;
  border: 1px solid #d1c39915;
  border-radius: 50%;
  inset: 15px;
}

.art-ring:after {
  inset: 30px;
}

.art-caption {
  font-size: 7px;
  letter-spacing: 3px;
  margin-top: 8px;
  color: #b8a29a;
}

.hero-number {
  position: absolute;
  bottom: 12px;
  right: 23px;
  font-size: 6px;
  letter-spacing: 2px;
  color: #9d7e71;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 23px;
}

.panel {
  background: #fffefb;
  border: 1px solid #e9e0dc;
  border-radius: 11px;
  overflow: hidden;
  min-width: 0;
}

.panel-head {
  padding: 19px 20px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-head h2 {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-head p {
  font-size: 9px;
  color: #a3867a;
  margin-top: 5px;
}

.pill {
  border-radius: 5px;
  font-size: 8px;
  background: #efe3de;
  color: #9a8c57;
  padding: 2px 6px;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 9px;
  color: #947467;
  white-space: nowrap;
}

.text-link:hover {
  color: #4f362d;
}

.table-wrap {
  overflow: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}

th {
  font-size: 9px;
  font-weight: 500;
  color: #a3867a;
  background: #f9f4f2;
  padding: 12px 18px;
  white-space: nowrap;
  border-bottom: 1px solid #eee7e4;
}

td {
  padding: 15px 18px;
  border-bottom: 1px solid #efe7e4;
  font-size: 11px;
  color: #84675b;
}

tr:last-child td {
  border-bottom: 0;
}

td strong {
  font-weight: 500;
  color: #5f4135;
  font-size: 11px;
}

td small {
  display: block;
  font-size: 9px;
  margin-top: 3px;
  color: #a98e83;
}

td strong small {
  display: inline;
}

.product-cell {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 160px;
}

.product-icon {
  width: 34px;
  height: 37px;
  background: #f2efe5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #8d7955;
  flex-shrink: 0;
  font-size: 18px;
}

.product-icon.droplet {
  background: #f0e9e6;
  color: #9d7e72;
}

.product-icon.basket {
  background: #f8ede0;
  color: #b89468;
}

.meter {
  height: 3px;
  width: 65px;
  background: #f1ecde;
  margin: 6px 0 3px;
  border-radius: 3px;
}

.meter span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: #d1b079;
  border-radius: 3px;
}

.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 8px;
  background: #f2ece9;
  color: #977669;
  text-transform: capitalize;
}

.badge > span {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.badge.warning {
  background: #f9f0db;
  color: #ae8a41;
}

.badge.success {
  background: #f3eae6;
  color: #937366;
}

.badge.danger {
  background: #f8eae3;
  color: #ae7856;
}

.expiry-panel {
  background: #faf5f3;
}

.expiry-panel h2 > .bi {
  color: #b59766;
}

.expiry-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 19px;
  padding: 14px 0;
  border-bottom: 1px solid #e9e0dc;
}

.expiry-day {
  width: 36px;
  background: #f0eddf;
  border: 1px solid #e5e1cf;
  border-radius: 6px;
  text-align: center;
  color: #9c8059;
  font-size: 17px;
  font-family: Georgia, serif;
  padding: 3px 0;
  line-height: 1.1;
  flex-shrink: 0;
}

.expiry-day small {
  display: block;
  font-family: 'Segoe UI', sans-serif;
  text-transform: uppercase;
  font-size: 6px;
  margin-top: 4px;
  color: #a08d69;
}

.expiry-row > div {
  flex: 1;
}

.expiry-row strong {
  font-size: 10px;
  font-weight: 500;
  color: #7a5344;
  display: block;
}

.expiry-row small {
  font-size: 8px;
  display: block;
  color: #ac9287;
  margin-top: 4px;
}

.expiry-row .badge {
  font-size: 7px;
}

.expiry-tip {
  display: flex;
  gap: 6px;
  color: #a68b80;
  font-size: 8px;
  padding: 14px 18px;
  align-items: center;
}

.legend {
  font-size: 8px;
  color: #a28579;
  display: flex;
  gap: 5px;
  align-items: center;
}

.legend b {
  width: 5px;
  height: 5px;
  background: #9d7e72;
  display: block;
  border-radius: 50%;
}

.bar-chart {
  display: flex;
  gap: 13px;
  height: 175px;
  padding: 12px 23px 20px;
  align-items: flex-end;
  background: repeating-linear-gradient(
    to top,
    transparent,
    transparent 39px,
    #eee6e354 40px,
    #eee6e354 41px
  );
}

.bar-col {
  flex: 1;
  text-align: center;
  min-width: 0;
  font-size: 8px;
  color: #ac9287;
  position: relative;
}

.bar-track {
  height: 105px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 7px;
}

.bar {
  width: 48%;
  min-width: 10px;
  height: var(--bar);
  background: #beaaa2;
  border-radius: 4px 4px 0 0;
}

.bar-col:nth-last-child(1) .bar {
  background: #87695d;
}

.bar-value {
  font-size: 7px;
  color: #a5897e;
  display: block;
  white-space: nowrap;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px;
  padding: 12px 0;
  border-bottom: 1px solid #eee6e3;
}

.activity-icon {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #f1eee5;
  color: #ad9b71;
}

.activity-icon.entrada {
  background: #f2e9e6;
  color: #a3867a;
}

.activity-row > div {
  flex: 1;
}

.activity-row strong {
  font-size: 9px;
  font-weight: 500;
  display: block;
  color: #7f6358;
}

.activity-row small {
  font-size: 8px;
  display: block;
  margin-top: 3px;
}

.activity-row > strong {
  font-size: 11px;
  white-space: nowrap;
}

.activity-row > strong small {
  display: inline;
  font-size: 8px;
}

.activity-row > strong.positive {
  color: #a2857a;
}

.order-summary {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #a08277;
  background: #f8f2ef;
  padding: 12px 20px;
  font-size: 8px;
}

.order-summary .bi:last-child {
  margin-left: auto;
}

footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eae1dd;
  margin-top: 27px;
  padding: 19px 0 24px;
  color: #af968d;
  font-size: 8px;
}

.inventory-top {
  padding: 21px 22px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inventory-top h2 {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
}

.tabs {
  display: flex;
  gap: 21px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}

.tab {
  padding: 14px 0;
  background: transparent;
  border: 0;
  color: #a4877c;
  font-size: 11px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.tab.selected {
  color: #5f4135;
  border-bottom-color: #765142;
  font-weight: 600;
}

.tab span {
  padding: 1px 4px;
  background: #efe7e4;
  border-radius: 3px;
  font-size: 8px;
  margin-left: 3px;
}

.filters {
  padding: 19px 21px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search {
  border: 1px solid #e9deda;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 12px;
  background: #fff;
  min-width: 200px;
  flex: 1;
  max-width: 350px;
  color: #ae958b;
}

.search input {
  border: 0 !important;
  outline-offset: 0 !important;
  background: transparent;
  min-width: 0;
  font-size: 10px;
  padding: 9px 12px 9px 0;
  width: 100%;
}

.filters select {
  padding: 8px 10px;
  border: 1px solid #e9deda;
  background: #fff;
  border-radius: 6px;
  font-size: 10px;
  color: #967669;
  max-width: 190px;
}

.filters > span {
  margin-left: auto;
  color: #ae958b;
  font-size: 9px;
}

.filters .date-filter {
  font-size: 8px;
  color: #9f8074;
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-filter input {
  font-size: 10px;
  border: 1px solid #e9deda;
  padding: 7px;
  border-radius: 5px;
  color: #9b7b6e;
}

.right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.table-foot {
  padding: 14px 22px;
  border-top: 1px solid #eee7e4;
  font-size: 9px;
  color: #a98e83;
  display: flex;
  justify-content: space-between;
}

.info-strip {
  margin-top: 20px;
  background: #f2ece9;
  padding: 14px 18px;
  font-size: 10px;
  color: #9d7e71;
  border-radius: 7px;
  display: flex;
  gap: 10px;
}

.empty {
  padding: 36px 20px;
  text-align: center;
  color: #ad9389;
}

.empty > .bi {
  font-size: 28px;
}

.empty h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 10px 0 5px;
  color: #8a6c60;
}

.empty p {
  font-size: 10px;
  line-height: 1.7;
  color: #aa8f85;
}

.supplier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.supplier-card {
  padding: 23px;
}

.supplier-symbol {
  display: grid;
  place-items: center;
  background: #f2e9e5;
  color: #99796c;
  border-radius: 11px;
  width: 45px;
  height: 45px;
  font-size: 22px;
  margin-bottom: 20px;
}

.supplier-card h2 {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.supplier-card > p {
  font-size: 11px;
  color: #a4877b;
  margin: 5px 0 20px;
}

.supplier-card > div {
  font-size: 11px;
  color: #9c7d71;
  margin-bottom: 9px;
  overflow-wrap: anywhere;
}

.supplier-card > div > .bi {
  margin-right: 8px;
  color: #b39b92;
}

.supplier-card .supplier-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 0;
  padding-top: 13px;
  font-size: 9px;
}

.action-stack {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.text-btn {
  border: 0;
  background: none;
  font-size: 10px;
  color: #a08268;
  padding: 4px;
}

.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}

.report-total {
  font-family: Georgia, serif;
  font-size: 39px;
  padding: 0 25px 20px;
  color: #6f4c3e;
}

.category-report {
  padding: 0 25px 20px;
}

.category-report > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 11px;
  color: #9d7e72;
}

.category-report .bi {
  margin-right: 6px;
}

.category-report strong {
  font-weight: 500;
  color: #83665b;
}

.category-meter {
  grid-column: 1/-1;
  height: 5px;
  background: #f2ece9;
  border-radius: 5px;
  overflow: hidden;
}

.category-meter > b {
  display: block;
  width: var(--progress);
  height: 100%;
  background: #a68b80;
  border-radius: 5px;
}

.export-options {
  padding: 0 22px;
}

.export-option {
  width: 100%;
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: transparent;
}

.export-option > span:nth-child(2) {
  flex: 1;
}

.export-option strong {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: #7b6055;
}

.export-option small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}

.export-option > .bi {
  color: #ad948a;
}

.report-note {
  font-size: 10px;
  color: #a68b80;
  padding: 25px;
  line-height: 1.8;
}

.audit-panel {
  margin-top: 24px;
}

.boot {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  color: #927266;
}

.boot > .bi {
  font-size: 40px;
}

.boot p {
  font-size: 14px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.login-story {
  background: #62362c;
  color: #e8d5ce;
  padding: 60px 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.login-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 55px;
  filter: sepia(0.4);
}

.login-story .eyebrow {
  color: #bba69e;
  font-size: 10px;
}

.login-story h1 {
  color: #f1eed8;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 58px;
  line-height: 1.1;
  margin: 18px 0 23px;
}

.login-story p {
  font-size: 13px;
  color: #bca79f;
  line-height: 1.8;
}

.login-illustration {
  width: 80%;
  margin-top: 40px;
  opacity: 0.5;
  filter: grayscale(1) sepia(1);
}

.login-card {
  align-self: center;
  padding: 60px;
  max-width: 500px;
  width: 100%;
  justify-self: center;
}

.login-mark {
  font-size: 29px;
  color: #967568;
}

.login-card h2 {
  font-family: Georgia, serif;
  font-size: 35px;
  font-weight: 400;
  margin-top: 20px;
}

.login-card > p {
  font-size: 13px;
  color: #a4877b;
  margin: 10px 0 26px;
}

.login-card > small {
  font-size: 10px;
  display: block;
  text-align: center;
  margin-top: 24px;
}

.login-card .btn {
  width: 100%;
  margin-top: 10px;
}

.demo-note {
  font-size: 11px;
  background: #efe4df;
  padding: 13px;
  border-radius: 7px;
  color: #8e6f62;
  margin-bottom: 22px;
}

.login-card label,
dialog label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #87695d;
  margin-bottom: 18px;
}

.login-card input,
dialog input,
dialog select,
dialog textarea {
  border: 1px solid #e5d9d4;
  border-radius: 6px;
  background: #fffefb;
  color: #66463a;
  padding: 11px 12px;
  width: 100%;
  font-size: 12px;
  min-width: 0;
}

dialog input:disabled {
  background: #f4f0ee;
  color: #a3867b;
}

dialog input::placeholder,
dialog textarea::placeholder,
.login-card input::placeholder {
  color: #bfaba4;
}

dialog textarea {
  resize: vertical;
  min-height: 75px;
}

dialog {
  border: 1px solid #e5d9d4;
  border-radius: 15px;
  box-shadow: 0 20px 100px #2d1d1733;
  width: min(590px, calc(100vw - 32px));
  padding: 28px;
  background: #fdf9f8;
  color: #704d3f;
  max-height: 90vh;
  overflow: auto;
}

dialog.wide {
  width: min(760px, calc(100vw - 32px));
}

dialog::backdrop {
  background: #2a1c17a0;
  backdrop-filter: blur(3px);
}

.modal-top {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 26px;
}

.modal-top h2 {
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 9px;
}

.modal-top p {
  font-size: 11px;
  color: #a4877c;
  line-height: 1.7;
}

.modal-top .eyebrow {
  font-size: 8px;
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}

.form-grid .full {
  grid-column: 1/-1;
}

.form-grid[hidden] {
  display: none;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #ebe2de;
  margin-top: 22px;
  padding-top: 20px;
}

.form-error {
  font-size: 11px;
  color: #b47551;
  line-height: 1.7;
  margin: 10px 0;
  overflow-wrap: anywhere;
}

.form-error:empty {
  display: none;
}

.form-hint {
  padding: 13px;
  background: #f3ebe8;
  color: #a3867a;
  font-size: 10px;
  line-height: 1.7;
  border-radius: 7px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.movement-types {
  display: flex;
  gap: 9px;
  margin-bottom: 20px;
}

.movement-types label {
  flex: 1;
  position: relative;
  margin: 0;
}

.movement-types input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.movement-types span {
  border: 1px solid #e6dbd6;
  border-radius: 7px;
  padding: 12px;
  display: flex;
  gap: 9px;
  justify-content: center;
  font-size: 11px;
}

.movement-types input:checked + span {
  border-color: #99786b;
  background: #f0e5e1;
  color: #7c5545;
}

.movement-types input:focus-visible + span {
  outline: 3px solid #b38b53;
}

.order-item {
  display: grid;
  grid-template-columns: 2fr 0.8fr 0.8fr 25px;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

.order-item label {
  font-size: 10px;
}

.order-item input,
.order-item select {
  font-size: 11px;
  padding: 9px 7px;
}

.order-item .icon-btn {
  margin-top: 3px;
  width: 25px;
}

.order-item .order-item {
  margin: 0;
}

#add-item {
  margin: 0 0 23px;
}

.receive-item {
  border-top: 1px solid #ebe1dd;
  padding-top: 17px;
  margin-top: 14px;
}

.receive-item h3 {
  font-size: 13px;
  margin-bottom: 15px;
  font-weight: 500;
}

.receive-item h3 span {
  font-size: 10px;
  font-weight: 400;
  float: right;
  color: #aa8f85;
}

#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #4d352b;
  color: #f4ebe8;
  box-shadow: 0 6px 30px #3d2a2222;
  border-radius: 9px;
  padding: 14px 23px;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  max-width: 90vw;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

#toast.error {
  background: #935c43;
}

@media (min-width: 1550px) {
  main {
    padding-top: 42px;
  }
  .stats {
    margin-bottom: 28px;
  }
  .stat {
    padding: 21px 23px;
  }
  .hero {
    padding: 35px 40px;
    min-height: 280px;
  }
  .hero h2 {
    font-size: 35px;
  }
  .hero p {
    font-size: 12px;
  }
  .panel-head h2 {
    font-size: 14px;
  }
  .panel-head p {
    font-size: 11px;
  }
  td {
    padding: 18px 20px;
    font-size: 12px;
  }
  .product-cell strong {
    font-size: 12px;
  }
  .expiry-row {
    padding: 18px 0;
  }
  .expiry-row strong {
    font-size: 12px;
  }
  .activity-row {
    padding: 16px 0;
  }
}

@media (max-width: 1200px) {
  .sidebar {
    width: 215px;
    padding-inline: 14px;
  }
  .app-body {
    margin-left: 215px;
  }
  .profile {
    margin-inline: -14px;
    padding-inline: 12px;
  }
  main {
    padding: 26px 23px 0;
  }
  .topbar {
    padding-inline: 23px;
  }
  .heading h1 {
    font-size: 28px;
  }
  .heading-actions .date-chip {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
  }
  .panel-head {
    padding-inline: 15px;
  }
  .panel-head h2 {
    font-size: 11px;
  }
  .panel-head p {
    font-size: 8px;
  }
  th,
  td {
    padding: 12px;
  }
  .dashboard-grid th:nth-last-child(2) {
    min-width: 80px;
  }
  .hero-art {
    width: 30%;
  }
  .supplier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 13px 12px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat > strong {
    font-size: 25px;
  }
  .stat small {
    font-size: 8px;
  }
  .stat-label > span {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }
  .hero-art img {
    width: 130px;
  }
  .hero-art .art-ring {
    width: 170px;
    height: 170px;
    top: 22px;
  }
  .heading-actions .btn {
    font-size: 10px;
    padding: 9px;
  }
  .reports-grid {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 38px;
  }
  .login-story h1 {
    font-size: 47px;
  }
  .login-story {
    padding: 50px 10%;
  }
  .hero h2 {
    font-size: 26px;
  }
}

@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 12px 0 50px #34241d22;
    width: 245px;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .app-body {
    margin-left: 0;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .topbar {
    height: 61px;
    padding: 0 16px;
  }
  .crumb {
    gap: 9px;
    font-size: 10px;
  }
  .top-right {
    gap: 9px;
  }
  .mode-label {
    font-size: 8px;
  }
  .top-right > .avatar {
    display: none;
  }
  main {
    padding: 24px 17px 0;
  }
  .heading {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
    margin-bottom: 22px;
  }
  .heading h1 {
    font-size: 29px;
  }
  .heading p {
    font-size: 10px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .heading-actions {
    align-self: flex-start;
    margin-top: 5px;
  }
  .heading-actions .btn {
    font-size: 10px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .stat {
    padding: 15px;
  }
  .stat > strong {
    font-size: 27px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat small {
    font-size: 8px;
  }
  .hero {
    min-height: 235px;
    padding: 25px 22px;
  }
  .hero-tag {
    font-size: 6px;
    letter-spacing: 1.1px;
  }
  .hero h2 {
    font-size: 24px;
    position: relative;
    z-index: 2;
  }
  .hero p {
    font-size: 9px;
    max-width: 225px;
    position: relative;
    z-index: 2;
  }
  .hero-art {
    width: 26%;
    opacity: 0.65;
    align-self: center;
    margin-right: 4px;
  }
  .hero-art img {
    width: 95px;
    height: 100px;
  }
  .hero-art .art-ring {
    width: 130px;
    height: 130px;
    top: 0;
  }
  .art-caption {
    font-size: 4px;
    letter-spacing: 1px;
    white-space: nowrap;
  }
  .hero-number {
    font-size: 5px;
  }
  .dashboard-grid {
    gap: 18px;
    margin-bottom: 18px;
  }
  .dashboard-grid .table-wrap td {
    padding: 13px 10px;
  }
  .dashboard-grid .product-cell {
    gap: 7px;
    min-width: 142px;
  }
  .dashboard-grid .product-cell .product-icon {
    width: 25px;
    height: 29px;
    font-size: 14px;
  }
  .dashboard-grid .product-cell strong {
    font-size: 9px;
  }
  .dashboard-grid td strong {
    font-size: 9px;
  }
  .dashboard-grid .badge {
    font-size: 7px;
  }
  .panel-head {
    padding: 17px 14px;
  }
  .panel-head h2 {
    font-size: 11px;
  }
  .panel-head p {
    font-size: 8px;
  }
  .text-link {
    font-size: 8px;
  }
  .dashboard-grid .table-wrap th {
    font-size: 8px;
    padding-inline: 10px;
  }
  .expiry-row {
    padding: 16px 0;
  }
  .lower {
    gap: 18px;
  }
  .bar-chart {
    padding-inline: 15px;
    gap: 9px;
  }
  .bar-value {
    font-size: 6px;
  }
  .supplier-grid {
    grid-template-columns: 1fr;
  }
  .inventory-top {
    padding: 17px 15px;
  }
  .inventory-top h2 {
    font-size: 12px;
  }
  .tabs {
    gap: 18px;
    padding-inline: 15px;
  }
  .filters {
    padding: 15px;
    gap: 9px;
  }
  .search {
    min-width: 170px;
  }
  .filters > span {
    font-size: 8px;
  }
  .table-foot {
    font-size: 8px;
    gap: 10px;
    padding: 13px 15px;
  }
  .table-foot span {
    white-space: nowrap;
  }
  .info-strip {
    font-size: 9px;
  }
  .reports-grid {
    gap: 18px;
  }
  .panel table th {
    font-size: 9px;
  }
  .panel table td {
    font-size: 10px;
  }
  .panel table td strong {
    font-size: 10px;
  }
  .login-page {
    display: flex;
    flex-direction: column;
  }
  .login-story {
    padding: 28px 30px;
  }
  .login-story h1 {
    font-size: 37px;
    margin: 10px 0;
  }
  .login-story p {
    font-size: 10px;
  }
  .login-story .eyebrow {
    font-size: 8px;
  }
  .login-logo {
    position: absolute;
    right: 27px;
    top: 30px;
    width: 80px;
    height: 80px;
    margin: 0;
  }
  .login-illustration {
    display: none;
  }
  .login-card {
    padding: 35px 30px;
    max-width: 440px;
  }
  .login-card h2 {
    font-size: 31px;
    margin-top: 12px;
  }
  .login-mark {
    display: none;
  }
  footer {
    font-size: 7px;
    gap: 20px;
  }
  dialog {
    padding: 22px 19px;
    max-height: 90dvh;
  }
  .modal-top h2 {
    font-size: 26px;
  }
  .form-grid {
    column-gap: 14px;
  }
  .order-item {
    grid-template-columns: 1fr 1fr 26px;
    gap: 8px;
  }
  .order-item label:first-child {
    grid-column: 1/-1;
  }
  .order-item .icon-btn {
    align-self: center;
  }
  .order-item label {
    margin-bottom: 10px;
  }
  .movement-types span {
    font-size: 10px;
    padding: 10px 7px;
  }
  .modal-footer .btn {
    font-size: 10px;
    padding: 10px 12px;
  }
}

.sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.sidebar nav,
.sidebar .brand,
.sidebar .workspace,
.sidebar .side-bottom {
  flex-shrink: 0;
}

.login-logo {
  width: 220px;
  height: 95px;
  object-fit: contain;
  background: #e5dec8;
  border-radius: 8px;
  padding: 10px;
  filter: none;
}

@media (max-width: 760px) {
  .login-logo {
    width: 95px;
    height: 55px;
    padding: 5px;
  }
  .hero {
    display: block;
  }
  .hero > div:first-child {
    position: relative;
    z-index: 2;
    max-width: 100%;
  }
  .hero-art {
    position: absolute;
    right: 13px;
    bottom: 20px;
    width: 80px;
    opacity: 0.45;
    pointer-events: none;
  }
  .hero-art img {
    width: 80px;
    height: 75px;
  }
  .hero-art .art-ring,
  .hero-art .art-caption {
    display: none;
  }
  .hero h2 {
    font-size: 24px;
  }
  .hero p {
    max-width: 100%;
    padding-right: 9px;
  }
  .hero .desktop-break {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .sidebar,
  .topbar,
  .heading-actions,
  footer,
  button {
    display: none !important;
  }
  .app-body {
    margin: 0;
  }
  main {
    padding: 0;
  }
  .panel {
    break-inside: avoid;
  }
  .hero {
    color: #000;
    background: #eee;
  }
  .hero h2,
  .hero p {
    color: #333;
  }
}
