/* style.css - تصميم عام للنظام */

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f0f2f5;
  margin: 0;
  direction: rtl;
}

header {
  background: #003366;
  color: #fff;
  padding: 15px;
  text-align: center;
}

nav {
  background: #00509e;
  overflow: hidden;
  padding: 8px 10px;
}

nav a {
  float: right;
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 4px;
  transition: background 0.3s;
}

nav a:hover,
nav a.active {
  background: #003f7f;
}

.container {
  max-width: 1000px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

h1, h2, h3, h4 {
  color: #003366;
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #fff;
}

table, th, td {
  border: 1px solid #ccc;
}

th, td {
  padding: 10px;
  text-align: center;
  font-size: 15px;
}

th {
  background: #e6ebf1;
}

tr:nth-child(even) {
  background: #f9f9f9;
}

tr.zero {
  background-color: #f8d7da !important;
}

.zero {
  color: red !important;
  font-weight: bold;
}

button,
input[type="submit"],
select,
input[type="date"],
input[type="number"],
input[type="text"] {
  padding: 8px 12px;
  margin: 4px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

input[type="submit"],
button {
  background: #00509e;
  color: #fff;
  cursor: pointer;
}

input[type="submit"]:hover,
button:hover {
  background: #003f7f;
}

.filter-form label {
  margin-right: 12px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 5px;
}

.footer-credit {
  text-align: center;
  font-size: 12px;
  color: #666;
  padding: 10px 0;
  border-top: 1px solid #ddd;
  margin-top: 30px;
}

.summary p {
  font-weight: bold;
  margin: 8px 0;
}

.actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.back-btn {
  background: #6c757d;
  text-decoration: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
}

.back-btn:hover {
  background: #5a6268;
}

.totals {
  margin: 20px 0;
}

.totals h3 {
  margin-bottom: 8px;
  color: #003366;
}

.totals table {
  width: auto;
  border-collapse: collapse;
  background: #fff;
}

.totals th, .totals td {
  border: 1px solid #ccc;
  padding: 6px 12px;
  text-align: center;
}

.totals th {
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
  nav a {
    float: none;
    display: block;
    text-align: right;
  }

  .container {
    padding: 15px;
  }

  table, th, td {
    font-size: 13px;
  }
}
