:root {
  --app-bg: #f5f1e8;
  --app-bg-soft: #eef4ed;
  --app-panel: rgba(255, 252, 247, 0.84);
  --app-panel-strong: #fffdf8;
  --app-panel-muted: #f4efe6;
  --app-line: rgba(104, 117, 99, 0.16);
  --app-line-strong: rgba(85, 100, 82, 0.24);
  --app-ink: #243128;
  --app-muted: #68756a;
  --app-accent: #6f8d78;
  --app-accent-strong: #4f6f5a;
  --app-accent-soft: #dbe7da;
  --app-sand: #d8c7a7;
  --app-blush: #d8b8a9;
  --app-danger: #b56d63;
  --app-warning: #c89a4b;
  --app-success: #67906d;
  --app-info: #7d9994;
  --app-shadow-lg: 0 28px 80px rgba(45, 61, 47, 0.12);
  --app-shadow-md: 0 18px 38px rgba(45, 61, 47, 0.08);
  --app-shadow-sm: 0 10px 24px rgba(45, 61, 47, 0.06);
  --app-radius-xl: 32px;
  --app-radius-lg: 24px;
  --app-radius-md: 18px;
  --app-radius-sm: 14px;
  --sidebar-width: 305px;
  --header-height: 88px;
  scroll-behavior: smooth;
}

html {
  font-size: 15px;
  min-height: 100%;
  height: 100%;
}

body {
  min-height: 100vh;
  height: 100vh;
  margin: 0;
  color: var(--app-ink);
  font-family: "Segoe UI", "Tahoma", "Noto Sans Arabic", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(170, 191, 174, 0.38), transparent 28%),
    radial-gradient(circle at bottom right, rgba(216, 184, 169, 0.28), transparent 24%),
    linear-gradient(135deg, var(--app-bg) 0%, #f7f4ee 40%, var(--app-bg-soft) 100%);
  background-attachment: fixed;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 36%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 18%);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 143, 120, 0.72) rgba(219, 231, 218, 0.42);
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

*::-webkit-scrollbar-track {
  background: rgba(219, 231, 218, 0.34);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(121, 154, 129, 0.9), rgba(93, 124, 101, 0.92));
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(98, 131, 106, 0.96), rgba(79, 111, 90, 0.98));
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

a {
  color: var(--app-accent-strong);
  text-decoration: none;
}

a:hover {
  color: #3f5b48;
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.pagetitle h1,
.header__brand-copy strong,
.sidebar__intro h2 {
  font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif;
  letter-spacing: -0.02em;
}

p,
label,
small,
span,
input,
select,
textarea,
button,
.btn,
.table,
.dropdown-item,
.nav-link {
  font-family: "Segoe UI", "Tahoma", "Noto Sans Arabic", sans-serif;
}

.app-shell {
  display: flex;
  align-items: stretch;
  height: 100vh;
}

.app-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  flex: 1;
  min-width: 0;
  height: 100vh;
}

.app-stage__header {
  padding: 1.2rem 1.75rem 0;
}

.app-main {
  min-width: 0;
  min-height: 0;
  padding: 0 1.75rem;
  overflow: hidden;
}

.app-main__scroll {
  height: 100%;
  overflow: auto;
  padding: 0 0 1.25rem;
  scrollbar-gutter: stable;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-width: 5.75rem;
  min-height: 2.3rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(111, 141, 120, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--app-accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 28px rgba(79, 111, 90, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.language-switcher:hover,
.language-switcher:focus-visible {
  border-color: rgba(111, 141, 120, 0.3);
  box-shadow: 0 14px 32px rgba(79, 111, 90, 0.16);
  color: var(--app-accent-strong);
  transform: translateY(-1px);
}

.language-switcher:focus-visible {
  outline: none;
}

.language-switcher > .bi {
  font-size: 0.82rem;
  color: inherit;
}

.language-switcher__menu {
  min-width: 11rem;
  margin-top: 0.55rem;
}

.language-switcher__menu .dropdown-item {
  font-weight: 600;
}

.language-switcher--auth {
  min-width: 5.4rem;
}

.topbar__action-button,
.topbar__profile {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.45rem 0.55rem 0.45rem 0.45rem;
  border: 1px solid rgba(111, 141, 120, 0.14);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.94);
  color: var(--app-ink);
  box-shadow: var(--app-shadow-sm);
}

.topbar__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: linear-gradient(155deg, #6d8f78, #dbe7d9);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topbar__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  line-height: 1.15;
}

.topbar__identity strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.topbar__identity small {
  color: var(--app-muted);
  font-size: 0.78rem;
}

.topbar__action-button {
  padding-inline: 0.9rem;
  font-weight: 600;
}

.topbar__action-button > .bi:first-child {
  color: var(--app-accent-strong);
  font-size: 1rem;
}

.topbar__action-button > .bi:last-child,
.topbar__profile > .bi {
  color: var(--app-muted);
  font-size: 0.9rem;
}

.topbar__menu {
  min-width: 13rem;
}

#main {
  transition: margin 0.3s ease, padding 0.3s ease;
}

.section {
  margin-bottom: 1.5rem;
}

.pagetitle {
  margin-bottom: 1.4rem;
}

.pagetitle h1 {
  margin: 0;
  color: var(--app-ink);
  font-size: clamp(1.9rem, 2.5vw, 2.75rem);
}

.pagetitle p,
.breadcrumb,
.text-muted,
.form-text,
small {
  color: var(--app-muted) !important;
}

.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  min-height: var(--header-height);
  padding: 0.9rem 1rem;
  background: rgba(255, 252, 247, 0.94);
  border-bottom: 1px solid rgba(128, 142, 121, 0.12);
}

