:root {
  --surface: #f3efe4;
  --surface-soft: #e8dfca;
  --card: rgba(255, 252, 245, 0.88);
  --card-strong: rgba(255, 251, 242, 0.94);
  --brand-ink: #2E314D;
  --brand-panel: #3A3F63;
  --text-main: #2f3246;
  --text-soft: #6f7488;
  --text-on-dark: #E8E8E8;
  --text-muted-on-dark: #A6A9B8;
  --cta: #C2A96B;
  --cta-strong: #b79b58;
  --line-soft: rgba(58, 63, 99, 0.12);
  --panel-border: rgba(232, 232, 232, 0.1);
  --ok: #1b8d6a;
  --error: #b53d4d;
  --border: #e1ddd1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(194, 169, 107, 0.24), transparent 22%),
    radial-gradient(circle at 85% 10%, rgba(58, 63, 99, 0.18), transparent 20%),
    linear-gradient(180deg, #faf7f0 0%, #f3ede1 48%, #efe6d5 100%);
}

html {
  -webkit-text-size-adjust: 100%;
}

.auth-body, .dash-body {
  min-height: 100vh;
  position: relative;
}

.dash-body::before,
.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(46, 49, 77, 0.08), transparent 30%),
    linear-gradient(300deg, rgba(194, 169, 107, 0.1), transparent 24%);
}

.auth-card {
  width: min(92vw, 500px);
  margin: 9vh auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 238, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  padding: 38px;
  box-shadow:
    0 24px 60px rgba(46, 49, 77, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
}

.auth-shell {
  width: min(1240px, calc(100vw - 48px));
  margin: clamp(20px, 4vh, 42px) auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 460px);
  gap: 26px;
  align-items: stretch;
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(30px, 4vw, 48px);
  min-height: min(760px, calc(100vh - 90px));
  background:
    radial-gradient(circle at top right, rgba(194, 169, 107, 0.22), transparent 24%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.07), transparent 18%),
    linear-gradient(145deg, rgba(46, 49, 77, 0.98), rgba(58, 63, 99, 0.96));
  color: var(--text-on-dark);
  box-shadow: 0 28px 70px rgba(46, 49, 77, 0.22);
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -22% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 169, 107, 0.22), transparent 68%);
  pointer-events: none;
}

.auth-brand-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.auth-logo-frame {
  width: min(100%, 360px);
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}

.auth-logo {
  width: 100%;
  max-width: 310px;
  height: 96px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.18));
}

.auth-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(194, 169, 107, 0.16);
  border: 1px solid rgba(194, 169, 107, 0.22);
  color: #e4ca8e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-brand-panel h1 {
  margin-top: 18px;
  margin-bottom: 16px;
  max-width: 620px;
  color: var(--text-on-dark);
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.08;
}

.auth-lead {
  max-width: 600px;
  color: var(--text-muted-on-dark);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.9;
}

.auth-message-card {
  margin-top: 34px;
  max-width: 560px;
  padding: 24px 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.auth-message-card strong {
  display: block;
  margin-bottom: 10px;
  color: #f5deb0;
  font-size: 18px;
}

.auth-message-card p {
  margin: 0;
  color: var(--text-muted-on-dark);
  line-height: 1.7;
}

.auth-login-card {
  width: 100%;
  margin: 0;
  align-self: center;
  padding: 42px 38px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(194, 169, 107, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 249, 239, 0.93));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 30px 65px rgba(46, 49, 77, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-form-head {
  margin-bottom: 26px;
}

.auth-form-head h2 {
  margin: 16px 0 10px;
  font-size: 38px;
  letter-spacing: -0.01em;
}

.auth-form-head p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.8;
}

.auth-help-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(58, 63, 99, 0.12);
}

.auth-help-note span {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-ink);
  font-weight: 800;
}

.auth-help-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}


h1 { margin: 0 0 8px; font-size: 34px; color: var(--brand-ink); line-height: 1.1; }
h2, h3 { color: var(--brand-ink); }
p { margin: 0 0 18px; color: var(--text-soft); }

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--brand-ink);
}

input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(58, 63, 99, 0.14);
  font-size: 17px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.select-input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(58, 63, 99, 0.14);
  font-size: 17px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.8);
  font-family: "Tajawal", sans-serif;
  color: var(--brand-ink);
}

