body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f3f4f6; color: #1f2933; margin: 0; }
main { max-width: 1400px; margin: 0 auto; padding: 32px; }
h1 { font-size: 2rem; margin-bottom: 16px; }
form { background: #fff; padding: 24px; border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
input[type="file"], button { width: 100%; font-size: 1rem; }
button { margin-top: 12px; padding: 12px 18px; border: none; border-radius: 8px; color: #fff; background: #2563eb; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.actions a { padding: 10px 16px; border-radius: 8px; text-decoration: none; color: #fff; background: #6b7280; }
.actions a:first-child { background: #111827; }
.status { padding: 12px; border-radius: 8px; font-size: 0.95rem; }
.status-ok { background: #d1fae5; color: #047857; }
.status-warn { background: #fef3c7; color: #b45309; }
.error { background: #fee2e2; padding: 16px; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
table { display: block; overflow-x: auto; }
th, td { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; text-align: left; }
th { background: #e8edf3; color: #263445; }
.hint { color: #4b5563; }
.pagination { display: flex; gap: 20px; justify-content: center; align-items: center; padding: 20px; }
.pagination a { color: #1d4ed8; }
#save-status { margin-left: 12px; }
input.selection { width: 20px; height: 20px; }
.results-table th, .results-table td { padding: 7px 9px; }
.results-table .col-model { width: 88px; min-width: 88px; max-width: 88px; text-align: center; white-space: normal; }
.results-table .col-choice { width: 54px; min-width: 54px; max-width: 54px; text-align: center; }
.results-table input.selection { display: block; margin: 0 auto; }
.results-table .deadline-date, .results-table .deadline-time { display: block; white-space: nowrap; }
.results-table .deadline-time { color: #6b7280; font-size: 0.9em; }
.history-actions { min-width: 250px; }
.history-date, .history-time { display: block; white-space: nowrap; }
.history-time { color: #6b7280; font-size: 0.9em; }
.inline-action { display: inline-block; width: auto; margin: 0 0 0 8px; padding: 0; background: transparent; box-shadow: none; }
.actions .inline-action { align-self: center; }
.inline-action button { width: auto; margin: 0; padding: 5px 8px; color: #374151; background: #e5e7eb; font-size: 0.85rem; }
.inline-action button:disabled { opacity: 0.55; cursor: default; }
.inline-action button.delete-action { color: #7f3030; background: #f5e5e5; }
.logout-form { display: inline-block; width: auto; margin: 0; padding: 0; background: transparent; box-shadow: none; }
.logout-form button { width: auto; margin: 0; padding: 10px 16px; background: #6b7280; }
.login-main { max-width: 440px; }
.home-actions { margin-top: 18px; }
.login-form { display: grid; gap: 10px; }
.login-form label { font-weight: 600; }
.login-form input { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; }
.results-table .model-yes { background: #e4f2e8; color: #28633c; font-weight: 600; }
@media (max-width: 640px) {
    table, thead, tbody, th, td, tr { display: block; }
    th { position: sticky; top: 0; }
    td { padding-left: 50%; position: relative; }
    td::before { content: attr(data-label); position: absolute; left: 16px; font-weight: 700; }
}

.source-actions a:first-child {
    background: #6b7280;
}

.source-actions a[aria-current="page"] {
    background: #111827;
    font-weight: 700;
}

#kontur-import input[type="date"] {
    display: block;
    margin: 0.25rem 0 0.75rem;
    font: inherit;
}

.score-reason {
    display: block;
    margin-top: 0.25rem;
}

.purchase-card { max-width: 860px; overflow-wrap: anywhere; }
.purchase-title { font-size: 1.25rem; }
.purchase-section { background: #fff; padding: 20px; margin-top: 16px; border-radius: 12px; }
.purchase-section h2 { margin-top: 0; }
.purchase-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px 20px; }
.purchase-fields dt { font-weight: 600; }
.purchase-fields dd { margin: 0; }
.purchase-documents li + li { margin-top: 8px; }