.header__mobile-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header__mobile-brand strong {
  font-size: 1rem;
  color: var(--app-ink);
}

.header__mobile-brand small {
  font-size: 0.76rem;
  color: var(--app-muted);
}

.header__menu,
.header__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--app-line);
  border-radius: 1rem;
  background: #fff;
  color: var(--app-accent-strong);
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar__action-button:hover,
.topbar__profile:hover,
.header__menu:hover,
.header__icon-button:hover {
  border-color: rgba(111, 141, 120, 0.28);
  box-shadow: var(--app-shadow-md);
  transform: translateY(-1px);
}

.dropdown-menu {
  padding: 0.7rem;
  border: 1px solid rgba(111, 141, 120, 0.12);
  border-radius: 1rem;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: var(--app-shadow-md);
}

.dropdown-menu .dropdown-item {
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
}

.dropdown-menu .dropdown-item:hover {
  background: rgba(219, 231, 218, 0.58);
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  color: var(--app-ink);
  background: rgba(219, 231, 218, 0.82);
}

.dropdown-menu-arrow::before {
  display: none;
}

.sidebar {
  position: relative;
  align-self: stretch;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 0;
  overflow: hidden;
  overflow-x: hidden;
  background: rgba(255, 252, 247, 0.92);
  border-inline-end: 1px solid rgba(111, 141, 120, 0.12);
}

.sidebar,
.app-main__scroll,
.table-responsive {
  scrollbar-gutter: stable;
}

.sidebar__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.9rem 1.15rem 1.35rem;
  background:
    linear-gradient(180deg, #fffdfa 0%, #fbf8f1 52%, #f6f6ef 100%);
  box-shadow: none;
  isolation: isolate;
  overflow: hidden;
}

.sidebar__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(235, 225, 205, 0.36), transparent 0 18%),
    radial-gradient(circle at 84% 20%, rgba(219, 231, 214, 0.26), transparent 0 22%),
    radial-gradient(circle at 16% 46%, rgba(213, 229, 218, 0.22), transparent 0 20%),
    radial-gradient(circle at 86% 62%, rgba(232, 223, 205, 0.2), transparent 0 24%),
    radial-gradient(circle at 10% 82%, rgba(191, 219, 206, 0.4), transparent 0 22%),
    radial-gradient(circle at 26% 92%, rgba(230, 238, 228, 0.96), transparent 0 16%);
  opacity: 1;
  z-index: 0;
}

.sidebar__panel::after {
  content: "";
  position: absolute;
  inset-inline-start: -2.8rem;
  inset-block-end: -2.2rem;
  width: 16rem;
  height: 20rem;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.78) 0 9%, transparent 10%),
    radial-gradient(circle at 21% 86%, rgba(236, 222, 204, 0.88) 0 10%, transparent 11%),
    radial-gradient(circle at 52% 92%, rgba(224, 236, 223, 0.95) 0 12%, transparent 13%),
    radial-gradient(ellipse at 28% 60%, rgba(199, 222, 207, 0.68) 0 28%, transparent 29%),
    radial-gradient(ellipse at 56% 54%, rgba(219, 233, 221, 0.6) 0 42%, transparent 43%);
  filter: blur(1px);
  opacity: 0.98;
  pointer-events: none;
  z-index: 0;
}

