@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');

.employee-page {
  --employee-gold: #F5B427; --employee-gray: #58595B; --employee-ink: #333538;
  --employee-muted: #6c6e70; --employee-line: #e6e7e5;
  margin: 0; background: #fff; color: var(--employee-ink);
  font-family: 'IBM Plex Sans Arabic', Tahoma, sans-serif; font-size: 14px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
.employee-page *, .employee-page *::before, .employee-page *::after { box-sizing: border-box; }
.employee-page [hidden] { display: none !important; }
.employee-page :is(h1, h2, h3, p) { margin: 0; }
.employee-page :is(a, button, input, select) { -webkit-tap-highlight-color: transparent; }
.employee-page a { color: inherit; text-decoration: none; }
.employee-page :focus-visible { outline: 3px solid var(--employee-gold); outline-offset: 4px; }
.employee-page button, .employee-page input, .employee-page select { font: inherit; }
.employee-shell { max-width: 1320px; width: 100%; margin-inline: auto; padding-inline: 48px; }
.employee-header { border-top: 4px solid var(--employee-gold); border-bottom: 1px solid var(--employee-line); }
.employee-header-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 15px; }
.employee-brand { display: flex; flex-shrink: 0; }
.employee-brand img { display: block; width: 186px; height: 78px; object-fit: contain; }
.employee-back { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; font-size: 13px; color: var(--employee-gray) !important; }
.employee-back:hover, .employee-secondary-link:hover, .employee-card-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.employee-skip { position: absolute; top: -100px; right: 24px; background: #fff; padding: 12px 18px; z-index: 20; }
.employee-skip:focus { top: 14px; }
.employee-auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 100px; align-items: start; padding-block: 72px 88px; flex: 1; }
.employee-intro { position: relative; isolation: isolate; padding-block: 30px; max-width: 490px; }
.employee-intro::before { content: ''; position: absolute; z-index: -1; inset-block-start: 0; inset-inline-end: 0; width: 255px; height: 340px; background: url('/assets/brand-pattern.png') center / 240px; opacity: .04; pointer-events: none; mask-image: linear-gradient(#000, transparent); }
.employee-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; color: var(--employee-gray); }
.employee-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--employee-gold); flex-shrink: 0; }
.employee-intro h1 { font-size: clamp(35px, 4vw, 51px); line-height: 1.45; font-weight: 600; letter-spacing: -.025em; margin-block: 24px; }
.employee-intro h1 span { color: var(--employee-gray); }
.employee-intro > p:not(.employee-eyebrow) { color: var(--employee-muted); font-size: 15px; max-width: 415px; line-height: 2; }
.employee-security-note { border-top: 1px solid var(--employee-line); margin-top: 36px; padding-top: 19px; color: var(--employee-gray); font-size: 12px; display: flex; align-items: flex-start; gap: 12px; max-width: 415px; }
.employee-security-note svg { flex-shrink: 0; color: #966910; margin-top: 3px; }
.employee-auth-card { border: 1px solid var(--employee-line); border-top: 3px solid var(--employee-gold); border-radius: 4px; padding: 32px; background: #fff; box-shadow: 0 8px 28px #33353806; min-width: 0; }
.employee-auth-card h2 { font-weight: 600; font-size: 25px; margin-block: 9px 12px; }
.employee-card-copy { font-size: 12px; color: var(--employee-muted); line-height: 1.9; }
.employee-status { padding: 12px 14px; border-inline-start: 3px solid #a2a3a0; background: #f7f8f6; font-size: 12px; color: var(--employee-gray); margin-block: 20px !important; overflow-wrap: anywhere; }
.employee-status[data-state='error'] { border-color: #b43832; color: #8c2521; background: #fff3f1; font-weight: 500; }
.employee-status[data-state='warning'] { border-color: #b47c14; color: #76520a; background: #fff9e9; }
.employee-status[data-state='success'] { border-color: #32755d; color: #255940; background: #f0f8f3; }
.employee-field { margin-block: 18px; }
.employee-field label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 7px; }
.employee-field :is(input:not([type='checkbox']), select) { border: 1px solid #d2d4d1; border-radius: 3px; background: #fff; color: var(--employee-ink); width: 100%; min-height: 47px; padding: 10px 12px; min-width: 0; }
.employee-field input[dir='ltr'] { text-align: left; }
.employee-field input[type='password'] { font-family: 'Manrope', Tahoma, sans-serif; letter-spacing: .06em; }
.employee-field input:focus, .employee-field select:focus { border-color: #ad7b1b; }
.employee-field [aria-invalid='true'] { border: 2px solid #b43832 !important; background: #fff8f7; }
.employee-field :is(input, select):disabled { background: #f1f2ef; color: var(--employee-muted); opacity: 1; cursor: not-allowed; }
.employee-field input[readonly] { background: #f7f8f6; color: var(--employee-muted); }
.employee-field small, .employee-policy { display: block; font-size: 11px; color: var(--employee-muted); line-height: 1.9; margin-top: 7px; overflow-wrap: anywhere; }
.employee-policy { border-inline-start: 2px solid var(--employee-gold); padding-inline-start: 11px; margin-block: 12px 18px !important; }
.employee-button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 44px; padding: 10px 17px; border: 1px solid #d8dad5; border-radius: 3px; background: #fff; color: var(--employee-gray); font-size: 12px !important; font-weight: 500 !important; cursor: pointer; transition: background .16s, border-color .16s; }
.employee-button:hover { background: #f5f6f2; border-color: #afb0ab; }
.employee-button-primary { background: var(--employee-gold); border-color: var(--employee-gold); color: #333538; }
.employee-button-primary:hover { background: #efaa16; border-color: #efaa16; }
.employee-button:disabled { opacity: .55; cursor: not-allowed; }
.employee-full { width: 100%; margin-block: 8px; }
.employee-card-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 19px; margin-top: 18px; border-top: 1px solid var(--employee-line); font-size: 11px; }
.employee-card-footer a, .employee-secondary-link { color: #76520a !important; font-weight: 500; }
.employee-card-footer span { color: var(--employee-muted); }
.employee-secondary-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; margin-top: 10px; }
.employee-footer { border-top: 1px solid var(--employee-line); background: #fcfcfa; margin-top: auto; position: relative; isolation: isolate; }
.employee-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('/assets/brand-pattern.png') center / 205px; opacity: .025; pointer-events: none; }
.employee-footer > div { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; min-height: 76px; gap: 12px; padding-block: 18px; color: var(--employee-gray); font-size: 11px; }
.employee-footer b { font: 500 11px 'Manrope', sans-serif; display: inline-block; }
.employee-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.employee-nav a { padding-block: 11px; min-height: 44px; font-size: 12px; white-space: nowrap; color: var(--employee-gray); }
.employee-nav a[aria-current] { border-bottom: 2px solid var(--employee-gold); color: var(--employee-ink); }
.employee-admin-main { padding-block: 42px 64px; flex: 1; }
.employee-admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.employee-admin-heading h1 { font-size: 32px; font-weight: 600; margin-block: 11px 6px; }
.employee-session-name { font-size: 12px; color: var(--employee-muted); overflow-wrap: anywhere; }
.employee-admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 330px); gap: 30px; align-items: start; margin-top: 28px; }
.employee-directory { min-width: 0; }
.employee-section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.employee-section-heading h2 { font-size: 18px; font-weight: 500; }
.employee-count { font: 500 12px 'Manrope', sans-serif; padding: 4px 9px; background: #f4f4ef; border-radius: 3px; margin-inline-start: 8px; }
.employee-button-small { padding-inline: 11px; font-size: 11px !important; margin-inline-end: 5px; white-space: nowrap; }
.employee-search { max-width: 490px; }
.employee-table-wrap { overflow: auto; border: 1px solid var(--employee-line); border-radius: 3px; }
.employee-table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: start; }
.employee-table th { text-align: start; font-size: 10px; font-weight: 600; background: #f6f7f4; padding: 12px 10px; border-bottom: 1px solid var(--employee-line); white-space: nowrap; }
.employee-table td { border-bottom: 1px solid var(--employee-line); padding: 14px 10px; vertical-align: top; }
.employee-table tr:last-child td { border-bottom: 0; }
.employee-table strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.employee-email { display: block; font-family: 'Manrope', sans-serif; font-size: 10px; color: var(--employee-muted); margin-top: 4px; overflow-wrap: anywhere; }
.employee-subtext { display: block; font-size: 10px; color: var(--employee-muted); margin-top: 5px; min-width: 115px; }
.employee-badge { display: inline-flex; font-size: 10px; padding: 1px 8px; border: 1px solid #dededa; background: #f6f6f3; color: var(--employee-gray); border-radius: 3px; }
.employee-badge.is-active { border-color: #c5dfd1; background: #f0f8f3; color: #255940; }
.employee-date { min-width: 110px; color: var(--employee-muted); }
.employee-table td:last-child { min-width: 125px; }
.employee-table td:last-child button { margin-bottom: 5px; }
.employee-empty { text-align: center; color: var(--employee-muted); padding: 30px 15px; border: 1px solid var(--employee-line); border-top: 0; font-size: 12px; }
.employee-role-guide { border-top: 1px solid var(--employee-line); margin-top: 25px; padding-top: 20px; font-size: 11px; color: var(--employee-muted); }
.employee-role-guide h3 { font-size: 13px; font-weight: 500; color: var(--employee-ink); margin-bottom: 10px; }
.employee-role-guide p { margin-block: 7px; }
.employee-role-guide strong { font-weight: 500; color: var(--employee-gray); }
.employee-editor { border: 1px solid var(--employee-line); border-top: 3px solid var(--employee-gold); padding: 23px; border-radius: 3px; background: #fcfcfa; }
.employee-check { display: flex; align-items: flex-start; gap: 9px; }
.employee-check input { width: 20px; height: 20px; flex-shrink: 0; accent-color: #946918; margin-top: 3px; }
.employee-check label { line-height: 1.9; }
.employee-temporary-panel { padding: 23px; border: 1px solid #d5b568; border-inline-start: 4px solid var(--employee-gold); background: #fffaf0; margin-block: 24px; }
.employee-temporary-panel h2 { font-size: 18px; font-weight: 500; color: #76520a; }
.employee-temporary-panel p { font-size: 12px; color: #76520a; margin-block: 9px 15px; max-width: 900px; }
.employee-temporary-panel code { display: block; background: #fff; border: 1px dashed #d5b568; width: fit-content; max-width: 100%; font-size: 18px; padding: 11px 16px; margin-bottom: 15px; overflow-wrap: anywhere; user-select: all; }
.employee-reset-dialog { width: min(480px, calc(100% - 32px)); border: 1px solid var(--employee-line); border-top: 3px solid var(--employee-gold); border-radius: 4px; padding: 28px; color: var(--employee-ink); max-height: calc(100vh - 40px); overflow: auto; box-shadow: 0 20px 80px #0002; }
.employee-reset-dialog::backdrop { background: #33353880; }
.employee-reset-dialog h2 { font-size: 23px; font-weight: 500; }
.employee-reset-name { font-size: 14px; margin-block: 10px !important; font-weight: 500; overflow-wrap: anywhere; }
.employee-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (max-width: 1100px) {
  .employee-shell { padding-inline: 30px; }
  .employee-auth-layout { gap: 55px; }
  .employee-header-inner { flex-wrap: wrap; }
  .employee-admin-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
  .employee-nav { gap: 18px; }
}
@media (max-width: 800px) {
  .employee-auth-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 34px 50px; max-width: 620px; }
  .employee-intro { padding-block: 0; max-width: none; }
  .employee-intro h1 { font-size: 36px; margin-block: 16px; }
  .employee-intro h1 br { display: none; }
  .employee-intro > p:not(.employee-eyebrow) { font-size: 13px; max-width: none; }
  .employee-security-note { margin-top: 20px; padding-top: 14px; max-width: none; }
  .employee-intro::before { width: 160px; height: 190px; }
  .employee-admin-layout { grid-template-columns: 1fr; }
  .employee-editor { max-width: none; }
  .employee-admin-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .employee-nav { order: 3; width: 100%; gap: 23px; }
  .employee-header-inner { gap: 10px 20px; }
  .employee-brand img { width: 155px; height: 65px; }
}
@media (max-width: 520px) {
  .employee-shell { padding-inline: 20px; }
  .employee-header-inner { min-height: 91px; padding-block: 10px; }
  .employee-brand img { width: 143px; height: 60px; }
  .employee-back { font-size: 11px; gap: 10px; }
  .employee-auth-card { padding: 24px 21px; }
  .employee-auth-card h2 { font-size: 23px; }
  .employee-intro h1 { font-size: 31px; }
  .employee-admin-main { padding-block: 28px 44px; }
  .employee-admin-heading h1 { font-size: 28px; }
  .employee-nav { gap: 17px; }
  .employee-nav a { font-size: 11px; }
  .employee-table { min-width: 630px; }
  .employee-editor { padding: 20px; }
  .employee-temporary-panel { padding: 20px; }
  .employee-footer > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .employee-reset-dialog { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .employee-page *, .employee-page *::before, .employee-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .employee-page #temporary-password-panel, .employee-page input[type='password'], .employee-page #employee-admin-content, .employee-page dialog { display: none !important; }
}

/* Employee authentication/admin-only additions; no global application styles. */
.employee-forgot-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.employee-forgot-link > span { display: inline-flex; color: #966910; }
.employee-forgot-link svg { width: 18px; height: 18px; }
.employee-pin-card { margin-block: 24px 28px; border: 1px solid var(--employee-line); border-inline-start: 3px solid var(--employee-gold); border-radius: 4px; background: #fcfcfa; padding: 24px; }
.employee-pin-card h2 { display: flex; align-items: center; gap: 10px; }
.employee-pin-card h2 > span, .employee-pin-card button > span { display: inline-flex; color: #966910; }
.employee-pin-card .icon { flex-shrink: 0; width: 22px; height: 22px; }
.employee-pin-card > .employee-card-copy { margin-top: 12px; }
.employee-pin-card #manager-pin-email { display: inline-block; font-family: 'Manrope', Tahoma, sans-serif; font-size: 11px; overflow-wrap: anywhere; }
.employee-pin-admin-label { font-size: 11px; color: var(--employee-muted); }
.employee-pin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 640px; }
.employee-pin-card form { border-top: 1px solid var(--employee-line); margin-top: 20px; padding-top: 4px; }
@media (max-width: 520px) {
  .employee-pin-card { padding: 20px; }
  .employee-pin-fields { grid-template-columns: 1fr; gap: 0; }
  .employee-pin-card button { width: 100%; }
}
@media print { .employee-page #manager-pin-card { display: none !important; } }
