@font-face {
  font-family: Rafd;
  src: url("/shared/fonts/alexandria-arabic-wght-normal.woff2") format("woff2");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f7f5;
  color: #143e34;
  font-family: Rafd, Arial, sans-serif;
  line-height: 1.8;
}
header {
  background: #031f19;
  color: white;
  padding: 18px max(18px, 4vw);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
header img {
  width: 130px;
  display: block;
}
header a {
  color: inherit;
}
header > a:last-child {
  margin-inline-start: auto;
}
main {
  max-width: 1240px;
  margin: 40px auto;
  padding: 0 20px;
}
h1 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.5;
  margin: 8px 0;
}
h2 {
  font-size: 21px;
  margin: 0 0 18px;
}
p {
  color: #526c63;
}
button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}
button {
  border: 0;
  border-radius: 12px;
  padding: 11px 20px;
  background: #0e5742;
  color: white;
  cursor: pointer;
  min-height: 46px;
}
button:hover {
  filter: brightness(1.1);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: #e8efeb;
  color: #143e34;
}
.danger {
  background: #87392f;
}
label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #a9bfb3;
  border-radius: 10px;
  padding: 11px;
  background: white;
  color: #173e33;
}
textarea {
  min-height: 85px;
}
input:focus,
button:focus-visible,
select:focus {
  outline: 3px solid #cda758;
  outline-offset: 3px;
}
.eyebrow {
  color: #926b20;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.columns,
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.panel {
  border: 1px solid #d6e2db;
  border-radius: 20px;
  padding: 25px;
  background: white;
  margin: 24px 0;
  min-width: 0;
}
.columns .panel {
  margin-bottom: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat {
  padding: 16px;
  background: #e3eee7;
  border-radius: 14px;
}
.stat b {
  display: block;
  font-size: 28px;
}
.gate {
  max-width: 580px;
  background: white;
  border: 1px solid #d8e3dc;
  border-top: 5px solid #cda758;
  border-radius: 22px;
  padding: 36px;
  margin-top: 10vh;
}
.gate button {
  width: 100%;
  background: #cda758;
  color: #142e25;
  font-weight: 700;
}
.support {
  color: #14513e;
}
#message {
  padding: 10px;
  min-height: 30px;
}
#message.error {
  color: #a0211c;
  background: #fff0ed;
  border-radius: 8px;
}
#message.success {
  color: #15533e;
  background: #e5f3e9;
  border-radius: 8px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  direction: ltr;
  background: #f1f6f3;
  border-radius: 10px;
  padding: 14px;
}
pre:empty {
  display: none;
}
.page {
  border-block-start: 1px solid #dae6de;
  padding: 20px 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.actions button {
  padding: 8px 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}
th,
td {
  text-align: start;
  padding: 14px;
  border-bottom: 1px solid #e1e8e3;
}
td {
  vertical-align: top;
}
small {
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
}
dialog {
  border: 0;
  border-radius: 20px;
  max-width: 650px;
  width: calc(100% - 30px);
  max-height: 85vh;
  overflow: auto;
  padding: 28px;
}
dialog::backdrop {
  background: #00170eb5;
}
.badge {
  display: inline-block;
  background: #e3eee7;
  padding: 4px 10px;
  border-radius: 8px;
}
.file-label {
  border: 1px dashed #829f90;
  padding: 10px;
  border-radius: 10px;
}
.file-label input {
  font-size: 12px;
}
.upload-status{padding:10px 12px;border-radius:10px;overflow-wrap:anywhere;white-space:pre-line}
.upload-status.error{background:#fff1ee;border:1px solid #b84e40;color:#84261b}
.upload-status.success{background:#edf5ef;color:#174a37}
progress{width:100%;height:14px;accent-color:#0e5742;margin:8px 0}
a {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .columns,
  .two {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 18px;
  }
  .heading {
    align-items: start;
  }
  .gate {
    padding: 24px;
    margin: 35px 16px;
  }
  main {
    padding: 0 14px;
  }
  header {
    gap: 12px;
    font-size: 12px;
  }
  header img {
    width: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.check{display:flex;align-items:center;gap:12px}.check input{width:auto;min-height:24px}.dialogError{color:#a0211c}
