* { box-sizing: border-box; }

body {
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    margin: 0;
    direction: rtl;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
}

nav {
    background: #0f766e;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover { text-decoration: underline; }

nav .brand {
    font-weight: bold;
    font-size: 17px;
    margin-left: auto;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat {
    text-align: center;
}

.stat .label {
    font-size: 13px;
    color: #6b7280;
}

.stat .value {
    font-size: 22px;
    font-weight: bold;
    margin-top: 4px;
}

.positive { color: #16a34a; }
.negative { color: #dc2626; }
.neutral  { color: #ea580c; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 8px 6px;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f9fafb;
    color: #374151;
}

form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 14px;
    color: #374151;
}

input[type=text], input[type=password], input[type=number],
input[type=date], select, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

button, .btn {
    background: #0f766e;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 12px;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover { background: #0d5f58; }

.btn-outline {
    background: transparent;
    color: #0f766e;
    border: 1px solid #0f766e;
}

.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

.success {
    background: #dcfce7;
    color: #15803d;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
}

h1, h2 { margin-top: 0; }

.login-box {
    max-width: 360px;
    margin: 80px auto;
}
