:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fb;
  color: #172033;
}

body {
  margin: 0;
}

.shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px;
}

.shell.wide {
  max-width: 1320px;
}

.hero {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 12px 40px rgba(23, 32, 51, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  color: #1f6feb;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: 42px;
}

h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.cards a {
  display: block;
  padding: 20px;
  border-radius: 14px;
  background: #172033;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e6ebf2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.stat-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6ebf2;
}

a.stat-card {
  color: inherit;
  text-decoration: none;
}

.stat-card.warning-card {
  border-color: #f79009;
  background: #fff8ed;
}

.stat-card.danger-card {
  border-color: #b42318;
  background: #fde2e1;
}

.stat-card span {
  color: #5f6f89;
  font-weight: 700;
}

.stat-card strong {
  font-size: 24px;
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid #d7deea;
  border-radius: 12px;
  font-size: 16px;
}

.panel {
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #e6ebf2;
  text-align: left;
  vertical-align: top;
}

th {
  color: #5f6f89;
  font-size: 13px;
  text-transform: uppercase;
}

code {
  font-size: 12px;
}

.actions {
  display: flex;
  gap: 8px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button-row.compact {
  gap: 6px;
  margin-top: 8px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.btn.approve {
  background: #198754;
}

.btn.reject {
  background: #b42318;
}

.btn.warning {
  background: #f79009;
}

.btn.small {
  padding: 6px 10px;
  font-size: 12px;
}

.btn.primary {
  background: #1f6feb;
}

.btn.secondary {
  background: #5f6f89;
  text-decoration: none;
}

.btn.nav-root {
  background: #b42318;
  text-decoration: none;
}

.btn.nav-alert {
  background: #f79009;
  text-decoration: none;
}

.btn.nav-link {
  background: #fdb022;
  color: #172033;
  text-decoration: none;
}

.btn.nav-device {
  background: #1f6feb;
  text-decoration: none;
}

.btn.nav-pop {
  background: #5f6f89;
  text-decoration: none;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff3cd;
  color: #7a5b00;
  font-weight: 700;
}

.badge.success {
  background: #ddf4e8;
  color: #0f5132;
}

.badge.warning {
  background: #fff3cd;
  color: #7a5b00;
}

.payment-status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.payment-status-success {
  background: #ddf4e8;
  color: #0f5132;
}

.payment-status-pending {
  background: #fff3cd;
  color: #7a5b00;
}

.payment-status-danger {
  background: #fde2e1;
  color: #8a1f17;
}

.payment-status-other {
  background: #e6ebf2;
  color: #344054;
}

.santral-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.santral-status-answered,
.santral-direction-in {
  background: #ddf4e8;
  color: #0f5132;
}

.santral-status-missed {
  background: #fde2e1;
  color: #8a1f17;
}

.santral-status-busy,
.santral-direction-out {
  background: #fff3cd;
  color: #7a5b00;
}

.santral-status-error {
  background: #e6ebf2;
  color: #344054;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.status-open {
  background: #b42318;
}

.status-progress {
  background: #f79009;
}

.status-closed {
  background: #198754;
}

.status-other {
  background: #5f6f89;
}

.severity-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.severity-critical {
  background: #fde2e1;
  color: #8a1f17;
}

.severity-warning {
  background: #fff3cd;
  color: #7a5b00;
}

.severity-info {
  background: #e6ebf2;
  color: #344054;
}

.action-type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.action-type-acil {
  background: #fde2e1;
  color: #8a1f17;
}

.action-type-saha_mudahalesi {
  background: #ffead5;
  color: #9a3412;
}

.action-type-noc_kontrol {
  background: #dbeafe;
  color: #1d4ed8;
}

.action-type-kapasite_frekans {
  background: #ede9fe;
  color: #6d28d9;
}

.action-type-izleme {
  background: #e6ebf2;
  color: #344054;
}

.priority-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.priority-urgent {
  background: #fde2e1;
  color: #8a1f17;
}

.priority-high {
  background: #fff3cd;
  color: #7a5b00;
}

.priority-normal {
  background: #e6ebf2;
  color: #344054;
}

.inline-form {
  display: flex;
  gap: 6px;
  align-items: center;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}

.filter-form label {
  display: grid;
  gap: 4px;
  color: #5f6f89;
  font-size: 13px;
  font-weight: 700;
}

.filter-form input,
.filter-form select {
  padding: 7px 9px;
  border: 1px solid #d7deea;
  border-radius: 8px;
}

.bulk-warning {
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #ffd6a7;
  border-radius: 14px;
  background: #fff8ed;
}

.bulk-warning h2,
.bulk-warning h3 {
  margin-top: 0;
}

.note-row td {
  background: #f8fafc;
}

.note-block {
  display: grid;
  gap: 8px;
}

.note-list {
  margin: 0;
  padding-left: 18px;
}

.note-form {
  flex-wrap: wrap;
}

.note-form input,
.note-form select {
  padding: 7px 9px;
  border: 1px solid #d7deea;
  border-radius: 8px;
}

.small-text {
  font-size: 12px;
}

.alert {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.alert.error {
  background: #fde2e1;
  color: #8a1f17;
}

.alert.warning {
  background: #fff3cd;
  color: #7a5b00;
}

.alert.success {
  background: #ddf4e8;
  color: #0f5132;
}

.empty {
  margin: 0;
  color: #5f6f89;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  margin: 0;
}

dt {
  color: #5f6f89;
  font-weight: 700;
}

dd {
  margin: 0;
}

.plain-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  display: grid;
  gap: 4px;
}

.plain-list span {
  color: #5f6f89;
}

.payload {
  display: block;
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: #5f6f89;
  font-weight: 700;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  padding: 12px 14px;
  border: 1px solid #d7deea;
  border-radius: 12px;
  color: #172033;
  font-size: 16px;
  font-family: inherit;
}
