body { font-family: Arial, sans-serif; background-color: #f1f5f9; margin: 0; padding: 15px; color: #1e293b; }
.login-wrapper { display: flex; justify-content: center; align-items: center; min-height: 85vh; }
.login-card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); width: 100%; max-width: 360px; }
.container { max-width: 1150px; margin: auto; background: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.header-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #e2e8f0; padding-bottom: 12px; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.header-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
h1 { color: #0f172a; font-size: 22px; margin: 0; }
h2 { color: #1e3a8a; font-size: 17px; margin-top: 0; }
.user-badge { display: inline-block; background: #e0e7ff; color: #1e3a8a; padding: 4px 10px; border-radius: 15px; font-size: 13px; font-weight: bold; margin-top: 5px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; margin-bottom: 20px; }
@media (max-width: 850px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: #f8fafc; padding: 15px; border-radius: 8px; border: 1px solid #cbd5e1; }
label { display: block; margin-top: 10px; font-weight: bold; font-size: 13px; }
input, select, button { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #94a3b8; border-radius: 6px; box-sizing: border-box; font-size: 14px; }
button { background-color: #2563eb; color: white; font-weight: bold; border: none; cursor: pointer; margin-top: 15px; }
button:hover { background-color: #1d4ed8; }
.btn-green { background-color: #16a34a; margin-top: 0; }
.btn-gray { background-color: #64748b; margin-top: 0; }
.btn-dark { background-color: #334155; width: auto; margin-top: 0; padding: 9px 14px; }
.btn-red { background-color: #dc2626; width: auto; margin-top: 0; padding: 9px 14px; }
.btn-edit { background-color: #d97706; width: auto; padding: 5px 9px; font-size: 12px; margin-top: 0; margin-right: 4px; }
.btn-del { background-color: #dc2626; width: auto; padding: 5px 9px; font-size: 12px; margin-top: 0; }
.summary-box { background: #eff6ff; padding: 10px; border-radius: 6px; border: 1px solid #bfdbfe; max-height: 280px; overflow-y: auto; }
.summary-box-green { background: #f0fdf4; border-color: #bbf7d0; }
.summary-item { display: flex; justify-content: space-between; font-size: 15px; padding: 8px 5px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.filter-section { background: #e2e8f0; padding: 15px; border-radius: 8px; margin-bottom: 15px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.filter-grid label { margin-top: 0; }
.filter-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.filter-actions button { width: auto; padding: 9px 15px; }
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th, td { border: 1px solid #cbd5e1; padding: 9px; text-align: left; font-size: 14px; }
th { background-color: #1e3a8a; color: white; }
.badge { background: #dbeafe; color: #1e40af; padding: 3px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; }
.period-info { font-size: 13px; color: #475569; margin-bottom: 8px; font-weight: bold; }
.admin-panel { display: none; background: #fffbeb; border: 1px solid #fde68a; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.form-row-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: center; }
.form-row-grid input, .form-row-grid select, .form-row-grid button { margin-top: 0; }
.checkbox-label { display: flex; align-items: center; gap: 6px; margin-top: 0; cursor: pointer; }
.checkbox-label input { width: 18px; height: 18px; margin: 0; }
.grupe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.grupa-item { background: white; padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; }
.grupa-item input { width: 18px; height: 18px; margin: 0; }
.nova-grupa-row { display: flex; gap: 10px; margin-top: 15px; max-width: 420px; }
.nova-grupa-row input, .nova-grupa-row button { margin-top: 0; width: auto; }