button {
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, var(--brand-panel), var(--brand-ink));
  color: var(--text-on-dark);
  font-weight: 800;
  font-size: 17px;
  border-radius: 16px;
  padding: 15px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(46, 49, 77, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-login-card form {
  margin-top: 8px;
}

.auth-login-card input {
  margin-bottom: 16px;
}

.auth-login-card button {
  margin-top: 4px;
  min-height: 52px;
  font-size: 18px;
}

.auth-login-card .auth-help-note {
  margin-top: 26px;
}

button:hover,
.logout:hover,
.table-link:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
}

input:focus,
.select-input:focus,
button:focus,
.logout:focus,
.table-link:focus,
summary:focus {
  outline: 3px solid rgba(194, 169, 107, 0.28);
  outline-offset: 2px;
}

input:focus,
.select-input:focus {
  border-color: rgba(46, 49, 77, 0.34);
  box-shadow:
    0 0 0 4px rgba(194, 169, 107, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  background: #fff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.topbar {
  max-width: 1220px;
  margin: 0 auto 16px;
  padding: 26px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar > div {
  flex: 1;
  padding: 18px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(46, 49, 77, 0.96), rgba(58, 63, 99, 0.9));
  box-shadow: 0 18px 42px rgba(46, 49, 77, 0.2);
}

.topbar strong {
  display: block;
  color: var(--text-on-dark);
  font-size: 20px;
  margin-bottom: 4px;
}

.topbar span {
  display: block;
  color: var(--text-muted-on-dark);
  font-size: 14px;
}

.logout, .table-link {
  display: inline-block;
  text-decoration: none;
  color: var(--brand-ink);
  background: linear-gradient(135deg, #d5be82, var(--cta));
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(194, 169, 107, 0.24);
}

.quick-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.table-link {
  text-align: center;
}

.subtle-link {
  background: linear-gradient(135deg, rgba(46, 49, 77, 0.1), rgba(58, 63, 99, 0.08));
  color: var(--brand-panel);
  box-shadow: none;
}

.dash-wrap {
  max-width: 1220px;
  margin: 14px auto 40px;
  padding: 0 max(16px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
}

.welcome-card, .history-card, .stat-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 26px;
  padding: 24px;
  box-shadow:
    0 18px 45px rgba(46, 49, 77, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
}

.welcome-card {
  background:
    radial-gradient(circle at top right, rgba(194, 169, 107, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 242, 0.95), rgba(247, 240, 226, 0.88));
}

.status b { color: var(--brand-ink); }
.last-action { font-size: 14px; }

.actions {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.shift-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.manage-form {
  margin-top: 14px;
}

.leave-form {
  margin-top: 14px;
}

.report-filters-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.report-toolbar {
  margin-top: 20px;
}

.month-filter-form {
  max-width: 420px;
}

.month-filter-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.month-filter-controls input {
  margin-bottom: 0;
}

.secondary-btn {
  width: auto;
  white-space: nowrap;
  padding-inline: 18px;
  background: linear-gradient(135deg, #d9c79a, #c2a96b);
  color: var(--brand-ink);
  box-shadow: 0 10px 22px rgba(194, 169, 107, 0.18);
}

.filter-actions {
  display: grid;
  gap: 10px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.form-note {
  display: flex;
  align-items: center;
  color: var(--text-soft);
  font-size: 14px;
}

.stats-grid {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.report-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(194, 169, 107, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(249, 242, 229, 0.84));
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(46, 49, 77, 0.8), rgba(194, 169, 107, 0.8));
}

.stat-card span {
  display: block;
  color: var(--text-soft);
  margin-bottom: 10px;
  font-size: 14px;
}

.stat-card strong {
  font-size: 29px;
  color: var(--brand-ink);
  line-height: 1.15;
}

.department-accordion {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.94), rgba(247, 240, 228, 0.9));
}

.department-accordion summary {
  list-style: none;
  cursor: pointer;
}

.department-accordion summary::-webkit-details-marker {
  display: none;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgba(46, 49, 77, 0.96), rgba(58, 63, 99, 0.92));
  color: var(--text-on-dark);
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-on-dark);
}

.section-count {
  color: var(--text-muted-on-dark);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  padding: 9px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.section-subtitle {
  margin: 6px 0 0;
  color: inherit;
  font-size: 14px;
  opacity: 0.8;
}

.compact-head {
  padding: 0 0 18px;
  background: transparent;
  color: var(--brand-ink);
}

.employee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px 24px 24px;
}

.employee-card {
  border: 1px solid rgba(58, 63, 99, 0.1);
  border-radius: 22px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 235, 0.92));
  box-shadow: 0 14px 30px rgba(46, 49, 77, 0.07);
}

.leave-request-list {
  display: grid;
  gap: 16px;
}

