html[data-theme="dark"],
html[data-theme="light"],
:root {
  --primary: #223e6e;
  --secondary: #223e6e;
  --accent: #223e6e;
  --primary-fg: #ffffff;
  --body-fg: #333333;
  --body-bg: #f4f6f8;
  --body-quiet-color: #727171;
  --body-medium-color: #595757;
  --body-loud-color: #333333;
  --header-color: #ffffff;
  --header-branding-color: #ffffff;
  --header-bg: #223e6e;
  --header-link-color: #ffffff;
  --breadcrumbs-fg: #727171;
  --breadcrumbs-link-fg: #223e6e;
  --breadcrumbs-bg: transparent;
  --link-fg: #223e6e;
  --link-hover-color: #223e6e;
  --link-selected-fg: #223e6e;
  --hairline-color: #e4e7ee;
  --border-color: #d5d8e0;
  --darkened-bg: #eef1f6;
  --selected-bg: #e8eef6;
  --selected-row: #f3f6fb;
  --button-fg: #ffffff;
  --button-bg: #223e6e;
  --button-hover-bg: #1a3158;
  --default-button-bg: #223e6e;
  --default-button-hover-bg: #1a3158;
  --object-tools-bg: #223e6e;
  --object-tools-hover-bg: #1a3158;
  --object-tools-fg: #ffffff;
  --font-family-primary: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
}

body {
  background: #f4f6f8;
  color: #333333;
}

#header {
  align-items: center;
  background: #223e6e;
  border-bottom: 0;
  padding: 0 20px;
}

#site-name a {
  align-items: center;
  color: #ffffff;
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.erp-mark {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  letter-spacing: 0.06em;
  width: 36px;
}

.erp-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.erp-brand strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.erp-brand small {
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  letter-spacing: 0.14em;
}

#user-tools,
#user-tools a,
#logout-form button {
  color: #ffffff;
  font-size: 13px;
}

#user-tools a:hover,
#logout-form button:hover {
  color: rgba(255,255,255,0.75);
}

ol.breadcrumbs {
  background: transparent;
  color: #727171;
  padding: 16px 8px 0;
}

#content {
  padding: 8px 8px 36px;
}

#nav-sidebar {
  background: #f7f8fa;
  border-right: 1px solid #e4e7ee;
}

#nav-sidebar .module {
  background: transparent;
}

#nav-sidebar .module caption,
#nav-sidebar .module caption a.section {
  background: transparent;
  color: #223e6e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 16px 16px 4px;
}

#nav-sidebar .module th,
#nav-sidebar .module td {
  background: transparent;
  border: 0;
  padding-top: 5px;
  padding-bottom: 5px;
}

#nav-sidebar a:link,
#nav-sidebar a:visited {
  color: #333333;
}

#nav-sidebar tr.current-model th,
#nav-sidebar tr.current-model td {
  background: #e8eef6;
}

body.erp-home-page #content {
  padding: 16px 18px 40px;
}

body.erp-home-page {
  background: #f4e4bc;
}

body.erp-home-page #header {
  background: #1e4b89;
  border-bottom: 3px solid #c6a35a;
}

body.erp-home-page .erp-mark {
  border-color: #f0d48a;
  color: #f0d48a;
}

.hg-shell {
  margin: 0;
  max-width: 22rem;
}

.hg-top {
  background: #1e4b89;
  border-bottom: 3px solid #c6a35a;
  color: #ffffff;
  margin: 0 0 10px;
  padding: 12px 14px 10px;
}

.hg-word {
  color: #f0d48a;
  font-size: 11px;
  letter-spacing: 0.28em;
  margin: 0;
}

#content .hg-top h1 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  margin: 4px 0 0;
}

.hg-company,
.hg-meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  margin: 4px 0 0;
}

.hg-company {
  color: rgba(255, 255, 255, 0.88);
}

.hg-meta {
  color: #f0d48a;
}

#content .hg-word a,
#content .hg-word a:link,
#content .hg-word a:visited {
  color: #f0d48a;
  text-decoration: none;
}

.hg-menu section {
  margin: 0 0 8px;
}

.hg-menu h2 {
  background: #1e4b89;
  color: #f0d48a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  padding: 5px 10px;
}

.hg-menu ul {
  background: rgba(255, 255, 255, 0.45);
  list-style: none;
  margin: 0;
  padding: 2px 0;
}

#content .hg-menu ul > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#content .hg-menu a,
#content .hg-menu a:link,
#content .hg-menu a:visited {
  color: #1e4b89;
  display: block;
  font-size: 14px;
  line-height: 1.35;
  padding: 3px 14px;
  text-decoration: none;
}

