* { box-sizing: border-box; }
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f4f7;
    margin: 0;
    padding: 24px;
    color: #222;
}
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
h1 { margin-top: 0; font-size: 22px; }
h2 { font-size: 16px; margin: 0; }
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.btn {
    display: inline-block;
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}
.btn.secondary { background: #6b7280; }
.btn.danger { background: #dc2626; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
th, td {
    padding: 10px 8px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}
th { background: #f9fafb; color: #444; }
tr:hover { background: #fafafa; }
.actions a { margin-right: 10px; font-size: 13px; text-decoration: none; }
.actions a.edit { color: #2563eb; }
.actions a.delete { color: #dc2626; }
.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin: 12px 0;
}
.success {
    background: #dcfce7;
    color: #166534;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin: 12px 0;
}
.empty { text-align: center; color: #888; padding: 30px 0; }

form.form-box label {
    display: block;
    margin-top: 14px;
    margin-bottom: 4px;
    font-size: 14px;
    color: #444;
}
form.form-box input, form.form-box select, form.form-box textarea {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
form.form-box .buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.checkbox-list label {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    margin-top: 0 !important;
    background: #f9fafb;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.checkbox-list input { width: auto !important; }

/* Banner chào mừng */
.welcome-banner {
    text-align: center;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    border-radius: 10px;
    padding: 22px 20px;
    margin-bottom: 22px;
}
.welcome-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 6px;
}
.welcome-sub {
    font-size: 14px;
    color: #dbeafe;
    line-height: 1.6;
}

/* Khu vực báo cáo công việc */
.status-group {
    margin-bottom: 26px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.status-header {
    position: relative;
    padding: 12px 14px;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    letter-spacing: 0.3px;
}
.status-count {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.25);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: normal;
}
.task-row {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 14px;
}
.task-row:last-child { border-bottom: none; }
.task-title { font-weight: bold; margin-bottom: 6px; }
.task-meta { font-size: 13px; color: #555; line-height: 1.7; }
.task-meta b { color: #333; }
.task-side { font-size: 13px; color: #555; }
.task-side .label { color: #888; font-size: 12px; }

.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.excel-table th, .excel-table td {
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    vertical-align: top;
    text-align: left;
}
.excel-table th {
    background: #f3f4f6;
    color: #1f2937;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.3px;
}
.excel-table tbody tr:nth-child(even) { background: #fafafa; }
.excel-table tbody tr:hover { background: #f0f6ff; }

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.filter-bar select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

@media print {
    body { background: #fff; padding: 0; }
    .wrap { box-shadow: none; padding: 0; }
    .no-print { display: none !important; }
}