.sidebar__panel > * {
  position: relative;
  z-index: 1;
}

.sidebar__scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  gap: 1.1rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-inline-end: 0.2rem;
  padding-bottom: 1rem;
}

.sidebar__mobile-utility {
  display: none;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.15rem 0.35rem 0.85rem;
  color: var(--app-ink);
}

.sidebar__brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.7rem;
  height: 3.7rem;
  border-radius: 1.15rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(111, 141, 120, 0.14);
  box-shadow: 0 10px 24px rgba(87, 116, 95, 0.12);
}

.sidebar__brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar__brand-copy {
  display: flex;
  flex-direction: column;
}

.sidebar__brand-copy strong {
  font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.sidebar__brand-copy small {
  color: var(--app-muted);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.sidebar-nav,
.sidebar-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  margin-top: 0.25rem;
}

.sidebar-nav .nav-item {
  margin: 0;
}

.sidebar-nav .nav-link,
.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.2rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  color: #516055;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  color: #647d6c;
  font-size: 1.08rem;
  flex: 0 0 1.4rem;
}

.sidebar-nav__icon--sub {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.95rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-link.is-active,
.sidebar-nav .nav-content a.is-active {
  color: #36513f;
  background: linear-gradient(135deg, rgba(122, 154, 130, 0.18), rgba(226, 235, 225, 0.58));
  box-shadow: inset 0 0 0 1px rgba(111, 141, 120, 0.08);
}

.sidebar-nav .nav-link.collapsed {
  background: transparent;
}

.sidebar-nav .nav-link:not(.collapsed),
.sidebar-nav .nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #6d8f78, #7d9f87);
  box-shadow: 0 12px 24px rgba(87, 116, 95, 0.18);
}

.sidebar-nav .nav-link.nav-link--group:not(.collapsed) {
  color: #516055;
  background: transparent;
  box-shadow: none;
}

.sidebar-nav .nav-link:not(.collapsed) .sidebar-nav__icon,
.sidebar-nav .nav-link.is-active .sidebar-nav__icon,
.sidebar-nav .nav-content a.is-active .sidebar-nav__icon {
  color: currentColor;
}

.sidebar-nav .nav-link.nav-link--group:not(.collapsed) .sidebar-nav__icon {
  color: #647d6c;
}

.sidebar-nav .nav-content .nav-link.is-active,
.sidebar-nav .nav-content a.is-active {
  color: #36513f;
  background: rgba(236, 242, 235, 0.84);
  box-shadow: inset 0 0 0 1px rgba(111, 141, 120, 0.08);
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-inline-start: auto;
  transition: transform 0.2s ease;
  font-size: 0.95rem;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding-block: 0.32rem 0.4rem;
  padding-inline-start: 1.05rem;
}