#content .hg-menu a:hover {
  background: #fff8e4;
}

.erp-console-head {
  align-items: flex-end;
  border-bottom: 2px solid #223e6e;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 0 20px;
  padding: 0 0 14px;
}

#content .erp-console-head h1 {
  color: #223e6e;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  margin: 6px 0 0;
}

.erp-console-meta {
  color: #727171;
  font-size: 13px;
  letter-spacing: 0.12em;
  margin: 0;
  white-space: nowrap;
}

.erp-console-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.erp-panel {
  background: #fff;
  border: 1px solid #e3e7ef;
}

.erp-panel h2 {
  background: #223e6e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0;
  padding: 10px 16px;
}

.erp-panel-list {
  display: flex;
  flex-direction: column;
}

#content a.erp-launch,
#content a.erp-launch:link,
#content a.erp-launch:visited {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #eef1f6;
  color: #223e6e;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 16px;
  text-decoration: none;
}

#content .erp-panel-list a.erp-launch:last-child {
  border-bottom: 0;
}

#content a.erp-launch strong {
  color: #223e6e;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#content a.erp-launch span {
  color: #727171;
  font-size: 12px;
  letter-spacing: 0.08em;
}

#content a.erp-launch:hover {
  background: #f3f6fb;
}

@media (max-width: 760px) {
  .erp-console-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .erp-console-grid {
    grid-template-columns: 1fr;
  }

  .erp-console-meta {
    white-space: normal;
  }
}

.erp-sheet {
  background: #fff;
  border: 1px solid #e3e7ef;
  border-top: 3px solid #223e6e;
}

.erp-sheet-title {
  border-bottom: 1px solid #e6eaf1;
  padding: 20px 24px 16px;
}

.erp-kicker {
  color: #223e6e;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin: 0;
}

#content .erp-sheet-title h1 {
  color: #223e6e;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin: 8px 0 0;
}

.erp-sheet-title p:last-child {
  color: #727171;
  font-size: 14px;
  margin: 8px 0 0;
}

.erp-band {
  align-items: stretch;
  border-bottom: 1px solid #e6eaf1;
  display: grid;
  grid-template-columns: 128px 1fr;
}

.erp-band:last-child {
  border-bottom: 0;
}

.erp-band h2 {
  align-items: center;
  background: #f3f6fb;
  border-right: 1px solid #e6eaf1;
  color: #223e6e;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  padding: 0 16px;
}

.erp-band-items,
.erp-count-2,
.erp-count-3,
.erp-count-4,
.erp-count-5 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
}

#content a.erp-module,
#content a.erp-module:link,
#content a.erp-module:visited {
  align-items: center;
  background: #ffffff;
  border: 1px solid #223e6e;
  color: #223e6e;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0;
  min-height: 32px;
  padding: 4px 12px;
  text-align: center;
  text-decoration: none;
}

#content a.erp-module:hover {
  background: #223e6e;
  border-color: #223e6e;
  color: #ffffff;
}

@media (max-width: 760px) {
  .erp-band {
    grid-template-columns: 1fr;
  }

  .erp-band h2 {
    border-bottom: 1px solid #e6eaf1;
    border-right: 0;
    min-height: 44px;
    padding: 0 16px;
  }
}

.erp-entries {
  display: grid;
  margin: 0;
  max-width: none;
}

#content a.erp-entry,
#content a.erp-entry:link,
#content a.erp-entry:visited,
.erp-entry,
.erp-entry:link,
.erp-entry:visited {
  align-items: center;
  background: #fff;
  border: 1px solid #e6e1d6;
  border-left: 3px solid #223e6e;
  color: #223e6e;
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
  text-decoration: none;
}

#content .erp-sheet a.erp-entry,
#content .erp-sheet a.erp-entry:link,
#content .erp-sheet a.erp-entry:visited {
  border: 0;
  border-bottom: 1px solid #e6eaf1;
  border-radius: 0;
  font-size: 14px;
  padding: 8px 16px;
}

#content .erp-sheet .erp-entries a.erp-entry:last-child {
  border-bottom: 0;
}

#content a.erp-entry:hover,
.erp-entry:hover {
  background: #f3f6fb;
}

.erp-entry strong {
  color: #223e6e;
  font-size: 14px;
  letter-spacing: 0;
}

.erp-entry span {
  color: #223e6e;
  font-size: 13px;
  letter-spacing: 0.14em;
}

