@charset "UTF-8";

:root {
  --bg: #0a1524;
  --bg-soft: #11243d;
  --surface: rgba(11, 24, 41, 0.84);
  --surface-strong: rgba(9, 18, 31, 0.92);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #edf2fb;
  --muted: #9eb0c6;
  --accent: #ff8d2d;
  --accent-strong: #ffb25f;
  --success: #8fe7b2;
  --danger: #ffb1b1;
  --info: #8fc5ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-body: "Bahnschrift", "Segoe UI", "Trebuchet MS", sans-serif;
  --font-display: "Cambria", "Constantia", Georgia, serif;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-color: rgba(255, 141, 45, 0.58) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 178, 95, 0.72), rgba(255, 141, 45, 0.9));
  border-radius: 999px;
  border: 2px solid rgba(11, 24, 41, 0.85);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 200, 126, 0.86), rgba(255, 153, 58, 1));
}

select,
select option,
select optgroup {
  scrollbar-color: rgba(255, 141, 45, 0.58) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

select::-webkit-scrollbar,
select option::-webkit-scrollbar,
select optgroup::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

select::-webkit-scrollbar-track,
select option::-webkit-scrollbar-track,
select optgroup::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

select::-webkit-scrollbar-thumb,
select option::-webkit-scrollbar-thumb,
select optgroup::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 178, 95, 0.72), rgba(255, 141, 45, 0.9));
  border-radius: 999px;
  border: 2px solid rgba(11, 24, 41, 0.85);
}

select::-webkit-scrollbar-thumb:hover,
select option::-webkit-scrollbar-thumb:hover,
select optgroup::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 200, 126, 0.86), rgba(255, 153, 58, 1));
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 141, 45, 0.13), transparent 28%),
    radial-gradient(circle at bottom right, rgba(41, 137, 255, 0.16), transparent 30%),
    linear-gradient(145deg, #07111c 0%, #0f2034 52%, #09131f 100%);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body.auth-locked {
  overflow: hidden;
}

body.auth-locked .app-shell {
  display: none;
}

body.auth-pending {
  min-height: 100vh;
  overflow: hidden;
}

body.auth-pending .app-shell,
body.auth-pending .auth-overlay,
body.auth-pending .employee-editor-overlay,
body.auth-pending .toast-stack {
  display: none !important;
}

.auth-boot-guard {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  width: 100vw;
  max-width: 100%;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 7vw, 56px);
  overflow: hidden;
  text-align: center;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 141, 45, 0.15), transparent 30%),
    radial-gradient(circle at bottom right, rgba(41, 137, 255, 0.18), transparent 32%),
    linear-gradient(145deg, #07111c 0%, #0f2034 52%, #09131f 100%);
}

body.auth-pending .auth-boot-guard {
  display: flex;
}

.auth-boot-ring {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  flex: 0 0 82px;
}

.auth-boot-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff1f1f,
    #ff7a00,
    #ffe600,
    #26d96a,
    #00c7ff,
    #8b5cf6,
    #ff4d8d,
    #ff1f1f
  );
  animation: topbarAvatarRingSpin 6s linear infinite;
  pointer-events: none;
  box-shadow:
    0 0 12px rgba(255, 122, 0, 0.42),
    0 0 20px rgba(0, 199, 255, 0.28),
    0 0 28px rgba(139, 92, 246, 0.22),
    0 0 36px rgba(255, 77, 141, 0.18);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  filter: blur(2px) saturate(1.25) brightness(1.1);
}

.auth-boot-guard p {
  margin: 0;
  max-width: min(420px, 86vw);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(237, 242, 251, 0.9);
}

button,
input,
textarea,
select {
  font: inherit;
}

.text-link-button {
  border: none;
  background: transparent;
  color: rgba(255, 216, 141, 0.92);
  padding: 0;
  cursor: pointer;
  font-weight: 700;
}

.text-link-button:hover {
  color: #ffe8bc;
}

.ambient {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  top: 10%;
  left: -8rem;
  background: rgba(255, 141, 45, 0.48);
}

.ambient-right {
  right: -6rem;
  bottom: 0;
  background: rgba(71, 136, 255, 0.42);
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  padding: 32px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(4, 11, 19, 0.58);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.sidebar-mobile-header,
.mobile-nav-toggle,
.mobile-nav-backdrop,
.mobile-brand-logo,
.mobile-topbar-logo {
  display: none;
}

.sidebar-mobile-header {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sidebar-mobile-header-spacer {
  flex: 1;
}

.sidebar-mobile-header-primary {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.sidebar-mobile-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sound-toggle-topbar-slot {
  display: inline-flex;
  align-items: center;
}

.sidebar-mobile-header strong {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.mobile-sidebar-logout {
  display: none;
  background: rgba(109, 28, 42, 0.22);
  border-color: rgba(167, 73, 94, 0.32);
  color: #ffd7df;
}

.mobile-sidebar-logout:hover {
  background: rgba(128, 34, 50, 0.28);
  border-color: rgba(186, 88, 110, 0.4);
}

.brand-block {
  padding: 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 141, 45, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.brand-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.brand-logo-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 196px;
  height: 196px;
  border-radius: 46px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 65%),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-logo-action {
  display: none !important;
}

.brand-logo-action:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255, 195, 122, 0.98), rgba(255, 154, 63, 0.94));
  border-color: rgba(255, 214, 153, 0.56);
  box-shadow: 0 14px 30px rgba(255, 141, 45, 0.28);
}

.brand-logo-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.brand-logo-image {
  width: 172px;
  height: 172px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.brand-clock,
.mobile-topbar-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.brand-copy-company,
.brand-copy-powered {
  display: none;
}

.brand-copy-powered {
  margin: 0;
  font-size: 0.7rem;
  color: rgba(158, 176, 198, 0.35);
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.brand-copy-powered a {
  color: rgba(158, 176, 198, 0.42);
  text-decoration: none;
}

.brand-copy-company {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.42;
  color: rgba(158, 176, 198, 0.35);
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.brand-copy .eyebrow {
  margin-bottom: 0;
}

.brand-subtitle {
  max-width: 220px;
  margin: 0 auto;
}

.brand-block h1,
.topbar h2,
.hero-card h3,
.section-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.brand-block h1 {
  font-size: 1.15rem;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-subtitle,
.sidebar-note p,
.info-card span,
.summary-item span,
.timeline-item p,
.hero-card p,
.section-heading p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.nav-list {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.nav-item {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 141, 45, 0.32);
  background: linear-gradient(90deg, rgba(255, 141, 45, 0.18), rgba(255, 255, 255, 0.02));
  transform: translateX(4px);
}

.nav-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.sidebar-note {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-note-title {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 700;
}

.content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 6px;
  position: sticky;
  top: 18px;
  z-index: 3;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 17, 28, 0.72);
  backdrop-filter: blur(18px);
}

.topbar-identity {
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.topbar-identity-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.topbar-identity-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  position: relative;
}

.topbar-user-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-user-avatar-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff1f1f,
    #ff7a00,
    #ffe600,
    #26d96a,
    #00c7ff,
    #8b5cf6,
    #ff4d8d,
    #ff1f1f
  );
  animation: topbarAvatarRingSpin 6s linear infinite;
  pointer-events: none;
  box-shadow:
    0 0 12px rgba(255, 122, 0, 0.56),
    0 0 20px rgba(0, 199, 255, 0.4),
    0 0 28px rgba(139, 92, 246, 0.3),
    0 0 38px rgba(255, 77, 141, 0.24);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
  filter: blur(2.4px) saturate(1.3) brightness(1.15);
}

.topbar-user-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(11, 20, 35, 0.85);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

@keyframes topbarAvatarRingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.topbar-user-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 74px;
  border: 0;
  background: rgba(11, 20, 35, 0.85);
  position: absolute;
  inset: 3px;
  z-index: 3;
  padding: 0;
  box-sizing: border-box;
  animation: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.topbar-user-avatar.is-ready {
  opacity: 1;
}

.topbar-section-title {
  margin: 0;
  min-width: 0;
}

.topbar-role-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  white-space: nowrap;
}

.topbar-profile-link {
  color: rgba(158, 176, 198, 0.86);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}

.topbar-profile-link:hover {
  color: #d7e4f3;
}

.mobile-sidebar-identity {
  display: none;
}

.mobile-topbar-role-copy {
  display: none;
  align-self: center;
  justify-self: center;
  text-align: center;
}

.mobile-topbar-avatar-copy {
  display: none;
  align-self: center;
  justify-self: center;
  margin: 0 0 10px;
}

.mobile-topbar-section-title {
  display: none;
  margin: 0;
  align-self: center;
  justify-self: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mobile-topbar-role-copy .topbar-role-row {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  width: auto;
  white-space: nowrap;
}

.mobile-sidebar-identity-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.mobile-sidebar-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 42px;
  background: rgba(11, 20, 35, 0.85);
}

.mobile-sidebar-identity-text {
  display: grid;
  gap: 4px;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.mobile-sidebar-section-title {
  margin: 0;
  font-size: 1rem;
}

.mobile-sidebar-role-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  justify-content: center;
}

.mobile-nav-toggle {
  display: none;
  min-width: 92px;
  justify-content: center;
  background: #2c2419;
  color: #f4ead8;
  border-color: rgba(237, 242, 251, 0.22);
}

.mobile-nav-floating-toggle {
  position: fixed;
  --mobile-toggle-shift-x: 0%;
  --mobile-toggle-shift-y: 0px;
  left: 48px;
  right: auto;
  bottom: 80px;
  top: auto;
  transform: translateX(var(--mobile-toggle-shift-x)) translateY(var(--mobile-toggle-shift-y));
  z-index: 2147483647;
  width: 132px;
  height: 56px;
  min-width: 132px;
  min-height: 56px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #eaf0fb;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  isolation: isolate;
  overflow: visible;
  box-shadow: 0 6px 12px rgba(4, 9, 17, 0.14);
  transition: transform 280ms ease-out, opacity 220ms ease, box-shadow 260ms ease, background-color 220ms ease;
  will-change: transform, opacity;
  touch-action: none;
  cursor: grab;
  border: none;
}

.mobile-nav-floating-toggle::after {
  content: "";
  position: absolute;
  inset: 1.4px;
  border-radius: 999px;
  background: linear-gradient(
    165deg,
    rgba(22, 33, 50, 0.96),
    rgba(16, 28, 45, 0.95) 48%,
    rgba(21, 36, 56, 0.97)
  );
  box-shadow:
    inset 0 1px 0 rgba(248, 252, 255, 0.06),
    inset 0 -1px 4px rgba(0, 0, 0, 0.15),
    0 3px 8px rgba(0, 0, 0, 0.14);
  z-index: -1;
  pointer-events: none;
  transform-origin: center;
  transition: transform 260ms ease, box-shadow 260ms ease;
  animation: mobileFloatingMenuBreath 3.8s ease-in-out infinite;
}

.mobile-nav-floating-toggle:hover {
  box-shadow: 0 8px 16px rgba(4, 9, 17, 0.18);
}

.mobile-nav-floating-toggle:hover::after {
  transform: scale(1.02);
  box-shadow:
    inset 0 1px 0 rgba(248, 252, 255, 0.07),
    inset 0 -1px 5px rgba(0, 0, 0, 0.17),
    0 4px 10px rgba(0, 0, 0, 0.17);
}

.mobile-nav-floating-toggle:active:not(.is-dragging):not(.is-hidden) {
  box-shadow: 0 6px 12px rgba(4, 9, 17, 0.2);
}

.mobile-nav-floating-toggle:active:not(.is-dragging):not(.is-hidden)::after {
  transform: scale(0.97);
}

.mobile-nav-floating-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(
    115deg,
    #7f5a2c 0%,
    #bf8a4b 20%,
    #e9be7a 36%,
    #7c6e59 52%,
    #33455f 68%,
    #23324a 84%,
    #8f6940 100%
  );
  z-index: -1;
  pointer-events: none;
  filter: blur(0.8px) saturate(1.01);
  box-shadow: 0 0 3px rgba(191, 138, 75, 0.1);
  transition: filter 260ms ease, box-shadow 260ms ease;
}

.mobile-nav-floating-toggle:hover::before {
  filter: blur(1px) saturate(1.02);
  box-shadow: 0 0 4px rgba(191, 138, 75, 0.13);
}

.mobile-nav-floating-toggle.is-dragging {
  transition: none;
  cursor: grabbing;
}

.mobile-nav-floating-toggle.is-dragging::after,
.mobile-nav-floating-toggle.is-hidden::after {
  animation: none;
}

.mobile-nav-floating-toggle.is-right {
  left: auto;
  right: 48px;
}

.mobile-nav-floating-toggle.is-left.is-hidden {
  --mobile-toggle-shift-x: -60%;
  opacity: 0.2;
}

.mobile-nav-floating-toggle.is-right.is-hidden {
  --mobile-toggle-shift-x: 60%;
  opacity: 0.2;
}

.mobile-nav-floating-toggle.is-manual-hidden {
  opacity: 0.62;
}

.mobile-nav-floating-toggle.is-preview:not(.is-dragging) {
  box-shadow: 0 8px 16px rgba(4, 9, 17, 0.2);
}

@keyframes mobileFloatingMenuBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@media (min-width: 769px) {
  #mobileNavToggleButton,
  .mobile-nav-floating-toggle {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

.mobile-topbar-actions {
  display: none;
}

.mobile-topbar-logo {
  display: none;
  width: min(220px, 100%);
  height: auto;
  margin: 0 0 10px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.mobile-topbar-clock {
  display: none;
}

.mobile-topbar-clock .separator {
  margin: 0 8px;
  color: rgba(226, 232, 240, 0.42);
}

.mobile-topbar-clock .time-part {
  color: var(--accent-strong);
  font-weight: 700;
}

.mobile-user-badge {
  display: none;
  margin: 0 0 10px;
}

.mobile-topbar-button-label {
  display: none;
}

.notification-button-label {
  display: inline;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: inherit;
}

.menu-icon {
  font-size: 16px;
  letter-spacing: 1px;
  opacity: 0.9;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  justify-content: flex-end;
}

.section-page-title {
  display: none !important;
  margin: 0;
  padding: 0;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(255, 141, 45, 0.22);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
}

.meta-pill,
.meta-time {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.topbar-button {
  padding: 10px 14px;
}

.topbar-icon-button {
  min-width: 52px;
  min-height: 52px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.topbar-button-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.topbar-button.is-active {
  border-color: rgba(255, 141, 45, 0.36);
  background: rgba(255, 141, 45, 0.14);
  color: var(--text);
}

#mobileTopbarMenuButton {
  display: none;
}

#notificationCenterButton.has-notifications {
  background: rgba(95, 209, 138, 0.12);
  border-color: rgba(95, 209, 138, 0.22);
  color: #dff9ea;
}

#notificationCenterButton.has-notifications:hover,
#notificationCenterButton.has-notifications.is-active {
  background: rgba(95, 209, 138, 0.18);
  border-color: rgba(95, 209, 138, 0.3);
}

#logoutButton {
  background: rgba(109, 28, 42, 0.22);
  border-color: rgba(167, 73, 94, 0.32);
  color: #ffd7df;
}

#logoutButton:hover {
  background: rgba(128, 34, 50, 0.28);
  border-color: rgba(186, 88, 110, 0.4);
}

#closeEmployeeEditorButton,
#deleteEmployeeButton,
#deleteLeaveButton,
#deleteFinanceButton,
#deleteHolidayButton,
#revokePayrollApprovalButton {
  background: rgba(109, 28, 42, 0.22);
  border-color: rgba(167, 73, 94, 0.32);
  color: #ffd7df;
}

#closeEmployeeEditorButton:hover,
#deleteEmployeeButton:hover,
#deleteLeaveButton:hover,
#deleteFinanceButton:hover,
#deleteHolidayButton:hover,
#revokePayrollApprovalButton:hover {
  background: rgba(128, 34, 50, 0.28);
  border-color: rgba(186, 88, 110, 0.4);
}

#newFinanceButton,
#newLeaveButton,
#newHolidayButton,
#openCalendarDailyReportButton,
#addEmployeeButton {
  background: rgba(95, 209, 138, 0.12);
  border-color: rgba(95, 209, 138, 0.22);
  color: #dff9ea;
}

#newFinanceButton:hover,
#newLeaveButton:hover,
#newHolidayButton:hover,
#openCalendarDailyReportButton:hover,
#addEmployeeButton:hover {
  background: rgba(95, 209, 138, 0.18);
  border-color: rgba(95, 209, 138, 0.3);
}

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  z-index: 40;
  pointer-events: none;
}

.toast-card {
  pointer-events: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(9, 17, 28, 0.92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  padding: 16px 18px;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    border-color 180ms ease;
}

.toast-card.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-card.warning {
  border-color: rgba(255, 141, 45, 0.34);
}

.toast-card.success {
  border-color: rgba(114, 205, 143, 0.32);
}

.toast-card.critical {
  border-color: rgba(255, 104, 104, 0.34);
}

.toast-card-header,
.toast-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toast-card-header strong {
  font-size: 0.98rem;
}

.toast-card-header small,
.toast-card-footer small {
  color: var(--muted);
}

.toast-card p {
  margin: 10px 0 14px;
  color: var(--text);
}

.toast-card-footer {
  justify-content: flex-end;
}

.toast-card-footer button {
  padding: 8px 12px;
}

.panel-section {
  display: none;
  animation: fadeUp 260ms ease;
  min-width: 0;
}

.panel-section.active {
  display: block;
}

.hero-card,
.surface-card,
.info-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2vw, 28px);
  background:
    linear-gradient(135deg, rgba(255, 141, 45, 0.18), rgba(255, 255, 255, 0.03)),
    var(--surface-strong);
}

.hero-card h3 {
  font-size: clamp(1.3rem, 1.8vw, 2rem);
  margin-bottom: 12px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
  min-width: 320px;
}

.metric-block {
  padding: 18px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.metric-block strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
}

.personel-live-salary-shell {
  display: grid;
  gap: 20px;
  border-color: rgba(246, 177, 96, 0.26);
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 164, 72, 0.14), transparent 36%),
    radial-gradient(circle at 14% 100%, rgba(255, 188, 120, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(28, 24, 22, 0.76), rgba(17, 19, 22, 0.86)),
    var(--surface-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 22px 42px rgba(0, 0, 0, 0.3);
  padding: clamp(18px, 2vw, 24px);
}

.personel-live-salary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.personel-live-salary-header h3 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 1.9vw, 2.05rem);
  color: rgba(247, 232, 206, 0.95);
}