.sidebar-nav .nav-content a {
  min-height: 2.95rem;
  padding-inline-start: 0.8rem;
  padding-inline-end: 0.85rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.sidebar__quote {
  flex: 0 0 auto;
  position: relative;
  min-height: 0;
  padding: 0.9rem 0.35rem 0.15rem;
  background: transparent;
  border: 0;
}

.sidebar__quote::before {
  content: none;
}

.sidebar__quote::after {
  content: none;
}

.sidebar__quote p {
  position: relative;
  z-index: 1;
  max-width: 12rem;
  margin: 0 0 0 0.15rem;
  padding-top: 0;
  color: #637265;
  font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif;
  font-size: 0.98rem;
  line-height: 1.7;
  font-style: italic;
}

.sidebar__quote-author {
  display: inline-block;
  margin: 0.55rem 0 0 0.2rem;
  color: #7c8a7d;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.35rem;
  margin-bottom: 1.5rem;
  padding-inline: 0.2rem;
  padding-bottom: 0.6rem;
}

.page-hero__copy {
  max-width: 56rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  line-height: 1.05;
  color: var(--app-ink);
}

.page-hero p {
  max-width: 46rem;
  margin: 0;
  color: var(--app-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.page-content {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.page-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 28%);
  pointer-events: none;
}

.page-content > :first-child.pagetitle {
  display: none;
}

.card,
.modal-content,
.accordion-item,
.list-group-item,
.info-box {
  border: 1px solid rgba(111, 141, 120, 0.12);
  border-radius: var(--app-radius-lg);
  background: var(--app-panel);
  box-shadow: var(--app-shadow-md);
  backdrop-filter: blur(14px);
}

.card {
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card--allow-overflow {
  overflow: visible;
}

.card--overlay {
  position: relative;
  z-index: 3;
}

.card > .card-body > .row.mb-3 > .card-title:first-child,
.card > .card-body > .row.mb-3 h5.card-title,
.card > .card-body > h5.card-title.d-flex.justify-content-between,
.card > .card-body > h5.card-title.mb-0,
.card > .card-body > div.d-flex.justify-content-between.align-items-center > h5.card-title {
  margin-bottom: 1.2rem;
}

.card-body {
  padding: 1.45rem 1.5rem 1.55rem;
}

.card-header,
.card-footer {
  padding: 1rem 1.5rem;
  border-color: rgba(111, 141, 120, 0.12);
  background: rgba(255, 255, 255, 0.35);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 0;
  color: var(--app-ink);
  font-size: 1.38rem;
  font-weight: 700;
}

.card-title span {
  color: var(--app-muted);
  font-family: "Segoe UI", "Tahoma", "Noto Sans Arabic", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.table-responsive {
  overflow-x: auto;
  overflow-y: auto;
  border-radius: 1.2rem;
  border: 1px solid rgba(111, 141, 120, 0.08);
  background: rgba(255, 255, 255, 0.42);
}

.table {
  width: max-content;
  min-width: 100%;
  margin-bottom: 0;
  vertical-align: middle;
  color: var(--app-ink);
}

.table > :not(caption) > * > * {
  padding: 1rem 0.95rem;
  border-bottom-color: rgba(111, 141, 120, 0.12);
  background: transparent;
}

.table thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: rgba(233, 240, 233, 0.65);
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  word-break: keep-all;
}

.table-hover tbody tr:hover {
  background: rgba(255, 255, 255, 0.46);
}

.table-cell--nowrap {
  white-space: nowrap;
}

.form-control,
.form-select,
.dataTable-input,
.tox .tox-tbtn,
.tox-tinymce {
  border-radius: 1rem !important;
}

.form-control,
.form-select,
.form-check-input {
  border-color: rgba(111, 141, 120, 0.18);
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--app-ink);
}

.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  min-height: calc(3.5rem + 2px);
  padding-top: 1.35rem;
  padding-bottom: 0.8rem;
}

.form-floating > label {
  padding: 0.95rem 0.95rem;
}

.form-control,
.form-select {
  min-height: 3rem;
  padding: 0.75rem 0.95rem;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.btn-close:focus,
.page-link:focus,
.form-check-input:focus {
  border-color: rgba(111, 141, 120, 0.5);
  box-shadow: 0 0 0 0.22rem rgba(111, 141, 120, 0.18);
}

.form-label,
label {
  margin-bottom: 0.45rem;
  color: var(--app-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border-width: 1px;
  font-weight: 600;
  box-shadow: none;
}

.btn-sm {
  min-height: 2.35rem;
  padding: 0.55rem 0.95rem;
}

.btn-primary,
.btn-outline-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-strong));
  color: #fff;
  box-shadow: 0 14px 28px rgba(79, 111, 90, 0.22);
}

.btn-outline-primary {
  border-color: rgba(111, 141, 120, 0.28);
  color: var(--app-accent-strong);
  background: rgba(255, 255, 255, 0.55);
}

.btn-secondary,
.btn-outline-secondary:hover {
  border-color: rgba(216, 184, 169, 0.34);
  background: rgba(216, 184, 169, 0.14);
  color: #86675c;
}

.btn-outline-secondary {
  border-color: rgba(104, 117, 106, 0.18);
  color: var(--app-muted);
  background: rgba(255, 255, 255, 0.55);
}

.btn-outline-success,
.btn-success {
  border-color: rgba(103, 144, 109, 0.26);
  color: #45684a;
  background: rgba(103, 144, 109, 0.1);
}

.btn-outline-danger,
.btn-danger {
  border-color: rgba(181, 109, 99, 0.22);
  color: #8b4e47;
  background: rgba(181, 109, 99, 0.1);
}

.btn-link {
  color: var(--app-accent-strong);
}

.badge {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
}

.bg-success,
.text-bg-success {
  background-color: rgba(103, 144, 109, 0.16) !important;
  color: #45684a !important;
}

.bg-danger,
.text-bg-danger {
  background-color: rgba(181, 109, 99, 0.15) !important;
  color: #91544d !important;
}

