/* دستیار شناسه ارزش TSC — مکمل tariff-page.css */
@import url("declaration-page.css");

.page-tsc .nav__cta.is-active {
  background: var(--navy) !important;
  color: var(--white) !important;
}

.tsc-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.tsc-mode-tab {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--muted);
}
.tsc-mode-tab.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.tsc-source-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(85, 201, 195, 0.15);
  color: var(--teal-d);
  margin-right: 0.35rem;
}
.tsc-source-badge--bridge {
  background: rgba(255, 152, 0, 0.12);
  color: #b45309;
}

.tsc-results-wrap {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.tsc-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.tsc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.tsc-table th,
.tsc-table td {
  padding: 0.6rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tsc-table th {
  background: var(--bg);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
}
.tsc-table tr.is-selected {
  background: rgba(85, 201, 195, 0.12);
}
.tsc-table tr[data-selectable] {
  cursor: pointer;
}
.tsc-table tr[data-selectable]:hover {
  background: rgba(0, 77, 77, 0.04);
}
.tsc-code {
  font-family: monospace;
  direction: ltr;
  white-space: nowrap;
}
.tsc-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.tsc-calc-panel {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(85, 201, 195, 0.06), var(--white));
}
.tsc-calc-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--navy);
}
.tsc-compare {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.tsc-compare--under { background: #fff3e0; color: #e65100; }
.tsc-compare--over { background: #e3f2fd; color: #1565c0; }
.tsc-compare--ok { background: #e8f5e9; color: #2e7d32; }

.tsc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .tsc-table { display: block; overflow-x: auto; }
}