.personel-live-salary-top {
  display: contents;
  grid-template-columns: minmax(0, 1.35fr) minmax(245px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.personel-live-digital-board {
  border-radius: 20px;
  border: 1px solid rgba(247, 182, 96, 0.42);
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 190, 108, 0.14), transparent 46%),
    linear-gradient(155deg, rgba(18, 16, 15, 0.96), rgba(10, 12, 16, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 214, 0.16),
    inset 0 0 0 1px rgba(255, 193, 122, 0.14),
    inset 0 -20px 28px rgba(0, 0, 0, 0.34),
    0 18px 30px rgba(5, 8, 12, 0.4);
  padding: 18px 22px 14px;
}

.personel-finance-display-board {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.personel-finance-display-body {
  min-width: 0;
  text-align: center;
}

.personel-finance-display-nav {
  width: 56px;
  height: 56px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: rgba(231, 189, 121, 0.95);
  font-size: 3.75rem;
  font-weight: 400;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.86;
  text-shadow: 0 0 7px rgba(255, 166, 71, 0.16);
  transition:
    opacity 170ms ease,
    transform 170ms ease,
    text-shadow 170ms ease,
    color 170ms ease;
}

.personel-finance-display-nav:hover {
  color: rgba(248, 214, 154, 0.98);
  opacity: 1;
  transform: translateY(-1px);
  text-shadow: 0 0 11px rgba(255, 177, 84, 0.22);
  background: transparent;
}

.personel-finance-display-nav:active {
  transform: translateY(0);
  opacity: 0.95;
}

.personel-live-digital-board small {
  display: block;
  color: rgba(255, 219, 162, 0.94);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 169, 80, 0.22);
}

.personel-live-digital-board strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(2.5rem, 5.4vw, 3.95rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.05em;
  color: rgba(255, 241, 214, 0.99);
}

.personel-finance-display-text {
  display: inline-block;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(249, 229, 194, 0.96);
  text-shadow: 0 0 10px rgba(255, 170, 80, 0.16);
}

.personel-finance-display-text-money {
  font-family: "Bahnschrift", "Segoe UI", "Trebuchet MS", sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.personel-digital-amount {
  display: inline-flex;
  align-items: flex-end;
  gap: clamp(3px, 0.55vw, 7px);
  white-space: nowrap;
}

.personel-digital-glyph {
  position: relative;
  width: clamp(28px, 2.5vw, 40px);
  height: clamp(52px, 4.7vw, 72px);
  filter: drop-shadow(0 0 7px rgba(255, 168, 74, 0.22));
}

.personel-digital-glyph .seg {
  position: absolute;
  background: rgba(255, 173, 86, 0.16);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  opacity: 0.18;
  transition: opacity 120ms ease;
}

.personel-digital-glyph .seg-a,
.personel-digital-glyph .seg-d,
.personel-digital-glyph .seg-g {
  left: 20%;
  width: 60%;
  height: 9%;
  border-radius: 4px;
}

.personel-digital-glyph .seg-a {
  top: 3%;
}

.personel-digital-glyph .seg-g {
  top: 45%;
}

.personel-digital-glyph .seg-d {
  bottom: 3%;
}

.personel-digital-glyph .seg-b,
.personel-digital-glyph .seg-c,
.personel-digital-glyph .seg-e,
.personel-digital-glyph .seg-f {
  width: 9%;
  height: 36%;
  border-radius: 4px;
}

.personel-digital-amount--hero .personel-digital-glyph {
  width: clamp(32px, 2.9vw, 44px);
  height: clamp(58px, 5.2vw, 78px);
  filter: drop-shadow(0 0 10px rgba(255, 172, 80, 0.28));
}

.personel-digital-amount--hero .personel-digital-glyph .seg-a,
.personel-digital-amount--hero .personel-digital-glyph .seg-d,
.personel-digital-amount--hero .personel-digital-glyph .seg-g {
  height: 12%;
}

.personel-digital-amount--hero .personel-digital-glyph .seg-b,
.personel-digital-amount--hero .personel-digital-glyph .seg-c,
.personel-digital-amount--hero .personel-digital-glyph .seg-e,
.personel-digital-amount--hero .personel-digital-glyph .seg-f {
  width: 12%;
}

.personel-digital-glyph .seg-b {
  right: 8%;
  top: 8%;
}

.personel-digital-glyph .seg-c {
  right: 8%;
  bottom: 8%;
}

.personel-digital-glyph .seg-e {
  left: 8%;
  bottom: 8%;
}

.personel-digital-glyph .seg-f {
  left: 8%;
  top: 8%;
}

.personel-digital-glyph[data-digit="0"] .seg-a,
.personel-digital-glyph[data-digit="0"] .seg-b,
.personel-digital-glyph[data-digit="0"] .seg-c,
.personel-digital-glyph[data-digit="0"] .seg-d,
.personel-digital-glyph[data-digit="0"] .seg-e,
.personel-digital-glyph[data-digit="0"] .seg-f,
.personel-digital-glyph[data-digit="1"] .seg-b,
.personel-digital-glyph[data-digit="1"] .seg-c,
.personel-digital-glyph[data-digit="2"] .seg-a,
.personel-digital-glyph[data-digit="2"] .seg-b,
.personel-digital-glyph[data-digit="2"] .seg-d,
.personel-digital-glyph[data-digit="2"] .seg-e,
.personel-digital-glyph[data-digit="2"] .seg-g,
.personel-digital-glyph[data-digit="3"] .seg-a,
.personel-digital-glyph[data-digit="3"] .seg-b,
.personel-digital-glyph[data-digit="3"] .seg-c,
.personel-digital-glyph[data-digit="3"] .seg-d,
.personel-digital-glyph[data-digit="3"] .seg-g,
.personel-digital-glyph[data-digit="4"] .seg-b,
.personel-digital-glyph[data-digit="4"] .seg-c,
.personel-digital-glyph[data-digit="4"] .seg-f,
.personel-digital-glyph[data-digit="4"] .seg-g,
.personel-digital-glyph[data-digit="5"] .seg-a,
.personel-digital-glyph[data-digit="5"] .seg-c,
.personel-digital-glyph[data-digit="5"] .seg-d,
.personel-digital-glyph[data-digit="5"] .seg-f,
.personel-digital-glyph[data-digit="5"] .seg-g,
.personel-digital-glyph[data-digit="6"] .seg-a,
.personel-digital-glyph[data-digit="6"] .seg-c,
.personel-digital-glyph[data-digit="6"] .seg-d,
.personel-digital-glyph[data-digit="6"] .seg-e,
.personel-digital-glyph[data-digit="6"] .seg-f,
.personel-digital-glyph[data-digit="6"] .seg-g,
.personel-digital-glyph[data-digit="7"] .seg-a,
.personel-digital-glyph[data-digit="7"] .seg-b,
.personel-digital-glyph[data-digit="7"] .seg-c,
.personel-digital-glyph[data-digit="8"] .seg-a,
.personel-digital-glyph[data-digit="8"] .seg-b,
.personel-digital-glyph[data-digit="8"] .seg-c,
.personel-digital-glyph[data-digit="8"] .seg-d,
.personel-digital-glyph[data-digit="8"] .seg-e,
.personel-digital-glyph[data-digit="8"] .seg-f,
.personel-digital-glyph[data-digit="8"] .seg-g,
.personel-digital-glyph[data-digit="9"] .seg-a,
.personel-digital-glyph[data-digit="9"] .seg-b,
.personel-digital-glyph[data-digit="9"] .seg-c,
.personel-digital-glyph[data-digit="9"] .seg-d,
.personel-digital-glyph[data-digit="9"] .seg-f,
.personel-digital-glyph[data-digit="9"] .seg-g {
  opacity: 1;
  background: linear-gradient(180deg, rgba(255, 214, 151, 0.98), rgba(255, 157, 71, 0.94));
  box-shadow:
    0 0 8px rgba(255, 177, 84, 0.35),
    0 0 2px rgba(255, 230, 190, 0.55);
}

.personel-digital-amount--hero .personel-digital-glyph[data-digit] .seg {
  box-shadow:
    0 0 10px rgba(255, 177, 84, 0.42),
    0 0 3px rgba(255, 230, 190, 0.62);
}

.personel-digital-separator {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  line-height: 1;
  margin: 0 1px 2px;
  color: rgba(255, 186, 104, 0.9);
  text-shadow: 0 0 8px rgba(255, 164, 72, 0.24);
}

.personel-digital-currency {
  font-size: clamp(1.7rem, 3.1vw, 2.4rem);
  line-height: 1;
  margin-left: clamp(3px, 0.5vw, 8px);
  margin-bottom: clamp(4px, 0.5vw, 8px);
  color: rgba(255, 214, 148, 0.95);
  text-shadow: 0 0 9px rgba(255, 176, 84, 0.25);
}

.personel-digital-space {
  display: inline-block;
  width: clamp(4px, 0.5vw, 8px);
}

.personel-digital-minus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(14px, 1.4vw, 20px);
  height: clamp(52px, 4.7vw, 72px);
  color: rgba(255, 186, 104, 0.9);
  font-size: clamp(1.8rem, 2.2vw, 2.3rem);
  line-height: 1;
}

.personel-live-digital-note {
  margin: 8px 0 0;
  color: rgba(194, 146, 72, 0.94);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.personel-finance-display-body.is-next {
  animation: personelFinanceDisplaySlideNext 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.personel-finance-display-body.is-prev {
  animation: personelFinanceDisplaySlidePrev 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes personelFinanceDisplaySlideNext {
  from {
    opacity: 0.42;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes personelFinanceDisplaySlidePrev {
  from {
    opacity: 0.42;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.personel-live-analog-wrap {
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid rgba(245, 176, 98, 0.28);
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 196, 126, 0.18), transparent 56%),
    linear-gradient(160deg, rgba(17, 15, 14, 0.78), rgba(11, 14, 18, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 24px rgba(0, 0, 0, 0.25);
  padding: 14px;
}

.personel-live-analog-clock {
  --clock-hour-rotate: 0deg;
  --clock-minute-rotate: 0deg;
  --clock-second-rotate: 0deg;
  position: relative;
  width: clamp(152px, 22vw, 210px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(243, 182, 110, 0.42);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 209, 148, 0.2), transparent 55%),
    linear-gradient(145deg, rgba(26, 24, 22, 0.9), rgba(13, 16, 20, 0.92));
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.012),
    inset 0 0 0 1px rgba(255, 201, 133, 0.2),
    0 16px 28px rgba(4, 8, 14, 0.35);
}

.personel-clock-mark {
  position: absolute;
  width: 2px;
  height: 12px;
  background: rgba(246, 227, 190, 0.76);
  left: 50%;
  top: 8px;
  transform-origin: center 86px;
}

.personel-clock-mark-3 {
  transform: translateX(-50%) rotate(90deg);
}

.personel-clock-mark-6 {
  transform: translateX(-50%) rotate(180deg);
}

.personel-clock-mark-9 {
  transform: translateX(-50%) rotate(270deg);
}

.personel-clock-mark-12 {
  transform: translateX(-50%) rotate(0deg);
}

.personel-clock-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 100%;
  border-radius: 999px;
}

.personel-clock-hand.hour {
  width: 4px;
  height: 38px;
  margin-left: -2px;
  margin-top: -38px;
  background: rgba(248, 226, 186, 0.95);
  transform: rotate(var(--clock-hour-rotate));
}

.personel-clock-hand.minute {
  width: 3px;
  height: 56px;
  margin-left: -1.5px;
  margin-top: -56px;
  background: rgba(223, 205, 170, 0.94);
  transform: rotate(var(--clock-minute-rotate));
}

.personel-clock-hand.second {
  width: 2px;
  height: 64px;
  margin-left: -1px;
  margin-top: -64px;
  background: rgba(255, 143, 62, 0.9);
  transform: rotate(var(--clock-second-rotate));
}

.personel-clock-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: rgba(255, 176, 108, 0.95);
  box-shadow: 0 0 0 2px rgba(9, 16, 27, 0.78);
}

.personel-clock-day-window {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 22px;
  text-align: center;
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 0.72rem;
  color: rgba(246, 232, 205, 0.96);
  background: rgba(20, 18, 16, 0.9);
  border: 1px solid rgba(245, 182, 108, 0.32);
}

.personel-live-salary-month-field {
  display: grid;
  gap: 6px;
  min-width: 160px;
}

.personel-live-salary-month-field span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(214, 227, 243, 0.82);
}

#personelLiveSalaryMonthInput {
  width: 100%;
  max-width: 190px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(14, 24, 38, 0.82);
  border-color: rgba(255, 255, 255, 0.14);
}

.personel-live-salary-metrics {
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.personel-action-group-carousel {
  display: grid;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-self: stretch;
  justify-self: stretch;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(242, 176, 98, 0.24);
  background:
    linear-gradient(165deg, rgba(255, 176, 88, 0.06), rgba(255, 176, 88, 0.01) 58%),
    rgba(18, 20, 24, 0.56);
}

.personel-action-group-head {
  display: grid;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.personel-action-group-nav {
  border: none;
  background: transparent;
  color: rgba(247, 202, 134, 0.95);
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  text-shadow: 0 0 10px rgba(255, 164, 72, 0.22);
}

.personel-action-group-title-wrap {
  min-width: 0;
  text-align: left;
}

.personel-action-group-title-wrap strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: rgba(246, 226, 193, 0.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.personel-action-group-counter {
  display: inline-block;
  font-size: 0.78rem;
  color: rgba(224, 190, 135, 0.86);
  white-space: nowrap;
  justify-self: end;
  margin-right: 4px;
}

.personel-action-group-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-self: stretch;
  justify-self: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.personel-action-group-item {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(244, 179, 100, 0.19);
  background: rgba(15, 17, 22, 0.56);
  display: grid;
  gap: 5px;
}

.personel-action-group-item span {
  font-size: 0.77rem;
  color: rgba(227, 211, 182, 0.84);
}

.personel-action-group-item strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(248, 231, 202, 0.95);
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.personel-live-salary-metrics .metric-block {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(20, 22, 26, 0.56);
  border-color: rgba(242, 176, 98, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 20px rgba(0, 0, 0, 0.2);
}

#personelLiveSalaryPanel .personel-live-salary-metrics .metric-block strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(1.31rem, 2.26vw, 1.79rem);
  line-height: 1.18;
  font-weight: 700;
  color: rgba(248, 230, 197, 0.96);
  letter-spacing: 0.01em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#personelLiveSalaryPanel .personel-live-salary-metrics .metric-block .personel-metric-value {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  row-gap: 0.04em;
  column-gap: 0.01em;
}

#personelLiveSalaryPanel .personel-live-salary-metrics .metric-block .personel-metric-value-main {
  font-size: 1em;
  line-height: 1;
}

#personelLiveSalaryPanel .personel-live-salary-metrics .metric-block .personel-metric-value-soft {
  font-size: 0.62em;
  line-height: 1;
  opacity: 0.92;
}

#personelLiveSalaryPanel .personel-live-salary-metrics .metric-block strong .personel-metric-value--mixed .personel-metric-value-main {
  font-size: 1em;
}

#personelLiveSalaryPanel .personel-live-salary-metrics .metric-block strong .personel-metric-value--mixed .personel-metric-value-soft {
  font-size: 0.62em;
}

#personelLiveSalaryPanel .personel-live-salary-metrics .metric-block strong .personel-metric-value--text {
  font-size: clamp(0.72em, 0.86em, 0.9em);
  line-height: 1.15;
  letter-spacing: 0.005em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#personelLiveSalaryPanel .personel-live-salary-metrics .metric-block strong .personel-metric-value--text .personel-metric-value-soft {
  font-size: 1em;
  opacity: 0.95;
}

#personelLiveSalaryPanel .personel-live-salary-metrics .metric-block span {
  font-size: 0.84rem;
  color: rgba(231, 215, 187, 0.86);
}

.personel-live-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.personel-live-tools .secondary-button {
  width: 100%;
  min-height: 48px;
  border-radius: 13px;
  font-size: 0.95rem;
  font-weight: 600;
  border-color: rgba(246, 179, 101, 0.28);
  background: linear-gradient(140deg, rgba(255, 170, 72, 0.16), rgba(255, 170, 72, 0.04) 55%), rgba(19, 20, 24, 0.62);
}

.personel-live-clock-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 132px);
  gap: 12px;
  align-items: center;
}

.personel-live-clock-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-self: stretch;
  align-content: stretch;
}

.personel-live-clock-tools .secondary-button {
  min-height: 48px;
  height: 100%;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 12px;
  line-height: 1.2;
  text-align: center;
  border-color: rgba(244, 177, 98, 0.22);
  background: rgba(18, 19, 24, 0.58);
}

.personel-live-tool-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 196, 126, 0.98);
  filter: drop-shadow(0 0 6px rgba(255, 163, 71, 0.22));
}

.personel-live-tool-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.personel-live-clock-tools .secondary-button > span:last-child {
  color: rgba(246, 225, 188, 0.95);
  letter-spacing: 0.01em;
}

.personel-live-clock-tools .secondary-button:nth-child(1) > .personel-live-tool-icon,
.personel-live-clock-tools .secondary-button:nth-child(1) > span:last-child {
  color: rgba(255, 186, 104, 0.98);
}

.personel-live-clock-tools .secondary-button:nth-child(2) > .personel-live-tool-icon,
.personel-live-clock-tools .secondary-button:nth-child(2) > span:last-child {
  color: rgba(255, 204, 128, 0.97);
}

.personel-live-clock-tools .secondary-button:nth-child(3) > .personel-live-tool-icon,
.personel-live-clock-tools .secondary-button:nth-child(3) > span:last-child {
  color: rgba(244, 196, 120, 0.96);
}

.personel-live-salary-month-footer {
  margin-top: 2px;
}

.personel-live-salary-empty small {
  display: block;
  margin-top: 8px;
  color: rgba(214, 227, 243, 0.74);
  font-size: 0.82rem;
  line-height: 1.4;
}

