
/* 🌐 الخط العام */
body {
  font-family: 'Cairo', sans-serif;
  background-color: #F5EFE6;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 0 10px #ccc;
}

/* 🧾 جداول البيانات */
.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 15px;
}
.details-table th,
.details-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}
.details-table th {
  background-color: #6A9A8B;
  color: white;
  font-weight: bold;
}

/* 🎨 الأزرار العامة */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin: 5px;
  text-decoration: none;
  color: white;
  min-width: 42px;
  height: 42px;
}
.btn i {
  font-size: 16px;
}

.btn-view { background-color: #81C784; }
.btn-edit { background-color: #FFB74D; color: white; }
.btn-home { background-color: #6A9A8B; }
.btn-back { background-color: #4F83CC; }
.btn-print { background-color: #666666; }

/* 🖨️ للطباعة */
@media print {
  .btn, .actions, nav, header, footer {
    display: none !important;
  }
}

/* 📱 تحسين العرض على الجوال */
@media (max-width: 768px) {
  /* أزرار الإجراءات داخل الجداول */
  .actions a {
    padding: 2px !important;
    font-size: 9px !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 4px !important;
    margin: 2px !important;
    transform: scale(0.95);
  }

  .actions a i {
    font-size: 10px !important;
  }

  .actions a span {
    display: none !important;
  }

  /* تصغير الأزرار العامة */
  .btn {
    padding: 5px;
    font-size: 11px;
    min-width: 28px;
    height: 30px;
  }

  .btn i {
    font-size: 12px;
  }

  .details-table {
    font-size: 13px;
  }

  .details-table td {
    padding: 6px;
  }

  .btn-text {
    display: none;
  }
}
