.afcas-fw, .afcas-fw * { box-sizing: border-box; }
.afcas-fw {
  --afcas-red: #c8102e;
  --afcas-ink: #1a1a1a;
  --afcas-gray: #6b6b6b;
  --afcas-line: #e4e4e4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--afcas-ink);
  border: 1px solid var(--afcas-line);
}
.afcas-fw__topline {
  height: 3px;
  background: var(--afcas-red);
}
.afcas-fw__layout {
  display: flex;
  align-items: flex-start;
}

/* Sidebar */
.afcas-fw__sidebar {
  width: 300px;
  flex: 0 0 300px;
  padding: 24px 20px;
  border-right: 1px solid var(--afcas-line);
}
.afcas-fw__search {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
  font-family: inherit;
}
.afcas-fw__count {
  font-size: 12.5px;
  color: var(--afcas-gray);
  margin-bottom: 18px;
}
.afcas-fw__tabs {
  display: flex;
  flex-direction: column;
}
.afcas-fw__tab {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 9px 4px;
  font-size: 14px;
  color: var(--afcas-ink);
  cursor: pointer;
  border-left: 3px solid transparent;
  line-height: 1.35;
  transition: color .15s ease;
}
.afcas-fw__tab:hover,
.afcas-fw__tab:focus,
.afcas-fw__tab:focus-visible,
.afcas-fw__tab:active {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent;
  box-shadow: none !important;
  outline: none;
  color: var(--afcas-red);
  text-decoration: none;
}
.afcas-fw__tab.is-active {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--afcas-red);
  font-weight: 600;
  border-left-color: var(--afcas-red);
  padding-left: 10px;
}
.afcas-fw__tab.is-active:hover,
.afcas-fw__tab.is-active:focus {
  border-left-color: var(--afcas-red);
}
.afcas-fw__tab .afcas-fw__tabcount {
  color: var(--afcas-gray);
  font-weight: 400;
  font-size: 12.5px;
}

/* Content */
.afcas-fw__content {
  flex: 1 1 auto;
  padding: 28px 32px 40px;
  min-width: 0;
}
.afcas-fw__panelhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--afcas-ink);
  padding-bottom: 14px;
  margin-bottom: 4px;
}
.afcas-fw__title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 26px;
  margin: 0;
}
.afcas-fw__itemcount {
  font-size: 13px;
  color: var(--afcas-gray);
  white-space: nowrap;
  margin-left: 16px;
}
.afcas-fw__note {
  font-size: 13px;
  color: var(--afcas-gray);
  background: #faf7f2;
  border: 1px solid var(--afcas-line);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 16px 0 6px;
}
.afcas-fw__list { margin-top: 4px; }
.afcas-fw__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--afcas-line);
}
.afcas-fw__item:last-child { border-bottom: none; }
.afcas-fw__itemmain { min-width: 0; }
.afcas-fw__code {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--afcas-gray);
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  margin-bottom: 4px;
}
.afcas-fw__name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}
.afcas-fw__desc {
  font-size: 13.5px;
  color: var(--afcas-gray);
}
.afcas-fw__price {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  text-align: right;
  flex: 0 0 auto;
}
.afcas-fw__empty {
  padding: 40px 0;
  text-align: center;
  color: var(--afcas-gray);
  font-size: 14px;
}

@media (max-width: 780px) {
  .afcas-fw__layout { flex-direction: column; }
  .afcas-fw__sidebar {
    width: 100% !important; flex: 1 1 auto !important; border-right: none; border-bottom: 1px solid var(--afcas-line);
  }
  .afcas-fw__tabs { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .afcas-fw__content { padding: 24px 18px 32px; }
}