@media (hover: none), (pointer: coarse) {
  #personelLiveSalaryPanel .personel-live-salary-metrics .metric-block {
    -webkit-tap-highlight-color: transparent;
  }
}
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-fixed-summary-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(96px, 1fr);
    width: 100%;
    min-width: 0;
    min-height: clamp(88px, 22vw, 116px);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--personel-mobile-border) 46%, transparent);
    border-radius: 18px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.08)),
      var(--personel-mobile-panel);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 10px 20px rgba(0, 0, 0, 0.18);
    color: var(--personel-mobile-text);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-main,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-side-top,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-side-bottom {
    min-width: 0;
    box-sizing: border-box;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-main {
    display: grid;
    align-content: center;
    gap: 7px;
    padding: clamp(12px, 3vw, 16px) clamp(12px, 3.4vw, 18px);
    border-right: 1px solid color-mix(in srgb, var(--personel-mobile-border) 48%, transparent);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-main span,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-side-top span {
    color: var(--personel-mobile-text);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-main span {
    max-width: 11ch;
    font-size: calc(0.82rem * var(--personel-mobile-scale));
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-main strong {
    color: var(--personel-mobile-accent);
    font-size: calc(clamp(2rem, 8.8vw, 3.2rem) * var(--personel-mobile-scale));
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-side {
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(34px, 0.58fr);
    min-width: 0;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-side-top {
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 8px 10px 7px;
    border-bottom: 1px solid color-mix(in srgb, var(--personel-mobile-border) 48%, transparent);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-side-top span {
    font-size: calc(0.64rem * var(--personel-mobile-scale));
    overflow-wrap: normal;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-side-top strong {
    color: var(--personel-mobile-accent);
    font-size: calc(clamp(1.22rem, 5.6vw, 2.05rem) * var(--personel-mobile-scale));
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-side-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 10px;
  }

@font-face {
    font-family: "LCDN";
    src: url("/assets/fonts/LCDN.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
  }
/* LCD Saat Font renk ve ölçü ayar kısmı. */
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-side-bottom strong {
  color: #f2b25e;
  font-family: "LCDN", "SFMono-Regular", Consolas, monospace;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  font-variant-numeric: tabular-nums;

}

/* LCD Saat Font renk ve ölçü ayar kısmı sonu. */
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-status-dot {
    width: calc(10px * var(--personel-mobile-scale));
    height: calc(10px * var(--personel-mobile-scale));
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(158, 176, 198, 0.32);
    box-shadow: none;
  }

  #personelLiveSalaryPanel.personel-mobile-scale-large {
    --personel-mobile-scale: 1.08;
  }

  #personelLiveSalaryPanel.personel-mobile-scale-xlarge {
    --personel-mobile-scale: 1.16;
  }

@media (max-width: 1180px) {

  #personelLiveSalaryPanel {
    width: min(100%, calc(100vw - 20px));
    max-width: none;
    margin: 8px auto 18px;
    padding: 0;
    box-sizing: border-box;
  }

  #personelLiveSalaryPanel .personel-live-salary-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
  }

  #personelLiveSalaryPanel .personel-live-clock-stack {
    display: none;
  }

  #personelLiveSalaryPanel .personel-live-digital-board {
    width: 100%;
    min-width: 0;
    border-radius: 18px;
    border-color: rgba(247, 182, 96, 0.28);
    background:
      radial-gradient(circle at 82% 12%, rgba(247, 182, 96, 0.16), transparent 42%),
      linear-gradient(155deg, rgba(18, 21, 29, 0.86), rgba(7, 13, 22, 0.94));
    box-shadow:
      inset 0 1px 0 rgba(255, 239, 214, 0.12),
      inset 0 -18px 26px rgba(0, 0, 0, 0.16),
      0 10px 22px rgba(5, 8, 12, 0.22);
    padding: clamp(17px, 3.8vw, 24px) clamp(12px, 3.6vw, 18px);
  }

  #personelLiveSalaryPanel .personel-finance-display-board {
    grid-template-columns: clamp(42px, 10vw, 54px) minmax(0, 1fr) clamp(42px, 10vw, 54px);
    gap: clamp(6px, 2vw, 10px);
  }

  #personelLiveSalaryPanel .personel-finance-display-body {
    min-width: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: clamp(132px, 30vw, 174px);
    padding: 0 clamp(2px, 1vw, 6px);
    touch-action: pan-y;
  }

  #personelLiveSalaryPanel .personel-live-digital-board small {
    max-width: 100%;
    font-size: clamp(0.78rem, 2.45vw, 0.96rem);
    line-height: 1.24;
    letter-spacing: 0.105em;
    overflow-wrap: anywhere;
  }

  #personelLiveSalaryPanel .personel-live-digital-board strong {
    margin-top: 14px;
    font-size: clamp(2.2rem, 10.4vw, 4rem);
    line-height: 1;
    letter-spacing: 0.02em;
  }

  #personelLiveSalaryPanel .personel-finance-display-text {
    max-width: 100%;
    font-size: clamp(1.78rem, 8.2vw, 3.35rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
    text-shadow: 0 0 12px rgba(255, 177, 84, 0.16);
  }

  #personelLiveSalaryPanel .personel-live-digital-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin: 13px auto 0;
    padding: 3px 10px;
    border: 1px solid rgba(247, 182, 96, 0.18);
    border-radius: 999px;
    background: rgba(255, 183, 91, 0.075);
    color: rgba(238, 194, 128, 0.9);
    font-size: clamp(0.64rem, 2vw, 0.76rem);
    letter-spacing: 0.095em;
    line-height: 1;
  }

  #personelLiveSalaryPanel .personel-finance-display-nav {
    width: clamp(42px, 10vw, 54px);
    height: clamp(56px, 16vw, 78px);
    align-self: stretch;
    border-radius: 14px;
    color: rgba(242, 199, 132, 0.92);
    font-size: clamp(2.4rem, 8.4vw, 3.3rem);
    background: rgba(255, 184, 91, 0.045);
    text-shadow: 0 0 9px rgba(255, 177, 84, 0.16);
  }

  #personelLiveSalaryPanel .personel-action-group-carousel {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    border-radius: 12px;
    border-color: rgba(242, 176, 98, 0.12);
    background: transparent;
    box-shadow: none;
  }

  #personelLiveSalaryPanel .personel-action-group-head {
    gap: 10px;
    align-items: center;
  }

  #personelLiveSalaryPanel .personel-action-group-title-wrap strong {
    font-size: clamp(1.04rem, 3.3vw, 1.22rem);
    letter-spacing: 0.015em;
  }

  #personelLiveSalaryPanel .personel-action-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 2.2vw, 12px);
  }

  #personelLiveSalaryPanel .personel-action-group-item {
    min-height: 74px;
    padding: clamp(12px, 3vw, 15px);
    border-radius: 14px;
  }

  #personelLiveSalaryPanel .personel-action-group-item span {
    font-size: clamp(0.78rem, 2.65vw, 0.92rem);
    line-height: 1.24;
  }

  #personelLiveSalaryPanel .personel-action-group-item strong {
    font-size: clamp(1rem, 3.45vw, 1.2rem);
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  #personelLiveSalaryPanel .personel-live-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 2.4vw, 12px);
    width: 100%;
  }

  #personelLiveSalaryPanel .personel-live-tools .secondary-button {
    min-height: 50px;
    padding: 12px 8px;
    border-radius: 14px;
    font-weight: 800;
  }
}

#personelLiveSalaryPanel .personel-mobile-display-preferences {
  display: none;
}

@media (max-width: 1180px) {
  #personelLiveSalaryPanel.personel-mobile-display-panel {
    --personel-mobile-bg: #07111f;
    --personel-mobile-panel: #101a2a;
    --personel-mobile-panel-strong: #101a2a;
    --personel-mobile-border: #d49a52;
    --personel-mobile-text: #f8ead4;
    --personel-mobile-muted: #b9a88f;
    --personel-mobile-accent: #f2b25e;
    --personel-mobile-accent-strong: #f2b25e;
    --personel-mobile-radius: 6px;
    --personel-mobile-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    --personel-mobile-scale: 1;
    color: var(--personel-mobile-text);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-replaced-finance-slider {
    display: none;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-live-salary-top {
    gap: 10px;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-preferences {
    display: grid;
    gap: 10px;
    padding: 0 2px;
    margin-top: 2px;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-preferences-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--personel-mobile-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-preferences-head button,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-segment button,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-toggle,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-control-actions button {
    border: 1px solid var(--personel-mobile-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--personel-mobile-text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-preferences-head button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    color: var(--personel-mobile-accent);
    font-size: 1.15rem;
    line-height: 1;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-panel-body {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--personel-mobile-border) 44%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--personel-mobile-panel) 82%, transparent);
    box-shadow: var(--personel-mobile-shadow);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-control-row {
    display: grid;
    gap: 8px;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-control-row > span,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-color-grid span {
    color: var(--personel-mobile-muted);
    font-size: 0.78rem;
    font-weight: 800;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-segment {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-control-row:first-child .personel-mobile-display-segment {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-segment button,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-toggle {
    min-height: 38px;
    padding: 8px;
    font-size: 0.82rem;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-segment button.is-active,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-toggle.is-active {
    background: var(--personel-mobile-accent);
    border-color: var(--personel-mobile-accent);
    color: var(--personel-mobile-bg);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-color-grid label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--personel-mobile-border) 28%, transparent);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-color-grid input {
    width: 38px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-control-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-control-actions button {
    min-height: 40px;
    padding: 9px 8px;
    color: var(--personel-mobile-accent);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-live-salary-shell {
    gap: 1px;
    border-color: color-mix(in srgb, var(--personel-mobile-border) 26%, transparent);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.08)),
      var(--personel-mobile-bg);
    color: var(--personel-mobile-text);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-live-digital-board {
    border-color: color-mix(in srgb, var(--personel-mobile-border) 46%, transparent);
    border-radius: calc(var(--personel-mobile-radius) + 2px);
    background:
      radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.08), transparent 42%),
      var(--personel-mobile-panel);
    color: var(--personel-mobile-text);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-live-digital-board small,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-title-wrap strong,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-item strong {
    color: var(--personel-mobile-text);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-finance-display-text,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-live-digital-note,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-finance-display-nav,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-nav,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-counter {
    color: var(--personel-mobile-accent);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-item span {
    color: var(--personel-mobile-muted);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-carousel {
    border: none;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-item {
    border-color: color-mix(in srgb, var(--personel-mobile-border) 26%, transparent);
    border-radius: var(--personel-mobile-radius);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.06)),
      var(--personel-mobile-panel);
    color: var(--personel-mobile-text);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-carousel.is-today-actions .personel-action-group-item span {
    font-size: clamp(0.90rem, 2.75vw, 0.90rem);
    line-height: 1.22;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-carousel.is-today-actions .personel-action-group-item strong {
    font-size: clamp(1.2rem, 3.25vw, 1.13rem);
    line-height: 1.18;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-action {
    grid-row: 4;
    min-height: 68px;
    border: 1px solid color-mix(in srgb, var(--personel-mobile-border) 32%, transparent);
    cursor: pointer;
    text-align: left;
    appearance: none;
    transition:
      transform 140ms ease,
      border-color 140ms ease,
      background-color 140ms ease;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-action:hover,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-action:focus-visible {
    border-color: color-mix(in srgb, var(--personel-mobile-accent) 58%, var(--personel-mobile-border));
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(0, 0, 0, 0.04)),
      var(--personel-mobile-panel);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-action:active {
    transform: translateY(1px) scale(0.99);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-action.is-disabled,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-action:disabled {
    cursor: default;
    opacity: 0.52;
    filter: grayscale(0.18);
    transform: none;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-live-tools .secondary-button {
    border-color: color-mix(in srgb, var(--personel-mobile-border) 30%, transparent);
    color: var(--personel-mobile-text);
  }

  #personelLiveSalaryPanel.personel-mobile-scale-large .personel-live-digital-board strong {
    font-size: clamp(2.42rem, 11.2vw, 4.28rem);
  }

  #personelLiveSalaryPanel.personel-mobile-scale-xlarge .personel-live-digital-board strong {
    font-size: clamp(2.58rem, 12vw, 4.56rem);
  }

  #personelLiveSalaryPanel.personel-mobile-scale-large .personel-finance-display-text {
    font-size: clamp(1.94rem, 9vw, 3.6rem);
  }

  #personelLiveSalaryPanel.personel-mobile-scale-xlarge .personel-finance-display-text {
    font-size: clamp(2.08rem, 9.6vw, 3.82rem);
  }

  #personelLiveSalaryPanel.personel-mobile-scale-large .personel-action-group-item {
    min-height: 82px;
    padding: clamp(13px, 3.2vw, 16px);
  }

  #personelLiveSalaryPanel.personel-mobile-scale-xlarge .personel-action-group-item {
    min-height: 90px;
    padding: clamp(14px, 3.5vw, 18px);
  }

  #personelLiveSalaryPanel.personel-mobile-scale-large .personel-action-group-item strong {
    font-size: clamp(1.08rem, 3.8vw, 1.28rem);
  }

  #personelLiveSalaryPanel.personel-mobile-scale-xlarge .personel-action-group-item strong {
    font-size: clamp(1.14rem, 4.2vw, 1.36rem);
  }

  #personelLiveSalaryPanel.personel-mobile-focus-on {
    margin-top: 2px;
    overflow: visible;
  }

  #personelLiveSalaryPanel.personel-mobile-focus-on .personel-live-tools {
    display: none;
  }

  #personelLiveSalaryPanel:fullscreen,
  #personelLiveSalaryPanel:-webkit-full-screen {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding: max(8px, env(safe-area-inset-top)) 10px max(18px, env(safe-area-inset-bottom));
  }

  #personelLiveSalaryPanel:fullscreen .personel-live-salary-shell,
  #personelLiveSalaryPanel:-webkit-full-screen .personel-live-salary-shell {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  #personelLiveSalaryPanel .personel-finance-display-board {
    gap: 6px;
  }

  #personelLiveSalaryPanel .personel-finance-display-nav {
    width: 42px;
    height: 64px;
    font-size: 2.85rem;
  }
  #personelLiveSalaryPanel .personel-live-salary-top {
    grid-template-columns: 1fr;
  }

  #personelLiveSalaryPanel .personel-live-analog-clock {
    width: clamp(136px, 38vw, 176px);
  }

  #personelLiveSalaryPanel .personel-live-clock-stack {
    grid-template-columns: minmax(0, 1fr) clamp(96px, 28vw, 132px);
    gap: 10px;
  }

  #personelLiveSalaryPanel .personel-live-clock-tools .secondary-button {
    min-height: 42px;
    font-size: 0.84rem;
    padding: 8px 8px;
    gap: 7px;
  }

  #personelLiveSalaryPanel .personel-live-tool-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  #personelLiveSalaryPanel .personel-live-salary-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #personelLiveSalaryPanel .personel-action-group-carousel {
    padding: 10px 4px 14px;
    gap: 6px;
  }

  #personelLiveSalaryPanel .personel-action-group-nav {
    font-size: 1.8rem;
    padding: 0 4px;
  }

  #personelLiveSalaryPanel .personel-action-group-title-wrap strong {
    font-size: clamp(0.96rem, 3.7vw, 1.08rem);
  }

  #personelLiveSalaryPanel .personel-action-group-counter {
    font-size: 0.72rem;
    margin-right: 3px;
  }

  #personelLiveSalaryPanel .personel-action-group-grid {
    gap: 7px;
  }

  #personelLiveSalaryPanel .personel-action-group-item {
    min-height: 72px;
    padding: 10px;
  }

  #personelLiveSalaryPanel .personel-action-group-item span {
    font-size: 0.76rem;
  }

  #personelLiveSalaryPanel .personel-action-group-item strong {
    font-size: 0.96rem;
  }

  #personelLiveSalaryPanel .personel-live-salary-metrics .metric-block {
    padding: 12px 9px;
    min-width: 0;
  }

  #personelLiveSalaryPanel .personel-live-salary-metrics .metric-block span {
    font-size: 0.76rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
  }

  #personelLiveSalaryPanel .personel-live-salary-metrics .metric-block strong {
    margin-top: 6px;
    font-size: clamp(1.10rem, 3.31vw, 1.37rem);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
    letter-spacing: 0.005em;
  }

  #personelLiveSalaryPanel .personel-live-salary-metrics .metric-block strong .personel-metric-value--text {
    font-size: clamp(0.7em, 0.82em, 0.88em);
    line-height: 1.14;
  }

  #personelLiveSalaryPanel .personel-live-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #personelLiveSalaryPanel .personel-live-tools .secondary-button {
    padding: 11px 8px;
    font-size: 0.82rem;
  }
}

@media (hover: none), (pointer: coarse) {
  #personelLiveSalaryPanel .personel-finance-display-nav:active {
    opacity: 1;
    transform: translateX(1px);
    text-shadow: 0 0 13px rgba(255, 180, 88, 0.26);
  }
}

@media (prefers-reduced-motion: reduce) {
  .personel-finance-display-body.is-next,
  .personel-finance-display-body.is-prev {
    animation: none;
  }

  .personel-finance-display-nav {
    transition: none;
  }
}

@media (max-width: 340px) {
  #personelLiveSalaryPanel .personel-live-clock-stack {
    grid-template-columns: 1fr;
  }

  #personelLiveSalaryPanel .personel-live-clock-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

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

.info-card {
  padding: 20px;
}

.info-card strong {
  display: block;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  margin: 12px 0 8px;
}

#dashboard .info-card,
#dashboard .metric-block,
#dashboard #dashboardOpsCards .summary-item,
#dashboard #selectedEmployeeSummary .summary-item {
  position: relative;
  overflow: hidden;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

#dashboard .info-card::after,
#dashboard .metric-block::after,
#dashboard #dashboardOpsCards .summary-item::after,
#dashboard #selectedEmployeeSummary .summary-item::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.01));
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  #dashboard .info-card:hover,
  #dashboard .metric-block:hover,
  #dashboard #dashboardOpsCards .summary-item:hover,
  #dashboard #selectedEmployeeSummary .summary-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 141, 45, 0.28);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
  }

  #dashboard .info-card:hover::after,
  #dashboard .metric-block:hover::after,
  #dashboard #dashboardOpsCards .summary-item:hover::after,
  #dashboard #selectedEmployeeSummary .summary-item:hover::after {
    opacity: 1;
  }
}

#dashboard .dashboard-value-pulse {
  animation: dashboardValuePulse 500ms ease;
}

@keyframes dashboardValuePulse {
  0% {
    box-shadow: 0 0 0 rgba(255, 141, 45, 0);
    border-color: rgba(255, 255, 255, 0.1);
  }
  45% {
    box-shadow: 0 0 0 1px rgba(255, 141, 45, 0.24) inset, 0 0 20px rgba(255, 141, 45, 0.14);
    border-color: rgba(255, 141, 45, 0.36);
  }
  100% {
    box-shadow: inherit;
    border-color: inherit;
  }
}

#attendance #attendanceResultCards .summary-item,
#attendance #attendanceMonthlyCards .summary-item,
#attendance #rawEventCards .summary-item,
#leaveRequests #leaveSummaryCards .summary-item,
#finance #financeSummaryCards .summary-item,
#finance #financeChannelTotals .summary-item,
#payroll #payrollSummaryCards .summary-item,
#payroll #payrollEmployeeCards .summary-item {
  position: relative;
  overflow: hidden;
  transition:
    transform 190ms ease,
    border-color 190ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

