* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background: #f4f5f7;
    color: #1f2328;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1c2b3a;
    color: white;
    padding: 12px 24px;
}
.navbar-brand { font-weight: 600; }
.navbar-links a {
    color: #cfe0f0;
    text-decoration: none;
    margin-right: 18px;
}
.navbar-links a:hover { color: white; }
.navbar-user { font-size: 14px; color: #cfe0f0; }
.navbar-user a { color: #ffb4b4; margin-left: 12px; text-decoration: none; }

.container { max-width: 1000px; margin: 24px auto; padding: 0 16px; }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.flash { padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; font-size: 14px; }
.flash-success { background: #e3f6e8; color: #1a7431; border: 1px solid #b6e6c2; }
.flash-error { background: #fdeaea; color: #a3221f; border: 1px solid #f3b6b4; }

.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: 6px; overflow: hidden; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid #eaecef; text-align: left; font-size: 14px; }
.data-table th { background: #eef1f4; font-weight: 600; }
.clickable-row { cursor: pointer; }
.clickable-row:hover { background: #f7f9fb; }

.status { padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.status-draft { background: #e9ecef; color: #495057; }
.status-validated { background: #d6eaff; color: #084c8d; }
.status-posted { background: #d7f5df; color: #1a7431; }
.status-rejected { background: #fbd8d6; color: #a3221f; }

.btn, .btn-secondary, .btn-remove {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}
.btn { background: #2563eb; color: white; }
.btn:hover { background: #1d4fd0; }
.btn-secondary { background: #e2e6ea; color: #1f2328; margin-right: 8px; }
.btn-secondary:hover { background: #d3d8dd; }
.btn-remove { background: #fbeaea; color: #a3221f; padding: 4px 10px; }

.login-box { max-width: 360px; margin: 80px auto; background: white; padding: 28px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.login-box h1 { font-size: 20px; margin-bottom: 20px; text-align: center; }
.login-box form { display: flex; flex-direction: column; gap: 10px; }
.login-box label { font-size: 13px; color: #555; }
.login-box input { padding: 8px; border: 1px solid #d0d5db; border-radius: 4px; }
.login-box button { margin-top: 10px; }

.inline-form, .stacked-form { background: white; padding: 16px; border-radius: 6px; margin-bottom: 20px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { padding: 8px; border: 1px solid #d0d5db; border-radius: 4px; }
.stacked-form { display: flex; flex-direction: column; gap: 4px; max-width: 480px; }
.stacked-form label { font-size: 13px; color: #555; margin-top: 8px; }
.stacked-form input, .stacked-form select { padding: 8px; border: 1px solid #d0d5db; border-radius: 4px; }
.stacked-form button { margin-top: 16px; }

.form-row { display: flex; gap: 16px; align-items: flex-end; margin-bottom: 20px; background: white; padding: 16px; border-radius: 6px; flex-wrap: wrap; }
.form-row label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; }
.form-row select, .form-row input { padding: 8px; border: 1px solid #d0d5db; border-radius: 4px; }
.form-actions { margin-top: 16px; display: flex; gap: 8px; align-items: center; }

.hint { color: #6b7280; font-size: 13px; margin-top: -8px; margin-bottom: 16px; }
.code-block { background: #1c2b3a; color: #d7e6f5; padding: 14px; border-radius: 6px; overflow-x: auto; font-size: 13px; }
