@import url("https://fonts.googleapis.com/css2?family=Metamorphous&display=swap");
:root {
  --ot-text: #513e2a;
  --ot-paper: #c8ac8e;
  --ot-paper-alt: #8f7459;
  --ot-hover: #daa84a;
  --ot-dark: #17202a;
  --ot-dark-contrast: #f4eadb;
  --ot-shadow: rgba(23, 32, 42, 0.32);
}

body {
  background-color: #c8ac8e;
  color: #513e2a;
  font-family: "Metamorphous", serif;
  letter-spacing: 0.01em;
  margin: 0;
  overflow-x: hidden;
}

.ot-page {
  width: 100%;
}

.ot-band {
  width: 100%;
  margin: 0;
  position: relative;
}

.ot-band-inner {
  position: relative;
}

.ot-band-dark {
  background: #17202a;
  color: #f4eadb;
}

.ot-band-paper {
  background: #c8ac8e;
  color: #513e2a;
}

.ot-band-paper-alt {
  background: #8f7459;
  color: #f4eadb;
}

.ot-band-textured {
  background-image: url("../img/paper-tex-1-1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ot-band-tall {
  background-image: none !important;
}

a {
  color: #513e2a;
}

a:hover {
  color: #daa84a;
}

.ot-band-dark,
.ot-band-dark p,
.ot-band-dark span,
.ot-band-dark small,
.ot-band-dark li,
.ot-band-dark label,
.ot-band-dark h1,
.ot-band-dark h2,
.ot-band-dark h3,
.ot-band-dark h4,
.ot-band-dark h5,
.ot-band-dark h6,
.ot-band-dark th,
.ot-band-dark td,
.ot-band-dark .text-reset,
.ot-band-dark .text-secondary,
.ot-band-dark .text-muted,
.ot-band-dark .small {
  color: #f4eadb !important;
}

.ot-band-dark a {
  color: #fff !important;
}

.ot-band-dark a:hover {
  color: #daa84a !important;
}

.ot-band-dark hr {
  border-color: rgba(255, 255, 255, 0.32);
}

.ot-band-paper-alt a,
.ot-band-paper-alt .text-reset,
.ot-band-paper-alt .text-secondary,
.ot-band-paper-alt .text-muted,
.ot-band-paper-alt .small {
  color: #f4eadb !important;
}

.section-divider {
  --ot-divider-height: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("../img/row.svg") center/100% 100% no-repeat;
  mask: url("../img/row.svg") center/100% 100% no-repeat;
  width: 100%;
  display: block;
  margin: 0;
  line-height: 0;
  position: absolute;
  left: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.62;
}

.divider-top-next,
.divider-bottom-prev {
  margin: 0;
}

.divider-top-next {
  top: 0;
  transform: none;
}

.divider-bottom-prev {
  bottom: 0;
  transform: none;
}

.divider-paper {
  color: #c8ac8e;
}

.divider-paper-alt {
  color: #8f7459;
}

.divider-dark {
  color: #17202a;
}

.card {
  border-color: #8f7459 !important;
  border-radius: 0;
  box-shadow: none !important;
  overflow: hidden;
  background: transparent;
}

.card h1,
.card h2,
.card h3 {
  letter-spacing: 0;
}

.history-card {
  border: 1px solid #8f7459;
  border-radius: 0;
  padding: 0.75rem;
  background: #d8b997;
}

.history-svg {
  width: 100%;
  height: 180px;
}

.history-wrap {
  position: relative;
}

.history-grid-line {
  stroke: #e9ecef;
  stroke-width: 1;
}

.history-point {
  fill: #bc6c25;
  stroke: #fff;
  stroke-width: 1.5;
  cursor: pointer;
}

.history-point:hover {
  r: 5;
  fill: #99582a;
}

.history-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: #212529;
  color: #fff;
  border-radius: 0.35rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.75rem;
  line-height: 1.25;
  box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.2);
}

.btn,
.flag-btn {
  border: none;
  border-radius: 0;
  clip-path: polygon(100% 1%, 95% 50%, 100% 100%, 0% 100%, 5% 50%, 0% 0%);
  background: #513e2a;
  color: #fff;
  font-family: "Metamorphous", serif;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.15rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:not(.btn-sm):not(.btn-link):hover,
.btn:not(.btn-sm):not(.btn-link):focus-visible,
.flag-btn:not(.btn-sm):hover,
.flag-btn:not(.btn-sm):focus-visible {
  background: #8f7459;
  color: #fff;
  transform: translateY(-1px);
}

.btn:active,
.flag-btn:active {
  transform: translateY(0);
}

.btn.btn-sm:hover,
.btn.btn-sm:focus-visible {
  background: #513e2a;
  color: #fff;
}

.btn-primary,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
  background: #513e2a;
  color: #fff;
  border: none;
}

.btn-link {
  clip-path: none;
  background: transparent;
  color: #513e2a;
  padding: 0;
  transform: none !important;
}

.btn-close {
  clip-path: none;
}

