@font-face {
  font-family: Tajawal;
  src: url('arabic.ttf') format('truetype');
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Tajawal;
  src: url('arabic-bold.ttf') format('truetype');
  font-weight: 700 900;
  font-display: swap;
}
:root {
  --bg: #f7f6f2;
  --surface: #fff;
  --ink: #24282e;
  --text: #24282e;
  --muted: #7b7f85;
  --gold: #bc963f;
  --gold-dark: #86651f;
  --gold-soft: #f7f0de;
  --dark: #0d1018;
  --border: #eae9e4;
  --line: #eae9e4;
  --green: #24775f;
  --red: #b64b4b;
  --blue: #3e709b;
  --radius: 18px;
  --shadow: 0 8px 35px #13192506;
  --font: Tajawal, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  flex-shrink: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b9933f70;
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.35;
}
h2 {
  font-size: 23px;
  line-height: 1.4;
}
h3 {
  font-size: 18px;
}
h4 {
  font-size: 16px;
}
p {
  margin-bottom: 12px;
}
small {
  font-size: 12px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px 13px;
}
input[type='checkbox'],
input[type='radio'] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--gold);
}
input[type='date'],
input[type='email'],
input[type='tel'],
input[type='number'] {
  direction: ltr;
  text-align: right;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s;
}
.btn:hover,
.button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-outline,
.btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-danger {
  background: #faebeb;
  color: var(--red);
}
.btn-sm {
  min-height: 34px;
  padding: 5px 11px;
  font-size: 12px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  color: var(--muted);
}
.card,
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.muted,
.text-muted {
  color: var(--muted);
}
.gold,
.text-gold {
  color: var(--gold-dark);
}
.text-green {
  color: var(--green);
}
.text-red {
  color: var(--red);
}
.text-center {
  text-align: center;
}
.row,
.flex {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 16px;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.field {
  margin-bottom: 16px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.section-head h2,
.section-head h3 {
  margin: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  background: #f1f2f5;
  color: #707783;
}
.badge:before {
  content: '';
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge-confirmed,
.badge-approved,
.badge-verified,
.badge-accepted,
.badge-uploaded,
.badge-completed,
.badge-active,
.badge-installed {
  background: #eaf6ef;
  color: #2c7b5b;
}
.badge-pending,
.badge-review,
.badge-checking,
.badge-assigned,
.badge-held,
.badge-due {
  background: #fbf2df;
  color: #996b16;
}
.badge-cancelled,
.badge-expired,
.badge-failed,
.badge-rejected,
.badge-inactive {
  background: #fbecec;
  color: #b34e4e;
}
.badge-received,
.badge-installing,
.badge-open {
  background: #edf2fc;
  color: #4d70a5;
}
.notice {
  padding: 14px 17px;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid #e9dcb9;
  color: #7a6227;
  font-size: 13px;
  line-height: 1.85;
}
.notice.info {
  background: #eef4fa;
  border-color: #dce7f2;
  color: #3d6284;
}
.notice.error {
  background: #fff0f0;
  border-color: #f1d4d4;
  color: #a94444;
}
.notice.success {
  background: #ecf6f1;
  border-color: #d6e9df;
  color: #39745c;
}
.table-wrap {
  overflow: auto;
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: right;
}
th {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  background: #fafaf8;
}
th,
td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--border);
}
td {
  font-size: 13px;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-weight: 700;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--gold-dark);
  background: var(--gold-soft);
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
}
.empty .icon {
  width: 42px;
  height: 42px;
  color: var(--gold);
  margin-bottom: 15px;
}
.empty h3 {
  color: var(--ink);
}
.roza-toasts {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: grid;
  gap: 9px;
  max-width: calc(100vw - 32px);
  width: max-content;
}
.toast {
  padding: 14px 22px;
  border: 1px solid #d6e8df;
  background: #f1fcf6;
  color: #28664a;
  border-radius: 12px;
  box-shadow: 0 10px 45px #0002;
  font-size: 14px;
  max-width: 520px;
}
.toast-error {
  border-color: #f2d5d5;
  background: #fff3f3;
  color: #a33d3d;
}
.toast-info {
  background: #f4f8fc;
  color: #42617c;
  border-color: #dae5ee;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  max-width: 600px;
  width: calc(100% - 32px);
  color: var(--ink);
  box-shadow: 0 24px 100px #0002;
}
dialog::backdrop {
  background: #0d101877;
  backdrop-filter: blur(4px);
}
dialog .modal-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
}
dialog .modal-body {
  padding: 24px 26px;
}
dialog .modal-footer {
  padding: 18px 26px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.timeline {
  border-inline-start: 1px solid var(--border);
  margin-inline-start: 8px;
  padding-inline-start: 25px;
}
.timeline-item {
  position: relative;
  margin-bottom: 22px;
}
.timeline-item:before {
  content: '';
  position: absolute;
  inset-inline-start: -30px;
  top: 8px;
  background: var(--gold);
  height: 9px;
  width: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fff;
}
.progress {
  height: 7px;
  border-radius: 9px;
  background: #eeece5;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 9px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.demo-note {
  font-size: 11px;
  color: var(--muted);
}
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f7f7f7 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
[hidden] {
  display: none !important;
}
main:focus {
  outline: none;
}
@media (max-width: 850px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card,
  .panel {
    padding: 19px;
  }
  h1 {
    font-size: 26px;
  }
}
@media (max-width: 560px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .card,
  .panel {
    padding: 17px;
    border-radius: 15px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 25px;
  }
  .btn {
    padding: 10px 15px;
  }
  .table-wrap {
    border-radius: 10px;
  }
  th,
  td {
    padding: 12px;
  }
  .notice {
    padding: 12px;
  }
  .between {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  body {
    background: #fff;
  }
  button,
  nav,
  .sidebar,
  .bottom-nav,
  .review-tools,
  .demo-tools {
    display: none !important;
  }
  .card,
  .panel {
    box-shadow: none;
    break-inside: avoid;
  }
  .main,
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
  }
  a[href]:after {
    content: none;
  }
}