#content .erp-kicker a,
#content .erp-kicker a:link,
#content .erp-kicker a:visited,
.erp-kicker a,
.erp-kicker a:link,
.erp-kicker a:visited {
  color: inherit;
  text-decoration: none;
}

.erp-kicker a:hover {
  color: #223e6e;
}

.erp-links {
  align-items: center;
}

.erp-links span {
  color: #727171;
  letter-spacing: 0.12em;
}

.erp-links a {
  color: #223e6e;
  text-decoration: none;
  border-bottom: 1px solid #223e6e;
  padding-bottom: 2px;
}

#content-main.app-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

#content-main.app-list .module {
  background: #fff;
  border: 1px solid #e6e1d6;
  margin: 0;
}

#content-main.app-list .module caption,
#content-main.app-list .module caption a.section:link,
#content-main.app-list .module caption a.section:visited {
  background: #223e6e;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  text-align: left;
}

#content-main.app-list table {
  width: 100%;
}

#content-main.app-list th,
#content-main.app-list td {
  background: #fff;
  border-bottom: 1px solid #f0ece4;
  padding: 8px 12px;
}

#content-main.app-list .addlink {
  color: #223e6e;
  font-size: 12px;
}

#changelist {
  background: #fff;
  border: 1px solid #e6e1d6;
}

#changelist table thead th {
  background: #223e6e;
  color: #ffffff;
}

#changelist table thead th a:link,
#changelist table thead th a:visited {
  color: #ffffff;
}

#changelist table thead th.sorted {
  background: #1a3158;
}

#result_list tbody tr:nth-child(even) {
  background: #f7f8fa;
}

#result_list tbody tr:hover {
  background: #e8eef6;
}

#changelist-filter {
  background: #f7f8fa;
  border-left: 1px solid #e4e7ee;
}

#changelist-filter h2,
#changelist-filter-header {
  background: #223e6e;
  color: #ffffff;
}

fieldset.module,
.inline-group {
  background: #fff;
  border: 1px solid #e6e1d6;
}

.module h2,
.inline-group h2 {
  background: #223e6e;
  color: #ffffff;
}

.submit-row {
  background: #f7f8fa;
  border: 1px solid #e6e1d6;
  border-top: 0;
}

.button,
input[type="submit"],
input[type="button"],
.submit-row input,
.object-tools a {
  border-radius: 2px;
}

#toolbar {
  background: #f7f8fa;
  border-bottom: 1px solid #e6e1d6;
}

.erp-hero p,
.erp-note {
  color: #555;
  max-width: 760px;
}

.erp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

.erp-card {
  display: block;
  background: #fff;
  border: 1px solid #e6e1d6;
  border-left: 3px solid #223e6e;
  padding: 16px 18px 14px;
  color: inherit;
  text-decoration: none;
}

.erp-card span,
.erp-card small {
  display: block;
  color: #666;
  font-size: 13px;
}

.erp-card strong {
  color: #223e6e;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.erp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.erp-filters .button,
.erp-report .button,
a.button {
  background: #223e6e;
  color: #ffffff;
  padding: 8px 12px;
  text-decoration: none;
}

.erp-report table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.erp-report th,
.erp-report td {
  border-bottom: 1px solid #eee;
  padding: 8px;
  text-align: left;
}

.erp-report .num {
  text-align: right;
}

.kind-overdue td {
  color: #9b2c2c;
}

.kind-estimate td:nth-child(2) {
  color: #223e6e;
}

.erp-filters,
.erp-forecast {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
}

.fuel-day-actions {
  align-items: center;
  margin: 8px 0 16px;
}

.erp-list-print-head h1 {
  margin: 8px 0 0;
  font-size: 20px;
}

.erp-history {
  background: #fff;
  border: 1px solid #e4e0d6;
  border-top: 3px solid #223e6e;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.erp-history h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.erp-history table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.erp-history th,
.erp-history td {
  border-bottom: 1px solid #eee;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.erp-history .num {
  text-align: right;
}

.erp-filters input[type="text"],
.erp-filters input[type="date"] {
  margin-left: 4px;
}

.erp-forecast {
  display: block;
  max-width: 520px;
  background: #fff;
  padding: 12px;
}

.quote-visuals,
.line-preview,
.thumbs {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 6px;
}

.quote-visuals figure,
.line-preview figure,
.thumbs figure {
  margin: 0;
}

.quote-visuals img,
.line-preview img,
.thumb,
.thumbs img {
  height: 72px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #ddd;
}

.quote-visuals figcaption,
.line-preview figcaption,
.thumbs figcaption {
  font-size: 11px;
  text-align: center;
}

.missing {
  color: #9b2c2c;
  font-weight: 700;
}

.model-higoldproduct .form-row.field-product_image,
.model-higoldproduct .form-row.field-dimension_image {
  background: #fbf6ea;
}

#content fieldset.date-pair {
  align-items: flex-end;
  border-bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px 32px;
  margin-bottom: 0;
  padding: 10px 14px 2px;
}

#content fieldset.date-pair + fieldset.module {
  border-top: 0;
  margin-top: 0;
}