.form-control,
.form-select,
textarea {
  border-color: #8f7459;
  border-radius: 0;
  background-color: rgba(255, 245, 230, 0.8);
  color: #513e2a;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: #daa84a;
  box-shadow: 0 0 0 0.2rem rgba(218, 168, 74, 0.25);
}

.table {
  --bs-table-bg: rgba(240, 222, 195, 0.55);
  --bs-table-hover-bg: rgba(218, 168, 74, 0.2);
  --bs-table-color: #513e2a;
  --bs-table-border-color: #8f7459;
  border-color: #8f7459;
}

.table > :not(caption) > * > * {
  border-color: #8f7459;
}

.table-light,
.sticky-head-table thead th {
  background: rgba(200, 172, 142, 0.92) !important;
  color: #513e2a;
  box-shadow: inset 0 -1px 0 #8f7459;
}

.ot-band-dark .table {
  --bs-table-bg: rgba(255, 255, 255, 0.06);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.12);
  --bs-table-color: #fff;
  --bs-table-border-color: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.35);
}

.ot-band-dark .table > :not(caption) > * > * {
  border-color: rgba(255, 255, 255, 0.35);
}

.ot-band-dark .table-light,
.ot-band-dark .sticky-head-table thead th {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}

.item-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-thumb {
  width: 28px;
  height: 28px;
  border-radius: 0;
  object-fit: cover;
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 1px solid #8f7459;
  background: #f4eadb;
}
.item-thumb.placeholder {
  display: inline-block;
  background: #e5e7eb;
}

.item-thumb.is-image-pending {
  background: #eef2f7;
}

.item-select-checkbox,
#selectAllItemsCheckbox {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.item-preview-wrap {
  display: flex;
  justify-content: flex-start;
}

.item-preview-wrap-header {
  justify-content: flex-end;
}

.item-preview-frame {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  border: 1px solid #8f7459;
  border-radius: 0.5rem;
  background: linear-gradient(45deg, #eef2f7 25%, transparent 25%) -8px 0/16px 16px, linear-gradient(-45deg, #eef2f7 25%, transparent 25%) -8px 0/16px 16px, linear-gradient(45deg, transparent 75%, #eef2f7 75%) 0 0/16px 16px, linear-gradient(-45deg, transparent 75%, #eef2f7 75%) 0 0/16px 16px, #f4eadb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.5rem;
}

.item-preview-frame-header {
  width: 96px;
  max-width: 96px;
  padding: 0.2rem;
}

.item-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.currency-stack {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.currency-unit {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
}

.currency-amount {
  font-weight: 600;
}

.currency-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.trend-delta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.trend-value {
  text-align: left;
}

.trend-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  text-align: right;
}

.trend-icon {
  font-size: 0.8rem;
  line-height: 1;
}

.trend-up .trend-icon {
  color: #198754;
}

.trend-down .trend-icon {
  color: #dc3545;
}

.trend-flat .trend-icon {
  color: #6c757d;
}

.trend-percent {
  font-size: 0.75em;
  color: #6c757d;
}

.admin-shell {
  min-height: 100vh;
}

#adminMenu .btn.active {
  color: #17202a;
  background: #daa84a;
  border-color: #daa84a;
}

.category-quick-nav .btn.active {
  color: #17202a;
  background: #daa84a;
  border-color: #daa84a;
}

body.modal-open {
  overflow: hidden;
}

.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.custom-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.custom-modal-dialog {
  position: relative;
  margin: 6vh auto 0;
  width: min(640px, 100% - 1.5rem);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid #8f7459;
  border-radius: 0;
  background: #f4eadb;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.custom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #8f7459;
}

.custom-modal-body {
  padding: 1rem;
}

.sticky-head-table thead th {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #f8f9fa;
  box-shadow: inset 0 -1px 0 #dbe1e8;
}

.related-item-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
}

.related-item-image {
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.related-item-image-placeholder {
  border: 1px solid #dbe1e8;
  border-radius: 0;
  background: #eef2f7;
}

.related-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.related-item-dev {
  white-space: nowrap;
  font-size: 0.72rem;
}

.related-item-dev-up {
  color: #198754;
}

.related-item-dev-down {
  color: #dc3545;
}

.related-item-dev-flat {
  color: #6c757d;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .media-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
.media-grid .media-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100%;
}

.media-card-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 112px;
  border: 1px solid #d8cfbf;
  background: #efe2cf;
  overflow: hidden;
}

.media-card-image {
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.media-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.media-card-name {
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
}

.media-grid.is-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.media-grid.is-list .media-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.media-grid.is-list .media-card-preview {
  width: 112px;
  min-height: 112px;
}

.text-body {
  background-color: #c8ac8e;
}

@media (max-width: 575.98px) {
  .media-grid.is-list .media-card {
    grid-template-columns: 1fr;
  }
  .media-grid.is-list .media-card-preview {
    width: 100%;
  }
}

/*# sourceMappingURL=styles.css.map */