.bg-warning,
.text-bg-warning {
  background-color: rgba(200, 154, 75, 0.18) !important;
  color: #8c6a32 !important;
}

.bg-primary,
.text-bg-primary {
  background-color: rgba(111, 141, 120, 0.16) !important;
  color: #48604f !important;
}

.bg-info,
.text-bg-info {
  background-color: rgba(125, 153, 148, 0.18) !important;
  color: #4d6762 !important;
}

.alert {
  border: 1px solid rgba(111, 141, 120, 0.12);
  border-radius: 1.2rem;
  background: rgba(255, 252, 247, 0.78);
  color: var(--app-ink);
}

.app-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-width: 1px;
  border-style: solid;
  border-radius: 1.2rem;
}

.app-alert__content {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.app-alert__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: rgba(82, 104, 97, 0.92);
}

.alert-success.app-alert {
  border-color: rgba(84, 124, 93, 0.28);
  background: rgba(226, 241, 229, 0.95);
  color: #2f4f39;
}

.alert-success.app-alert .app-alert__icon,
.alert-success.app-alert .btn-close {
  color: #4f7a5d;
}

.alert-warning {
  border-color: rgba(200, 154, 75, 0.18);
  background: rgba(250, 242, 224, 0.9);
  color: #7b5c1d;
}

.alert-warning.app-alert .app-alert__icon,
.alert-warning.app-alert .btn-close {
  color: #b0791f;
}

.alert-danger.app-alert {
  border-color: rgba(177, 83, 90, 0.24);
  background: rgba(250, 230, 232, 0.95);
  color: #7f2f3a;
}

.alert-danger.app-alert .app-alert__icon,
.alert-danger.app-alert .btn-close {
  color: #b1535a;
}

.alert-info.app-alert {
  border-color: rgba(88, 138, 174, 0.22);
  background: rgba(231, 243, 250, 0.95);
  color: #28556e;
}

.alert-info.app-alert .app-alert__icon,
.alert-info.app-alert .btn-close {
  color: #457a99;
}

.modal-content {
  overflow: hidden;
}

.modal-header,
.modal-footer {
  border-color: rgba(111, 141, 120, 0.12);
}

.pagination-shell {
  margin-top: 1.4rem;
}

.pagination {
  gap: 0.45rem;
}

.page-link {
  border: 1px solid rgba(111, 141, 120, 0.12);
  border-radius: 999px !important;
  padding: 0.65rem 0.95rem;
  color: var(--app-accent-strong);
  background: rgba(255, 255, 255, 0.68);
}

.page-item.active .page-link {
  border-color: transparent;
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-strong));
  color: #fff;
}

.page-item.disabled .page-link {
  color: #93a095;
  background: rgba(255, 255, 255, 0.45);
}

.dashboard .info-card h6 {
  font-size: 2rem;
  color: var(--app-ink);
}

.dashboard .card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.2rem !important;
  color: var(--app-accent-strong);
  background: linear-gradient(135deg, rgba(219, 231, 218, 0.85), rgba(255, 247, 239, 0.9));
}

.dashboard .activity .activity-item .activite-label::before {
  background-color: rgba(111, 141, 120, 0.18);
}

.dashboard .recent-sales .table thead,
.dashboard .top-selling .table thead {
  background: transparent;
}

.accordion-button {
  background: transparent;
  color: var(--app-ink);
}

.accordion-button:not(.collapsed) {
  color: var(--app-accent-strong);
  background: rgba(219, 231, 218, 0.38);
}

.contact .info-box {
  padding: 2rem;
  text-align: start;
}

dl.row dt {
  color: var(--app-muted);
  font-weight: 600;
}

dl.row dd {
  color: var(--app-ink);
}

.contact .info-box i {
  color: var(--app-accent-strong);
}

.contact .info-box h3 {
  margin-top: 1rem;
  color: var(--app-ink);
}

.footer {
  position: relative;
  z-index: 10;
  margin: 0;
  padding: 0 1.75rem 0.9rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.9rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(111, 141, 120, 0.12);
  border-radius: 1rem;
  background: rgba(255, 252, 247, 0.72);
  box-shadow: var(--app-shadow-sm);
}

.footer__inner strong,
.footer__meta span {
  margin: 0;
}

.footer__inner strong {
  color: var(--app-ink);
  font-size: 0.98rem;
}

.footer__meta span {
  color: var(--app-muted);
  font-size: 0.92rem;
}

.footer__meta {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.65rem;
}