#attendance #attendanceResultCards .summary-item::after,
#attendance #attendanceMonthlyCards .summary-item::after,
#attendance #rawEventCards .summary-item::after,
#leaveRequests #leaveSummaryCards .summary-item::after,
#finance #financeSummaryCards .summary-item::after,
#finance #financeChannelTotals .summary-item::after,
#payroll #payrollSummaryCards .summary-item::after,
#payroll #payrollEmployeeCards .summary-item::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  #attendance #attendanceResultCards .summary-item:hover,
  #attendance #attendanceMonthlyCards .summary-item:hover,
  #attendance #rawEventCards .summary-item:hover,
  #leaveRequests #leaveSummaryCards .summary-item:hover,
  #finance #financeSummaryCards .summary-item:hover,
  #finance #financeChannelTotals .summary-item:hover,
  #payroll #payrollSummaryCards .summary-item:hover,
  #payroll #payrollEmployeeCards .summary-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 141, 45, 0.26);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  }

  #attendance #attendanceResultCards .summary-item:hover::after,
  #attendance #attendanceMonthlyCards .summary-item:hover::after,
  #attendance #rawEventCards .summary-item:hover::after,
  #leaveRequests #leaveSummaryCards .summary-item:hover::after,
  #finance #financeSummaryCards .summary-item:hover::after,
  #finance #financeChannelTotals .summary-item:hover::after,
  #payroll #payrollSummaryCards .summary-item:hover::after,
  #payroll #payrollEmployeeCards .summary-item:hover::after {
    opacity: 1;
  }
}

.module-value-pulse {
  animation: moduleValuePulse 500ms ease;
}

@keyframes moduleValuePulse {
  0% {
    box-shadow: 0 0 0 rgba(255, 141, 45, 0);
    border-color: rgba(255, 255, 255, 0.1);
  }
  45% {
    box-shadow: 0 0 0 1px rgba(255, 141, 45, 0.2) inset, 0 0 16px rgba(255, 141, 45, 0.12);
    border-color: rgba(255, 141, 45, 0.3);
  }
  100% {
    box-shadow: inherit;
    border-color: inherit;
  }
}

#calendar .dashboard-columns > .surface-card:first-child,
#calendar .calendar-day-detail-card,
#dashboard .dashboard-columns > .surface-card:has(#dashboardLogs) {
  position: relative;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 200ms ease,
    box-shadow 220ms ease;
}

#calendar .dashboard-columns > .surface-card:first-child::after,
#calendar .calendar-day-detail-card::after,
#dashboard .dashboard-columns > .surface-card:has(#dashboardLogs)::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  #calendar .dashboard-columns > .surface-card:first-child:hover,
  #calendar .calendar-day-detail-card:hover,
  #dashboard .dashboard-columns > .surface-card:has(#dashboardLogs):hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.17);
  }

  #calendar .dashboard-columns > .surface-card:first-child:hover::after,
  #calendar .calendar-day-detail-card:hover::after,
  #dashboard .dashboard-columns > .surface-card:has(#dashboardLogs):hover::after {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  #dashboard .dashboard-columns > .surface-card:has(#dashboardLogs):hover {
    transform: translateY(-0.6px);
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  }

  #dashboard .dashboard-columns > .surface-card:has(#dashboardLogs):hover::after {
    opacity: 0.38;
  }
}

#logs > .surface-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 170ms ease,
    border-color 200ms ease,
    box-shadow 220ms ease;
}

#logs #logList {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

#logs #logList .timeline-item {
  margin: 0;
}

#logs #logPagination {
  justify-content: center;
}

#logs .logs-pagination-controls {
  align-items: end;
  gap: 10px;
}

#logs .log-pagination-field {
  display: grid;
  gap: 6px;
  min-width: 118px;
}

#logs .log-pagination-field span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#logs .log-pagination-field select {
  width: 100%;
  min-height: 36px;
}

#logs .log-pagination-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#logs #logPagination .secondary-button.is-active {
  border-color: rgba(255, 141, 45, 0.28);
  background: rgba(255, 141, 45, 0.16);
  color: var(--text);
}

#logs #logList.log-list-fade .timeline-item {
  animation: logListFadeIn 180ms ease;
}

@keyframes logListFadeIn {
  from {
    opacity: 0.65;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#logs > .surface-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(7, 12, 22, 0.28), rgba(7, 12, 22, 0.16));
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  #logs > .surface-card:hover {
    transform: translateY(-1px);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
      rgba(6, 11, 20, 0.34);
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14);
  }

  #logs > .surface-card:hover::after {
    opacity: 0.35;
  }
}

@media (max-width: 768px) {
  #logs .logs-pagination-controls {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  #logs .log-pagination-field {
    min-width: 108px;
    flex: 1 1 130px;
  }

  #logs #logPagination {
    justify-content: flex-start;
    gap: 8px;
  }

  #logs #logPagination .secondary-button.mini-button {
    min-height: 38px;
    padding-inline: 12px;
  }

  #logs .log-pagination-numbers {
    gap: 6px;
  }

  #logs #logList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Takvim & Tatiller hover etkisini daha sakin hale getirir (Dashboard etkilenmez). */
#calendar .dashboard-columns > .surface-card:first-child::after,
#calendar .calendar-day-detail-card::after {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.008));
}

@media (hover: hover) and (pointer: fine) {
  #calendar .dashboard-columns > .surface-card:first-child:hover,
  #calendar .calendar-day-detail-card:hover {
    transform: translateY(-0.4px);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.11);
  }

  #calendar .dashboard-columns > .surface-card:first-child:hover::after,
  #calendar .calendar-day-detail-card:hover::after {
    opacity: 0.42;
  }
}

#leaveRequests .surface-card:has(#leaveSummaryCards) {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(9, 16, 28, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 18px rgba(0, 0, 0, 0.14);
}

#leaveRequests #leaveSummaryCards .summary-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.016)),
    rgba(9, 16, 28, 0.3);
  border-color: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.032);
}

/* İzin Talepleri hover etkisini daha sakin hale getirir. */
#leaveRequests #leaveSummaryCards .summary-item::after {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012));
}

@media (hover: hover) and (pointer: fine) {
  #leaveRequests #leaveSummaryCards .summary-item:hover {
    transform: translateY(-0.95px);
    border-color: rgba(255, 141, 45, 0.18);
    box-shadow: 0 9px 18px rgba(0, 0, 0, 0.14);
  }

  #leaveRequests #leaveSummaryCards .summary-item:hover::after {
    opacity: 0.5;
  }

  #leaveRequests #leaveRequestList .employee-row:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 141, 45, 0.18);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  #attendance #attendanceResultCards .summary-item,
  #attendance #attendanceMonthlyCards .summary-item,
  #attendance #rawEventCards .summary-item,
  #leaveRequests #leaveSummaryCards .summary-item,
  #finance #financeSummaryCards .summary-item,
  #finance #financeChannelTotals .summary-item,
  #payroll #payrollSummaryCards .summary-item,
  #payroll #payrollEmployeeCards .summary-item,
  #calendar .dashboard-columns > .surface-card:first-child,
  #calendar .calendar-day-detail-card,
  #dashboard .dashboard-columns > .surface-card:has(#dashboardLogs),
  #logs > .surface-card {
    transition: none;
  }

  .module-value-pulse {
    animation: none;
  }
}

@media (max-width: 860px) {
  .dashboard-live-overtime-main {
    flex-direction: column;
  }

  .dashboard-live-overtime-meta {
    grid-template-columns: 1fr;
  }
}

.accent-card {
  background:
    linear-gradient(135deg, rgba(255, 141, 45, 0.24), rgba(255, 255, 255, 0.04)),
    var(--surface);
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-top: 20px;
}

.surface-card {
  padding: clamp(16px, 1.8vw, 24px);
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.month-filter {
  display: grid;
  gap: 8px;
  color: var(--muted);
  min-width: 170px;
}

.warning-state {
  border: 1px solid rgba(255, 141, 45, 0.28);
  background: rgba(255, 141, 45, 0.12);
  color: var(--text);
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-chip.pending {
  background: rgba(255, 189, 64, 0.16);
  color: #ffcf7d;
}

.status-chip.approved {
  background: rgba(61, 195, 107, 0.16);
  color: #92efb0;
}

.status-chip.holiday {
  background: rgba(255, 141, 45, 0.16);
  color: #ffd29e;
}

.status-chip.workday {
  background: rgba(71, 136, 255, 0.16);
  color: #a8d0ff;
}

.status-chip.rejected {
  background: rgba(255, 104, 104, 0.16);
  color: #ffb1b1;
}

.status-chip.ready {
  background: rgba(61, 195, 107, 0.16);
  color: #92efb0;
}

.status-chip.duplicate {
  background: rgba(255, 189, 64, 0.16);
  color: #ffcf7d;
}

.status-chip.locked {
  background: rgba(71, 136, 255, 0.16);
  color: #a8d0ff;
}

.status-chip.error {
  background: rgba(255, 104, 104, 0.16);
  color: #ffb1b1;
}

.status-chip.neutral {
  background: rgba(158, 176, 198, 0.16);
  color: #d1dbe8;
}

.status-chip.info {
  background: rgba(71, 136, 255, 0.16);
  color: #a8d0ff;
}

.status-chip.closed {
  background: rgba(61, 195, 107, 0.14);
  color: #9ef3ba;
}

.status-chip.open-balance {
  background: rgba(255, 141, 45, 0.16);
  color: #ffd29e;
}

.finance-record-list {
  max-height: 440px;
  overflow: auto;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

#dashboardOpsCards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#dashboardOpsCards .dashboard-chart-card {
  border-color: rgba(96, 165, 250, 0.2);
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.08), rgba(37, 99, 235, 0.02)),
    rgba(255, 255, 255, 0.04);
}

.dashboard-chart-empty {
  margin: 12px 0 2px;
  color: rgba(226, 235, 248, 0.76);
  font-size: 0.9rem;
}

.summary-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.summary-item strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}

.dashboard-live-overtime-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.dashboard-live-overtime-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(18, 24, 36, 0.82);
  display: grid;
  gap: 10px;
}

.dashboard-live-overtime-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-live-overtime-main p {
  margin: 4px 0 0;
  color: rgba(212, 223, 243, 0.7);
  font-size: 0.84rem;
}

.dashboard-live-overtime-chip {
  align-self: flex-start;
  white-space: nowrap;
}

.dashboard-live-overtime-chip.request-live-status--waiting {
  color: #dce7fa;
  background: rgba(83, 110, 152, 0.28);
}

.dashboard-live-overtime-chip.request-live-status--active {
  color: #dff8ed;
  background: rgba(59, 155, 117, 0.28);
}

.dashboard-live-overtime-chip.request-live-status--pending-end {
  color: #fff0d8;
  background: rgba(189, 139, 52, 0.26);
}

.dashboard-live-overtime-chip.request-live-status--completed {
  color: #deebff;
  background: rgba(88, 111, 146, 0.28);
}

.dashboard-live-overtime-chip.request-live-status--ended-early {
  color: #ffe6cb;
  background: rgba(166, 96, 54, 0.28);
}

.dashboard-live-overtime-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  color: rgba(224, 233, 247, 0.78);
  font-size: 0.82rem;
}

.dashboard-live-overtime-meta strong {
  display: inline;
  margin: 0;
  font-size: inherit;
  color: #f6fbff;
}

#payrollSummaryCards .summary-item strong,
#payrollEmployeeCards .summary-item strong {
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
}

#payrollSummaryCards .accent-card strong,
#payrollEmployeeCards .accent-card strong {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.timeline-list {
  display: grid;
  gap: 12px;
}

#notificationList.timeline-list.full {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.timeline-item {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(145, 170, 208, 0.2);
  background:
    linear-gradient(180deg, rgba(33, 46, 66, 0.92), rgba(16, 24, 36, 0.95)),
    rgba(12, 18, 28, 0.88);
  box-shadow:
    0 14px 28px rgba(2, 8, 16, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.timeline-item.unread {
  border-color: rgba(255, 186, 96, 0.48);
  background:
    linear-gradient(180deg, rgba(76, 55, 20, 0.78), rgba(30, 24, 14, 0.92)),
    rgba(52, 38, 16, 0.62);
  box-shadow:
    0 16px 30px rgba(18, 10, 3, 0.34),
    inset 0 1px 0 rgba(255, 236, 198, 0.12);
}

.timeline-item.is-critical {
  border-color: rgba(255, 136, 154, 0.22);
  background: rgba(120, 20, 36, 0.16);
}

.timeline-item.is-success {
  border-color: rgba(143, 231, 178, 0.22);
  background: rgba(20, 96, 58, 0.16);
}

body.role-manager #dashboard .hero-card,
body.role-manager #dashboard .stats-grid,
body.role-manager .nav-item[data-section="payroll"],
body.role-manager .nav-item[data-section="settings"],
body.role-manager .nav-item[data-section="logs"],
body.role-manager #payroll,
body.role-manager #settings,
body.role-manager #logs {
  display: none !important;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.quick-action-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.quick-action-button strong {
  color: #ffd88d;
  font-size: 1rem;
}

.quick-action-button span {
  color: var(--muted);
  font-size: 0.88rem;
}

.quick-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 141, 45, 0.24);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.dashboard-attention-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.timeline-item.critical {
  border-color: rgba(255, 104, 104, 0.22);
  background: rgba(255, 104, 104, 0.08);
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(141, 165, 199, 0.5);
}

.timeline-item.unread::before {
  background: linear-gradient(180deg, rgba(255, 207, 136, 0.98), rgba(222, 151, 46, 0.98));
}

.timeline-item.critical::before {
  background: rgba(255, 104, 104, 0.92);
}

.timeline-item strong {
  display: block;
  margin-bottom: 8px;
  color: #f3f8ff;
  letter-spacing: 0.01em;
}

.timeline-item-header,
.timeline-item-footer-line,
.timeline-item-chips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-item-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.timeline-item-chips {
  justify-content: flex-end;
}

.timeline-item-footer-line {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(194, 209, 232, 0.82);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-item-footer-line.payroll-effect-line {
  justify-content: flex-start;
}

.status-chip.payroll-effect-badge {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.26);
}

.timeline-item small {
  color: var(--accent-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.notification-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}

.notification-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notification-filter-group .secondary-button.is-active {
  border-color: rgba(255, 141, 45, 0.28);
  background: rgba(255, 141, 45, 0.16);
  color: var(--text);
}

.notification-page-size {
  display: grid;
  gap: 6px;
  min-width: 140px;
}

.notification-page-size span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.notification-page-size select {
  width: 100%;
}

.notification-actions {
  justify-content: flex-end;
}

.notification-center-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.notification-center-panel.is-hidden {
  display: none;
}

.request-notification-card {
  border-left: 3px solid rgba(137, 193, 255, 0.76);
  box-shadow:
    0 14px 30px rgba(3, 10, 22, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.request-notification-card.pending {
  border-color: rgba(232, 182, 74, 0.5);
  border-left-color: rgba(243, 204, 107, 0.86);
  background: linear-gradient(180deg, rgba(67, 50, 14, 0.78), rgba(36, 28, 11, 0.9));
  box-shadow:
    0 14px 30px rgba(3, 10, 22, 0.32),
    inset 0 1px 0 rgba(255, 236, 164, 0.08);
}

.request-notification-card.request-status-read {
  border-color: rgba(96, 171, 239, 0.36);
  border-left-color: rgba(96, 171, 239, 0.84);
  background: linear-gradient(180deg, rgba(25, 57, 88, 0.78), rgba(14, 31, 52, 0.9));
  box-shadow:
    0 14px 30px rgba(3, 10, 22, 0.32),
    inset 0 1px 0 rgba(190, 224, 255, 0.08);
}

.request-notification-card.approved {
  border-color: rgba(72, 126, 102, 0.62);
  border-left-color: rgba(124, 214, 177, 0.86);
  background: linear-gradient(180deg, rgba(19, 58, 45, 0.84), rgba(11, 31, 24, 0.94));
  box-shadow:
    0 14px 30px rgba(2, 17, 11, 0.28),
    inset 0 1px 0 rgba(200, 255, 225, 0.08);
}

.request-notification-card.rejected {
  border-color: rgba(154, 86, 86, 0.52);
  border-left-color: rgba(247, 112, 112, 0.86);
  background: linear-gradient(180deg, rgba(58, 28, 31, 0.84), rgba(30, 18, 22, 0.94));
  box-shadow:
    0 14px 30px rgba(30, 8, 10, 0.3),
    inset 0 1px 0 rgba(255, 205, 205, 0.08);
}


.request-category-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.request-category-title.request-category-tone--late,
.request-category-title.request-category-tone--early,
.request-category-title.request-category-tone--overtime {
  color: #ff8d2d;
}

.request-archive-count-badge {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 176, 88, 0.14);
  border: 1px solid rgba(255, 188, 118, 0.34);
  color: #ffe9cc;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: rgba(27, 34, 49, 0.86);
  border-color: rgba(126, 147, 180, 0.4);
  color: #dce8fb;
}

.request-archive-count-badge:hover {
  background: rgba(32, 40, 58, 0.94);
  border-color: rgba(153, 176, 213, 0.5);
}

.request-overtime-status-badge {
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  width: fit-content;
}

.request-overtime-status-badge--inactive {
  color: #d7e4f7;
  background: rgba(42, 56, 78, 0.45);
  border-color: rgba(139, 162, 198, 0.35);
}

.request-overtime-status-badge--active {
  color: #def7ea;
  background: rgba(52, 108, 83, 0.35);
  border-color: rgba(120, 206, 166, 0.36);
}

.request-live-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(19, 26, 39, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 24px rgba(4, 8, 14, 0.18);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 4px;
}

.request-live-status-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.request-live-status-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.request-live-status-head--single .request-live-status-label::after {
  display: none;
}

.request-live-status-label {
  color: #f5f9ff;
  font-size: 0.9rem;
  font-weight: 700;
}

.request-live-status-label::after {
  content: "\00b7";
  margin-left: 8px;
  color: rgba(213, 224, 243, 0.55);
}

.request-live-status-duration {
  color: #f5f9ff;
  font-size: 0.9rem;
  font-weight: 700;
}

.request-live-status-meta {
  color: rgba(212, 223, 243, 0.72);
  font-size: 0.78rem;
  padding-left: 2px;
}

.request-live-status--waiting {
  border-color: rgba(207, 166, 76, 0.28);
  background: linear-gradient(180deg, rgba(67, 50, 14, 0.84), rgba(36, 28, 11, 0.92));
}

.request-live-status--waiting .request-live-status-chip {
  color: #ffeecb;
  background: rgba(201, 154, 60, 0.22);
}

.request-live-status--active {
  border-color: rgba(82, 178, 130, 0.28);
  background: linear-gradient(180deg, rgba(19, 58, 45, 0.84), rgba(11, 31, 24, 0.92));
}

.request-live-status--active .request-live-status-chip {
  color: #dff8ed;
  background: rgba(59, 155, 117, 0.24);
}

.request-live-status--pending-end {
  border-color: rgba(207, 166, 76, 0.28);
  background: linear-gradient(180deg, rgba(67, 50, 14, 0.84), rgba(36, 28, 11, 0.92));
}

.request-live-status--pending-end .request-live-status-chip {
  color: #fff0d8;
  background: rgba(189, 139, 52, 0.24);
}

.request-live-status--completed,
.request-live-status--ended-early {
  border-color: rgba(128, 149, 180, 0.24);
  background: linear-gradient(180deg, rgba(33, 41, 55, 0.84), rgba(18, 24, 34, 0.92));
}

.request-live-status--completed .request-live-status-chip {
  color: #deebff;
  background: rgba(88, 111, 146, 0.28);
}

.request-live-status--ended-early .request-live-status-chip {
  color: #ffe6cb;
  background: rgba(166, 96, 54, 0.28);
}

.request-live-status--rejected {
  border-color: rgba(154, 86, 86, 0.3);
  background: linear-gradient(180deg, rgba(58, 28, 31, 0.84), rgba(30, 18, 22, 0.92));
}

.request-live-status--rejected .request-live-status-chip {
  color: #ffd7d7;
  background: rgba(156, 78, 78, 0.24);
}

.request-linked-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 197, 124, 0.22);
  border: 1px solid rgba(255, 201, 134, 0.38);
  color: #fff0d7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.request-conversation-viewer {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.request-conversation-current {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(22, 29, 41, 0.7);
  min-width: 0;
}

