/* Saudi license plate — visual parity with Flutter widget */
.plate {
  --plate-bg: #2b2e37;
  --plate-logo-bg: #1f2229;
  --plate-border: rgba(255, 255, 255, 0.12);
  --plate-divider: rgba(255, 255, 255, 0.10);
  --plate-cell-divider: rgba(255, 255, 255, 0.05);
  --plate-text: #fff;
  --plate-empty: rgba(255, 255, 255, 0.10);
  --plate-radius: 10px;
  --plate-font: 'Tajawal', sans-serif;

  display: inline-flex;
  direction: rtl;
  background: var(--plate-bg);
  border: 1.2px solid var(--plate-border);
  border-radius: var(--plate-radius);
  overflow: hidden;
  height: 64px;
  font-family: var(--plate-font);
}

/* sections: letters (right), numbers (middle), logo (left) */
.plate-section {
  display: flex;
  flex-direction: column;
  flex: 4;
  min-width: 140px;
}

.plate-row {
  display: flex;
  flex: 1;
  align-items: center;
}

/* horizontal divider between arabic and english rows */
.plate-section .plate-row:first-child {
  border-bottom: 1px solid var(--plate-divider);
}

/* individual character cell */
.plate-cell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--plate-text);
  min-width: 0;
  padding: 0 6px;
  letter-spacing: 1px;
}

/* thin vertical line between cells */
.plate-cell + .plate-cell {
  border-right: 0.5px solid var(--plate-cell-divider);
}

.plate-cell.empty {
  color: var(--plate-empty);
}

/* vertical divider between sections */
.plate-divider {
  width: 1px;
  background: var(--plate-divider);
}

/* KSA logo area */
.plate-logo {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plate-logo-bg);
  flex-shrink: 0;
  padding: 8px 6px;
}

.plate-logo svg {
  width: 22px;
  height: auto;
  fill: var(--plate-text);
  opacity: 0.85;
}

/* compact variant for inline/table use */
.plate.plate-sm {
  height: 52px;
}
.plate.plate-sm .plate-section {
  min-width: 110px;
}
.plate.plate-sm .plate-cell {
  font-size: 13px;
  padding: 0 4px;
}
.plate.plate-sm .plate-logo {
  width: 34px;
}
.plate.plate-sm .plate-logo svg {
  width: 17px;
}