#content fieldset.date-pair > .form-row {
  border-bottom: 0;
  flex: 1 1 16rem;
  overflow: visible;
  padding: 2px 0 8px;
  width: auto;
}

#content fieldset.date-pair .form-row > div {
  align-items: center;
  display: flex;
  gap: 8px;
  width: auto;
}

#content fieldset.date-pair label {
  float: none;
  padding: 0;
  width: auto;
  white-space: nowrap;
}

#content fieldset.date-pair input,
#content fieldset.date-pair .readonly {
  box-sizing: border-box;
  height: 2.25rem;
  line-height: 2.25rem;
  max-width: 11rem;
  min-height: 2.25rem;
  width: 11rem;
}

#content fieldset.date-pair .field-doc_no {
  flex: 1.2 1 14rem;
}

#content fieldset.date-pair .field-doc_no .readonly {
  max-width: none;
  width: 100%;
}

#content fieldset.amount-row {
  align-items: flex-end;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px 32px;
  padding: 4px 14px 2px;
}

#content fieldset.amount-row > .form-row {
  border-bottom: 0;
  flex: 1 1 0;
  min-width: 0;
  padding: 2px 0 8px;
}

#content fieldset.amount-row .form-row > div {
  align-items: center;
  display: flex;
  gap: 8px;
  width: auto;
}

#content fieldset.amount-row label {
  float: none;
  padding: 0;
  white-space: nowrap;
  width: auto;
}

#content fieldset.amount-row .readonly,
#content fieldset.amount-row input {
  box-sizing: border-box;
  height: 2.25rem;
  line-height: 2.25rem;
  max-width: 11rem;
  min-height: 2.25rem;
  width: 11rem;
}

.inline-group td.field-product {
  min-width: 22rem;
}

.inline-group td.field-product .related-widget-wrapper,
.inline-group td.field-product .select2-container {
  min-width: 20rem;
  width: 20rem !important;
}

#content fieldset.quote-head {
  align-items: flex-end;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 14px;
  justify-content: flex-start;
}

#content fieldset.quote-head > .form-row {
  border-bottom: 0;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  overflow: visible;
  padding: 2px 0 8px;
  width: auto;
}

#content fieldset.quote-head .form-row > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  width: 100%;
}

#content fieldset.quote-head label {
  display: block;
  float: none;
  line-height: 1.3;
  margin: 0 0 4px;
  padding: 0;
  white-space: nowrap;
  width: auto;
}

#content fieldset.quote-head input,
#content fieldset.quote-head select,
#content fieldset.quote-head .readonly {
  box-sizing: border-box;
  height: 2.25rem;
  max-width: none;
  min-height: 2.25rem;
  width: 100%;
}

#content fieldset.quote-head .field-salesperson,
#content fieldset.quote-head .field-price_tier {
  flex: 0.62 1 6.5rem;
  max-width: 9.5rem;
}

#content fieldset.quote-head .field-customer {
  flex: 0 0 auto;
  max-width: 14rem;
  width: 14rem;
}

#content fieldset.quote-head .field-project_name {
  flex: 0 0 auto;
  max-width: 14rem;
  width: 14rem;
}

#content fieldset.quote-head .field-tier_multiplier {
  flex: 0 0 auto;
  max-width: 6rem;
  width: 6rem;
}

#content fieldset.quote-head .related-widget-wrapper {
  align-items: center;
  column-gap: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: none;
  min-height: 2.25rem;
  row-gap: 0;
  width: 100%;
}

#content fieldset.quote-head .related-widget-wrapper > select,
#content fieldset.quote-head .related-widget-wrapper > .select2-container {
  grid-column: 1;
  grid-row: 1 / span 2;
  max-width: none !important;
  min-width: 0;
  width: 100% !important;
}

#content fieldset.quote-head .related-widget-wrapper > .add-related {
  align-self: end;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

#content fieldset.quote-head .related-widget-wrapper > .change-related {
  align-self: start;
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

#content fieldset.quote-head .select2-container .select2-selection--single {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  height: 2.25rem;
}

#content fieldset.quote-head .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 2.05rem;
}

