@import url("//fonts.googleapis.com/css?family=Montserrat:300,400,700&display=swap");
@import url("//fonts.googleapis.com/css?family=Tajawal:300,400,700&display=swap&subset=arabic");

@font-face {
  font-family: 'Gotham';
  src: url("./fonts/Gotham-Medium.eot");
  src: url("./fonts/Gotham-Medium.eot?#iefix") format('embedded-opentype'),
    url("./fonts/Gotham-Medium.woff2") format('woff2'),
    url("./fonts/Gotham-Medium.woff") format('woff'),
    url("./fonts/Gotham-Medium.ttf") format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url("./fonts/Gotham-Book.eot");
  src: url("./fonts/Gotham-Book.eot?#iefix") format('embedded-opentype'),
    url("./fonts/Gotham-Book.woff2") format('woff2'),
    url("./fonts/Gotham-Book.woff") format('woff'),
    url("./fonts/Gotham-Book.ttf") format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url("./fonts/HelveticaNeueLTArabic-Bold.eot");
  src:
    url("./fonts/HelveticaNeueLTArabic-Bold.woff2") format('woff2'),
    url("./fonts/HelveticaNeueLTArabic-Bold.woff") format('woff'),
    url("./fonts/HelveticaNeueLTArabic-Bold.ttf") format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url("./fonts/HelveticaNeueLTArabic-Light.eot");
  src:
    url("./fonts/HelveticaNeueLTArabic-Light.woff2") format('woff2'),
    url("./fonts/HelveticaNeueLTArabic-Light.woff") format('woff'),
    url("./fonts/HelveticaNeueLTArabic-Light.ttf") format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url("./fonts/HelveticaNeueLTArabic-Roman.eot");
  src:
    url("./fonts/HelveticaNeueLTArabic-Roman.woff2") format('woff2'),
    url("./fonts/HelveticaNeueLTArabic-Roman.woff") format('woff'),
    url("./fonts/HelveticaNeueLTArabic-Roman.ttf") format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Base */
:root {
  --brand: #ff7a2f;
  --bg: #0f2539;
  --text: #e7f0f7;
  --muted: #9bb0c2;
  --table-head: #0e3a5a;
  --table-row: #112b42;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Gotham', 'Montserrat', 'Tajawal', 'Helvetica', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #123;
  background: #fff;
}

body[lang="ar"] {
  direction: rtl;
  text-align: right;
  /* use Helvetica from fonts folder for Arabic text */
  font-family: 'Helvetica', 'Gotham', 'Montserrat', 'Tajawal', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body[lang="en"] {
  direction: ltr;
  text-align: left;
}

/* Page container */
.table-wrap {
  max-height: 90vh;
  padding: 8px 12px 20px;
  overflow: auto;
}

/* wrapper for each generated table so multiple tables stack nicely */
.table-block {
  margin: 12px 0;
  background: transparent;
  /* border-radius: 6px; */
  overflow: hidden;
  box-shadow: none;
}

/* title above each table block if present in CSV */
.table-title {
  font-weight: 700;
  color: #003C71;
  margin: 8px 4px 6px;
}

/* table */
table.data {
  width: 100%;
  border-collapse: collapse;
}

table.data thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #003C71;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  padding: 14px 16px;
  letter-spacing: 0.02em;
}

table.data tbody td {
  padding: 14px 16px;
  border-bottom: none;
  height: 56px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.data tbody tr:nth-child(odd) {
  background: transparent;
}

table.data tbody tr:nth-child(even) {
  background: #f5f9ff;
}

.is-bold {
  font-weight: 700;
}

.is-italic {
  font-style: italic;
}

/* responsive */
@media (max-width: 640px) {

  table.data thead th,
  table.data tbody td {
    white-space: nowrap;
  }
}

/* header alignment helpers */
table.data thead tr th:first-child {
  text-align: left !important;
}

/* table.data thead tr th:last-child {
  text-align: right !important;
} */

.tables table th:not(:first-child):not(:last-child) {
  text-align: center;
}

/* top toolbar aligns button to the right */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
}

.title {
  font-weight: 500;
  color: #003C71;
  font-size: 32px;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}

/* Language toggle */
.language-toggle {
  display: flex;
  gap: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f5f9ff;
  padding: 2px;
}

.lang-btn {
  padding: 8px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #003C71;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: #e8eef7;
}

.lang-btn.active {
  background: #003C71;
  color: #fff;
}

/* download button */
.download {
  display: inline-block;
  padding: 0;
  margin: 8px 12px;
  border: none;
  background: transparent;
}

.download:hover {
  filter: brightness(0.96);
}

.download img {
  display: block;
  width: 119px;
  height: 46px;
}


.ar-ae table.data thead tr th:first-child{
  text-align: right !important;
}

.ar-ae table.data thead tr th:last-child{
  text-align: left !important;
}

.vlgc div#tables-container .table-block:first-child table tbody tr:last-child{
  background-color: #ffffff !important;
  color:#ff7a2f;
  font-weight: 700;
}

.note{
  background-color: #ffffff !important;
}

td.emph {
  direction: ltr !important;
}

tr.note>td {
    padding: 5px !important;
    height: unset !important;
}