/* ملف الشركة في صفحة السهم (company_info.php). يعتمد متغيرات الألوان في nesbh-home.css. */
.nbc-wrap {
  max-width: 980px;
  margin: 18px auto 8px;
  text-align: right;
  direction: rtl;
  font-family: var(--nb-font, Tahoma, Arial, sans-serif);
  color: var(--nb-ink, #2f3338);
  font-size: 14px;
  line-height: 1.7;
}
.nbc-wrap * { box-sizing: border-box; font-family: inherit !important; }
.nbc-loading, .nbc-empty { padding: 18px; text-align: center; color: var(--nb-muted, #6b7178); }
.nbc-loading::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px;
  border: 2px solid var(--nb-line, #e5e1d9); border-top-color: var(--nb-orange, #f7941d); border-radius: 50%;
  animation: nbc-spin .8s linear infinite;
}
@keyframes nbc-spin { to { transform: rotate(360deg); } }

.nbc {
  background: var(--nb-card, #fff);
  border: 1px solid var(--nb-line, #e5e1d9);
  border-radius: 14px;
  box-shadow: var(--nb-shadow, 0 8px 24px rgba(40, 32, 20, .1));
  overflow: hidden;
}
.nbc-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 12px;
  background: linear-gradient(180deg, #fff8ee, #fff);
  border-bottom: 1px solid var(--nb-line, #e5e1d9);
}
.nbc-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.nbc-head h2 small { font-size: 13px; color: var(--nb-muted, #6b7178); font-weight: 400; margin-right: 6px; }
.nbc-sub { margin: 2px 0 0; color: var(--nb-muted, #6b7178); font-size: 13px; }
.nbc-price { text-align: left; }
.nbc-price strong { font-size: 26px; font-weight: 800; }
.nbc-price span { color: var(--nb-muted, #6b7178); font-size: 12px; }
.nbc-price em { display: block; font-style: normal; font-weight: 700; direction: ltr; }
.nbc-price.nb-up em { color: var(--nb-up, #138a43); }
.nbc-price.nb-down em { color: var(--nb-down, #c8312f); }

.nbc-tabs {
  display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px 0;
  border-bottom: 1px solid var(--nb-line, #e5e1d9);
  scrollbar-width: thin;
}
.nbc-tabs button {
  flex: 0 0 auto; border: 0; background: none; cursor: pointer;
  padding: 9px 14px; font: inherit; font-weight: 700; color: var(--nb-muted, #6b7178);
  border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0;
}
.nbc-tabs button:hover { color: var(--nb-ink, #2f3338); background: #faf6ef; }
.nbc-tabs button.is-on { color: var(--nb-orange-dark, #d97b0c); border-bottom-color: var(--nb-orange, #f7941d); }
.nbc-tabs button b {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-right: 4px; border-radius: 10px;
  background: #f1ece3; color: var(--nb-ink, #2f3338); font-size: 11px; line-height: 18px;
}
.nbc-pane { padding: 14px 16px 6px; }
.nbc-pane[hidden] { display: none; }

.nbc-card { border: 1px solid var(--nb-line, #e5e1d9); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; background: #fff; }
.nbc-card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.nbc-card h4 { margin: 12px 0 6px; font-size: 13px; }
.nbc-note { color: var(--nb-muted, #6b7178); font-size: 12.5px; margin: 6px 0 0; }
.nbc-note a, .nbc-foot a, .nbc-about a { color: var(--nb-blue, #4f7fcf); }

.nbc-spark { display: block; width: 100%; height: 130px; }
.nbc-spark-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.nbc-spark.is-up .nbc-spark-line { stroke: var(--nb-up, #138a43); }
.nbc-spark.is-down .nbc-spark-line { stroke: var(--nb-down, #c8312f); }
.nbc-spark-fill { stroke: none; opacity: .10; }
.nbc-spark.is-up .nbc-spark-fill { fill: var(--nb-up, #138a43); }
.nbc-spark.is-down .nbc-spark-fill { fill: var(--nb-down, #c8312f); }

.nbc-perf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.nbc-perf div { border: 1px solid var(--nb-line, #e5e1d9); border-radius: 10px; padding: 8px; text-align: center; background: #fff; }
.nbc-perf span { display: block; font-size: 12px; color: var(--nb-muted, #6b7178); }
.nbc-perf strong { font-size: 16px; direction: ltr; display: inline-block; }

.nbc-range-bar { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--nb-up, #138a43), #e9c46a, var(--nb-down, #c8312f)); margin: 14px 4px 8px; }
.nbc-range-bar i { position: absolute; top: -5px; width: 4px; height: 18px; margin-right: -2px; background: var(--nb-ink, #2f3338); border-radius: 2px; }
.nbc-range-k { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--nb-muted, #6b7178); }

.nbc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 18px; margin: 0; }
.nbc-grid div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--nb-line, #e5e1d9); }
.nbc-grid dt { color: var(--nb-muted, #6b7178); font-size: 13px; }
.nbc-grid dd { margin: 0; font-weight: 700; text-align: left; }

.nbc-news { list-style: none; margin: 0; padding: 0; }
.nbc-news li { padding: 10px 0; border-bottom: 1px solid #f1ece3; }
.nbc-news li:last-child { border-bottom: 0; }
.nbc-news a { color: var(--nb-ink, #2f3338); font-weight: 700; text-decoration: none; }
.nbc-news a:hover { color: var(--nb-orange-dark, #d97b0c); text-decoration: underline; }
.nbc-meta { display: block; font-size: 12px; color: var(--nb-muted, #6b7178); margin-top: 2px; }

.nbc-own { display: flex; height: 22px; border-radius: 11px; overflow: hidden; background: #eee; margin: 6px 0 10px; }
.nbc-own span { display: block; height: 100%; }
.nbc .o1 { background: var(--nb-orange, #f7941d); }
.nbc .o2 { background: var(--nb-blue, #4f7fcf); }
.nbc .o3 { background: var(--nb-green, #8fbf2f); }
.nbc-own-k { list-style: none; margin: 0; padding: 0; }
.nbc-own-k li { padding: 4px 0; }
.nbc-own-k i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 6px; vertical-align: -1px; }
.nbc-own-k strong { margin-right: 6px; }

.nbc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nbc-table th, .nbc-table td { padding: 7px 6px; border-bottom: 1px solid #f1ece3; text-align: right; }
.nbc-table th { color: var(--nb-muted, #6b7178); font-weight: 700; background: #faf6ef; }

.nbc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.nbc-bars h4 { margin: 4px 0 8px; }
.nbc-bar-row { display: grid; grid-template-columns: 62px 1fr 92px; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.nbc-bar { height: 12px; background: #f3efe8; border-radius: 6px; overflow: hidden; }
.nbc-bar i { display: block; height: 100%; background: var(--nb-orange, #f7941d); border-radius: 6px; }
.nbc-bar i.neg { background: var(--nb-down, #c8312f); }
.nbc-bar-v { text-align: left; font-weight: 700; }

.nbc-target { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.nbc-target div { border: 1px solid var(--nb-line, #e5e1d9); border-radius: 10px; padding: 10px; text-align: center; }
.nbc-target span { display: block; font-size: 12px; color: var(--nb-muted, #6b7178); }
.nbc-target strong { display: block; font-size: 18px; }
.nbc-target em { display: block; font-style: normal; font-size: 12px; }

.nbc-officers { margin: 0; padding: 0 18px 0 0; font-size: 13px; text-align: left; }
.nbc-about details { margin-top: 10px; }
.nbc-about summary { cursor: pointer; font-weight: 700; color: var(--nb-blue, #4f7fcf); }
.nbc-about details p { text-align: left; font-size: 13px; color: #444; }

.nbc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 10px 16px 14px; font-size: 12px; color: var(--nb-muted, #6b7178); border-top: 1px solid var(--nb-line, #e5e1d9); }

@media (max-width: 720px) {
  .nbc-perf { grid-template-columns: repeat(3, 1fr); }
  .nbc-two, .nbc-target { grid-template-columns: 1fr 1fr; }
  .nbc-head h2 { font-size: 19px; }
}
@media (max-width: 460px) {
  .nbc-two { grid-template-columns: 1fr; }
  .nbc-pane { padding: 12px 10px 4px; }
  .nbc-table { font-size: 12px; }
}

/* عنوان فاصل بين ملف الشركة والشارتات */
.nbc-charts-title {
  max-width: 980px; margin: 22px auto 6px; padding: 0 4px; text-align: right; direction: rtl;
  font: 800 18px var(--nb-font, Tahoma, Arial, sans-serif); color: var(--nb-ink, #2f3338);
  border-right: 4px solid var(--nb-orange, #f7941d); padding-right: 10px;
}
.nbc-summary ul { margin: 0; padding: 0 18px 0 0; }
.nbc-summary li { padding: 3px 0; font-weight: 700; }
.nbc-table td small { color: var(--nb-muted, #6b7178); font-size: 11px; }
@media (max-width: 720px) { .nbc-table { display: block; overflow-x: auto; } }
