/* css.css */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6fb;
    margin: 0;
    padding: 20px;
    color: #222;
}
.container {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(15,30,70,0.08);
}
h2 { margin: 0 0 12px 0; color:#0b3b8c; }
.menu { margin-bottom: 12px; }
.menu a { margin-right: 12px; color:#0b3b8c; text-decoration:none; font-weight:600; }
.menu a:hover { text-decoration:underline; }
.table-responsive { overflow-x:auto; }
table { width:100%; border-collapse:collapse; margin-top:8px; }
table th, table td {
    padding:10px 8px; border-bottom:1px solid #eee; text-align:center;
}
.status-niewydana { color:#6b7280; }
.status-wydana { color:#d97706; font-weight:700; }
.status-zwrocona { color:#059669; font-weight:700; }
.status-zweryfikowana {
    color: #2563eb;
    font-weight: 700;
}
.form-row { margin-bottom:10px; }
input[type="text"], input[type="number"], select {
    padding:8px; width:100%; box-sizing:border-box; border:1px solid #d1d5db; border-radius:6px;
}
button {
    background:#0b63d8; color:#fff; padding:8px 14px; border:none; border-radius:6px; cursor:pointer; font-weight:600;
}
button:hover { filter:brightness(.95); }
.small { font-size:0.9rem; color:#6b7280; }
.notice {
    background:#f8fafc;
    padding:10px;
    border-left:4px solid #0b63d8;
    margin-bottom:12px;
    border-radius:6px;
}

/* ===== STATYSTYKI ===== */
.stats-box {
    float: right;
    text-align: right;
    font-size: 0.9rem;
    background: #f9fafb;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 10px;
}
.stats-box .label {
    color: #6b7280;
    margin-right: 4px;
}

/* ===== FLASH ===== */
.flash {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #28a745 !important;
    border: 1px solid #1e7e34 !important;
    color: #fff !important;
    font-size: 16px;
}
.flash-error {
    background: #dc3545 !important;
    border: 1px solid #b21f2d !important;
}

/* ===== SUMA ===== */
.sum-box {
    background: #f4f7ff;
    border: 1px solid #d0dcff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
    display: inline-block;
}

/* ============================
   🔥 FIX: KOLORY LICZNIKÓW (OSTATECZNY)
   ============================ */

.stats-box b.count-green,
.stats-box span.count-green {
    color: #16a34a !important;
}

.stats-box b.count-yellow,
.stats-box span.count-yellow {
    color: #f59e0b !important;
}

.stats-box b.count-red,
.stats-box span.count-red {
    color: #dc2626 !important;
}
