html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --brand-primary: #0d6efd;
  --brand-primary-dark: #0a58ca;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  background-color: #f5f7fa;
}

.card {
  border: none;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
}

.footer {
  font-size: 0.8rem;
  flex-shrink: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* E-İmza doğrulama ekranı (KamuSM test suite benzeri görünüm) */
.signature-screen {
  overflow: hidden;
  background-color: #fff;
}

/* Detay panelindeki yüksek içerik (fatura iframe'i) tabloyu saran kaydırma
   bağlamından taşmasın diye tablo genişliği yüzdesel tutulup taşma serbest bırakılır. */
.signature-screen .table-responsive {
  overflow: visible;
}

.signature-screen .signature-preview-frame {
  display: block;
  width: 100%;
  height: 800px;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  background-color: #fff;
}

.signature-screen-header {
  letter-spacing: 0.05rem;
}

.signature-tree-table thead th {
  vertical-align: middle;
}

.signature-tree-table .checker-results li {
  padding: 0.1rem 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
}

.signature-tree-table .signed-properties dt {
  font-weight: 600;
}

.signature-tree-table .signed-properties dt em {
  font-weight: 400;
  color: var(--bs-secondary-color);
}

/* Doğrulama bulguları: imza satırının hemen altında renkli bildirim şeridi. */
.signature-note td {
  border-top: 0;
  border-left: 4px solid transparent;
}

.signature-note-error td {
  background-color: #fdeaec;
  border-left-color: #dc3545;
  color: #842029;
}

.signature-note-warning td {
  background-color: #fff8e1;
  border-left-color: #ffc107;
  color: #664d03;
}

.signature-note td > div + div {
  margin-top: 0.25rem;
}

/* Detay sekmeleri */
.signature-tree-table .nav-tabs .nav-link {
  color: var(--bs-secondary-color);
  font-weight: 500;
}

.signature-tree-table .nav-tabs .nav-link.active {
  color: var(--bs-primary);
  font-weight: 600;
}

.signature-tree-table .certificate-info th {
  font-weight: 600;
}
