/* ============================================================
   ZAINEE'S AESTHETICS — HR SYSTEM STYLES
   ============================================================ */

:root {
  --mocha: #645D1E;
  --mocha-soft: rgba(100,93,30,.25);
  --mocha-whisper: rgba(100,93,30,.08);
  --rosewood: #F9F1E8;
  --text: #2c2416;
  --text-dim: rgba(44,36,22,.65);
  --text-muted: rgba(44,36,22,.4);
  --glass: rgba(255,255,255,0.7);
  --sidebar-w: 260px;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: #f0ebe3;
  color: var(--text);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ── LOGIN PAGE ── */
.hr-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2c2416 0%, #645D1E 60%, #4a4416 100%);
  padding: 2rem;
}

.hr-login-card {
  background: #fff;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.hr-login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.hr-login-logo-name {
  font-family: 'Abhaya Libre', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--mocha);
}

.hr-login-logo-sub {
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: .2rem;
}

.hr-login-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .35rem;
}

.hr-login-sub {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hr-form-group {
  margin-bottom: 1.25rem;
}

.hr-form-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: .4rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hr-form-input {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid rgba(100,93,30,.2);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  color: var(--text);
  background: var(--rosewood);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.hr-form-input:focus {
  border-color: var(--mocha);
  box-shadow: 0 0 0 3px var(--mocha-whisper);
}

.hr-form-select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid rgba(100,93,30,.2);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  color: var(--text);
  background: var(--rosewood);
  outline: none;
  cursor: pointer;
}

.hr-form-select:focus {
  border-color: var(--mocha);
}

.hr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.hr-btn:hover { transform: translateY(-1px); }
.hr-btn:active { transform: translateY(0); }
.hr-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.hr-btn-primary {
  background: var(--mocha);
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 15px var(--mocha-soft);
}

.hr-btn-primary:hover { box-shadow: 0 8px 25px var(--mocha-soft); }

.hr-btn-success { background: var(--success); color: #fff; }
.hr-btn-danger  { background: var(--danger);  color: #fff; }
.hr-btn-warning { background: var(--warning); color: #fff; }
.hr-btn-outline {
  background: transparent;
  border: 1.5px solid var(--mocha);
  color: var(--mocha);
}
.hr-btn-sm { padding: .4rem .9rem; font-size: .78rem; border-radius: 8px; }
.hr-btn-xs { padding: .3rem .7rem; font-size: .72rem; border-radius: 6px; }

.hr-error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: .82rem;
  margin-bottom: 1rem;
  display: none;
}

/* ── DASHBOARD LAYOUT ── */
.hr-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.hr-sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #2c2416 0%, #3d3018 100%);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.hr-sidebar-logo {
  padding: 1.75rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hr-sidebar-logo-name {
  font-family: 'Abhaya Libre', serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #F9F1E8;
}

.hr-sidebar-logo-sub {
  font-size: .6rem;
  color: rgba(249,241,232,.45);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hr-sidebar-user {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.hr-sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mocha);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  object-fit: cover;
}

.hr-sidebar-user-name {
  font-size: .82rem;
  font-weight: 600;
  color: #F9F1E8;
  line-height: 1.2;
}

.hr-sidebar-user-role {
  font-size: .68rem;
  color: rgba(249,241,232,.45);
}

.hr-sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}

.hr-nav-section {
  padding: .5rem 1.5rem .25rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(249,241,232,.3);
  margin-top: .5rem;
}

.hr-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.5rem;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(249,241,232,.6);
  cursor: pointer;
  transition: all .2s;
  border-left: 3px solid transparent;
  position: relative;
}

.hr-nav-item:hover {
  color: #F9F1E8;
  background: rgba(255,255,255,.06);
}

.hr-nav-item.active {
  color: #F9F1E8;
  background: rgba(100,93,30,.3);
  border-left-color: var(--mocha);
}

.hr-nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 50px;
}

.hr-sidebar-bottom {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ── MAIN CONTENT ── */
.hr-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hr-topbar {
  background: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.hr-topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.hr-topbar-date {
  font-size: .78rem;
  color: var(--text-muted);
}

.hr-content {
  padding: 2rem;
  flex: 1;
}

/* ── SECTIONS ── */
.hr-section { display: none; }
.hr-section.active { display: block; }

/* ── STAT CARDS ── */
.hr-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hr-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  border-left: 4px solid var(--mocha);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.hr-stat-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hr-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.hr-stat-sub {
  font-size: .75rem;
  color: var(--text-dim);
}

/* ── CARDS ── */
.hr-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  margin-bottom: 1.5rem;
}

.hr-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── TABLE ── */
.hr-table-wrap { overflow-x: auto; }

.hr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.hr-table th {
  background: var(--rosewood);
  color: var(--mocha);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--mocha-soft);
}