#content fieldset.quote-head .select2-container .select2-selection--single .select2-selection__arrow {
  height: 2.15rem;
}

#content fieldset.quote-head .related-widget-wrapper-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.model-higoldproduct .form-row.field-brand,
.model-fadioproduct .form-row.field-brand,
.model-higoldquote .form-row.field-brand,
.model-fadioquote .form-row.field-brand {
  display: none;
}

.erp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-print { margin: 0 0 16px; }
.company-print .company-name {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #223e6e;
  color: #223e6e;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
}
.company-print .company-sheet {
  margin: 0;
  color: #1c1c1c;
  font-size: 14px;
  line-height: 1.6;
}
.company-print .company-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}
.company-print .company-item {
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}
.company-print .company-item > span { color: #555; }
.company-print .company-sheet a { color: inherit; text-decoration: none; }

.object-tools a.erp-print {
  background: #223e6e;
  color: #fff;
  padding: 6px 12px;
  border-radius: 2px;
}

:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .object-tools a {
  border-radius: 2px;
  background-image: none;
  padding: 5px 12px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .button,
:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) input[type="submit"],
:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .submit-row input,
:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .submit-row a {
  padding: 5px 12px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
}

:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .submit-row input:not(.default),
:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .submit-row a.button {
  background: #fff;
  color: #223e6e;
  border: 1px solid #c5cedd;
}

:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .related-widget-wrapper-link {
  opacity: 1;
  filter: none;
  margin-left: 6px;
  font-size: 12px;
  line-height: 1.2;
  color: #223e6e;
  text-decoration: none;
}

:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .related-widget-wrapper-link img {
  display: none;
}

:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .related-widget-wrapper-link.add-related::after {
  content: "新增";
}

:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .related-widget-wrapper-link.change-related::after {
  content: "修改";
}

:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .related-widget-wrapper-link.delete-related,
:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .related-widget-wrapper-link.view-related {
  display: none;
}

:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .inline-group .add-row a.addlink,
:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .inline-group tr.add-row td a.addlink {
  background-image: none;
  padding: 6px 2px;
  font-size: 13px;
  color: #223e6e;
}

:is(
  body.model-higoldquote,
  body.model-fadioquote,
  body.model-quotation,
  body.model-customerorder
) .inline-deletelink {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  text-indent: 0;
  background: none;
  font-size: 12px;
  color: #5c6570;
}

.fuel-show {
  display: none;
}

.erp-report .fuel-edit {
  display: block;
  width: 100%;
  max-width: 18rem;
  margin: 2px 0;
  box-sizing: border-box;
}

@media print {
  body.fuel-print {
    page: fuel-sheet;
  }

  #container,
  #content {
    padding: 0;
  }

  #header,
  #nav-sidebar,
  .toggle-nav-sidebar,
  .breadcrumbs,
  .object-tools,
  #toolbar,
  #changelist-filter,
  #changelist-search,
  .paginator,
  .actions,
  .submit-row,
  .erp-filters,
  .erp-actions,
  #footer,
  .messagelist,
  .fuel-edit {
    display: none !important;
  }

  .fuel-show {
    display: inline !important;
  }

  #content,
  #content-main,
  #changelist {
    margin: 0;
    width: auto;
  }

  #changelist table,
  .erp-report table {
    width: 100%;
  }

  .erp-report .fuel-doc,
  .erp-report .fuel-date,
  .erp-report .fuel-date a {
    white-space: nowrap;
    word-break: keep-all;
  }

  .erp-report .fuel-doc {
    min-width: 13ch;
  }

  .erp-report .fuel-date {
    min-width: 11ch;
  }

  body.fuel-print .company-print {
    margin-bottom: 6px;
  }

  body.fuel-print .company-print .company-name {
    font-size: 14px;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
    padding-bottom: 2px;
  }

  body.fuel-print .company-print .company-sheet {
    font-size: 10px;
    line-height: 1.35;
  }

  body.fuel-print .erp-report h1,
  body.fuel-print #content h1 {
    font-size: 13px;
    margin: 2px 0 4px;
  }

  body.fuel-print .erp-report h2,
  body.fuel-print #content h2 {
    font-size: 11px;
    margin: 6px 0 2px;
  }

  body.fuel-print .erp-report p,
  body.fuel-print .erp-report table,
  body.fuel-print .erp-report th,
  body.fuel-print .erp-report td {
    font-size: 10px;
    line-height: 1.25;
  }

  body.fuel-print .erp-report th,
  body.fuel-print .erp-report td {
    padding: 2px 4px;
  }
}
