* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #222;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.topbar h1 {
    margin: 0;
    font-size: 28px;
}

.logout-btn {
    text-decoration: none;
    background: #111827;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
}

.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filters select,
.filters button,
.login-card input,
.login-card button {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d0d7e2;
    font-size: 16px;
}

.filters button,
.login-card button {
    background: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
}

.status-line {
    min-height: 24px;
    margin-bottom: 12px;
    color: #374151;
}

.card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.photo-block img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: #eee;
}

.info-block h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 28px;
}

.meta {
    margin-bottom: 6px;
    color: #444;
}

.field {
    margin-top: 18px;
}

.field-title {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 18px;
}

.field-value {
    white-space: pre-wrap;
    background: #f8fafc;
    padding: 12px;
    border-radius: 10px;
    line-height: 1.45;
    word-break: break-word;
}

.actions,
.status-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.nav-btn,
.ok-btn,
.warn-btn {
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.nav-btn {
    background: #e5e7eb;
    color: #111;
}

.ok-btn {
    background: #16a34a;
    color: white;
}

.warn-btn {
    background: #dc2626;
    color: white;
}

.nav-btn:disabled,
.ok-btn:disabled,
.warn-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.empty-state {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.login-card h1 {
    margin-top: 0;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.service-item {
    padding: 10px 0;
    border-bottom: 1px solid #dbe3ee;
}

.service-item:last-child {
    border-bottom: none;
}

.service-decoded {
    color: #4b5563;
    margin-top: 4px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .card {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .info-block h2 {
        font-size: 24px;
    }
}