.request-conversation-entry-header {
  display: block;
  color: rgba(217, 226, 240, 0.82);
  font-size: 0.79rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.request-conversation-current p {
  margin: 6px 0 0;
  color: #eef4ff;
  font-size: 0.86rem;
  line-height: 1.45;
}

.request-message-nav {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 805px) {
  .request-conversation-viewer {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }
}

.request-notification-admin {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

.request-notification-admin--pending .request-notification-admin-row {
  display: none;
}

.request-notification-admin--pending .request-notification-admin-actions {
  justify-content: stretch;
}

.request-notification-admin-actions.request-read-only {
  justify-content: stretch;
}

.request-read-primary {
  width: 100%;
  min-height: 42px;
  background: linear-gradient(180deg, rgba(223, 172, 67, 0.35), rgba(187, 134, 28, 0.25));
  border-color: rgba(232, 182, 74, 0.5);
  color: #fff4da;
}

.request-archive-primary {
  width: 100%;
  min-height: 42px;
  background: linear-gradient(180deg, rgba(20, 43, 32, 0.96), rgba(8, 18, 13, 0.98));
  border-color: rgba(72, 126, 102, 0.62);
  color: #e9fff4;
}

.request-archive-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(58, 151, 114, 0.95), rgba(26, 103, 73, 0.97));
  border-color: rgba(124, 214, 177, 0.68);
  box-shadow: 0 12px 24px rgba(2, 17, 11, 0.28);
}

.request-finish-overtime-primary {
  width: 100%;
  min-height: 42px;
  background: linear-gradient(180deg, rgba(186, 64, 64, 0.92), rgba(134, 33, 33, 0.92));
  border-color: rgba(247, 112, 112, 0.6);
  color: #fff2f2;
}

.request-finish-overtime-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(228, 183, 74, 0.94), rgba(185, 132, 21, 0.94));
  border-color: rgba(243, 204, 107, 0.72);
  color: #1f1505;
}

.request-approve-end-primary {
  width: 100%;
  min-height: 42px;
  background: linear-gradient(180deg, rgba(71, 165, 116, 0.92), rgba(39, 118, 79, 0.94));
  border-color: rgba(101, 202, 150, 0.62);
  color: #ecfff3;
}

.request-approve-end-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(228, 183, 74, 0.94), rgba(185, 132, 21, 0.94));
  border-color: rgba(243, 204, 107, 0.72);
  color: #1f1505;
}

.request-notification-admin--expanded {
  animation: requestActionsFadeIn 220ms ease;
}

.request-notification-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.request-notification-admin-row input,
.request-notification-admin-row select {
  width: 100%;
}

.request-notification-admin-row input[data-request-note] {
  background: rgba(22, 29, 41, 0.7);
  border-color: rgba(255, 255, 255, 0.07);
  color: #eef4ff;
}

.request-notification-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

button[data-request-message]:hover:not(:disabled),
button[data-request-approve]:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(109, 129, 163, 0.34), rgba(58, 77, 113, 0.4));
  border-color: rgba(200, 214, 241, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 12px 24px rgba(5, 12, 24, 0.3);
}

.request-revise-chip {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.request-user-reply-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

.request-user-reply-box textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
}

.request-status-read {
  background: rgba(68, 148, 221, 0.2);
  border-color: rgba(96, 171, 239, 0.36);
  color: #d6ebff;
}

@keyframes requestActionsFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-card.archived {
  opacity: 0.78;
  border-color: rgba(122, 142, 173, 0.24);
  background:
    linear-gradient(180deg, rgba(22, 30, 44, 0.75), rgba(14, 20, 31, 0.86)),
    rgba(12, 17, 26, 0.72);
}


.timeline-item .status-chip {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.timeline-item small {
  color: #b8cceb;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pagination-status {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.danger-button {
  background: rgba(109, 28, 42, 0.22);
  border-color: rgba(167, 73, 94, 0.32);
  color: #ffd7df;
}

.danger-button:hover {
  background: rgba(128, 34, 50, 0.28);
  border-color: rgba(186, 88, 110, 0.4);
}

@media (max-width: 805px) {
  .request-notification-admin-row {
    grid-template-columns: 1fr;
  }

  #requestArchiveOverlay .employee-archive-dialog {
    width: 100%;
  }

  #requestArchiveOverlay .employee-editor-card {
    max-width: none;
    padding: 16px;
  }
}

.guide-category-list,
.guide-content-list {
  display: grid;
  gap: 14px;
}

.guide-category-card,
.guide-content-row {
  width: 100%;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 16px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.guide-category-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-left: 3px solid rgba(255, 156, 73, 0.58);
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(16, 22, 36, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 20px rgba(1, 5, 14, 0.24);
}

.guide-category-card-top {
  width: 100%;
  padding: 18px 32px 1px;
  background: transparent;
  border: 0;
  color: inherit;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  cursor: default;
}

.guide-category-card-top:hover {
  transform: none;
  box-shadow: none;
  border-color: inherit;
}

.guide-category-card:hover,
.guide-content-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 168, 92, 0.34);
  box-shadow:
    0 14px 26px rgba(1, 6, 16, 0.24),
    0 0 0 1px rgba(255, 190, 120, 0.12);
}

.guide-category-card.active {
  border-color: rgba(255, 188, 120, 0.42);
  border-left-color: rgba(255, 188, 120, 0.88);
  box-shadow:
    inset 2px 0 0 rgba(255, 188, 120, 0.45),
    0 14px 30px rgba(1, 7, 18, 0.3);
}

.guide-category-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  padding: 12px 18px 16px;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.01);
}

.guide-category-order-group {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.guide-category-card strong,
.guide-content-row strong {
  display: block;
  font-size: 1.00rem;
}

.guide-category-card p,
.guide-content-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.guide-category-heading {
  display: grid;
  gap: 2px;
}

.guide-category-meta {
  display: flex;
  align-items: flex-start;
}

.guide-category-count {
  min-width: 86px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  background:
    linear-gradient(180deg, rgba(255, 189, 121, 0.14), rgba(255, 189, 121, 0.08)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 189, 121, 0.34);
  color: #ffe1b6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.14);
}

.guide-category-count-button {
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, background 170ms ease, color 170ms ease;
}

.guide-category-count-button:hover,
.guide-category-count-button:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 178, 95, 0.22), rgba(255, 178, 95, 0.12)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 200, 132, 0.52);
  color: #fff0d6;
  box-shadow: 0 10px 20px rgba(8, 12, 20, 0.24);
  transform: translateY(-2px);
}

.guide-order-button {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 141, 45, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #ffd69a;
  display: inline-grid;
  place-items: center;
  padding: 0;
}


.guide-category-toggle {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}

.guide-category-contents {
  display: grid;
  gap: 8px;
  padding: 0 18px;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  overflow: hidden;
  pointer-events: none;
  transition:
    max-height 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 260ms ease,
    transform 260ms ease,
    padding 240ms ease;
}

.guide-category-contents.open {
  max-height: 1120px;
  opacity: 1;
  transform: translateY(0);
  padding: 0 18px 14px;
  pointer-events: auto;
  transition-delay: 20ms, 20ms, 20ms, 0ms;
}

#personelGuideCategoryList {
  transition: opacity 170ms ease, transform 170ms ease;
  will-change: opacity, transform;
}

#personelGuideCategoryList.guide-transition-out {
  opacity: 0;
  transform: translateX(-6px);
}

#personelGuideCategoryList.guide-transition-in {
  animation: guideCategoryListFadeIn 190ms ease;
}

@keyframes guideCategoryListFadeIn {
  from {
    opacity: 0;
    transform: translateX(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.guide-content-row {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: normal;
  word-break: break-word;
  padding: 12px 14px;
  border-radius: 14px;
  background:
    linear-gradient(105deg, rgba(255, 141, 45, 0.11), rgba(255, 255, 255, 0.03) 52%, rgba(255, 141, 45, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 8px 16px rgba(1, 7, 18, 0.16);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.guide-category-content-caption {
  font-size: 0.78rem;
  color: rgba(255, 214, 154, 0.88);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 2px 0 6px;
}

.guide-content-row-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
  color: #ffd69a;
  border: 1px solid rgba(255, 141, 45, 0.26);
  background: rgba(255, 141, 45, 0.08);
  flex: 0 0 auto;
}

.guide-content-row strong {
  color: #ffffff;
  transition: color 180ms ease;
  margin: 0;
}

.guide-content-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 182, 110, 0.38);
  box-shadow:
    0 12px 22px rgba(1, 7, 18, 0.24),
    0 0 0 1px rgba(255, 190, 120, 0.1);
  background:
    linear-gradient(105deg, rgba(255, 164, 76, 0.16), rgba(255, 255, 255, 0.04) 54%, rgba(255, 164, 76, 0.1));
}

.guide-content-row:hover strong {
  color: #ffb25f;
}

.guide-content-row.archived {
  opacity: 0.72;
  cursor: default;
  justify-content: space-between;
}

.guide-archive-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-archive-row .guide-content-row {
  justify-content: flex-start;
}

.guide-archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.guide-archive-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.guide-restore-button {
  margin-left: auto;
}

.guide-archive-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 141, 45, 0.18);
  border: 1px solid rgba(255, 141, 45, 0.36);
  color: #ffd9b0;
  font-size: 0.82rem;
  font-weight: 700;
}

.guide-category-contents .empty-state {
  margin-top: 6px;
  border: 1px dashed rgba(255, 189, 121, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 189, 121, 0.07), rgba(255, 255, 255, 0.015)),
    rgba(15, 20, 33, 0.54);
  color: rgba(250, 227, 193, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.guide-admin-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.guide-preview-dialog {
  width: min(1280px, calc(100vw - 24px));
}

#personelGuidePreviewTitle {
  font-size: calc(1.9rem + 4px);
  margin: 0;
}

.guide-preview-title-block {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 10px;
}

#editGuideContentButton {
  background: rgba(95, 209, 138, 0.09);
  border-color: rgba(95, 209, 138, 0.2);
  color: #dff9ea;
}

#editGuideContentButton:hover {
  background: rgba(95, 209, 138, 0.18);
  border-color: rgba(95, 209, 138, 0.38);
  color: #ecfff3;
}

#editGuideContentButton:focus-visible {
  background: rgba(95, 209, 138, 0.18);
  border-color: rgba(95, 209, 138, 0.42);
}

#closePersonelGuidePreviewButton {
  background: rgba(109, 28, 42, 0.22);
  border-color: rgba(167, 73, 94, 0.32);
  color: #ffd7df;
}

#closePersonelGuidePreviewButton:hover {
  background: rgba(128, 34, 50, 0.28);
  border-color: rgba(186, 88, 110, 0.4);
}

#closePersonelGuideEditorButton {
  background: rgba(109, 28, 42, 0.22);
  border-color: rgba(167, 73, 94, 0.32);
  color: #ffd7df;
}

#closePersonelGuideEditorButton:hover {
  background: rgba(128, 34, 50, 0.28);
  border-color: rgba(186, 88, 110, 0.4);
}

#closeEmployeeArchiveButton {
  background: rgba(109, 28, 42, 0.22);
  border-color: rgba(167, 73, 94, 0.32);
  color: #ffd7df;
}

#closeEmployeeArchiveButton:hover {
  background: rgba(128, 34, 50, 0.28);
  border-color: rgba(186, 88, 110, 0.4);
}

.guide-danger-button {
  background: rgba(164, 44, 63, 0.28);
  border-color: rgba(220, 92, 118, 0.42);
  color: #ffd7df;
}

.guide-danger-button:hover {
  background: rgba(186, 58, 81, 0.34);
  border-color: rgba(236, 113, 140, 0.52);
}

.guide-preview-body {
  display: grid;
  gap: 16px;
}

.guide-preview-text {
  display: grid;
  gap: 12px;
  line-height: 1.6;
}

.guide-preview-text p {
  margin: 0;
}

.guide-preview-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-preview-summary {
  color: var(--accent);
  font-weight: 700;
}

.guide-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-preview-page-footer {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.guide-preview-click-count {
  color: rgba(226, 232, 240, 0.60) !important;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.guide-preview-click-count strong {
  color: #ffb566 !important;
}

.guide-preview-credit {
  margin: 0;
  color: rgba(226, 232, 240, 0.60) !important;
  font-size: 0.84rem;
}

.guide-preview-credit a {
  color: rgba(255, 181, 102, 0.60) !important;
  font-weight: 700;
  text-decoration: none;
}

.guide-preview-credit a:hover {
  color: rgba(255, 209, 141, 0.78) !important;
  text-decoration: underline;
}

.guide-link-button {
  text-decoration: none;
}

.guide-preview-admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.guide-preview-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  position: sticky;
  bottom: 0;
  margin-top: 12px;
  padding: 12px 0 24px;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(13, 19, 31, 0), rgba(13, 19, 31, 0.92) 32%);
  z-index: 2;
}

.guide-icon-button {
  min-width: 58px;
  min-height: 58px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.guide-category-add-button {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border-radius: 999px;
  padding: 0;
  color: #ffd9b0;
}

.guide-category-add-button span {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.guide-icon-button span {
  font-size: 1.25rem;
  line-height: 1;
}

.guide-button-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

.guide-form-inline-actions {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 4px;
}

.guide-editor-fields {
  display: contents;
}

.guide-editor-fields.is-hidden {
  display: none;
}

#personelGuide .dashboard-columns {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

#personelGuide .section-heading {
  align-items: start;
}

#personelGuide .section-heading .header-actions {
  justify-content: flex-end;
  align-items: center;
}

#personelGuide #personelGuideAdminActions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  width: auto;
}

#personelGuide #personelGuideAdminActions .guide-icon-button,
#employeeArchiveToggleButton {
  position: relative;
  overflow: hidden;
  --action-hover-bg: rgba(255, 141, 45, 0.2);
  --action-hover-border: rgba(255, 141, 45, 0.34);
  --action-hover-glow: rgba(255, 141, 45, 0.15);
  --action-hover-inner: rgba(255, 141, 45, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

#personelGuide #personelGuideAdminActions .guide-icon-button::after,
#employeeArchiveToggleButton::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.01));
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

#personelGuide #personelGuideAdminActions .guide-icon-button:hover,
#personelGuide #personelGuideAdminActions .guide-icon-button:focus-visible,
#employeeArchiveToggleButton:hover,
#employeeArchiveToggleButton:focus-visible {
  transform: translateY(-2px) scale(1.02);
}

#personelGuide #personelGuideAdminActions .guide-icon-button:hover::after,
#personelGuide #personelGuideAdminActions .guide-icon-button:focus-visible::after,
#employeeArchiveToggleButton:hover::after,
#employeeArchiveToggleButton:focus-visible::after {
  opacity: 1;
}

#personelGuide #personelGuideAdminActions .guide-icon-button:active,
#employeeArchiveToggleButton:active {
  transform: translateY(0) scale(0.98);
}

#toggleGuideArchiveViewButton:hover,
#toggleGuideArchiveViewButton:focus-visible,
#createGuideCategoryButton:hover,
#createGuideCategoryButton:focus-visible,
#createGuideContentButton:hover,
#createGuideContentButton:focus-visible,
#employeeArchiveToggleButton:hover,
#employeeArchiveToggleButton:focus-visible {
  background: var(--action-hover-bg);
  border-color: var(--action-hover-border);
  box-shadow:
    0 12px 26px var(--action-hover-glow),
    0 0 0 1px var(--action-hover-inner) inset;
}

#createGuideContentButton:hover,
#createGuideContentButton:focus-visible {
  --action-hover-bg: rgba(67, 139, 255, 0.24);
  --action-hover-border: rgba(67, 139, 255, 0.38);
  --action-hover-glow: rgba(67, 139, 255, 0.16);
  --action-hover-inner: rgba(67, 139, 255, 0.13);
}

#employeeArchiveToggleButton {
  --action-hover-bg: rgba(255, 255, 255, 0.1);
  --action-hover-border: rgba(255, 255, 255, 0.24);
  --action-hover-glow: rgba(9, 17, 28, 0.34);
  --action-hover-inner: rgba(255, 255, 255, 0.08);
}

.guide-rehber-actions {
  margin-top: 44px;
  width: 100%;
}

#personelGuide .surface-card {
  min-width: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

#employees .split-layout {
  grid-template-columns: minmax(0, 1fr);
}

.employee-list-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.employee-list {
  display: grid;
  gap: 12px;
  overflow: auto;
  max-height: min(72vh, 1200px);
  padding-right: 4px;
}

#employeeList {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.employee-row {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 116px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.employee-row-media {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: start;
}