.leave-request-card {
  border: 1px solid rgba(58, 63, 99, 0.1);
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 235, 0.92));
  box-shadow: 0 14px 30px rgba(46, 49, 77, 0.07);
}

.leave-request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.employee-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.employee-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.employee-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.employee-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
}

.employee-meta span {
  color: var(--text-main);
  font-size: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.role-pill {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-panel), var(--brand-ink));
  color: var(--text-on-dark);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(46, 49, 77, 0.18);
}

.status-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pending {
  background: rgba(194, 169, 107, 0.18);
  color: #8a6d2a;
}

.status-approved {
  background: rgba(27, 141, 106, 0.15);
  color: var(--ok);
}

.status-rejected {
  background: rgba(181, 61, 77, 0.14);
  color: var(--error);
}

.btn.in {
  background: linear-gradient(135deg, #46537f, #2E314D);
}

.btn.out {
  background: linear-gradient(135deg, #d9c286, #c2a96b);
  color: var(--brand-ink);
}

.alert {
  padding: 15px 16px;
  border-radius: 16px;
  margin: 14px 0 18px;
  font-weight: 700;
  border: 1px solid transparent;
}

.alert.ok {
  background: rgba(231, 246, 241, 0.92);
  color: var(--ok);
  border-color: rgba(27, 141, 106, 0.18);
}

.alert.error {
  background: rgba(252, 235, 238, 0.94);
  color: var(--error);
  border-color: rgba(181, 61, 77, 0.18);
}

.inline-form {
  margin: 0;
}

.danger-btn {
  width: auto;
  background: linear-gradient(135deg, #b53d4d, #8e2f3b);
  color: #fff;
  padding: 10px 12px;
  box-shadow: none;
}

.hr-admin-body .employees-table td:last-child {
  text-align: right;
}

.hr-admin-body .employees-table .inline-form {
  display: inline-flex;
}

.hr-admin-body .employees-table .danger-btn {
  min-width: 132px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid rgba(124, 28, 42, 0.3);
  background: linear-gradient(135deg, #c65263, #9f3847 58%, #7f2735);
  box-shadow: 0 10px 22px rgba(159, 56, 71, 0.25);
}

.hr-admin-body .employees-table .danger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(159, 56, 71, 0.28);
}

.leave-decision-form {
  display: grid;
  gap: 12px;
}

.leave-decision-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.muted-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(58, 63, 99, 0.08);
  color: var(--text-soft);
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(58, 63, 99, 0.08);
}

th, td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(58, 63, 99, 0.08);
  text-align: left;
}

th {
  background: linear-gradient(135deg, rgba(46, 49, 77, 0.96), rgba(58, 63, 99, 0.92));
  color: var(--text-on-dark);
  font-size: 14px;
  font-weight: 800;
}

tbody tr:nth-child(even) {
  background: rgba(194, 169, 107, 0.06);
}

tbody tr:hover {
  background: rgba(58, 63, 99, 0.06);
}

.report-table {
  min-width: 860px;
}

.history-card {
  overflow-x: auto;
}

.history-card table,
.history-card .report-table {
  min-width: 720px;
}

.table-subtext {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.friday-note { margin-top: 10px; font-size: 13px; }

.checkpoint-panel {
  margin-bottom: 14px;
  position: sticky;
  top: 8px;
  z-index: 4;
}

.checkpoint-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.checkpoint-head h2 {
  margin: 0;
}

.checkpoint-timer {
  margin-top: 8px;
  font-size: clamp(30px, 5.4vw, 42px);
  font-weight: 800;
  color: var(--brand-panel);
  letter-spacing: 0.04em;
}

.checkpoint-locked {
  opacity: 0.72;
}

.checkpoint-dialog {
  border: 1px solid rgba(58, 63, 99, 0.14);
  border-radius: 20px;
  width: min(92vw, 520px);
  padding: 0;
}

.checkpoint-dialog::backdrop {
  background: rgba(24, 28, 44, 0.45);
}

.checkpoint-dialog form {
  padding: 24px;
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249, 242, 229, 0.92));
}

.checkpoint-dialog h3 {
  margin: 0;
  font-size: 24px;
  color: var(--brand-ink);
}

.checkpoint-dialog p {
  margin: 0;
  color: var(--text-soft);
}

.checkpoint-dialog textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(58, 63, 99, 0.2);
  padding: 14px;
  font-family: "Tajawal", sans-serif;
  font-size: 16px;
  resize: vertical;
  min-height: 110px;
  background: rgba(255, 255, 255, 0.92);
}

.checkpoint-dialog textarea:focus {
  outline: 3px solid rgba(194, 169, 107, 0.22);
  border-color: rgba(58, 63, 99, 0.35);
}

