:root {
  --dp-readable-ink: #172033;
  --dp-readable-muted: #526171;
  --dp-dark-ink: #f7f9fc;
  --dp-dark-muted: #c2cfdd;
  --dp-dark-soft: #91a2b5;
  --dp-command: #0e8fa8;
}

body:not(.widget-mode) button :is(b, strong) {
  color: inherit !important;
}

body:not(.widget-mode) button small {
  color: inherit !important;
  opacity: .78 !important;
}

body:not(.widget-mode) :is(input, select, textarea) {
  -webkit-text-fill-color: currentColor;
  opacity: 1;
}

body:not(.widget-mode) :is(input, textarea)::placeholder {
  color: #728095 !important;
  opacity: 1 !important;
}

body:not(.widget-mode) :is(input, select, textarea, button, summary):focus-visible {
  outline: 3px solid rgba(14, 143, 168, .22) !important;
  outline-offset: 2px !important;
}

body:not(.widget-mode) main > .section {
  color: var(--dp-readable-ink) !important;
}

body:not(.widget-mode) #calcView :is(.primary-options-grid, .finish-options-grid) {
  color: var(--dp-dark-ink) !important;
}

body:not(.widget-mode) #calcView :is(.primary-options-grid, .finish-options-grid) .calc-panel-heading {
  border-bottom-color: #3a4658 !important;
  color: var(--dp-dark-ink) !important;
}

body:not(.widget-mode) #calcView :is(.primary-options-grid, .finish-options-grid) .calc-panel-heading h2 {
  color: #ffffff !important;
}

body:not(.widget-mode) #calcView :is(.primary-options-grid, .finish-options-grid) :is(label, .calc-panel-heading small, .muted) {
  color: var(--dp-dark-muted) !important;
}

body:not(.widget-mode) #calcView :is(.primary-options-grid, .finish-options-grid) .calc-step-index {
  border-color: #3fc0d3 !important;
  background: #0d3e4a !important;
  color: #c8f7fc !important;
}

body:not(.widget-mode) #calcView :is(.calc-client-step, #postpressCalcSection, #priceMatrixPanel) .calc-step-index,
body:not(.widget-mode) #calcView .calc-client-avatar {
  color: #064f5d !important;
}

body:not(.widget-mode) #calcView :is(.primary-options-grid, .finish-options-grid) :is(input, select, textarea) {
  border-color: #c7d0dc !important;
  background: #ffffff !important;
  color: var(--dp-readable-ink) !important;
}

body:not(.widget-mode) #calcView :is(.primary-options-grid, .finish-options-grid) :is(input, select, textarea):hover {
  border-color: #94a6ba !important;
}

body:not(.widget-mode) #calcView .qty-preset-row button {
  border-color: #c7d0dc !important;
  background: #ffffff !important;
  color: #344054 !important;
}

body:not(.widget-mode) #calcView .qty-preset-row button.active {
  border-color: var(--dp-command) !important;
  background: var(--dp-command) !important;
  color: #ffffff !important;
}

body:not(.widget-mode) #calcView :is(#postpressCalcSection, #priceMatrixPanel, #calculationDetailsPanel) {
  color: var(--dp-readable-ink) !important;
}

body:not(.widget-mode) #calcView :is(#postpressCalcSection, #priceMatrixPanel) .calc-workspace-heading h2,
body:not(.widget-mode) #calcView #calculationDetailsPanel > summary b,
body:not(.widget-mode) #calcView .calc-library-disclosure > summary b {
  color: var(--dp-readable-ink) !important;
}

body:not(.widget-mode) #calcView :is(#postpressCalcSection, #priceMatrixPanel) .calc-workspace-heading small,
body:not(.widget-mode) #calcView :is(#postpressCalcSection, #priceMatrixPanel) .muted,
body:not(.widget-mode) #calcView #calculationDetailsPanel > summary small,
body:not(.widget-mode) #calcView .calc-library-disclosure > summary small {
  color: var(--dp-readable-muted) !important;
}

body:not(.widget-mode) #calcView .postpress-option-card {
  background: #f8f9fb !important;
  color: var(--dp-readable-ink) !important;
}

body:not(.widget-mode) #calcView .postpress-option-card :is(h3, b, strong, label) {
  color: var(--dp-readable-ink) !important;
}

body:not(.widget-mode) #calcView :is(.postpress-card-method, .postpress-card-units, .postpress-card-cost, .postpress-card-rate small) {
  color: var(--dp-readable-muted) !important;
}

body:not(.widget-mode) #calcView .postpress-option-card :is(input, select) {
  background: #ffffff !important;
  color: var(--dp-readable-ink) !important;
}

body:not(.widget-mode) #calcView #matrixTable {
  color: var(--dp-readable-ink) !important;
}

body:not(.widget-mode) #calcView #matrixTable :is(th, td, b, strong) {
  color: inherit !important;
}

body:not(.widget-mode) #calcView .sheet-visual {
  color: #064f61 !important;
}

body:not(.widget-mode) #calcView .manager-calculation-breakdown {
  margin-top: 10px !important;
  overflow: hidden !important;
  border: 1px solid #d5dee9 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--dp-readable-ink) !important;
}

body:not(.widget-mode) #calcView .manager-calculation-breakdown > summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 42px !important;
  padding: 9px 10px !important;
  list-style: none !important;
  cursor: pointer !important;
}

body:not(.widget-mode) #calcView .manager-calculation-breakdown > summary::-webkit-details-marker {
  display: none !important;
}

body:not(.widget-mode) #calcView .manager-calculation-breakdown > summary span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

