* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.wrapper {
  padding: 1%;
  width: 80%;
  margin: 0 auto;
}

.text-center {
  text-align: center !important;
}

.clearfix {
  float: none;
  clear: both;
}

.tbl-full {
  width: 100%;
}
.tbl-30 {
  width: 30%;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

tr:hover {
  background-color: #f5f5f5;
}

table tr th {
  border-bottom: 1px solid black;
  padding: 1%;
  text-align: left;
}

table tr td {
  padding: 1%;
}

.btn-primary {
  background-color: #1e90ff;
  padding: 1%;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.btn-primary:hover {
  background-color: #3742fa;
}

.btn-secondary {
  background-color: #7bed9f;
  padding: 1%;
  color: black;
  text-decoration: none;
  font-weight: bold;
}
.btn-secondary:hover {
  background-color: #2ed573;
}

.btn-danger {
  background-color: #ff6b81;
  padding: 1%;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.btn-danger:hover {
  background-color: #5d9e5f;
}

.success {
  color: #2ed573;
}
.error {
  color: #5d9e5f;
}

/* CSS for Menu */
.menu {
  border-bottom: 1px solid grey;
}
.menu ul {
  list-style-type: none;
}
.menu ul li {
  display: inline-block;
  padding: 1%;
}
.menu ul li a {
  text-decoration: none;
  font-weight: bold;
  color: #5d9e5f;
}
.menu ul li a:hover {
  color: #5d9e5f;
}

/* CSS for main-content */
.main-content {
  background-color: #f1f2f6;
  padding: 3% 0;
}

.col-4 {
  width: 18%;
  background-color: white;
  margin: 1%;
  padding: 2%;
  float: left;
}

/* CSS for Footer */
.footer {
  background-color: #5d9e5f;
  color: white;
}

/* CSS for Login */
.login {
  border: 1px solid grey;
  width: 20%;
  margin: 10% auto;
  padding: 2%;
}

/* -------------------- */
/* RTL (من اليمين لليسار) */
body, .main-content, .wrapper, table, th, td, input, textarea, select {
  direction: rtl !important;
  text-align: right !important;
}

.menu ul li {
  display: inline-block;
  padding: 1%;
}

.text-center {
  text-align: center !important;
}

table tr th, table tr td {
  text-align: right !important;
}

input, textarea, select {
  direction: rtl !important;
  text-align: right !important;
}

/* ----------------------------- */
/* تخصيص أعمدة وسط الجدول */
.center-cell {
  text-align: center !important;
  vertical-align: middle !important;
}

/* عمود تفاصيل الطلب من اليسار لليمين (حل مشكلة الزحف للكلمات الأجنبية) */
.order-details-cell {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: plaintext !important;
  word-break: break-all !important;
  white-space: normal !important;
  max-width: 300px;
  display: block;
  overflow-x: auto;
}

/* عمود الملاحظات */
.notes-cell {
  direction: rtl !important;
  text-align: right !important;
  word-break: break-word !important;
  white-space: pre-line !important;
  max-width: 220px;
  display: block;
  overflow-x: auto;
}

/* تكبير حجم قائمة select */
.big-select {
  font-size: 20px;
  height: 44px;
  width: 220px;
  padding: 6px 10px;
  border-radius: 6px;
}
