:root {
  --zemin: #d4d0c8;
  --zemin-acik: #ececec;
  --panel: #ffffff;
  --lacivert: #1f3a5f;
  --kenar: #808080;
  --kenar-acik: #b0b0b0;
  --kenar-koyu: #404040;
  --secili: #cfe0f5;
  --az: #fff2a8;
  --doldu: #f6b3b3;
  --doldu-yazi: #7a0000;
  --durak: #dbe5ee;
  --yazi: #000000;
  --soluk: #4a4a4a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--zemin);
  color: var(--yazi);
  font-family: Tahoma, "Segoe UI", Verdana, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

[hidden] {
  display: none !important;
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button,
.dugme {
  display: inline-block;
  background: var(--zemin);
  border: 1px solid;
  border-color: #ffffff var(--kenar-koyu) var(--kenar-koyu) #ffffff;
  border-radius: 0;
  box-shadow: inset -1px -1px 0 var(--kenar), inset 1px 1px 0 var(--zemin-acik);
  padding: 4px 12px;
  min-height: 26px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

button:active:not(:disabled),
.dugme:active {
  border-color: var(--kenar-koyu) #ffffff #ffffff var(--kenar-koyu);
  box-shadow: inset 1px 1px 0 var(--kenar), inset -1px -1px 0 var(--zemin-acik);
  padding-top: 5px;
  padding-bottom: 3px;
}

button:hover:not(:disabled),
.dugme:hover {
  background-color: #dedad2;
}

button:disabled {
  color: #77746c;
  cursor: default;
}

button:focus-visible,
.dugme:focus-visible {
  outline: 2px dotted #000000;
  outline-offset: -5px;
}

button.varsayilan {
  border-color: #000000;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--kenar);
  font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="tel"],
select {
  background: #ffffff;
  border: 1px solid;
  border-color: var(--kenar-koyu) var(--kenar-acik) var(--kenar-acik) var(--kenar-koyu);
  border-radius: 0;
  padding: 3px 6px;
  height: 27px;
}

input:focus,
select:focus {
  outline: 2px solid var(--lacivert);
  outline-offset: -1px;
}

input:disabled,
select:disabled {
  background: var(--zemin-acik);
  color: #5c5c5c;
}

input[readonly] {
  background: var(--zemin-acik);
}

input.hatali {
  background: #fde4e4;
  border-color: var(--doldu-yazi);
}

input[type="checkbox"],
input[type="radio"] {
  margin: 0;
  width: 15px;
  height: 15px;
}

a {
  color: var(--lacivert);
}

.baslik-cubugu {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--lacivert);
  color: #ffffff;
  padding: 4px 10px;
  min-height: 28px;
  flex: 0 0 auto;
}

.baslik-cubugu .program-adi {
  font-weight: bold;
  white-space: nowrap;
}

.baslik-cubugu .isletme-adi {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.baslik-cubugu .kullanici-adi {
  white-space: nowrap;
}

.baslik-cubugu .saat {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.arac-cubugu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  border-bottom: 1px solid var(--kenar);
  flex: 0 0 auto;
}

.arac-cubugu button {
  min-height: 40px;
  min-width: 128px;
  font-size: 14px;
}

.arac-cubugu button:active:not(:disabled) {
  padding-top: 5px;
}

.tus {
  display: inline-block;
  font-weight: bold;
  color: var(--lacivert);
  margin-right: 6px;
}

button:disabled .tus {
  color: inherit;
}

.arac-bosluk {
  flex: 1 1 auto;
}

.arac-ayrac {
  align-self: stretch;
  width: 2px;
  margin: 2px 4px;
  border-left: 1px solid var(--kenar);
  border-right: 1px solid #ffffff;
}

.suzgec {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  background: var(--zemin-acik);
  border: 1px solid var(--kenar);
  border-bottom: 0;
  flex: 0 0 auto;
}

.suzgec label {
  white-space: nowrap;
}

.suzgec .arama {
  width: 280px;
  max-width: 100%;
}

.suzgec-bilgi {
  color: var(--soluk);
  white-space: nowrap;
}

.suzgec-bilgi.bulunamadi {
  padding: 2px 6px;
  border: 1px solid var(--doldu-yazi);
  background: var(--doldu);
  color: var(--doldu-yazi);
  font-weight: bold;
}

.tablo-kutu {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: var(--panel);
  border: 1px solid;
  border-color: var(--kenar-koyu) var(--kenar-acik) var(--kenar-acik) var(--kenar-koyu);
}

.tablo-kutu:focus {
  outline: 2px solid var(--lacivert);
  outline-offset: -2px;
}

table.veri {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--panel);
}

table.veri th,
table.veri td {
  border-right: 1px solid var(--kenar-acik);
  border-bottom: 1px solid var(--kenar-acik);
  padding: 3px 6px;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

table.veri th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--zemin);
  border-bottom-color: var(--kenar);
  border-right-color: var(--kenar);
  font-weight: bold;
  user-select: none;
}

table.veri th.siralanir {
  cursor: pointer;
}

table.veri th.artan::after,
table.veri th.azalan::after {
  content: "";
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

table.veri th.artan::after {
  border-bottom: 5px solid #000000;
}

table.veri th.azalan::after {
  border-top: 5px solid #000000;
}

table.veri tbody tr {
  height: 25px;
}

table.veri.secilir tbody tr.satir {
  cursor: default;
  user-select: none;
}

table.veri td {
  scroll-margin-top: 30px;
}

table.veri td.sag,
table.veri th.sag {
  text-align: right;
}

table.veri td.orta,
table.veri th.orta {
  text-align: center;
}

table.veri td.sayi {
  font-variant-numeric: tabular-nums;
}

table.veri td.kisalt {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.veri td.kisalt-genis {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.veri td.sar {
  white-space: normal;
  overflow-wrap: anywhere;
}

table.veri td.kalin {
  font-weight: bold;
}

table.veri td.sure {
  font-weight: bold;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

table.veri tr.satir-az td {
  background: var(--az);
}

table.veri tr.satir-doldu td {
  background: var(--doldu);
  color: var(--doldu-yazi);
}

table.veri tr.satir-duraklatildi td {
  background: var(--durak);
}

table.veri tr.satir-bitti td {
  background: var(--doldu);
  color: var(--doldu-yazi);
}

table.veri tr.satir-soluk td {
  color: #6a6a6a;
}

table.veri tr.secili td {
  background: var(--secili);
  box-shadow: inset 0 2px 0 var(--lacivert), inset 0 -2px 0 var(--lacivert);
}

table.veri tr.secili.satir-az td.durum-hucre {
  background: var(--az);
}

table.veri tr.secili.satir-doldu td.durum-hucre {
  background: var(--doldu);
}

table.veri tr.secili.satir-duraklatildi td.durum-hucre {
  background: var(--durak);
}

table.veri tr.secili.satir-bitti td.durum-hucre {
  background: var(--doldu);
}

table.veri tr.satir-doldu:not(.secili) td,
table.veri tr.secili.satir-doldu td.durum-hucre {
  animation: yanip-sonme 1s steps(1, end) infinite;
}

@keyframes yanip-sonme {
  0% {
    background-color: var(--doldu);
  }
  50% {
    background-color: #ffffff;
  }
}

table.veri tr.bos-satir td {
  text-align: center;
  padding: 28px 10px;
  color: var(--soluk);
  border-right: 0;
  white-space: normal;
}

table.veri tr.bos-satir.hata-satir td {
  color: var(--doldu-yazi);
}

table.veri tr.bos-satir button {
  margin-left: 10px;
}

table.veri tfoot td {
  background: var(--zemin-acik);
  font-weight: bold;
}

.durum-cubugu {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2px;
  padding: 2px 3px;
  border-top: 1px solid #ffffff;
  background: var(--zemin);
  flex: 0 0 auto;
}

.durum-hucre-cubuk {
  display: flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid;
  border-color: var(--kenar) #ffffff #ffffff var(--kenar);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.durum-hucre-cubuk.ileti {
  flex: 1 1 200px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  line-height: 20px;
}

.durum-hucre-cubuk.kirmizi {
  background: #a40000;
  color: #ffffff;
  font-weight: bold;
}

.durum-hucre-cubuk.sari {
  background: var(--az);
}

.durum-hucre-cubuk.pembe {
  background: var(--doldu);
  color: var(--doldu-yazi);
  font-weight: bold;
}

.durum-cubugu button {
  min-height: 24px;
  padding: 2px 8px;
}

.durum-cubugu button:active:not(:disabled) {
  padding: 3px 8px 1px;
}

@media (max-width: 1279px) {
  .durum-hucre-cubuk {
    padding-left: 6px;
    padding-right: 6px;
  }

  .durum-cubugu .durum-hucre-cubuk.ileti {
    flex-basis: 100%;
  }
}

.ortu {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.pencere {
  display: flex;
  flex-direction: column;
  width: 460px;
  max-width: 100%;
  max-height: 100%;
  background: var(--zemin-acik);
  border: 2px solid;
  border-color: #ffffff var(--kenar-koyu) var(--kenar-koyu) #ffffff;
  outline: 1px solid var(--kenar-koyu);
}

.pencere.dar {
  width: 380px;
}

.pencere.genis {
  width: 640px;
}

.pencere-baslik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 3px 3px 8px;
  background: var(--lacivert);
  color: #ffffff;
  flex: 0 0 auto;
}

.pencere-baslik h2 {
  margin: 0;
  font-size: 13px;
  font-weight: bold;
}

.pencere-baslik button {
  min-height: 20px;
  width: 22px;
  height: 20px;
  padding: 0;
  color: #000000;
  font-weight: bold;
  line-height: 1;
}

.pencere-baslik button:active:not(:disabled) {
  padding: 1px 0 0 1px;
}

.pencere-icerik {
  overflow: auto;
  padding: 10px 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.pencere-icerik fieldset.pencere-alanlar {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.pencere-hata {
  margin: 0 12px 8px;
  padding: 6px 8px;
  border: 1px solid var(--doldu-yazi);
  background: var(--doldu);
  color: var(--doldu-yazi);
  font-weight: bold;
  flex: 0 0 auto;
}

.pencere-hata.uyari {
  border-color: #7a6200;
  background: var(--az);
  color: #3d3100;
}

.pencere-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--kenar-acik);
  flex: 0 0 auto;
}

.pencere-alt button {
  min-width: 90px;
  min-height: 30px;
}

.pencere-alt .mesgul-yazi {
  margin-right: auto;
  color: var(--soluk);
}

.pencere-metin {
  margin: 0;
  white-space: pre-line;
}

.form-izgara {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
}

.form-izgara > label,
.form-izgara > .etiket {
  text-align: right;
}

.form-izgara > .ust {
  align-self: start;
  padding-top: 6px;
}

.form-alan {
  min-width: 0;
}

.form-alan > input[type="text"],
.form-alan > input[type="password"],
.form-alan > input[type="tel"],
.form-alan > select {
  width: 100%;
}

.form-alan > input.kisa {
  width: 90px;
}

.form-alan > input.orta-boy,
.form-alan > select.orta-boy {
  width: 170px;
}

.alan-notu {
  margin-top: 2px;
  font-size: 12px;
  color: var(--soluk);
}

.alan-notu.uyari {
  color: var(--doldu-yazi);
  font-weight: bold;
}

.onay-kutusu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bilgi-tablosu {
  border-collapse: collapse;
  background: var(--panel);
  min-width: 260px;
}

.bilgi-tablosu th,
.bilgi-tablosu td {
  border: 1px solid var(--kenar-acik);
  padding: 4px 10px;
  text-align: left;
  vertical-align: top;
}

.bilgi-tablosu th {
  background: var(--zemin-acik);
  font-weight: normal;
}

.bilgi-tablosu td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bilgi-tablosu tr.toplam th,
.bilgi-tablosu tr.toplam td {
  font-weight: bold;
  font-size: 15px;
}

.bilgi-tablosu.tam {
  width: 100%;
}

.durum-yazisi {
  padding: 20px 8px;
  text-align: center;
  color: var(--soluk);
}

.durum-yazisi.hata {
  color: var(--doldu-yazi);
}

.durum-yazisi button {
  margin-left: 10px;
}

.sayfa-yukleniyor {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  padding: 14px 20px;
  background: var(--zemin-acik);
  border: 1px solid var(--kenar-koyu);
  text-align: center;
}

.sayfa-yukleniyor button {
  display: block;
  margin: 10px auto 0;
}

.uygulama {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

@media (pointer: coarse) {
  button,
  .dugme {
    min-height: 34px;
  }

  input[type="text"],
  input[type="password"],
  input[type="date"],
  input[type="tel"],
  select {
    height: 34px;
  }

  table.veri tbody tr {
    height: 34px;
  }

  .pencere-baslik button {
    min-height: 26px;
    width: 30px;
    height: 26px;
  }
}

@media (max-width: 560px) {
  .form-izgara {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .form-izgara > label,
  .form-izgara > .etiket {
    text-align: left;
    margin-top: 5px;
  }

  .form-izgara > .ust {
    padding-top: 0;
  }
}