body:not(.widget-mode) #calcView .manager-calculation-breakdown > summary svg {
  width: 15px !important;
  height: 15px !important;
  color: var(--dp-command) !important;
}

body:not(.widget-mode) #calcView .manager-calculation-breakdown > summary b {
  color: var(--dp-readable-ink) !important;
  font-size: 12px !important;
}

body:not(.widget-mode) #calcView .manager-calculation-breakdown > summary small {
  color: var(--dp-readable-muted) !important;
  font-size: 9px !important;
}

body:not(.widget-mode) #calcView .manager-calculation-breakdown[open] > summary {
  border-bottom: 1px solid #e1e7ef !important;
}

body:not(.widget-mode) #calcView .manager-calculation-breakdown-rows {
  display: grid !important;
  gap: 7px !important;
  padding: 10px !important;
}

body:not(.widget-mode) #calcView .manager-breakdown-components {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

body:not(.widget-mode) #calcView .manager-breakdown-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 7px 8px !important;
  border: 1px solid #e1e7ef !important;
  border-left: 3px solid #8290a3 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  color: var(--dp-readable-ink) !important;
  font-size: 10px !important;
}

body:not(.widget-mode) #calcView .manager-breakdown-row span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body:not(.widget-mode) #calcView .manager-breakdown-row b {
  flex: none !important;
  color: var(--dp-readable-ink) !important;
  font-size: 10px !important;
  font-variant-numeric: tabular-nums !important;
}

body:not(.widget-mode) #calcView .manager-breakdown-row.tone-material { border-left-color: #0e8fa8 !important; }
body:not(.widget-mode) #calcView .manager-breakdown-row.tone-print { border-left-color: #3478b8 !important; }
body:not(.widget-mode) #calcView .manager-breakdown-row.tone-coating { border-left-color: #7868aa !important; }
body:not(.widget-mode) #calcView .manager-breakdown-row.tone-postpress { border-left-color: #cc8525 !important; }

body:not(.widget-mode) #calcView .manager-breakdown-factors {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

body:not(.widget-mode) #calcView .manager-breakdown-factor {
  display: grid !important;
  grid-template-columns: auto auto !important;
  gap: 1px 6px !important;
  min-width: 92px !important;
  padding: 6px 8px !important;
  border-radius: 6px !important;
  background: #eef8fa !important;
  color: #075f72 !important;
}

body:not(.widget-mode) #calcView .manager-breakdown-factor small {
  grid-column: 1 / -1 !important;
  color: #526171 !important;
  font-size: 8px !important;
  text-transform: uppercase !important;
}

body:not(.widget-mode) #calcView .manager-breakdown-factor b,
body:not(.widget-mode) #calcView .manager-breakdown-factor em {
  color: #075f72 !important;
  font-size: 10px !important;
  font-style: normal !important;
}

body:not(.widget-mode) #calcView .manager-breakdown-total {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  padding: 9px !important;
  border-radius: 7px !important;
  background: #172033 !important;
}

body:not(.widget-mode) #calcView .manager-breakdown-total span {
  display: grid !important;
  gap: 2px !important;
}

body:not(.widget-mode) #calcView .manager-breakdown-total small {
  color: #aebdce !important;
  font-size: 8px !important;
  text-transform: uppercase !important;
}

body:not(.widget-mode) #calcView .manager-breakdown-total b {
  color: #ffffff !important;
  font-size: 13px !important;
  font-variant-numeric: tabular-nums !important;
}

body:not(.widget-mode) #calcView .manager-breakdown-note,
body:not(.widget-mode) #calcView .manager-breakdown-empty {
  color: var(--dp-readable-muted) !important;
  font-size: 9px !important;
  line-height: 1.4 !important;
}

body:not(.widget-mode) #calcView .crm-total .muted {
  color: var(--dp-dark-muted) !important;
}

body.widget-mode .manager-calculation-breakdown {
  display: none !important;
}

body:not(.widget-mode) #ordersView .order-filter-bar {
  color: var(--dp-dark-ink) !important;
}

body:not(.widget-mode) #ordersView .order-filter-bar button {
  color: #d9e4ef !important;
}

body:not(.widget-mode) #ordersView .order-filter-bar button.active {
  color: #ffffff !important;
}

body:not(.widget-mode) #ordersView .order-priority-filter-bar button :is(b, strong) {
  color: #f7f9fc !important;
}

body:not(.widget-mode) #ordersView .orders-pagination :is(b, strong) {
  color: var(--dp-readable-ink) !important;
}

body:not(.widget-mode) #ordersView tr.age-urgent {
  color: #4b2d04 !important;
}

body:not(.widget-mode) #productionQueueView .equipment-queue header b {
  color: var(--dp-readable-ink) !important;
}

body:not(.widget-mode) #productionQueueView .operation-queue-order,
body:not(.widget-mode) #productionQueueView .operation-queue-order :is(b, strong, small) {
  color: #071014 !important;
}

body:not(.widget-mode) #editView .product-approval-card :is(div, span, b, strong),
body:not(.widget-mode) #editView .pricing-approval-card :is(div, span, b, strong) {
  color: var(--dp-readable-ink) !important;
}

@media (max-width: 760px) {
  body:not(.widget-mode) #calcView .manager-breakdown-components,
  body:not(.widget-mode) #calcView .manager-breakdown-total {
    grid-template-columns: 1fr !important;
  }

  body:not(.widget-mode) #calcView .manager-calculation-breakdown > summary {
    align-items: flex-start !important;
  }
}
