body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f6fb;
    color: #1f2937;
}

.page {
    max-width: 1450px;
    margin: 0 auto;
    padding: 20px;
}

.login-container {
    max-width: 420px;
    margin: 80px auto;
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.topbar {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.topbar-right,
.topbar-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.user-box {
    background: #eef4ff;
    padding: 10px 14px;
    border-radius: 10px;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.summary-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.big-number {
    font-size: 28px;
    font-weight: bold;
    margin-top: 8px;
}

.mixed-number {
    font-size: 20px;
    line-height: 1.6;
    margin-top: 8px;
}

.danger {
    color: #b91c1c;
}

.ok {
    color: #047857;
}

.danger-text {
    color: #b91c1c;
    font-weight: bold;
}

.ok-text {
    color: #047857;
    font-weight: bold;
}

.notice,
.success,
.error {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.notice {
    background: #fff7ed;
    color: #9a3412;
}

.success {
    background: #ecfdf5;
    color: #065f46;
}

.error {
    background: #fee2e2;
    color: #991b1b;
}

.btn {
    display: inline-block;
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: #475569;
}

button {
    display: inline-block;
    width: 100%;
    background: #1d4ed8;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
}

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

table th,
table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

table th {
    background: #f8fafc;
}

.group-block {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 18px;
    overflow: hidden;
}

.group-header {
    background: #f8fafc;
    padding: 16px;
}

.group-totals {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 8px;
}

a {
    color: #1d4ed8;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:visited {
    color: #1d4ed8;
}

a:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

.paid {
    font-weight: bold;
    color: #047857; /* zelená */
}

.unpaid {
    font-weight: bold;
    color: #b91c1c; /* červená */
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .big-number {
        font-size: 24px;
    }
	a {
    color: #1d4ed8;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:visited {
    color: #1d4ed8;
}

a:hover {
    color: #0ea5e9;
    text-decoration: underline;
}
	
	.paid {
    font-weight: bold;
    color: #047857; /* zelená */
}

.unpaid {
    font-weight: bold;
    color: #b91c1c; /* červená */
}
}