.employee-row:hover,
.employee-row.active {
  transform: translateY(-2px);
  border-color: rgba(255, 141, 45, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.employee-row strong,
.employee-row span {
  display: block;
}

.employee-row-copy {
  min-width: 0;
}

.employee-row strong {
  color: #ffd88d;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.employee-row span {
  color: var(--muted);
  margin-top: 1px;
  font-size: 0.88rem;
}

.employee-status-inline {
  color: rgba(232, 238, 247, 0.72);
  font-weight: 500;
}

.employee-avatar-shell {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 141, 0.18);
  background:
    radial-gradient(circle at top, rgba(255, 216, 141, 0.24), transparent 58%),
    rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.access-role-field {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(113, 173, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(72, 132, 214, 0.18), rgba(21, 44, 74, 0.52)),
    rgba(10, 22, 38, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.access-role-field > span {
  color: #b9d7ff;
  letter-spacing: 0.06em;
}

.access-role-field select {
  margin-top: 10px;
  border-color: rgba(111, 169, 255, 0.38);
  background: rgba(9, 19, 32, 0.84);
  color: #e8f2ff;
}

.employee-access-role-note {
  display: block;
  margin-top: 10px;
  color: #9fc4f6;
  font-size: 0.8rem;
  line-height: 1.4;
}

.is-role-required > span::after {
  content: " *";
  color: #84c2ff;
  font-weight: 800;
}

.employee-role-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(95, 209, 138, 0.26);
  background: rgba(95, 209, 138, 0.12);
  color: #dff9ea;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.employee-role-toggle:hover {
  transform: translateY(-1px);
  background: rgba(95, 209, 138, 0.18);
  border-color: rgba(95, 209, 138, 0.38);
}

.employee-role-toggle.is-active {
  background: rgba(255, 178, 95, 0.18);
  border-color: rgba(255, 178, 95, 0.38);
  color: #ffe4b8;
}

.employee-role-toggle svg {
  width: 16px;
  height: 16px;
}

.employee-role-actions {
  display: inline-flex;
  gap: 8px;
}

.employee-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(95, 209, 138, 0.28);
  background: rgba(95, 209, 138, 0.14);
  color: #dff9ea;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.employee-role-toggle.is-danger {
  background: rgba(109, 28, 42, 0.22);
  border-color: rgba(167, 73, 94, 0.32);
  color: #ffd7df;
}

.employee-role-toggle.is-danger:hover {
  background: rgba(128, 34, 50, 0.28);
  border-color: rgba(186, 88, 110, 0.4);
}

.authorized-user-row {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.authorized-user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.authorized-user-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.authorized-user-avatar-fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f1724;
  background: linear-gradient(135deg, #ffd88d, #ffb25f);
  font-weight: 800;
}

.authorized-user-row strong {
  color: #ffd88d;
}

.authorized-user-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.authorized-user-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.profile-photo-field {
  display: grid;
  gap: 10px;
}

.profile-photo-picker {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 178, 95, 0.26);
  background: rgba(255, 255, 255, 0.02);
}

.profile-photo-preview {
  width: 180px;
  height: 180px;
  border-radius: 24px;
  object-fit: cover;
  background: rgba(10, 15, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-photo-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.profile-photo-actions .secondary-button {
  min-width: 180px;
}

.finance-status-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.incident-photo-field {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 178, 95, 0.26);
  background: rgba(255, 255, 255, 0.02);
}

.incident-photo-picker {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.incident-photo-preview {
  width: 180px;
  height: 180px;
  border-radius: 24px;
  border: 1px solid rgba(255, 216, 141, 0.14);
  object-fit: cover;
  background:
    radial-gradient(circle at top, rgba(255, 216, 141, 0.24), transparent 58%),
    rgba(12, 18, 30, 0.96);
}

.incident-photo-actions {
  display: grid;
  gap: 12px;
}

.incident-photo-actions small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.waste-archive-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.waste-archive-thumb {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 216, 141, 0.16);
  background: rgba(10, 18, 30, 0.9);
}

.waste-archive-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.waste-archive-copy strong {
  color: #ffd88d;
}

.waste-archive-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-panel {
  max-width: 960px;
}

.employee-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-avatar-fallback {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffd88d;
  letter-spacing: 0.08em;
}

.employee-row-phone {
  color: #f4e1bb;
}

.employee-photo-field {
  display: grid;
  gap: 12px;
  align-content: start;
  align-self: start;
  position: sticky;
  top: 0;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(24, 34, 52, 0.96), rgba(15, 23, 36, 0.96)),
    rgba(12, 18, 30, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.employee-photo-picker {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 8px 4px 0;
  border-radius: 18px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.employee-photo-preview {
  width: 180px;
  height: 180px;
  border-radius: 32px;
  border: 1px solid rgba(255, 216, 141, 0.14);
  object-fit: cover;
  background:
    radial-gradient(circle at top, rgba(255, 216, 141, 0.24), transparent 58%),
    rgba(12, 18, 30, 0.96);
}

.employee-photo-actions {
  display: grid;
  gap: 12px;
  justify-items: stretch;
  text-align: center;
  width: 100%;
}

.employee-photo-actions small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.attachment-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.attachment-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.attachment-meta {
  display: grid;
  gap: 6px;
}

.attachment-meta strong,
.attachment-meta span {
  display: block;
}

.attachment-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.attachment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.mini-button {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--text);
}

.inline-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

#employeeDocumentExpiresAt:disabled {
  opacity: 0.62;
  background: rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
}

.employee-detail-column {
  display: grid;
  gap: 18px;
}

.employee-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 28px;
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(16px);
}

.employee-editor-overlay.is-hidden {
  display: none;
}

#employeeEditorOverlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

#employeeEditorOverlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#employeeEditorOverlay .employee-editor-dialog {
  transform: translateY(12px) scale(0.985);
  opacity: 0;
  transition: transform 220ms ease, opacity 200ms ease;
}

#employeeEditorOverlay.is-visible .employee-editor-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#employeeEditorOverlay.is-closing {
  opacity: 0;
  pointer-events: none;
}

#employeeEditorOverlay.is-closing .employee-editor-dialog {
  transform: translateY(8px) scale(0.99);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  #employeeEditorOverlay,
  #employeeEditorOverlay .employee-editor-dialog {
    transition: none !important;
  }
}

body.employee-editor-open {
  overflow: hidden;
}

.employee-editor-dialog {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 0;
  border-radius: 28px;
}

.employee-archive-dialog {
  width: min(980px, 100%);
}

#requestArchiveOverlay .employee-archive-dialog {
  width: min(1120px, 96vw);
}

#requestArchiveOverlay .employee-editor-card {
  margin-inline: auto;
  width: 100%;
  max-width: 1040px;
}

.employee-editor-card {
  display: grid;
  gap: 0;
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(22, 30, 45, 0.98), rgba(14, 21, 34, 0.98)),
    rgba(12, 18, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.employee-editor-dialog > .surface-card:not(.employee-editor-card) {
  display: none;
}

.employee-editor-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.employee-editor-title h3 {
  font-size: clamp(1.45rem, 1.8vw, 1.9rem);
  line-height: 1.15;
}

.employee-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.employee-editor-actions .primary-button {
  min-width: 220px;
}

.employee-archive-list {
  display: grid;
  gap: 12px;
  max-height: min(68vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

#requestArchiveList {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  justify-content: center;
  padding-right: 0;
}

@media (max-width: 805px) {
  #requestArchiveList {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  #requestArchiveList .request-archive-row {
    align-items: start;
    min-height: auto;
    height: auto;
  }

  #requestArchiveList .request-archive-revision-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #requestArchiveList .request-archive-actions {
    justify-content: flex-start;
  }

  .request-archive-bulk-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
}

.request-archive-row {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
  height: auto;
  align-items: start;
  cursor: default;
}

.request-archive-row .employee-row-copy {
  display: grid;
  gap: 6px;
  align-content: start;
}

.request-archive-row:hover,
.request-archive-row.active {
  transform: none;
}

.request-archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.request-archive-bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.request-archive-bulk-actions .secondary-button {
  white-space: nowrap;
}

.request-archive-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(232, 238, 255, 0.82);
}

.request-archive-select-all input {
  accent-color: #7f9cff;
}

.request-archive-revision-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.request-archive-revision-row input,
.request-archive-revision-row select {
  width: 100%;
}

.employee-archive-footer {
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

.employee-archive-footer .guide-icon-button {
  flex: 0 0 auto;
}

.archive-title-icon {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
  margin-left: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6b4a, #ff3d2e);
  box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.12);
  vertical-align: middle;
}

.employee-archive-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.employee-archive-title {
  display: grid;
  gap: 6px;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  transition: color 160ms ease;
}

.employee-archive-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.employee-archive-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex: 0 0 60px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.employee-archive-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.employee-archive-avatar-fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e8f0fb;
  background: linear-gradient(165deg, rgba(57, 113, 183, 0.45), rgba(20, 35, 55, 0.72));
}

.employee-archive-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.employee-archive-title strong {
  font-size: 1rem;
  color: var(--text);
  transition: color 160ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.employee-archive-title .employee-archive-subline {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.employee-archive-title span {
  color: var(--muted);
  font-size: 0.88rem;
}

.employee-archive-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.employee-archive-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 141, 45, 0.26);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.employee-archive-row:hover .employee-archive-title strong {
  color: var(--accent);
}

.employee-archive-row:hover .employee-archive-title span {
  color: var(--text-soft);
}

@media (max-width: 768px) {
  .employee-archive-identity {
    gap: 10px;
  }

  .employee-archive-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
}

.employee-form-layout {
  width: 100%;
  gap: 14px;
  align-items: start;
}

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

.form-grid label {
  display: grid;
  gap: 8px;
}

.form-grid label.wide {
  grid-column: 1 / -1;
}

.employee-editor-top {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 240px;
  column-gap: 28px;
  row-gap: 16px;
  align-items: start;
  width: 100%;
}

.employee-identity-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  align-content: start;
  justify-self: stretch;
}

.employee-identity-fields label,
.employee-photo-field {
  min-width: 0;
}

.employee-photo-field {
  justify-self: end;
  align-self: start;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  margin-left: auto;
}

.form-grid span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

#rulesForm .rules-field-info-header,
#systemSettingsForm .rules-field-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#rulesForm .rules-field-info-title,
#systemSettingsForm .rules-field-info-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

#rulesForm .rules-field-info-title:hover,
#rulesForm .rules-field-info-title:focus-visible,
#systemSettingsForm .rules-field-info-title:hover,
#systemSettingsForm .rules-field-info-title:focus-visible {
  color: #f2f6ff;
  outline: none;
}

#rulesForm .rules-field-info-trigger,
#systemSettingsForm .rules-field-info-trigger {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #dfe8f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

#rulesForm .rules-field-info-trigger:hover,
#rulesForm .rules-field-info-trigger:focus-visible,
#rulesForm .rules-field-info-trigger[aria-expanded="true"],
#systemSettingsForm .rules-field-info-trigger:hover,
#systemSettingsForm .rules-field-info-trigger:focus-visible,
#systemSettingsForm .rules-field-info-trigger[aria-expanded="true"] {
  border-color: rgba(255, 189, 111, 0.5);
  background: rgba(255, 189, 111, 0.12);
  color: #ffe2ba;
  outline: none;
}

#systemSettingsForm .system-settings-info-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#systemSettingsForm .receivable-period-settings-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 10px;
}

#systemSettingsForm .receivable-period-settings-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(13, 22, 36, 0.72);
}

#systemSettingsForm .receivable-period-settings-panel .section-heading {
  margin-bottom: 14px;
}

#systemSettingsForm .receivable-period-settings-panel .form-grid {
  gap: 14px;
}

#systemSettingsForm .receivable-period-locked-panel {
  background:
    linear-gradient(180deg, rgba(255, 189, 111, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(13, 22, 36, 0.72);
}

#systemSettingsForm .receivable-period-rule-list {
  display: grid;
  gap: 10px;
}

#systemSettingsForm .receivable-period-rule-card {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 189, 111, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(235, 241, 251, 0.9);
  font-size: 0.86rem;
  line-height: 1.45;
}

#systemSettingsForm .receivable-period-settings-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#systemSettingsForm .receivable-period-settings-actions .empty-state {
  margin: 0;
  flex: 1;
}

#systemSettingsForm .receivable-period-settings-actions .primary-button {
  flex: 0 0 auto;
}

#rulesForm .rules-field-info-panel {
  display: none;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(14, 22, 35, 0.95);
  color: rgba(231, 238, 248, 0.88);
  font-size: 0.8rem;
  line-height: 1.45;
}

#rulesForm .rules-field-info-panel.is-open {
  display: block;
}

.rules-info-popover {
  position: fixed;
  z-index: 160;
  width: min(420px, calc(100vw - 24px));
  max-height: min(52vh, 320px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 186, 120, 0.26);
  background:
    linear-gradient(180deg, rgba(27, 39, 58, 0.98), rgba(17, 26, 40, 0.98)),
    rgba(12, 18, 28, 0.98);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 186, 120, 0.08);
  backdrop-filter: blur(8px);
  color: #ebf1fb;
}

.rules-info-popover.is-hidden {
  display: none;
}

.rules-info-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rules-info-popover-head strong {
  font-size: 0.86rem;
  color: #ffe0b6;
}

.rules-info-popover-close {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7fbff;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.rules-info-popover-close:hover,
.rules-info-popover-close:focus-visible {
  background: rgba(255, 177, 103, 0.2);
  color: #ffe8ca;
  outline: none;
}

.rules-info-popover-text {
  margin: 0;
  padding: 12px;
  font-size: 0.84rem;
  line-height: 1.48;
  color: rgba(235, 241, 251, 0.9);
}

.rules-info-popover-textarea {
  width: calc(100% - 24px);
  margin: 0 12px;
  min-height: 92px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 16, 28, 0.74);
  color: #eaf2ff;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
}

.rules-info-popover-textarea:focus-visible {
  outline: none;
  border-color: rgba(255, 189, 111, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 189, 111, 0.22);
}

.rules-info-popover-actions {
  margin: 10px 12px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

input,
textarea,
select,
.search-input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(21, 30, 45, 0.96);
  color: var(--text);
  outline: none;
}

input[type="date"],
input[type="time"],
input[type="month"],
input[type="datetime-local"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(73%) sepia(15%) saturate(407%) hue-rotate(174deg)
    brightness(86%) contrast(88%);
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

select {
  color-scheme: dark;
}

select option,
select optgroup {
  background: #0b1522;
  color: #f2f6fb;
}

input:focus,
textarea:focus,
select:focus,
.search-input:focus {
  border-color: rgba(255, 141, 45, 0.44);
  box-shadow: 0 0 0 4px rgba(255, 141, 45, 0.1);
}

#attendance #attendanceForm input[type="date"].has-activity,
#attendance #rawEventForm input[type="date"].has-activity {
  border-color: rgba(235, 96, 96, 0.46);
  background: rgba(108, 34, 42, 0.3);
}

.search-input {
  margin-bottom: 14px;
}

.summary-item.schedule-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.schedule-inline-host {
  margin: -4px 0 14px;
}

.schedule-inline-host:empty {
  display: none;
}

.schedule-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.schedule-note strong {
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-note span {
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.84rem;
}

.primary-button,
.secondary-button,
.chip-button {
  border: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button,
.secondary-button {
  padding: 12px 16px;
  border-radius: 999px;
}

.primary-button {
  background: linear-gradient(135deg, #ff8d2d, #ffb25f);
  color: #261200;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 141, 45, 0.28);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.secondary-button.is-success {
  background: rgba(143, 231, 178, 0.16);
  color: #dfffea;
  border-color: rgba(143, 231, 178, 0.28);
}

.secondary-button.is-success:hover {
  box-shadow: 0 10px 24px rgba(143, 231, 178, 0.12);
}

.secondary-button.is-info {
  background: rgba(67, 139, 255, 0.18);
  color: #dce9ff;
  border-color: rgba(67, 139, 255, 0.32);
}

.secondary-button.is-info:hover {
  box-shadow: 0 10px 24px rgba(67, 139, 255, 0.14);
}

.is-readonly-field {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--muted) !important;
}

.secondary-button.is-danger {
  background: rgba(120, 20, 36, 0.26);
  color: #ffd5da;
  border-color: rgba(255, 136, 154, 0.22);
}

.secondary-button.is-danger:hover {
  box-shadow: 0 10px 24px rgba(120, 20, 36, 0.14);
}

.primary-button:hover,
.secondary-button:hover,
.chip-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.chip-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}

.chip-button {
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.chip-button.active {
  background: rgba(255, 141, 45, 0.2);
  color: var(--accent-strong);
}

.detail-table-wrapper {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.attendance-history-card {
  margin-top: 18px;
}

.device-import-card {
  margin: 18px 0 22px;
}

.attendance-subheading {
  margin-top: 22px;
}

.raw-events-layout {
  margin-bottom: 18px;
}

.raw-event-form-card,
.raw-event-results-card {
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 7, 14, 0.76);
  backdrop-filter: blur(20px);
}

.auth-overlay.active {
  display: flex;
}

.auth-card {
  width: min(560px, 100%);
  padding: 30px 30px 42px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 32, 51, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 247, 250, 0.98)),
    #ffffff;
  color: #102033;
  box-shadow:
    0 28px 56px rgba(4, 11, 19, 0.28),
    0 10px 24px rgba(4, 11, 19, 0.1);
}

.auth-logo-panel {
  display: grid;
  place-items: center;
  width: min(360px, 100%);
  margin: 0 auto 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.auth-logo-image {
  display: block;
  width: min(340px, 100%);
  height: auto;
  margin: 0;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.24));
}

.auth-card h2 {
  margin: 0;
  font-family: var(--font-display);
  color: #0f1f33;
}

.auth-card .eyebrow {
  color: #c56b12;
  text-align: center;
}

.auth-subtitle {
  color: #5d6b7c;
  margin: 8px auto 0;
  text-align: center;
}

.auth-form span {
  color: #455465;
  font-weight: 600;
}

.auth-form {
  margin-top: 22px;
}

.auth-form input {
  background: #e9eef5;
  color: #102033;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.auth-form input::placeholder {
  color: #7b8796;
}

.auth-form input:focus {
  border-color: rgba(255, 141, 45, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 141, 45, 0.12), 0 10px 26px rgba(4, 11, 19, 0.1);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  justify-content: center;
}

.auth-actions .primary-button {
  min-width: 180px;
}

.auth-card .secondary-button {
  background: #f2f5f8;
  color: #102033;
  border: 1px solid rgba(16, 32, 51, 0.1);
}

.auth-card .secondary-button:hover {
  box-shadow: 0 12px 22px rgba(16, 32, 51, 0.08);
}

.auth-message {
  margin-top: 18px;
  background: rgba(15, 23, 42, 0.04);
  color: #546375;
  border: 1px solid rgba(16, 32, 51, 0.06);
}

.auth-message:empty {
  display: none;
}