.back-to-top {
  position: fixed;
  inset-inline-end: 1.25rem;
  inset-block-end: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-strong));
  color: #fff;
  box-shadow: 0 12px 26px rgba(79, 111, 90, 0.28);
  visibility: hidden;
  opacity: 0;
  z-index: 999;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-2px);
  color: #fff;
}

body.rtl .footer,
html[dir="rtl"] .footer {
  margin: 0;
}

body.rtl .sidebar,
html[dir="rtl"] .sidebar {
  padding: 0;
}

body.rtl .footer__meta,
html[dir="rtl"] .footer__meta {
  align-items: flex-start;
}

@media (max-width: 1199px) {
  html,
  body {
    height: auto;
  }

  body {
    overflow: auto;
  }

  .header {
    display: flex;
    justify-content: flex-end;
    padding-inline: 0.85rem;
  }

  body.toggle-sidebar {
    overflow: hidden;
  }

  body.toggle-sidebar::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(36, 49, 40, 0.18);
    backdrop-filter: blur(2px);
  }

  .topbar {
    display: none;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: auto;
    inset-inline-start: 0;
    inset-block-start: 0;
    height: 100vh;
    min-height: 100vh;
    width: min(var(--sidebar-width), calc(100vw - 1.25rem));
    max-width: calc(100vw - 1.25rem);
    transform: translateX(calc(-100% - 1.5rem));
    z-index: 1002;
    transition: transform 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 18px 48px rgba(45, 61, 47, 0.18);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border-inline-end: 1px solid rgba(111, 141, 120, 0.12);
    border-inline-start: 0;
  }

  body.toggle-sidebar .sidebar {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.rtl .sidebar,
  html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    inset-inline-start: auto;
    inset-inline-end: 0;
    transform: translateX(calc(100% + 1.5rem));
    border-inline-start: 1px solid rgba(111, 141, 120, 0.12);
    border-inline-end: 0;
  }

  body.toggle-sidebar.rtl .sidebar,
  html[dir="rtl"] body.toggle-sidebar .sidebar {
    transform: translateX(0);
  }

  html[dir="rtl"] body .app-shell > .sidebar,
  body.rtl .app-shell > .sidebar {
    left: auto !important;
    right: 0 !important;
  }

  html[dir="rtl"] body.toggle-sidebar .app-shell > .sidebar,
  body.toggle-sidebar.rtl .app-shell > .sidebar {
    transform: translateX(0) !important;
  }

  .app-main,
  .footer,
  .app-stage__header {
    margin: 0;
    padding-inline: 1rem;
  }

  .app-shell,
  .app-stage,
  .app-main,
  .app-main__scroll,
  .page-content {
    height: auto;
    overflow: visible;
  }

  .app-stage {
    display: block;
  }

  .app-stage__header {
    display: none;
  }

  .header__mobile-brand {
    display: none;
  }

  .sidebar__mobile-utility {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0.15rem;
  }

  .sidebar__mobile-language,
  .sidebar__mobile-profile {
    width: 100%;
    justify-content: space-between;
    min-height: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(111, 141, 120, 0.12);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 20px rgba(79, 111, 90, 0.07);
  }

  .sidebar__mobile-language {
    padding-inline: 0.85rem;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
  }

  .sidebar__mobile-language > span {
    font-weight: 700;
  }

  .sidebar__mobile-profile {
    padding: 0.5rem 0.75rem 0.5rem 0.55rem;
    gap: 0.6rem;
  }

  .sidebar__mobile-profile .topbar__identity {
    flex: 1 1 auto;
  }

  .sidebar__mobile-profile .topbar__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(79, 111, 90, 0.14);
  }

  .sidebar__mobile-profile .topbar__identity strong {
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .sidebar__mobile-profile .topbar__identity small {
    font-size: 0.72rem;
  }

  .sidebar__brand {
    display: none;
  }

  .footer {
    position: static;
    inset: auto;
  }

  .page-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    margin-inline: 0;
  }
}

@media (max-width: 991.98px) {
  .app-main {
    padding-top: calc(var(--header-height) + 4rem);
  }

  .page-hero__meta {
    justify-content: flex-start;
  }

  .footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  :root {
    --header-height: 82px;
  }

  .card-body,
  .card-header,
  .card-footer {
    padding-inline: 1rem;
  }

  .card-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .table > :not(caption) > * > * {
    padding: 0.8rem 0.7rem;
  }

  .header {
    padding-inline: 0.7rem;
  }
}
