@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800&display=swap");
:root {
  --navy: #102f49;
  --teal: #07839a;
  --mint: #11aa98;
  --bg: #f3f7fa;
  --line: #dfe9ef;
  --text: #15364e;
  --muted: #6c8393;
  font-family: "Tajawal", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  direction: ltr;
}
.sidebar,
.workarea {
  direction: rtl;
}
.sidebar {
  background: var(--navy);
  color: #fff;
  padding: 22px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 22px;
  border-bottom: 1px solid #ffffff18;
}
.identity .logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--mint);
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 800;
}
.identity b,
.identity small {
  display: block;
}
.identity small {
  color: #bcd0dd;
  margin-top: 3px;
  font-size: 12px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d8e5ed;
  text-decoration: none;
  padding: 12px;
  border-radius: 11px;
  font-weight: 600;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: #fff;
  color: var(--navy);
}
.sidebar nav i {
  font-style: normal;
  width: 25px;
  text-align: center;
  font-size: 20px;
}
.sidebar nav i svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.topbar {
  height: 82px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 3vw, 42px);
}
.topbar h1 {
  font-size: 22px;
  margin: 0;
}
.topbar small {
  color: var(--muted);
}
#menu {
  display: none;
}
.content {
  padding: 28px clamp(18px, 3vw, 42px);
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card,
form,
table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 7px 24px #173a510d;
}
form {
  padding: 22px;
}
input,
select,
textarea {
  font: inherit;
  width: 100%;
  padding: 12px;
  border: 1px solid #cbdbe4;
  border-radius: 10px;
  background: #fff;
}
button,
.button {
  font: 700 15px "Tajawal";
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
th,
td {
  padding: 14px;
  text-align: right;
  border-bottom: 1px solid #edf2f5;
}
th {
  background: #eaf3f7;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.grid label {
  margin: 0;
}
.info,
.alert,
.success {
  padding: 14px 16px;
  border-radius: 11px;
  margin: 14px 0;
}
.info,
.success {
  background: #e4fbf7;
  border-right: 4px solid var(--mint);
}
.alert {
  background: #fff0f0;
  color: #9d2020;
}
#network {
  background: #e4fbf7;
  color: #087260;
  padding: 7px 11px;
  border-radius: 20px;
  font-weight: 700;
}
@media (max-width: 850px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 20;
    right: -270px;
    width: 250px;
    transition: 0.2s;
  }
  .sidebar.open {
    right: 0;
  }
  #menu {
    display: block;
    background: transparent;
    color: var(--navy);
    font-size: 24px;
    padding: 6px;
  }
  .topbar {
    height: 70px;
  }
  .content {
    padding: 18px;
  }
  .grid,
  .cards {
    grid-template-columns: 1fr;
  }
  #overlay.show {
    position: fixed;
    inset: 0;
    background: #0018;
    z-index: 10;
  }
}
@media print {
  .sidebar,
  .topbar,
  #overlay {
    display: none !important;
  }
  .app-shell {
    display: block;
  }
  .content {
    padding: 0;
    max-width: none;
  }
  body {
    background: #fff;
  }
}
