:root {
    color-scheme: light;
    font: 16px/1.5 Arial, sans-serif;
    color: #172033;
    background: #f3f5f8;
    direction: rtl;
}

* { box-sizing: border-box; }
body { margin: 0; direction: rtl; text-align: right; }
a { color: #175cd3; text-decoration: none; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 5vw; color: #fff; background: #173b72; }
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar nav, .employee-form, .filter-form, .section-title { direction: rtl; }
.topbar a { color: #fff; }
.content { max-width: 1100px; margin: 28px auto; padding: 0 18px; }
.panel { margin: 16px 0; padding: 20px; border-radius: 10px; background: #fff; box-shadow: 0 2px 12px #17203312; }
.narrow { max-width: 420px; margin: 12vh auto; }
h1 { margin-top: 0; }
label { display: grid; gap: 5px; margin: 10px 0; font-weight: 600; }
input { width: 100%; padding: 10px; border: 1px solid #b8c2d1; border-radius: 6px; font: inherit; }
button, .button { display: inline-block; padding: 9px 14px; border: 0; border-radius: 6px; color: #fff; background: #175cd3; font: inherit; cursor: pointer; }
.secondary { color: #25324a; background: #e7ebf1; }
.employee-form, .filter-form, .section-title { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.section-title { justify-content: space-between; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid #e1e6ee; text-align: right; }
.error { padding: 10px; color: #9c1c1c; background: #fee4e2; }
.success { padding: 10px; color: #17613a; background: #dcfae6; }
.employee-select { width: auto; }

@media (max-width: 620px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    .employee-form > *, .filter-form > * { width: 100%; }
}