.checkpoint-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.checkpoint-actions .secondary-btn {
  min-width: 200px;
  font-weight: 800;
}

.admin-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(58, 63, 99, 0.2);
  padding: 14px;
  font-family: "Tajawal", sans-serif;
  font-size: 16px;
  resize: vertical;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.92);
  margin-bottom: 14px;
}

.announcement-panel {
  margin-bottom: 14px;
}

.announcement-card h3 {
  margin: 0 0 6px;
}

.live-monitor-card {
  margin: 18px 0;
}

.live-stats-grid {
  margin-top: 10px;
}

.employee-details-dialog {
  width: min(92vw, 640px);
  border: 1px solid rgba(46, 49, 77, 0.16);
  border-radius: 22px;
  padding: 0;
  background: transparent;
}

.employee-details-dialog::backdrop {
  background: rgba(24, 28, 44, 0.45);
}

.employee-details-content {
  padding: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(194, 169, 107, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 241, 226, 0.94));
  border-radius: 22px;
}

.hr-admin-body .topbar > div {
  background:
    radial-gradient(circle at top right, rgba(194, 169, 107, 0.22), transparent 42%),
    linear-gradient(135deg, #2e314d, #3d446d 62%, #2e314d);
}

.hr-admin-body .topbar {
  align-items: stretch;
}

.hr-admin-body .topbar .logout {
  align-self: center;
  min-width: 118px;
}

.hr-admin-body {
  --admin-ink: #2E314D;
  --admin-ink-soft: #3A3F63;
  --admin-gold: #C2A96B;
  --admin-surface: #f7f2e7;
  font-family: "IBM Plex Sans Arabic", "Tajawal", sans-serif;
}

.hr-admin-body h1,
.hr-admin-body h2,
.hr-admin-body h3,
.hr-admin-body .section-title,
.hr-admin-body .stat-card strong,
.hr-admin-body .topbar strong {
  font-family: "El Messiri", "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: 0.01em;
}

.hr-admin-body .dash-wrap {
  margin-top: 18px;
}

.hr-admin-body .welcome-card,
.hr-admin-body .history-card,
.hr-admin-body .stat-card {
  border-color: rgba(46, 49, 77, 0.14);
  box-shadow:
    0 26px 54px rgba(35, 38, 64, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.hr-admin-body .welcome-card {
  background:
    radial-gradient(circle at 88% 16%, rgba(194, 169, 107, 0.2), transparent 28%),
    linear-gradient(150deg, rgba(255, 253, 248, 0.96), rgba(246, 237, 220, 0.9));
}

.hr-admin-body .quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(46, 49, 77, 0.04);
  border: 1px solid rgba(46, 49, 77, 0.1);
}

.hr-admin-body .table-link,
.hr-admin-body .logout,
.hr-admin-body button {
  position: relative;
  border: 1px solid rgba(46, 49, 77, 0.14);
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.hr-admin-body .table-link,
.hr-admin-body .logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #d7bf82, #c2a96b 58%, #af914f);
  color: #2b2f48;
  box-shadow: 0 8px 18px rgba(194, 169, 107, 0.22);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.15;
}

.hr-admin-body .subtle-link {
  background: linear-gradient(135deg, rgba(46, 49, 77, 0.08), rgba(58, 63, 99, 0.05));
  color: var(--brand-panel);
  border-color: rgba(46, 49, 77, 0.12);
  box-shadow: none;
}

.hr-admin-body button {
  min-height: 48px;
  background: linear-gradient(135deg, #39416a, #2e314d 64%, #232640);
  box-shadow: 0 16px 30px rgba(46, 49, 77, 0.26);
}

.hr-admin-body .secondary-btn {
  background: linear-gradient(135deg, #dbc894, #c2a96b 62%, #b2934f);
  color: #2e314d;
  border-color: rgba(168, 138, 71, 0.35);
  box-shadow: 0 12px 24px rgba(194, 169, 107, 0.22);
}

.hr-admin-body .danger-btn {
  background: linear-gradient(135deg, #bd4a5a, #9f3847 55%, #812b39);
  color: #fff;
  border-color: rgba(124, 28, 42, 0.35);
  box-shadow: 0 12px 24px rgba(159, 56, 71, 0.22);
}

.hr-admin-body .table-link:hover,
.hr-admin-body .logout:hover,
.hr-admin-body button:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 49, 77, 0.28);
  box-shadow: 0 12px 22px rgba(46, 49, 77, 0.16);
}

.hr-admin-body .welcome-card .month-filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 10px;
  align-items: center;
}

.hr-admin-body .welcome-card .month-filter-controls input {
  min-height: 44px;
  margin-bottom: 0;
}

.hr-admin-body .welcome-card .month-filter-controls .secondary-btn {
  min-height: 44px;
  padding-inline: 20px;
}

.hr-admin-body .welcome-card .quick-actions .table-link {
  flex: 1 1 170px;
}

@media (max-width: 900px) {
  .hr-admin-body .welcome-card .month-filter-controls {
    grid-template-columns: 1fr;
  }
  .hr-admin-body .welcome-card .quick-actions .table-link {
    flex: 1 1 100%;
  }
}

.hr-admin-body .table-link:active,
.hr-admin-body .logout:active,
.hr-admin-body button:active {
  transform: translateY(0);
}

.hr-admin-body .employee-card,
.hr-admin-body .leave-request-card {
  border-color: rgba(46, 49, 77, 0.14);
  box-shadow:
    0 18px 34px rgba(46, 49, 77, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(194, 169, 107, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 244, 232, 0.92));
}

.hr-admin-body .employee-card {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 12px;
}

.hr-admin-body .employee-card .quick-actions {
  margin-top: 2px;
  grid-template-columns: 1fr;
}

.hr-admin-body .employee-card .secondary-btn {
  width: 100%;
}

.hr-admin-body .employee-meta {
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 6px 0 4px;
}

.hr-admin-body .employee-meta span {
  padding: 10px 12px;
  border: 1px solid rgba(46, 49, 77, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  display: block;
}

.hr-admin-body .employee-details-content .checkpoint-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.hr-admin-body .section-head {
  background:
    radial-gradient(circle at 12% 24%, rgba(194, 169, 107, 0.22), transparent 36%),
    linear-gradient(135deg, #2e314d, #3a3f63 64%, #2e314d);
}

.hr-admin-body .compact-head {
  background: transparent;
  color: var(--brand-ink);
  padding: 0 0 18px;
}

.hr-admin-body .compact-head .section-title {
  color: var(--brand-ink);
}

.hr-admin-body .compact-head .section-subtitle {
  color: var(--text-soft);
  opacity: 1;
}

.hr-admin-body table {
  border-color: rgba(46, 49, 77, 0.12);
  border-radius: 20px;
  overflow: hidden;
}

.hr-admin-body th {
  background: linear-gradient(135deg, #2d304b, #3c4167);
  font-family: "El Messiri", "IBM Plex Sans Arabic", sans-serif;
  font-size: 15px;
}

.hr-admin-body tbody tr:nth-child(even) {
  background: rgba(194, 169, 107, 0.09);
}

.hr-admin-body tbody tr:hover {
  background: rgba(58, 63, 99, 0.09);
}

@media (max-width: 700px) {
  h1 { font-size: 26px; }
  body { font-size: 15px; }
  input, .select-input, button { font-size: 16px; }
  .dash-wrap { margin-top: 10px; }
  .welcome-card, .history-card, .stat-card { border-radius: 20px; padding: 18px; }
  .topbar { gap: 12px; flex-direction: column; align-items: flex-start; }
  .topbar > div { width: 100%; padding: 14px 16px; }
  .topbar strong { font-size: 18px; }
  .logout { width: 100%; text-align: center; }
  .actions { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .employee-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-count { display: inline-block; margin-top: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .section-row { flex-direction: column; align-items: flex-start; }
  .report-filters-grid { grid-template-columns: 1fr; }
  .month-filter-controls { flex-direction: column; align-items: stretch; }
  .secondary-btn { width: 100%; }
  .leave-decision-actions { flex-direction: column; }
  .danger-btn { width: 100%; }
  .table-link { width: 100%; }
  th, td { padding: 10px 8px; font-size: 13px; }
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
    width: min(760px, calc(100vw - 28px));
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-login-card {
    min-height: auto;
    padding: 34px 28px;
  }

  .auth-logo-frame {
    width: min(100%, 320px);
    height: 118px;
  }

}

@media (max-width: 460px) {
  .auth-shell {
    width: min(100vw - 14px, 760px);
    margin: 10px auto 14px;
    gap: 12px;
  }

  .auth-brand-panel,
  .auth-login-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .auth-logo-frame {
    width: 100%;
    height: 92px;
    border-radius: 18px;
  }

  .auth-logo {
    max-width: 220px;
    height: 68px;
  }

  .auth-form-head h2 {
    font-size: 30px;
  }

  .month-filter-controls {
    gap: 8px;
  }
}