.auth-credit {
  margin-top: 34px;
  padding-top: 18px;
  text-align: center;
  color: #687789;
}

.app-footer {
  margin-top: auto;
  padding-top: 44px;
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
}

.app-credit {
  margin: 0;
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
}

.app-credit a {
  color: #ffb566;
  font-weight: 700;
  text-decoration: none;
}

.app-credit a:hover {
  color: #ffd18d;
  text-decoration: underline;
}

.permission-hint {
  margin-top: 12px;
  color: var(--accent-strong);
}

.is-hidden {
  display: none !important;
}

.is-readonly {
  opacity: 0.62;
  pointer-events: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 0.92rem;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  color: var(--accent-strong);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(9, 18, 31, 0.92);
  backdrop-filter: blur(14px);
}

tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.02);
}

tbody tr:hover td {
  background: rgba(255, 141, 45, 0.08);
}

.empty-state {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.auth-card .auth-message.empty-state {
  background: rgba(15, 23, 42, 0.04);
  color: #546375;
  border: 1px solid rgba(16, 32, 51, 0.06);
}

.auth-card .app-credit {
  color: #687789;
}

.auth-card .app-credit a {
  color: #c56b12;
}

.auth-card .app-credit a:hover {
  color: #8f4c0d;
}

#attendanceInfoBox {
  margin-top: 18px;
}

.inline-field {
  display: grid;
  gap: 8px;
  min-width: 180px;
  color: var(--muted);
}

.inline-field input {
  min-width: 180px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 18px 0 4px;
}

.calendar-focus-heading {
  margin-top: 24px;
}

.calendar-side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

#openCalendarDailyReportButton {
  white-space: nowrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.legend-swatch.holiday {
  background: var(--accent-strong);
}

.legend-swatch.work {
  background: var(--info);
}

.legend-swatch.halfday {
  background: #ffb35c;
}

.legend-swatch.religious {
  background: #74b6ff;
}

.legend-swatch.overtime {
  background: #5fd18a;
}

.legend-swatch.leave {
  background: #ffcf7d;
}

.legend-swatch.quiet {
  background: rgba(255, 255, 255, 0.24);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  min-width: 0;
}

.calendar-day-header {
  padding: 0 8px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-day-card {
  min-height: 118px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.calendar-day-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 141, 45, 0.26);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.calendar-day-card.is-selected {
  border-color: rgba(255, 141, 45, 0.42);
  background: linear-gradient(180deg, rgba(255, 141, 45, 0.12), rgba(255, 255, 255, 0.04));
}

.calendar-day-card.is-holiday {
  border-color: rgba(255, 178, 95, 0.36);
  box-shadow: 0 10px 28px rgba(255, 141, 45, 0.12);
}

.calendar-day-card.is-weekend {
  background: rgba(95, 126, 167, 0.09);
}

.calendar-day-card.has-records {
  border-color: rgba(71, 136, 255, 0.2);
}

.calendar-day-card.has-leaves {
  border-color: rgba(255, 189, 64, 0.24);
}

.calendar-day-card.is-halfday {
  border-color: rgba(255, 179, 92, 0.34);
}

.calendar-day-card.is-religious {
  border-color: rgba(116, 182, 255, 0.28);
}

.calendar-day-card.has-overtime {
  box-shadow: 0 12px 30px rgba(95, 209, 138, 0.12);
}

.calendar-day-card.is-quiet {
  opacity: 0.9;
}

.calendar-day-card.is-today {
  outline: 1px solid rgba(71, 136, 255, 0.36);
}

.calendar-day-card.is-empty {
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  pointer-events: none;
}

.calendar-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-day-top strong {
  font-size: 0.98rem;
  font-family: var(--font-display);
}

.calendar-note,
.calendar-mini {
  color: var(--muted);
  font-size: 0.78rem;
}

.calendar-note {
  min-height: 30px;
  line-height: 1.35;
}

.calendar-day-stats {
  display: grid;
  gap: 6px;
}

.calendar-day-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.calendar-day-badges .status-chip {
  font-size: 0.63rem;
  padding: 4px 7px;
}

.calendar-mini {
  padding: 6px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.calendar-day-record-list {
  margin-top: 18px;
}

.calendar-record-row {
  text-align: left;
}

.calendar-record-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.calendar-record-top strong {
  flex: 1;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .app-shell,
  .split-layout,
  .dashboard-columns {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 18px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 24px;
  }

  .employee-list-panel {
    height: auto;
  }

  .employee-editor-overlay {
    padding: 18px;
  }

  .employee-editor-top {
    grid-template-columns: minmax(280px, 1fr) 220px;
  }

  #employeeList {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-heading,
  .header-actions,
  .topbar,
  .hero-card {
    flex-wrap: wrap;
  }

  .topbar {
    position: static;
  }

  .dashboard-columns > .surface-card,
  .attendance-history-card {
    min-width: 0;
  }

  .calendar-side-column {
    gap: 16px;
  }

  #dashboardOpsCards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .content {
    padding: 18px;
  }

  .topbar {
    padding: 14px;
    margin-bottom: 4px;
  }

  .topbar-meta {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .employee-editor-overlay {
    padding: 14px;
  }

  .employee-editor-dialog {
    width: min(720px, 100%);
  }

  .employee-editor-header {
    grid-template-columns: 1fr;
  }

  .employee-editor-actions {
    justify-content: stretch;
  }

  .employee-editor-top,
  .employee-identity-fields,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .employee-photo-field {
    order: -1;
    justify-self: stretch;
    width: auto;
    min-width: 0;
    max-width: none;
    position: static;
  }

  .section-heading.compact,
  .topbar-meta,
  .header-actions {
    gap: 10px;
  }

  .guide-preview-dialog .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .employee-list-panel,
  .surface-card,
  .hero-card {
    min-width: 0;
  }

  #employeeList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-list.full,
  .finance-record-list {
    max-width: none;
  }

  #dashboardOpsCards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .content {
    padding: 16px;
  }

  #dashboardOpsCards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #dashboardOpsCards .dashboard-chart-card {
    grid-column: 1 / -1;
  }

  .sidebar {
    padding: 14px;
  }

  .brand-logo-shell {
    width: 148px;
    height: 148px;
    border-radius: 34px;
  }

  .brand-logo-image {
    width: 128px;
    height: 128px;
  }

  .topbar,
  .hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .toast-stack {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 16px;
  }

  .hero-metrics,
  .stats-grid,
  .summary-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  #dashboardPaymentScheduleBox .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #notificationList.timeline-list.full {
    grid-template-columns: 1fr;
  }

  #personelGuide .dashboard-columns {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(84px, 1fr));
    min-width: 630px;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .calendar-day-header {
    font-size: 0.72rem;
    padding: 0 4px;
  }

  .employee-editor-overlay {
    inset: 0;
    padding: 0;
  }

  .employee-editor-dialog {
    padding: 0;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  #personelGuide .section-heading {
    gap: 12px;
  }

  #personelGuide #personelGuideAdminActions {
    width: auto;
  }

  .employee-editor-card {
    min-height: 100vh;
    border-radius: 0;
    padding: 16px 12px 22px;
  }

  .employee-editor-top {
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 14px;
  }

  .employee-photo-field {
    order: 0;
    justify-self: end;
    width: 170px;
    min-width: 170px;
    max-width: 170px;
  }

  .employee-photo-preview {
    width: 132px;
    height: 132px;
  }

  .employee-editor-actions,
  .employee-editor-actions {
    display: flex;
    flex-wrap: wrap;
    width: auto;
    justify-content: flex-start;
  }

  .employee-editor-actions .primary-button,
  .employee-editor-actions .secondary-button {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    padding-inline: 14px;
  }

  .employee-archive-footer {
    padding-top: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .employee-archive-footer .guide-icon-button {
    min-height: 58px;
    height: 58px;
    width: 58px;
    padding: 0;
    flex: 0 0 58px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 16px;
  }

  .surface-card,
  .attachment-row,
  .calendar-day-card,
  .summary-item {
    border-radius: 18px;
  }

  .table-wrapper,
  .detail-table-wrapper {
    overflow-x: auto;
  }

  .employee-row {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    min-height: 108px;
  }

  #requestArchiveList .request-archive-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .employee-avatar-shell {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  #employeeList {
    grid-template-columns: 1fr;
  }

  .employee-list {
    max-height: none;
    overflow: visible;
  }

  table {
    min-width: 540px;
    font-size: 0.86rem;
  }

  th,
  td {
    padding: 10px 8px;
  }
}

@media (max-width: 560px) {
  .auth-card {
    padding: 22px 18px 28px;
  }

  .auth-actions,
  .approval-actions,
  .detail-actions,
  .header-actions {
    gap: 8px;
  }

  .primary-button,
  .secondary-button {
    padding: 11px 14px;
  }

  .employee-row {
    min-height: 140px;
    padding: 14px;
    gap: 12px;
  }

  .employee-avatar-shell {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .employee-row strong {
    font-size: 0.94rem;
  }

  .employee-row span,
  .employee-row-phone {
    font-size: 0.82rem;
  }

  .legend-item {
    font-size: 0.76rem;
    padding: 7px 10px;
  }

  .calendar-day-card {
    min-height: 100px;
    padding: 10px;
  }
}

@media (max-width: 420px) {
  .employee-editor-top,
  .employee-identity-fields {
    grid-template-columns: 1fr;
  }

  .employee-photo-field {
    justify-self: stretch;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .topbar-meta {
    gap: 8px;
  }

  .topbar-button,
  .meta-pill,
  .meta-time {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .surface-card,
  .hero-card {
    padding: 8px;
  }

  #employeeList {
    grid-template-columns: minmax(0, 1fr);
  }

  .incident-photo-picker {
    grid-template-columns: 1fr;
  }

  .incident-photo-preview {
    width: min(180px, 100%);
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .topbar-identity-head {
    display: none;
  }

  .topbar {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    max-width: 86vw;
    z-index: 45;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    transform: translateX(104%);
    transition: transform 220ms ease;
    overflow-y: auto;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.3);
  }

  body.mobile-nav-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-mobile-header {
    display: flex;
  }

  .mobile-topbar-role-copy {
    display: inline-flex;
    margin: 0 0 12px;
  }

  .mobile-topbar-role-copy .topbar-role-row {
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: center;
  }

  .mobile-sidebar-identity {
    display: block;
    margin-top: 16px;
    padding: 10px 4px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .brand-logo-shell {
    display: none;
  }

  .brand-clock {
    display: none;
  }

  .brand-copy h1,
  #companyNameLabel {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    margin-top: 0;
  }

  .mobile-topbar-logo {
    display: block;
    width: min(286px, 100%);
  }

  .mobile-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-topbar-clock {
    display: inline-flex;
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
  }

  .brand-copy-company,
  .brand-copy-powered {
    display: block;
  }

  .brand-copy-powered {
    margin-top: -2px;
  }

  .brand-copy-company {
    margin-top: 2px;
  }

  .brand-block {
    display: grid;
    justify-items: center;
    gap: 8px;
  }

  .brand-block .eyebrow {
    width: 100%;
    text-align: center;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    border: none;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    background: rgba(3, 9, 16, 0.52);
    backdrop-filter: blur(4px);
    transition: opacity 180ms ease;
  }

  body.mobile-nav-open .mobile-nav-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .topbar-meta {
    margin-left: auto;
    width: auto;
  }

  .topbar-identity {
    flex: 1;
    min-width: 0;
  }

  .mobile-topbar-logo {
    width: min(220px, 100%);
    height: auto;
  }

  .mobile-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .mobile-topbar-clock {
    display: none;
  }

  .mobile-topbar-avatar-copy {
    display: block;
  }

  .mobile-topbar-section-title {
    display: block;
  }

  .topbar-role-row {
    gap: 8px;
  }

  .section-page-title {
    display: none !important;
    margin: 0;
    padding: 0;
  }

  #employeeList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-photo-picker {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 768px) {
  .panel-section.active > :first-child {
    margin-top: 0;
  }

  .table-wrapper,
  .detail-table-wrapper {
    overflow-x: auto;
  }

  .responsive-card-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .responsive-card-table thead {
    display: none;
  }

  .responsive-card-table,
  .responsive-card-table tbody,
  .responsive-card-table tr,
  .responsive-card-table td {
    display: block;
    width: 100%;
  }

  .responsive-card-table tbody {
    display: grid;
    gap: 12px;
  }

  .responsive-card-table tr {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(10, 18, 28, 0.72);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  }

  .responsive-card-table td {
    min-width: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
  }

  .responsive-card-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .responsive-card-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .sidebar {
    left: auto;
    right: 0;
    transform: translateX(104%);
    z-index: 2147483646;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.3);
  }

  body.mobile-nav-menu-from-left .sidebar {
    left: 0;
    right: auto;
    transform: translateX(-104%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.3);
  }

  body.mobile-nav-open .sidebar {
    transform: translateX(0);
  }

  .mobile-nav-backdrop {
    z-index: 2147483645;
  }

  #mobileNavToggleButton {
    position: fixed;
    top: auto;
    bottom: 15px;
    margin-left: 0;
    transform: translateX(var(--mobile-toggle-shift-x)) translateY(var(--mobile-toggle-shift-y));
    background: transparent;
    color: #f6ead5;
    z-index: 2147483647;
    pointer-events: auto;
  }
}

@media (max-width: 980px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
  }

  .topbar-identity {
    width: 100%;
    justify-items: start;
    text-align: left;
    gap: 10px;
  }

  .mobile-topbar-logo {
    width: min(286px, calc(100vw - 140px));
    max-width: 100%;
    margin: 0;
  }

  .topbar-role-row {
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
  }

  .topbar h2,
  #sectionTitle {
    text-align: left;
  }

  .mobile-topbar-actions {
    justify-self: end;
    align-self: start;
  }

  .topbar-meta {
    grid-column: auto;
    margin-left: auto;
    width: auto;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .content {
    padding-top: calc(env(safe-area-inset-top) + 62px);
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147483640;
    margin: 0;
    padding: calc(env(safe-area-inset-top) + 8px) 12px 9px;
    border-radius: 0 0 16px 16px;
    border-left: none;
    border-right: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background:
      linear-gradient(180deg, rgba(8, 18, 30, 0.97), rgba(7, 17, 28, 0.92)),
      rgba(7, 17, 28, 0.94);
    backdrop-filter: blur(16px);
  }

  .topbar-identity {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
    order: 2;
    flex-direction: row;
  }

  .mobile-topbar-logo {
    display: block;
    width: min(170px, 42vw);
    max-width: 100%;
    margin: 0;
    object-fit: contain;
  }

  .topbar-meta {
    width: auto;
    margin-left: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
  }

  #logoutButton {
    display: none !important;
    pointer-events: none;
  }

  #notificationCenterButton,
  #soundToggleButton,
  #mobileTopbarMenuButton {
    min-height: 36px;
    min-width: 0;
    height: 36px;
    padding: 0 11px;
    border-radius: 999px;
    gap: 6px;
  }

  #soundToggleButton,
  #mobileTopbarMenuButton {
    min-width: 40px;
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  #notificationCenterButton {
    background: rgba(95, 209, 138, 0.14);
    border-color: rgba(95, 209, 138, 0.28);
    color: #dff9ea;
  }

  #soundToggleButton {
    background: rgba(255, 196, 91, 0.16);
    border-color: rgba(255, 196, 91, 0.34);
    color: #ffe8bc;
  }

  #soundToggleButton.is-active {
    background: rgba(95, 209, 138, 0.16);
    border-color: rgba(95, 209, 138, 0.3);
    color: #dff9ea;
  }

  #mobileTopbarMenuButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(82, 132, 206, 0.16);
    border-color: rgba(130, 172, 232, 0.34);
    color: #e8f1ff;
    padding: 0 10px;
    min-width: 40px;
    transition: transform 220ms ease-out, box-shadow 220ms ease-out, background-color 180ms ease;
    touch-action: none;
    user-select: none;
    flex: 0 0 auto;
  }

  #mobileTopbarMenuButton .menu-icon {
    font-size: 15px;
    letter-spacing: 0.4px;
  }

  body.mobile-topbar-menu-left .topbar {
    flex-direction: row;
  }

  body.mobile-topbar-menu-left .topbar-identity {
    order: 1;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 4px;
  }

  body.mobile-topbar-menu-left .topbar-meta {
    order: 2;
    justify-content: flex-end;
    gap: 5px;
  }

  body.mobile-topbar-menu-left .topbar-meta > .sound-toggle-topbar-slot {
    order: 1;
  }

  body.mobile-topbar-menu-left #notificationCenterButton {
    order: 2;
  }

  body.mobile-topbar-menu-right .topbar {
    flex-direction: row;
  }

  body.mobile-topbar-menu-right .topbar-identity {
    order: 2;
    justify-content: flex-end;
    flex-direction: row;
  }

  body.mobile-topbar-menu-right .topbar-meta {
    order: 1;
    justify-content: flex-start;
  }

  body.mobile-topbar-menu-right #notificationCenterButton {
    order: 1;
  }

  body.mobile-topbar-menu-right .topbar-meta > .sound-toggle-topbar-slot {
    order: 2;
  }

  #mobileTopbarMenuButton.is-dragging {
    transform: scale(0.97);
    box-shadow: 0 8px 16px rgba(3, 10, 20, 0.26);
  }

  .mobile-topbar-button-label {
    display: inline;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: #edf2fb;
    white-space: nowrap;
  }

  #notificationCenterButton .notification-button-label {
    display: none;
  }

  #notificationCenterButton .count-badge {
    min-width: 33px;
    height: 21px;
    margin-left: 2px;
    padding: 0 4px;
    font-size: 0.75rem;
    line-height: 1;
    background: rgba(21, 31, 45, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .sidebar-mobile-header {
    justify-content: space-between;
  }

  .topbar-meta > .sound-toggle-topbar-slot {
    display: none;
  }

  .sidebar-mobile-header-primary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
  }

  .sidebar-mobile-header #soundToggleButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    width: 40px;
    min-height: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 196, 91, 0.16);
    border-color: rgba(255, 196, 91, 0.34);
    color: #ffe8bc;
  }

  .sidebar-mobile-header #soundToggleButton.is-active {
    background: rgba(95, 209, 138, 0.16);
    border-color: rgba(95, 209, 138, 0.3);
    color: #dff9ea;
  }

  .mobile-sidebar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.auth-locked .mobile-sidebar-logout {
    display: none;
  }
}

