* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}
.topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.topbar h1 { margin: 0 0 6px 0; font-size: 28px; }
.muted { margin: 0; color: #6b7280; }
.nav-links a, .button-link {
    display: inline-block;
    padding: 10px 14px;
    background: #0f766e;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    margin-left: 8px;
}
.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.form-card { max-width: 900px; }
.small-card { max-width: 480px; }
.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.grid-form label {
    display: block;
    font-size: 14px;
    font-weight: bold;
}
.grid-form input, .grid-form select {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
}
.full-width { grid-column: 1 / -1; }
button {
    border: 0;
    background: #2563eb;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
}
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
}
.success { background: #dcfce7; color: #166534; }
.error { background: #fee2e2; color: #991b1b; }
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}
.thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
}
.center { text-align: center; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.profile-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
}
.profile-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.print-page {
    background: #fff;
    padding: 20px;
}
.print-actions { margin-bottom: 16px; }
.print-card {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
    padding: 24px;
    border-radius: 16px;
}
.print-card.wide { max-width: 1200px; }
.print-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}
.print-table th { width: 220px; }
.small-text td, .small-text th { font-size: 12px; }
@media (max-width: 760px) {
    .grid-form, .details-grid, .profile-wrap { grid-template-columns: 1fr; }
    .container { padding: 14px; }
    .nav-links a, .button-link { margin: 4px 0; }
}
@media print {
    .no-print { display: none !important; }
    body, .print-page { padding: 0; margin: 0; }
    .print-card { border: 0; max-width: 100%; box-shadow: none; }
}