.hr-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(100,93,30,.08);
  color: var(--text-dim);
  vertical-align: middle;
}

.hr-table tr:hover td { background: rgba(100,93,30,.03); }

.hr-table .emp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mocha-soft);
  margin-right: .5rem;
  vertical-align: middle;
}

/* ── BADGES ── */
.hr-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 700;
}

.hr-badge-success { background: #dcfce7; color: #16a34a; }
.hr-badge-danger  { background: #fee2e2; color: #dc2626; }
.hr-badge-warning { background: #fef3c7; color: #d97706; }
.hr-badge-info    { background: #dbeafe; color: #2563eb; }
.hr-badge-muted   { background: #f3f4f6; color: #6b7280; }

/* ── MODAL ── */
.hr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hr-modal-overlay.open { display: flex; }

.hr-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

.hr-modal-header {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid rgba(100,93,30,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.hr-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.hr-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: .2rem .4rem;
}

.hr-modal-body { padding: 1.5rem 1.75rem; }
.hr-modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid rgba(100,93,30,.1);
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
}

/* ── FORM GRID ── */
.hr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hr-form-grid-full { grid-column: 1 / -1; }

/* ── ID CARD ── */
/* CR80 vertical ID card: 54mm × 85.6mm — rendered at 4px/mm = 216px × 342px */
.id-card {
  width: 216px;
  height: 342px;
  background: linear-gradient(170deg, #1e1a0e 0%, #2c2416 45%, #645D1E 100%);
  border-radius: 14px;
  color: #fff;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.id-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}

.id-card::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

/* Top colour band */
.id-card-header {
  background: rgba(0,0,0,.25);
  padding: .6rem .75rem .5rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.id-card-clinic-name {
  font-family: 'Abhaya Libre', serif;
  font-size: .88rem;
  font-weight: 800;
  color: #F9F1E8;
  line-height: 1.2;
}

.id-card-clinic-sub {
  font-size: .48rem;
  color: rgba(249,241,232,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .15rem;
}

/* Photo centred */
.id-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: .75rem .75rem .5rem;
  text-align: center;
}

.id-card-photo {
  width: 78px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  border: 2.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
  margin-bottom: .6rem;
}

.id-card-info { width: 100%; }

.id-card-name {
  font-size: .85rem;
  font-weight: 700;
  color: #F9F1E8;
  margin-bottom: .15rem;
  line-height: 1.25;
}

.id-card-role {
  font-size: .58rem;
  color: rgba(249,241,232,.6);
  margin-bottom: .55rem;
  line-height: 1.4;
}

/* Detail rows */
.id-card-detail {
  display: flex;
  justify-content: space-between;
  font-size: .56rem;
  color: rgba(249,241,232,.5);
  margin-bottom: .2rem;
  padding: .18rem .5rem;
  background: rgba(255,255,255,.05);
  border-radius: 4px;
  line-height: 1.3;
}

.id-card-detail strong {
  color: rgba(249,241,232,.85);
  font-weight: 600;
}

.id-card-footer {
  padding: .45rem .75rem;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .46rem;
  color: rgba(249,241,232,.38);
  text-align: center;
  line-height: 1.5;
  background: rgba(0,0,0,.2);
}

/* ── CHECKIN CARD ── */
.checkin-card {
  background: linear-gradient(135deg, #2c2416, #645D1E);
  border-radius: 16px;
  padding: 2rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
}

.checkin-time {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Abhaya Libre', serif;
  color: #F9F1E8;
  margin-bottom: .25rem;
}

.checkin-date {
  font-size: .82rem;
  color: rgba(249,241,232,.6);
  margin-bottom: 1.5rem;
}

.checkin-status {
  font-size: .8rem;
  margin-bottom: 1.25rem;
  color: rgba(249,241,232,.75);
}

.checkin-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2.5rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.checkin-btn:hover { transform: scale(1.04); }

.checkin-btn-in  { background: var(--success); color: #fff; }
.checkin-btn-out { background: var(--danger);  color: #fff; }

/* ── ATTENDANCE CALENDAR ── */
.att-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.att-cal-header {
  text-align: center;
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: .35rem 0;
  text-transform: uppercase;
}

.att-cal-day {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 600;
  cursor: default;
}

.att-cal-day.present  { background: #dcfce7; color: #16a34a; }
.att-cal-day.absent   { background: #fee2e2; color: #dc2626; }
.att-cal-day.late     { background: #fef3c7; color: #d97706; }
.att-cal-day.leave    { background: #dbeafe; color: #2563eb; }
.att-cal-day.holiday  { background: #f3e8ff; color: #7c3aed; }
.att-cal-day.empty    { background: transparent; }
.att-cal-day.today    { ring: 2px solid var(--mocha); outline: 2px solid var(--mocha); }
.att-cal-day.future   { background: #f9fafb; color: #d1d5db; }

/* ── LEAVE REQUEST ── */
.leave-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(100,93,30,.1);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.leave-info { flex: 1; }
.leave-name { font-size: .88rem; font-weight: 600; color: var(--text); }
.leave-detail { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }
.leave-actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* ── SALARY SLIP ── */
.salary-slip {
  border: 2px solid var(--mocha-soft);
  border-radius: 12px;
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}

.salary-slip-header {
  background: var(--mocha);
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}

.salary-slip-body { padding: 1.5rem; }

.salary-row {
  display: flex;
  justify-content: space-between;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(100,93,30,.08);
  font-size: .85rem;
}

.salary-row:last-child { border-bottom: none; }
.salary-row.total {
  font-weight: 800;
  font-size: 1rem;
  color: var(--mocha);
  border-top: 2px solid var(--mocha-soft);
  padding-top: .85rem;
}

/* ── ANNOUNCEMENT ── */
.announcement-card {
  background: linear-gradient(135deg, var(--rosewood), #fff);
  border: 1px solid var(--mocha-soft);
  border-left: 4px solid var(--mocha);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}

.announcement-title { font-size: .9rem; font-weight: 700; color: var(--text); }
.announcement-msg { font-size: .8rem; color: var(--text-dim); margin-top: .35rem; line-height: 1.6; }
.announcement-date { font-size: .7rem; color: var(--text-muted); margin-top: .5rem; }

/* ── EMPTY STATE ── */
.hr-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.hr-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.hr-empty-text { font-size: .9rem; }

/* ── PROFILE PHOTO UPLOAD ── */
.photo-upload-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.photo-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mocha-soft);
  background: var(--rosewood);
}

/* ── LOADING ── */
.hr-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: .85rem;
  gap: .75rem;
}

.hr-spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--mocha-soft);
  border-top-color: var(--mocha);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── SEARCH BAR ── */
.hr-search {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.hr-search-input {
  flex: 1;
  min-width: 200px;
  padding: .65rem 1rem;
  border: 1.5px solid rgba(100,93,30,.2);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  outline: none;
  background: #fff;
}

.hr-search-input:focus { border-color: var(--mocha); }

/* ── MOBILE OVERLAY (backdrop when sidebar open) ── */
.hr-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 149;
}
.hr-sidebar-overlay.active { display: block; }

/* ── MOBILE ── */
.hr-mobile-header {
  display: none;
  background: #2c2416;
  padding: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}

.hr-hamburger {
  background: none;
  border: none;
  color: #F9F1E8;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  /* Sidebar slides in from left */
  .hr-sidebar {
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 150;
  }
  .hr-sidebar.open { transform: translateX(0); }

  /* Main content full width */
  .hr-main { margin-left: 0; }
  .hr-mobile-header { display: flex; }

  /* Content padding */
  .hr-content { padding: 1rem; }

  /* Single column forms */
  .hr-form-grid { grid-template-columns: 1fr; }

  /* 2-col stats on mobile */
  .hr-stats-grid { grid-template-columns: 1fr 1fr; }

  /* Bigger touch targets for nav items */
  .hr-nav-item { padding: .9rem 1.5rem; font-size: .88rem; }

  /* Cards padding */
  .hr-card { padding: 1.25rem; }
  .hr-card-title { font-size: .95rem; }

  /* Buttons more touch-friendly */
  .hr-btn { padding: .6rem 1.1rem; font-size: .82rem; }
  .hr-btn-sm { padding: .5rem .9rem; }

  /* Check-in card bigger on mobile */
  .checkin-card { padding: 2rem 1.25rem; }
  .checkin-time { font-size: 2.8rem; }
  .checkin-btn { padding: .9rem 2rem; font-size: 1rem; min-width: 160px; }

  /* Tables scroll horizontally */
  .hr-table-wrap, table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Modals full width */
  .hr-modal { max-width: 100%; width: 100%; margin: 0; border-radius: 20px 20px 0 0; max-height: 90vh; overflow-y: auto; }
  .hr-modal-overlay { align-items: flex-end; padding: 0; }

  /* Biometric modal full width */
  #biometricModal > div { max-width: 100%; border-radius: 20px 20px 0 0; }

  /* Topbar */
  .hr-topbar { padding: .75rem 1rem; }
  .hr-topbar-title { font-size: 1rem; }

  /* Salary slip readable on mobile */
  .salary-slip { padding: 1rem; }
  .salary-row { font-size: .8rem; }

  /* Hide topbar live clock on very small screens to save space */
  @media (max-width: 380px) {
    #liveTime { display: none; }
  }
}
