* { box-sizing: border-box; }
:root { font-family: "Tajawal", Tahoma, "Segoe UI", sans-serif; color: #1b2938; background: #f5f8f9; --teal: #128d84; --line: #e5edef; --muted: #82919a; }
body { min-width: 320px; margin: 0; background: #f5f8f9; }
body.modal-open { overflow: hidden; }
.app-sidebar { position: fixed; z-index: 10; top: 0; right: 0; display: flex; flex-direction: column; width: 260px; height: 100vh; padding: 28px 18px; color: #f2e9df; background: linear-gradient(165deg, #202733 0%, #16232e 62%, #9e481c 100%); transition: width .25s ease, padding .25s ease; }.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 38px; color: inherit; text-decoration: none; }.sidebar-brand > img { display: block; width: 40px; height: 40px; border: 2px solid rgba(239, 145, 61, .72); border-radius: 12px; object-fit: cover; background: #fff; box-shadow: 0 5px 12px rgba(0, 0, 0, .2); }.sidebar-brand strong, .sidebar-brand small { display: block; }.sidebar-brand strong { color: #fff; font-size: 16px; }.sidebar-brand small { margin-top: 4px; color: #f1c9a8; font-size: 10px; font-weight: 400; }.sidebar-nav { display: grid; gap: 6px; }.sidebar-nav p { margin: 0 12px 11px; color: #d8a77d; font-size: 10px; font-weight: 700; }.sidebar-nav a { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 9px; color: #ddc7b4; text-decoration: none; font-size: 13px; }.sidebar-nav a:hover, .sidebar-nav a.active { color: #fff; background: rgba(224, 103, 27, .32); }.sidebar-nav a.active { box-shadow: inset -3px 0 #f09a43; }.sidebar-nav b { display: inline-grid; place-items: center; width: 21px; color: #e5a66f; font-size: 20px; font-weight: 400; }.sidebar-nav a.active b { color: #ffc078; }
.sidebar-toggle { margin: 0 0 12px auto; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: #fff; background: rgba(255,255,255,.08); font-size: 18px; cursor: pointer; }
.app-sidebar.collapsed { width: 90px; padding: 18px 10px; }
.app-sidebar.collapsed .sidebar-brand { padding-inline: 0; justify-content: center; }
.app-sidebar.collapsed .sidebar-brand strong,
.app-sidebar.collapsed .sidebar-brand small,
.app-sidebar.collapsed .sidebar-nav p,
.app-sidebar.collapsed .sidebar-nav span { display: none; }
.app-sidebar.collapsed .sidebar-nav a { justify-content: center; padding: 12px 8px; }
.app-sidebar.collapsed .sidebar-nav b { width: auto; }
body.sidebar-collapsed .employees-page { width: calc(100% - 150px); margin-right: 110px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.employees-page { width: min(1400px, calc(100% - 320px)); margin: 0 0 0 0; margin-right: 290px; padding: 42px 30px 60px; transition: width .25s ease, margin-right .25s ease; }
.page-heading { display: flex; align-items: center; justify-content: space-between; min-height: 118px; margin: -42px -30px 27px; padding: 20px 30px; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { margin: 0 0 9px; color: #9aa7b0; font-size: 10px; }
.breadcrumb span { padding: 0 7px; color: #c5cdd1; }
.page-heading h1 { margin: 0 0 6px; font-size: 21px; letter-spacing: 0; }
.page-heading h1 span { font-size: 19px; }
.page-heading p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.head-actions { display: flex; align-items: center; gap: 12px; }
.back-button { padding: 10px 13px; border: 1px solid #dce8e9; border-radius: 7px; color: #586d78; background: #fff; font-size: 10px; }
.heading-date { display: flex; align-items: center; gap: 11px; min-width: 220px; padding: 11px 14px; border: 1px solid #dceceb; border-radius: 12px; background: linear-gradient(135deg, #fff 0%, #f3fbfa 100%); box-shadow: 0 7px 18px rgba(18, 59, 69, .07); }
.heading-date span, .heading-date strong { display: block; }
.heading-date span { margin-bottom: 3px; color: #8a9aa1; font-size: 9px; font-weight: 500; }
.heading-date strong { color: #1b2938; font-size: 11px; font-weight: 700; white-space: nowrap; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 11px; font-weight: 700; }
h1 { margin: 0 0 9px; font-size: 28px; letter-spacing: 0; }
.page-header p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.primary-button { padding: 11px 16px; border: 0; border-radius: 7px; color: #fff; background: #117f79; font-size: 11px; box-shadow: 0 5px 12px rgba(17,127,121,.16); }
.primary-button span { margin-left: 5px; font-size: 17px; vertical-align: middle; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.summary-card { display: flex; align-items: center; gap: 13px; padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.summary-card > div span, .summary-card > div strong { display: block; }.summary-card > div span { color: var(--muted); font-size: 11px; }.summary-card strong { margin-top: 9px; font-size: 25px; }.summary-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font-size: 19px; }.summary-icon.teal { color: #158e84; background: #e2f6f3; }.summary-icon.green { color: #28a783; background: #e6f7ef; }.summary-icon.orange { color: #e6a143; background: #fff3df; }.summary-icon.red { color: #e2736b; background: #fcebea; }
.employees-card { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.section-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }.section-heading h2 { margin: 0 0 7px; font-size: 16px; }.section-heading p { margin: 0; color: var(--muted); font-size: 10px; }.heading-actions { display: flex; align-items: center; gap: 10px; }.search-box { display: flex; align-items: center; gap: 7px; width: 210px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: #9aa8af; }.search-box input { width: 100%; border: 0; outline: 0; color: #334652; background: transparent; font-size: 10px; }.search-box input::placeholder { color: #a8b2b8; }.heading-actions select { min-width: 125px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: #70808a; background: #fff; font-size: 10px; }
.table-wrap { overflow-x: auto; }table { width: 100%; min-width: 800px; border-collapse: collapse; }th { padding: 0 10px 13px; color: #9aa7ae; text-align: right; font-size: 10px; font-weight: 400; }td { padding: 14px 10px; border-top: 1px solid #f0f3f4; color: #687985; font-size: 10px; }td:first-child { color: #1b2938; font-weight: 700; }.employee-name { display: flex; align-items: center; gap: 9px; }.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #72a9bb; font-size: 11px; }.avatar.orange { background: #d99c61; }.avatar.purple { background: #9a83c4; }.avatar.blue { background: #7198d1; }.avatar.green { background: #63aa94; }.status { display: inline-block; padding: 5px 9px; border-radius: 4px; font-size: 9px; }.status.active { color: #209b81; background: #e3f7f0; }.status.leave { color: #cd8a26; background: #fff3de; }.status.offline { color: #8d989e; background: #eff2f3; }.row-actions { display: flex; align-items: center; gap: 5px; }.row-action { padding: 6px 8px; border: 0; border-radius: 5px; color: #66818b; background: #f2f7f7; font-size: 9px; }.row-action:hover { color: #176f6a; background: #e2f5f2; }.row-action.edit-action { color: #966b26; background: #fff5e3; }.row-action.edit-action:hover { background: #ffebc7; }.row-action.delete-action { color: #b05c55; background: #fceeed; }.row-action.delete-action:hover { background: #f8deda; }.empty-state { padding: 44px 15px; color: var(--muted); text-align: center; font-size: 12px; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(20, 31, 39, .58); backdrop-filter: blur(5px); }.modal-backdrop[hidden] { display: none; }.employee-modal { width: min(680px, 100%); max-height: calc(100vh - 44px); overflow-y: auto; padding: 27px; border: 1px solid rgba(255,255,255,.6); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(13, 32, 41, .25); animation: modal-in .22s ease-out; }.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }.modal-kicker { display: block; margin-bottom: 7px; color: var(--teal); font-size: 10px; font-weight: 700; }.modal-header h2 { margin: 0 0 7px; color: #1b2938; font-size: 21px; }.modal-header p { margin: 0; color: var(--muted); font-size: 10px; }.modal-close { display: grid; place-items: center; width: 31px; height: 31px; border: 0; border-radius: 8px; color: #82919a; background: #f2f6f7; font-size: 22px; line-height: 1; }.modal-close:hover { color: #b85349; background: #fcedeb; }.form-section-title { display: flex; align-items: center; gap: 10px; margin: 21px 0 14px; }.form-section-title > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--teal); background: #e3f6f3; font-size: 9px; font-weight: 700; }.form-section-title strong, .form-section-title small { display: block; }.form-section-title strong { margin-bottom: 3px; font-size: 12px; }.form-section-title small { color: var(--muted); font-size: 9px; }.employee-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.employee-form-grid label { color: #647780; font-size: 10px; }.employee-form-grid input, .employee-form-grid select { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #e2eaec; border-radius: 7px; outline: 0; color: #344754; background: #fbfdfd; font-size: 11px; transition: .2s ease; }.employee-form-grid input:focus, .employee-form-grid select:focus { border-color: #48b8ad; background: #fff; box-shadow: 0 0 0 3px rgba(25,168,155,.1); }.employee-form-grid input::placeholder { color: #b0bbc0; }.modal-footer { display: flex; justify-content: flex-start; gap: 9px; margin-top: 27px; padding-top: 19px; border-top: 1px solid #edf2f3; }.secondary-button { padding: 11px 19px; border: 1px solid #e0e8ea; border-radius: 7px; color: #71818c; background: #fff; font-size: 10px; }.secondary-button:hover { background: #f5f8f9; }.modal-footer .primary-button { padding: 11px 19px; }.modal-footer .primary-button span { margin-left: 5px; font-size: 13px; }@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 900px) { .summary-grid { grid-template-columns: repeat(2, 1fr); }.section-heading { display: block; }.heading-actions { margin-top: 18px; } }
@media (max-width: 900px) { .app-sidebar { width: 74px; padding: 20px 10px; }.sidebar-brand { justify-content: center; padding: 0 0 28px; }.sidebar-brand strong, .sidebar-nav p, .sidebar-nav a span { display: none; }.sidebar-nav a { justify-content: center; padding: 13px 8px; }.sidebar-nav b { width: auto; }.employees-page { width: calc(100% - 100px); margin-right: 84px; padding-right: 15px; padding-left: 15px; }.page-heading { margin-right: -15px; margin-left: -15px; padding-right: 15px; padding-left: 15px; } }
@media (max-width: 560px) { .employees-page { width: calc(100% - 88px); margin-right: 74px; padding-top: 25px; padding-right: 14px; padding-left: 14px; }.page-heading { display: block; min-height: 0; margin: -25px -14px 25px; padding: 15px 14px; }.head-actions { flex-wrap: wrap; margin-top: 18px; }.heading-date { flex: 1 1 100%; min-width: 0; }.page-header { display: block; }.primary-button { margin-top: 0; }.summary-grid { gap: 10px; }.summary-card { padding: 14px 12px; }.summary-icon { width: 32px; height: 32px; }.summary-card > div span { font-size: 9px; }.summary-card strong { font-size: 21px; }.employees-card { padding: 16px; }.heading-actions { display: grid; grid-template-columns: 1fr; }.search-box, .heading-actions select { width: 100%; }.employee-modal { padding: 20px 17px; border-radius: 14px; }.employee-form-grid { grid-template-columns: 1fr; gap: 13px; }.modal-header h2 { font-size: 18px; } }
.employee-files-grid { margin-top: 2px; }.employee-files-grid input[type="file"] { padding: 8px; color: #72838b; background: #f7fbfb; font-size: 10px; }.employee-files-grid input[type="file"]::file-selector-button { margin-left: 9px; padding: 7px 10px; border: 0; border-radius: 5px; color: #176f6a; background: #dff3f0; font: inherit; cursor: pointer; }.employee-files-grid label::after { display: block; margin-top: 5px; color: #a0adb3; content: "صور JPG أو PNG أو WEBP، وملفات PDF للوثائق"; font-size: 8px; }
.employee-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.employee-detail-item { padding: 12px; border: 1px solid #e6eef0; border-radius: 8px; background: #fbfdfd; }.employee-detail-item small, .employee-detail-item strong { display: block; }.employee-detail-item small { margin-bottom: 5px; color: #8a9aa1; font-size: 9px; }.employee-detail-item strong { color: #344754; font-size: 11px; }.view-modal-footer { justify-content: flex-start; }.view-modal-footer .primary-button { min-width: 90px; }
.employee-attachment-item img { display: block; width: 72px; height: 72px; margin-top: 8px; border-radius: 9px; object-fit: cover; }.employee-attachment-item a { display: inline-block; margin-top: 4px; color: #128d84; font-size: 10px; font-weight: 700; text-decoration: none; }.employee-attachment-item a:hover { text-decoration: underline; }
@media (max-width: 560px) { .employee-details-grid { grid-template-columns: 1fr; }.row-actions { flex-wrap: wrap; } }