@media (max-width: 1180px) and (min-width: 597px) {
  @media (min-width: 769px) {
    #mobileNavToggleButton,
    .mobile-nav-floating-toggle {
      display: inline-flex !important;
      visibility: visible !important;
      opacity: 1 !important;
      pointer-events: auto !important;
      position: fixed;
      bottom: 14px;
      z-index: 2147483647;
      touch-action: none;
    }

    #mobileNavToggleButton.is-left.is-hidden,
    .mobile-nav-floating-toggle.is-left.is-hidden {
      opacity: 0.2 !important;
    }

    #mobileNavToggleButton.is-right.is-hidden,
    .mobile-nav-floating-toggle.is-right.is-hidden {
      opacity: 0.2 !important;
    }

    #mobileNavToggleButton.is-manual-hidden,
    .mobile-nav-floating-toggle.is-manual-hidden {
      opacity: 0.62 !important;
    }
  }

  :root {
    --tablet-topbar-right-inset: 12px;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }

  .content {
    min-width: 0;
    width: 100%;
    padding: calc(env(safe-area-inset-top) + 104px) 10px 16px;
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147483640;
    margin: 0;
    min-height: 87px;
    height: 87px;
    padding: calc(env(safe-area-inset-top) + 8px) 14px 8px;
    border-radius: 0 0 14px 14px;
    border-left: none;
    border-right: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: stretch;
    gap: 6px 8px;
    overflow: hidden;
  }

  .topbar-identity-head {
    display: flex !important;
    align-items: center;
    min-width: 0;
  }

  .topbar-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
    gap: 10px;
    overflow: hidden;
    position: relative;
    padding-right: min(186px, 24vw);
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .mobile-topbar-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 40px;
    width: fit-content;
    min-width: max-content;
    max-width: max-content;
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: end;
  }

  .topbar-identity-text {
    min-width: 0;
    overflow: hidden;
  }

  .topbar-section-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-role-row {
    white-space: nowrap;
  }

  .mobile-topbar-logo {
    display: block;
    width: min(172px, 22vw);
    max-width: 172px;
    height: auto;
    margin: 0;
    object-fit: contain;
    flex: 0 0 auto;
    position: fixed;
    top: calc(env(safe-area-inset-top) + 3px);
    right: calc(var(--tablet-topbar-right-inset) + 4px);
    z-index: 2;
    pointer-events: none;
  }

  .topbar-meta {
    width: auto;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    grid-column: 3;
    grid-row: 2;
    align-self: end;
    justify-self: end;
    margin-right: var(--tablet-topbar-right-inset);
  }

  #notificationCenterButton,
  #soundToggleButton,
  #logoutButton,
  #mobileTopbarMenuButton {
    min-height: 34px;
    height: 34px;
    min-width: 38px;
    padding: 0 10px;
    border-radius: 999px;
  }

  #soundToggleButton,
  #mobileTopbarMenuButton {
    min-width: 40px;
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .topbar-meta > .sound-toggle-topbar-slot {
    display: none;
  }

  #mobileTopbarMenuButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Loading flicker guard: keep menu actions hidden until placement is ready */
  /* 597-1180: side action only menu button area; keep identity/meta stable */
  body.mobile-topbar-menu-left .topbar-identity,
  body.mobile-topbar-menu-right .topbar-identity {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-content: flex-start !important;
    flex-direction: row !important;
    order: initial !important;
  }

  body.mobile-topbar-menu-left .topbar-meta,
  body.mobile-topbar-menu-right .topbar-meta {
    grid-column: 3;
    grid-row: 2;
    justify-content: flex-end !important;
    order: initial !important;
  }

  body.mobile-topbar-menu-left .mobile-topbar-actions,
  body.mobile-topbar-menu-right .mobile-topbar-actions {
    grid-row: 2;
  }

  body.mobile-topbar-menu-left .mobile-topbar-actions {
    grid-column: 2;
    margin-left: 0;
    margin-right: 8px;
    justify-content: flex-start;
  }

  body.mobile-topbar-menu-right .mobile-topbar-actions {
    grid-column: 2;
    margin-left: 8px;
    margin-right: 0;
    justify-content: flex-end;
  }

  body.mobile-topbar-menu-left #mobileTopbarMenuButton,
  body.mobile-topbar-menu-right #mobileTopbarMenuButton {
    margin: 0;
    display: inline-flex !important;
  }

  body.mobile-topbar-menu-left .topbar-meta > .sound-toggle-topbar-slot,
  body.mobile-topbar-menu-right .topbar-meta > .sound-toggle-topbar-slot,
  body.mobile-topbar-menu-left #notificationCenterButton,
  body.mobile-topbar-menu-right #notificationCenterButton {
    order: initial !important;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: min(340px, 86vw);
    max-width: 86vw;
    z-index: 2147483646;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    transform: translateX(104%);
    transition: transform 220ms ease;
    overflow-y: auto;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.3);
    padding: 16px 14px;
  }

  body.mobile-nav-menu-from-left .sidebar {
    left: 0;
    right: auto;
    transform: translateX(-104%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.3);
  }

  body.mobile-nav-open .sidebar {
    transform: translateX(0);
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483645;
    border: none;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    background: rgba(3, 9, 16, 0.52);
    backdrop-filter: blur(4px);
    transition: opacity 180ms ease;
  }

  body.mobile-nav-open .mobile-nav-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  body.auth-locked #mobileTopbarMenuButton {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    left: auto;
    top: auto;
    z-index: 2147483647;
  }

  body.auth-locked .mobile-topbar-logo {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    left: auto;
    z-index: 2147483641;
  }

  @media (min-width: 760px) {
    .topbar {
      position: fixed;
      min-height: 87px;
      height: 87px;
      padding-top: calc(env(safe-area-inset-top) + 6px);
      padding-bottom: 8px;
      row-gap: 4px;
      grid-template-rows: 1fr 1fr;
      align-items: center;
    }

    .mobile-topbar-logo {
      right: var(--tablet-topbar-right-inset);
      width: min(176px, 15vw);
      max-width: 176px;
      z-index: 4;
    }

    #mobileTopbarMenuButton {
      background: rgba(82, 132, 206, 0.16);
      border-color: rgba(130, 172, 232, 0.34);
      color: #e8f1ff;
      box-shadow: 0 8px 16px rgba(3, 10, 20, 0.26);
    }

    #mobileTopbarMenuButton:hover {
      background: rgba(96, 146, 220, 0.2);
      border-color: rgba(150, 188, 240, 0.44);
    }

    #mobileTopbarMenuButton .menu-icon {
      color: inherit;
      text-shadow: 0 1px 1px rgba(4, 12, 24, 0.28);
    }

    .mobile-topbar-actions,
    .topbar-meta {
      align-self: end;
    }

    .topbar-meta {
      position: relative;
      z-index: 3;
      margin-top: 10px;
      margin-right: var(--tablet-topbar-right-inset);
    }

    .topbar-identity {
      position: relative;
      z-index: 6;
      padding-right: min(168px, 20vw);
    }

    .topbar-identity-head,
    .topbar-identity-text,
    .topbar-user-avatar-wrap {
      position: relative;
      z-index: 7;
    }

    .topbar-identity-head {
      gap: 10px;
    }

    .topbar-user-avatar-wrap {
      width: 68px;
      height: 68px;
      flex: 0 0 68px;
    }

    .topbar-user-avatar {
      width: 62px;
      height: 62px;
      flex: 0 0 62px;
    }

    .topbar-identity-text {
      gap: 4px;
    }

    .topbar-section-title {
      font-size: 1.62rem;
      line-height: 1.1;
    }

    .topbar-role-row {
      font-size: 0.81rem;
      line-height: 1.05;
      gap: 8px;
    }

    /* Tablet PC: side-state effect should be visible again, but controlled. */
    body.mobile-topbar-menu-left .topbar {
      grid-template-columns: auto minmax(0, 1fr) auto;
    }

    body.mobile-topbar-menu-right .topbar {
      grid-template-columns: minmax(0, 1fr) auto auto;
    }

    body.mobile-topbar-menu-left .topbar-identity {
      grid-column: 2;
      grid-row: 1 / span 2;
      justify-content: flex-start !important;
      flex-direction: row !important;
    }

    body.mobile-topbar-menu-right .topbar-identity {
      grid-column: 1;
      grid-row: 1 / span 2;
      justify-content: flex-start !important;
      flex-direction: row !important;
    }

    body.mobile-topbar-menu-left .topbar-meta {
      grid-column: 3;
      grid-row: 2;
      justify-content: flex-end !important;
    }

    body.mobile-topbar-menu-right .topbar-meta {
      grid-column: 2;
      grid-row: 2;
      justify-content: flex-end !important;
    }

    body.mobile-topbar-menu-left .mobile-topbar-actions {
      grid-column: 1;
      grid-row: 2;
      justify-self: start;
      justify-content: flex-start;
      margin-right: 10px;
      margin-left: 0;
    }

    body.mobile-topbar-menu-right .mobile-topbar-actions {
      grid-column: 3;
      grid-row: 2;
      justify-self: end;
      justify-content: flex-end;
      margin-left: 10px;
      margin-right: 0;
    }

    body.mobile-topbar-menu-left #mobileTopbarMenuButton,
    body.mobile-topbar-menu-right #mobileTopbarMenuButton {
      display: inline-flex !important;
    }
  }

  @media (max-width: 759px) {
    .topbar {
      grid-template-columns: minmax(0, 1fr) auto auto;
      grid-template-rows: 1fr 1fr;
      row-gap: 4px;
      overflow: hidden;
    }

    .topbar-identity {
      grid-column: 1;
      grid-row: 1 / span 2;
      padding-right: min(168px, 20vw);
      z-index: 6;
    }

    .topbar-identity-head,
    .topbar-identity-text,
    .topbar-user-avatar-wrap {
      position: relative;
      z-index: 9;
    }

    .mobile-topbar-actions {
      grid-column: 2;
      grid-row: 2;
      margin-right: 8px;
      margin-left: 0;
      justify-self: end;
      align-self: end;
      z-index: 6;
    }

    .topbar-meta {
      grid-column: 3;
      grid-row: 2;
      margin-top: 10px;
      margin-right: var(--tablet-topbar-right-inset);
      justify-content: flex-end !important;
      justify-self: end;
      align-self: end;
      z-index: 6;
    }

    .mobile-topbar-logo {
      width: min(176px, 20vw);
      max-width: 176px;
      right: var(--tablet-topbar-right-inset);
      z-index: 4;
    }

    body.mobile-topbar-menu-left .mobile-topbar-actions,
    body.mobile-topbar-menu-right .mobile-topbar-actions {
      grid-column: 2;
      grid-row: 2;
    }

    body.mobile-topbar-menu-left .mobile-topbar-actions {
      margin-left: 8px;
      margin-right: 0;
      justify-self: start;
      justify-content: flex-start;
    }

    body.mobile-topbar-menu-right .mobile-topbar-actions {
      margin-right: 8px;
      margin-left: 0;
      justify-self: end;
      justify-content: flex-end;
    }

    body.mobile-topbar-menu-left .topbar-meta,
    body.mobile-topbar-menu-right .topbar-meta {
      grid-column: 3;
      grid-row: 2;
      margin-right: var(--tablet-topbar-right-inset);
      justify-content: flex-end !important;
    }
  }

}
@media (max-width: 600px) {
  .mobile-topbar-logo {
    width: 121px;
    max-width: 121px;
    height: 30px;
    max-height: 30px;
    object-fit: contain;
    flex-shrink: 0;
  }
}

@media (max-width: 600px) {
  .topbar {
    min-height: 58px;
    height: 58px;
  }
}

/* ===== COMPACT DASHBOARD TYPOGRAPHY SCALE BAŞLANGIÇ ===== */
#personelLiveSalaryPanel.personel-mobile-display-panel {
  --personel-mobile-scale: 1;
}

#personelLiveSalaryPanel.personel-mobile-display-panel.personel-mobile-scale-large {
  --personel-mobile-scale: 1.08;
}

#personelLiveSalaryPanel.personel-mobile-display-panel.personel-mobile-scale-xlarge {
  --personel-mobile-scale: 1.16;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-main span {
  font-size: calc(0.82rem * var(--personel-mobile-scale, 1));
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-main strong {
  font-size: calc(clamp(2rem, 8.8vw, 3.2rem) * var(--personel-mobile-scale, 1));
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-side-top span {
  font-size: calc(0.64rem * var(--personel-mobile-scale, 1));
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-side-top strong {
  font-size: calc(clamp(1.22rem, 5.6vw, 2.05rem) * var(--personel-mobile-scale, 1));
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-summary-side-bottom strong {
  font-size: calc(1.42rem * var(--personel-mobile-scale, 1));
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-status-dot {
  width: calc(10px * var(--personel-mobile-scale, 1));
  height: calc(10px * var(--personel-mobile-scale, 1));
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-nav {
  font-size: calc(1.8rem * var(--personel-mobile-scale, 1));
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-title-wrap strong {
  font-size: calc(clamp(0.96rem, 3.7vw, 1.08rem) * var(--personel-mobile-scale, 1));
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-counter {
  font-size: calc(0.72rem * var(--personel-mobile-scale, 1));
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-item span,
#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-carousel.is-today-actions .personel-action-group-item span {
  font-size: calc(0.76rem * var(--personel-mobile-scale, 1));
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-item strong,
#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-carousel.is-today-actions .personel-action-group-item strong,
#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-action strong {
  font-size: calc(0.96rem * var(--personel-mobile-scale, 1));
}
/* ===== COMPACT DASHBOARD TYPOGRAPHY SCALE BİTİŞ ===== */

/* ===== DASHBOARD QUICK CONTROLS + POPOVER BAŞLANGIÇ ===== */
#personelLiveSalaryPanel.personel-mobile-display-panel .personel-live-salary-shell {
  overflow: visible;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-preferences {
  position: relative;
  z-index: 60;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0 2px;
  margin-top: 2px;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-preferences-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: var(--personel-mobile-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-calendar-link {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--personel-mobile-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--personel-mobile-text);
  font: inherit;
  font-size: clamp(0.82rem, 2.8vw, 0.94rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-quick-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  margin-left: auto;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-icon-control-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-icon-button,
#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-segment button,
#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-control-actions button {
  border: 1px solid var(--personel-mobile-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--personel-mobile-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  color: var(--personel-mobile-accent);
  line-height: 1;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-icon-button.is-active,
#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-segment button.is-active {
  background: var(--personel-mobile-accent);
  border-color: var(--personel-mobile-accent);
  color: var(--personel-mobile-bg);
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-scale-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: min(244px, 34vw);
  min-width: 188px;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-scale-quick button {
  min-height: 36px;
  padding: 7px 8px;
  font-size: 0.78rem;
  white-space: nowrap;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-panel-body {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 80;
  display: grid;
  width: min(360px, calc(100vw - 24px));
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--personel-mobile-border) 44%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--personel-mobile-panel) 94%, #000 6%);
  box-shadow: var(--personel-mobile-shadow);
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-color-grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--personel-mobile-border) 28%, transparent);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-color-grid span {
  color: var(--personel-mobile-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-color-grid input {
  width: 38px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-control-actions {
  display: grid;
  grid-template-columns: 1fr;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-control-actions button {
  min-height: 38px;
  padding: 8px 10px;
  color: var(--personel-mobile-accent);
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-title-wrap strong::before {
  content: "▶";
  display: inline-block;
  margin-right: 0.38em;
  color: var(--personel-mobile-accent);
  font-size: calc(0.74em * var(--personel-mobile-scale, 1));
  line-height: 1;
  transform: translateY(-0.03em);
}

@media (max-width: 720px) {
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-preferences-head {
    align-items: stretch;
    flex-direction: column;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-calendar-link,
  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-quick-controls {
    width: 100%;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-quick-controls {
    justify-content: space-between;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-scale-quick {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-scale-quick button {
    padding-inline: 6px;
    font-size: 0.72rem;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-mobile-display-panel-body {
    right: 50%;
    bottom: calc(100% + 8px);
    width: min(340px, calc(100vw - 20px));
    transform: translateX(50%);
  }
}
/* ===== DASHBOARD QUICK CONTROLS + POPOVER BİTİŞ ===== */

/* ===== SINGLE DASHBOARD RESPONSIVE PARITY BAŞLANGIÇ ===== */

/* ===== DESKTOP ACTION GROUP COLOR PARITY BAŞLANGIÇ ===== */
#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-title-wrap strong,
#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-item strong {
  color: var(--personel-mobile-text);
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-nav,
#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-counter {
  color: var(--personel-mobile-accent);
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-item span {
  color: var(--personel-mobile-muted);
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-carousel {
  border-color: transparent;
  background: transparent;
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-item {
  border-color: color-mix(in srgb, var(--personel-mobile-border) 26%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.06)),
    var(--personel-mobile-panel);
  color: var(--personel-mobile-text);
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-action {
  border-color: color-mix(in srgb, var(--personel-mobile-border) 32%, transparent);
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-action:hover,
#personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-action:focus-visible {
  border-color: color-mix(in srgb, var(--personel-mobile-accent) 58%, var(--personel-mobile-border));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(0, 0, 0, 0.04)),
    var(--personel-mobile-panel);
}
/* ===== DESKTOP ACTION GROUP COLOR PARITY BİTİŞ ===== */

@media (max-width: 1181px) {
    #personelLiveSalaryPanel.personel-mobile-display-panel .personel-action-group-carousel {
        border: none;
    }
}
@media (max-width: 1181px) {
    #personelLiveSalaryPanel .personel-action-group-carousel {
        width: 100%;
        min-width: 0;
        padding: 10px 0 0;
        border-radius: 12px;
        border-color: rgba(242, 176, 98, 0.12);
        background: transparent;
        box-shadow: none;
    }
}

#personelLiveSalaryPanel.personel-mobile-display-panel .personel-live-salary-shell {
    display: ruby;
    width: auto;
    justify-self: start;
    box-sizing: border-box;
    border-color: color-mix(in srgb, var(--personel-mobile-border) 26%, transparent);
    border-radius: 24px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.08)),
      var(--personel-mobile-bg);
    color: var(--personel-mobile-text);
  }

@media (min-width: 721px) and (max-width: 1180px) {
  .content {
    padding-top: calc(env(safe-area-inset-top) + 87px + 16px);
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel {
    display: inline-grid;
    width: auto;
    max-width: calc(100vw - 20px);
    grid-template-columns: minmax(0, max-content);
    justify-self: start;
    align-self: start;
    margin-inline: 0 auto;
  }

  #personelLiveSalaryPanel.personel-mobile-display-panel .personel-live-salary-shell {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    border-color: color-mix(in srgb, var(--personel-mobile-border) 26%, transparent);
    border-radius: 24px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.08)),
      var(--personel-mobile-bg);
    color: var(--personel-mobile-text);
  }
}
/* ===== SINGLE DASHBOARD RESPONSIVE PARITY BİTİŞ ===== */
