:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #68717d;
  --line: #dde3ea;
  --panel: #ffffff;
  --page: #f4f6f8;
  --brand-red: #c43b3b;
  --brand-red-strong: #9f252c;
  --brand-charcoal: #1e2228;
  --brand-slate: #353b44;
  --brand-gold: #d09219;
  --brand-blue: #24445c;
  --ok: #168454;
  --warn: #b55b16;
  --danger: #a82a1f;
  --shadow: 0 18px 50px rgba(31, 36, 43, 0.14);
  --soft-shadow: 0 10px 28px rgba(31, 36, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  overflow-x: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease, border-color 140ms ease;
  will-change: transform;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button:not(:disabled):active,
.link-button:active {
  transform: translateY(1px) scale(0.985);
}

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

.app-shell {
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(196, 59, 59, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(30, 34, 40, 0.08), transparent 38%),
    var(--page);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-logo {
  display: block;
  object-fit: contain;
  max-width: 100%;
}

.login-logo {
  width: min(260px, 78vw);
  height: auto;
}

.sidebar-logo {
  width: 170px;
  height: auto;
}

.login-panel {
  width: min(680px, 100%);
  display: grid;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 32px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand-red);
  border-radius: 8px;
  padding: 50px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.login-card-wrap {
  display: grid;
  justify-items: center;
  gap: 26px;
}

.login-card {
  width: 100%;
}

.login-card label {
  text-align: left;
}

.login-card h3 {
  margin: 0 0 18px;
  font-size: 1.35rem;
}

.login-brand-block {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.portal-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0cfd1;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--brand-red);
  background: #fff6f5;
  font-weight: 900;
}

.portal-pill-large {
  min-height: 54px;
  border-radius: 999px;
  padding: 0 30px;
  font-size: 1.45rem;
  box-shadow: 0 14px 28px rgba(196, 59, 59, 0.14);
}

.login-heading {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.login-heading h2 {
  margin: 8px 0 0;
  font-size: 2.15rem;
}

.eyebrow {
  color: var(--brand-red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h2 {
  margin: 10px 0 18px;
  font-size: 2rem;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
}

.muted {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #343940;
  font-weight: 800;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.login-card input {
  min-height: 50px;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 92px;
}

.password-toggle {
  position: absolute;
  right: 7px;
  top: 7px;
  min-height: 36px;
  border-radius: 5px;
  padding: 0 12px;
  color: var(--brand-red);
  background: #faeeee;
  font-weight: 900;
}

.login-lock-notice.blocked {
  display: grid !important;
  gap: 4px;
  border-left: 5px solid var(--danger);
  text-align: left;
}

.login-lock-notice.blocked strong,
.login-lock-notice.blocked span {
  display: block;
  font-weight: 700;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(169, 22, 58, 0.14);
}

.primary,
.secondary,
.danger,
.icon-button,
.link-button {
  min-height: 42px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  font-weight: 900;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
}

.primary {
  color: white;
  background: var(--brand-red);
  box-shadow: 0 8px 18px rgba(196, 59, 59, 0.2);
}

.primary:hover {
  background: var(--brand-red-strong);
}

.secondary {
  color: var(--brand-red);
  background: #faeeee;
}

.muted-action {
  color: var(--brand-slate);
  background: #eef1f4;
}

.danger {
  color: #fff;
  background: var(--danger);
}

.icon-button {
  width: 42px;
  padding: 0;
  color: var(--ink);
  background: #eef1f4;
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  padding: 22px 18px;
  color: white;
  background: linear-gradient(180deg, #2b2225, var(--brand-charcoal));
}

.brand {
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.brand .company-logo {
  padding: 8px;
  border-radius: 6px;
  background: white;
}

.brand span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 900;
}

.portal-cover {
  min-height: auto;
  align-items: flex-start;
  justify-content: start;
  text-align: left;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(196, 59, 59, 0.2), transparent 58%),
    rgba(255, 255, 255, 0.08);
}

.portal-cover span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-cover strong {
  display: block;
  color: white;
  font-size: 1.18rem;
  line-height: 1.15;
}

.nav {
  display: grid;
  align-content: start;
  gap: 7px;
}

.nav button,
.nav-parent {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 6px;
  padding: 0 14px;
  text-align: left;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  font-weight: 900;
}

.nav button.active,
.nav button:hover,
.nav-group.active > .nav-parent,
.nav-parent:hover {
  color: white;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 3px 0 0 var(--brand-red);
}

.nav-group {
  position: relative;
}

.nav-parent {
  width: 100%;
  justify-content: space-between;
}

.nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  opacity: .72;
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-1px);
}

.nav-submenu {
  display: none;
  position: absolute;
  z-index: 40;
  top: 0;
  left: calc(100% - 1px);
  width: 190px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 6px;
  background: #3a3033;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .28);
}

.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu,
.nav-group.open .nav-submenu {
  display: grid;
  gap: 4px;
}

.nav-submenu button {
  min-height: 38px;
  padding: 0 12px;
  color: rgba(255, 255, 255, .78);
}

.nav-submenu button.active,
.nav-submenu button:hover {
  background: rgba(255, 255, 255, .14);
}

.side-note {
  align-self: end;
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 18px;
}

.side-note span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
}

.content {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 30px;
}

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

.topbar h1 {
  margin: 4px 0 0;
  font-size: 1.9rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.topbar-brand {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: white;
}

.topbar-brand span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.topbar-logo {
  width: 150px;
  height: auto;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: white;
}

.notification-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.notification-button {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-charcoal);
  background: #f8fafc;
}

.notification-button:hover,
.notification-wrap.open .notification-button {
  color: var(--brand-red);
  border-color: #f0c4c4;
  background: #fff5f5;
}

.notification-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-badge {
  min-width: 22px;
  height: 22px;
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 999px;
  padding: 0 5px;
  color: white;
  background: #d5163b;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.notification-popover {
  width: min(380px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 120px));
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}

.notification-popover header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
  background: #f8fafc;
}

.notification-popover h3 {
  margin: 3px 0 0;
  font-size: 1rem;
}

.notification-popover .secondary {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.notification-list {
  max-height: 410px;
  overflow: auto;
  padding: 8px;
}

.notification-item {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px;
  background: white;
}

.notification-item + .notification-item {
  margin-top: 6px;
}

.notification-item.unread {
  border-color: #f0c4c4;
  background: #fff8f8;
}

.notification-item strong {
  display: block;
  margin-top: 0;
}

.notification-item p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--brand-red);
  font-weight: 900;
}

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

.stat,
.panel,
.table-wrap,
.audit-preview,
.secure-panel,
.security-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(31, 36, 43, 0.04);
}

.panel,
.table-wrap {
  box-shadow: var(--soft-shadow);
}

.stat {
  min-height: 92px;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 18px;
  border-top: 0;
  border-left: 4px solid var(--brand-slate);
  text-align: left;
}

.stat.accent {
  border-left-color: var(--brand-red);
}

.stat span {
  color: var(--muted);
  font-weight: 800;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.8rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.users-layout {
  display: grid;
  gap: 18px;
}

.user-create {
  min-height: auto;
  width: fit-content;
  display: grid;
  place-items: center;
  gap: 12px;
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.user-create > h3,
.user-create > .form-grid {
  display: none;
}

.create-user-launch-button {
  min-width: 164px;
  min-height: 42px;
  border-radius: 10px;
  font-size: 0.95rem;
  box-shadow: 0 10px 20px rgba(196, 59, 59, 0.18);
}

.user-create .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
  margin-top: 14px;
}

.create-user-modal {
  width: min(760px, calc(100vw - 32px));
  position: relative;
}

.create-user-modal h2 {
  margin: 8px 0 18px;
}

.create-user-form {
  display: grid;
  gap: 18px;
}

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

.create-user-grid label:nth-child(7) {
  grid-column: 1 / -1;
}

.panel,
.secure-panel,
.audit-preview {
  padding: 18px;
}

.table-wrap {
  overflow: auto;
}

.section-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

.section-head.compact {
  min-height: auto;
  align-items: flex-start;
  padding: 0;
  margin-bottom: 16px;
}

.section-head.compact p {
  margin: 6px 0 0;
  max-width: 780px;
}

.user-search-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.user-search-tools input {
  width: min(320px, 42vw);
  min-height: 38px;
}

.is-hidden {
  display: none;
}

.search-toggle {
  min-height: 38px;
}

.search-symbol {
  width: 16px;
  height: 16px;
  position: relative;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-symbol::after {
  content: "";
  width: 7px;
  height: 2px;
  position: absolute;
  right: -6px;
  bottom: -3px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eceff2;
  color: #3c4651;
  font-size: 0.8rem;
  font-weight: 900;
}

.badge.admin {
  color: #6e3a00;
  background: #fff0c7;
}

.ok-badge {
  color: #12623e;
  background: #e3f6ee;
}

.status-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot.ok {
  background: var(--ok);
}

.status-dot.off {
  background: var(--danger);
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.edit-user-button {
  color: var(--brand-blue);
  background: #eaf1f6;
}

.notice {
  display: none;
  margin-top: 14px;
  border-radius: 6px;
  padding: 12px 14px;
  background: #ecf8f2;
  color: #135f3c;
  font-weight: 800;
}

.notice.visible {
  display: block;
}

.notice.error {
  background: #ffe7e1;
  color: #8c241a;
}

#payslipNotice.notice {
  max-width: 720px;
  margin: 16px auto 0;
  text-align: center;
}

.empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

.employee-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-red);
  border-radius: 8px;
  padding: 20px 22px;
  background: white;
  text-align: left;
  box-shadow: 0 1px 0 rgba(31, 36, 43, 0.04);
}

.employee-hero h2,
.employee-hero p {
  margin: 0;
}

.employee-hero h2 {
  margin-top: 7px;
}

.employee-hero p {
  margin-top: 8px;
  color: var(--muted);
}

.employee-search {
  font-size: 0.86rem;
}

.employee-search input {
  min-height: 46px;
  margin-top: 4px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.document-groups {
  display: grid;
  gap: 18px;
}

.document-month {
  display: grid;
  gap: 12px;
}

.document-month header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.document-month header span {
  color: var(--muted);
  font-weight: 900;
}

.document-card {
  min-height: 154px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-red);
  border-radius: 8px;
  padding: 15px;
  background: white;
  box-shadow: 0 1px 0 rgba(31, 36, 43, 0.04);
  text-align: left;
}

.document-card.viewed {
  border-left-color: var(--ok);
}

.document-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.document-status.pending {
  color: #8a4511;
  background: #fff0df;
}

.document-status.seen {
  color: #12623e;
  background: #e3f6ee;
}

.employee-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  background: #f5f6f8;
}

.employee-layout .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid #dfe4ea;
  padding: 30px 24px 28px;
  color: #202938;
  background: #fff;
  overflow: hidden;
}

.employee-layout .sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #e53935 0%, #df262b 48%, rgba(223, 38, 43, .28) 100%);
  box-shadow: 0 0 18px rgba(223, 38, 43, .18);
  pointer-events: none;
}

.employee-sidebar-brand {
  min-height: 66px;
  display: flex;
  align-items: center;
}

.employee-layout .sidebar-logo {
  width: 190px;
  height: auto;
}

.employee-layout .nav {
  flex: 1 1 auto;
  min-height: 0;
  gap: 13px;
  margin-top: 12px;
  overflow-y: auto;
  padding: 0 2px 12px 0;
  scrollbar-gutter: stable;
}

.employee-layout .nav button {
  min-height: 52px;
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  border-radius: 12px;
  padding: 0 18px;
  color: #343b46;
  background: transparent;
  box-shadow: none;
  font-weight: 700;
}

.employee-layout .nav button::before {
  content: "";
  width: 4px;
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  border-radius: 999px;
  background: transparent;
}

.employee-layout .nav button:hover {
  color: var(--brand-red);
  background: #fff7f7;
  box-shadow: none;
}

.employee-layout .nav button.active {
  color: #df262b;
  background: #fff0f0;
  box-shadow: none;
  font-weight: 900;
}

.employee-layout .nav button.active::before {
  background: #df262b;
}

.employee-layout .nav-icon,
.employee-layout .nav-icon svg {
  width: 24px;
  height: 24px;
}

.employee-layout .nav-icon {
  display: grid;
  place-items: center;
  color: currentColor;
}

.employee-layout .nav-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .nav-icon .plane-solid-icon {
  fill: currentColor;
  stroke: none;
}

.employee-layout .nav-icon .nav-solid-icon {
  fill: currentColor;
  stroke: none;
}

.employee-layout .nav-icon .nav-solid-icon .nav-cut {
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .nav-icon .user-solid-icon path {
  fill: currentColor;
}

.employee-layout .nav-icon .folder-document-icon {
  fill: none;
  stroke: none;
}

.employee-layout .nav-icon .folder-document-icon .folder-body {
  fill: currentColor;
}

.employee-layout .nav-icon .folder-document-icon .folder-lip {
  fill: currentColor;
  opacity: .62;
}

.employee-layout .nav-icon .folder-document-icon .folder-line {
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.employee-layout .side-note {
  flex: 0 0 auto;
  align-self: stretch;
  gap: 12px;
  margin-top: auto;
  border: 1px solid #dfe5ec;
  border-radius: 14px;
  padding: 20px;
  color: #202938;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 31, 44, .04);
}

.employee-layout .side-note strong,
.employee-layout .side-note span {
  position: relative;
  display: block;
  padding-left: 26px;
}

.employee-layout .side-note strong::before,
.employee-layout .side-note span::before {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  left: 0;
  top: .52em;
  border-radius: 50%;
  background: #16c76a;
}

.employee-layout .side-note span {
  color: #68717d;
  font-size: .95rem;
}

.employee-layout .side-note span::before {
  opacity: .35;
}

.employee-layout .content {
  gap: 26px;
  padding: 0;
  background: #f5f6f8;
}

.employee-layout .topbar {
  min-height: 118px;
  border-bottom: 1px solid #dfe4ea;
  padding: 28px 38px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(22, 31, 44, .05);
}

.employee-layout .topbar .eyebrow {
  color: #df262b;
  font-size: .82rem;
  letter-spacing: .04em;
}

.employee-layout .employee-portal-heading {
  display: flex;
  align-items: center;
}

.employee-layout .employee-portal-title {
  color: #df262b;
  font-size: 1.18rem;
  font-weight: 950;
  letter-spacing: .045em;
  line-height: 1;
}

.employee-layout .topbar h1 {
  margin-top: 8px;
  color: #151a22;
  font-size: 2.2rem;
  line-height: 1;
}

.employee-layout .topbar-actions {
  gap: 18px;
}

.employee-layout .user-chip {
  gap: 10px;
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
}

.employee-layout .notification-button {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 31, 44, .06);
}

.employee-layout .avatar {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #ef2d32, #c71924);
  box-shadow: 0 12px 22px rgba(215, 40, 47, .22);
}

.employee-layout .user-chip .muted {
  margin-top: 2px;
}

.employee-layout .user-chip .secondary {
  min-height: 52px;
  margin-left: 10px;
  border: 1px solid #df262b;
  border-radius: 12px;
  padding: 0 22px;
  color: #df262b;
  background: #fff;
}

.employee-layout .user-chip .secondary:hover {
  background: #fff3f3;
}

.employee-payroll-hero,
.employee-empty-card {
  width: calc(100% - 76px);
  margin: 0 38px;
  border: 1px solid #e1e6ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(22, 31, 44, .08);
}

.employee-payroll-hero {
  min-height: 246px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(250px, 340px) 1px minmax(280px, .82fr);
  align-items: center;
  gap: 34px;
  border-left: 4px solid #e53935;
  margin-top: 10px;
  padding: 36px 48px;
  overflow: hidden;
}

.employee-payroll-copy {
  position: relative;
  z-index: 1;
}

.employee-payroll-copy h2 {
  margin: 18px 0 0;
  color: #111827;
  font-size: 2.25rem;
  line-height: 1.05;
}

.employee-payroll-copy p {
  max-width: 360px;
  margin: 18px 0 0;
  color: #4d5662;
  font-size: 1.05rem;
  line-height: 1.7;
}

.employee-payroll-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 172px;
  max-height: 190px;
  overflow: hidden;
}

.employee-payroll-art::before {
  content: "";
  width: 210px;
  height: 210px;
  position: absolute;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(223, 38, 43, .06), rgba(22, 31, 44, .02));
  transform: rotate(45deg);
}

.employee-payroll-art:has(.employee-payroll-illustration-img)::before {
  display: none;
}

.employee-payroll-illustration-img {
  width: min(330px, 100%) !important;
  max-width: 100%;
  max-height: 188px !important;
  display: block;
  object-fit: contain;
  object-position: center;
}

.employee-payroll-art svg {
  width: 104px;
  height: 126px;
  position: relative;
  z-index: 1;
  fill: #e51f28;
  stroke: white;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 16px 18px rgba(223, 38, 43, .24));
}

.employee-payroll-art .spark {
  width: 7px;
  height: 7px;
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  background: #ffb4b8;
}

.employee-payroll-art .spark-one { left: 42px; top: 34px; }
.employee-payroll-art .spark-two { right: 34px; top: 78px; }
.employee-payroll-art .spark-three { left: 76px; bottom: 26px; }

.employee-payroll-divider {
  width: 1px;
  height: 134px;
  background: #d9dfe6;
}

.employee-payroll-search {
  gap: 14px;
  color: #1f2530;
  font-size: 1rem;
}

.search-input-shell {
  min-height: 56px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid #d9e0e8;
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
}

.search-input-shell svg {
  width: 22px;
  height: 22px;
  color: #4f5965;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-input-shell input {
  min-height: 54px;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.search-input-shell:focus-within {
  border-color: #df262b;
  box-shadow: 0 0 0 4px rgba(223, 38, 43, .10);
}

.employee-payroll-results {
  display: grid;
  gap: 18px;
}

.employee-empty-card {
  min-height: 300px;
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 24px;
  padding: 52px 28px;
  text-align: center;
}

.employee-empty-icon {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0f0;
}

.employee-empty-icon svg {
  width: 78px;
  height: 78px;
  fill: none;
  stroke: #df262b;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-empty-card p {
  margin: 0;
  color: #161d27;
  font-size: 1.18rem;
  line-height: 1.45;
}

.employee-layout .employee-document-groups {
  width: calc(100% - 76px);
  margin: 0 38px;
}

.employee-layout .document-month {
  border: 1px solid #e1e6ec;
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(22, 31, 44, .06);
}

.employee-layout .document-card {
  border-radius: 14px;
  border-left-color: #df262b;
}

.employee-layout .legal-footer {
  justify-content: center;
  margin: 10px 38px 26px;
  padding: 0;
}

.employee-layout .legal-footer span {
  color: #4b5563;
}

.employee-layout .legal-footer button {
  color: #df262b;
}

.employee-documentation-main {
  display: grid;
  gap: 28px;
  padding: 10px 38px 0;
  background: #f6f7fb;
}

.employee-documentation-hero,
.employee-documentation-empty {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .07);
  overflow: hidden;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}

.employee-documentation-hero:hover,
.employee-documentation-empty:hover,
.employee-documentation-month:hover {
  border-color: #dfe3e8;
  box-shadow: 0 22px 54px rgba(17, 24, 39, .09);
}

.employee-documentation-hero {
  min-height: 252px;
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(250px, 340px) 1px minmax(280px, .82fr);
  align-items: center;
  gap: 34px;
  border-left: 4px solid #e53935;
  padding: 46px 56px 46px 64px;
}

.documentation-accent {
  display: none;
}

.employee-documentation-copy {
  position: relative;
  z-index: 1;
}

.employee-documentation-copy .eyebrow {
  color: #e53935;
  font-size: .82rem;
  letter-spacing: .035em;
}

.employee-documentation-copy h2 {
  margin: 20px 0 0;
  color: #111827;
  font-size: clamp(2.15rem, 3vw, 3.15rem);
  line-height: 1.02;
}

.employee-documentation-copy p {
  max-width: 390px;
  margin: 20px 0 0;
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.65;
}

.documentation-hero-art,
.documentation-empty-art {
  position: relative;
  display: grid;
  place-items: center;
}

.documentation-hero-art {
  min-height: 172px;
  max-height: 198px;
  overflow: hidden;
}

.documentation-hero-img {
  width: min(330px, 100%);
  max-width: 100%;
  max-height: 190px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.documentation-hero-art:has(.documentation-hero-img)::before {
  display: none;
}

.documentation-hero-art svg,
.documentation-empty-art svg {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.documentation-hero-art svg {
  width: 220px;
  height: 190px;
}

.documentation-hero-art circle,
.documentation-empty-art circle {
  fill: #fff0f0;
}

.documentation-hero-art .folder-back {
  fill: #ff8b8b;
  opacity: .72;
}

.documentation-hero-art .folder-front {
  fill: #e53935;
  filter: drop-shadow(0 16px 20px rgba(229, 57, 53, .22));
}

.documentation-hero-art .paper,
.documentation-empty-art .empty-paper-front,
.documentation-empty-art .empty-paper-back {
  fill: #fff;
  filter: drop-shadow(0 12px 18px rgba(229, 57, 53, .16));
}

.documentation-hero-art .paper-fold,
.documentation-empty-art .empty-paper-fold {
  fill: #ffd7d7;
}

.documentation-hero-art .paper-line,
.documentation-empty-art .empty-line,
.documentation-empty-art .empty-tray-slot {
  fill: none;
  stroke: #ff7a7a;
  stroke-width: 5;
  stroke-linecap: round;
}

.documentation-hero-art::before,
.documentation-empty-art::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff3f3;
  box-shadow: inset 0 0 0 1px rgba(229, 57, 53, .04);
}

.documentation-hero-art::before {
  width: 178px;
  height: 178px;
}

.doc-spark {
  position: absolute;
  z-index: 2;
  color: #ffb7b7;
}

.doc-spark::before,
.doc-spark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: currentColor;
}

.doc-spark::before {
  width: 12px;
  height: 4px;
  left: -6px;
  top: -2px;
}

.doc-spark::after {
  width: 4px;
  height: 12px;
  left: -2px;
  top: -6px;
}

.doc-spark-one { left: 18px; top: 58px; }
.doc-spark-two { right: 32px; top: 30px; transform: scale(.72); }
.doc-spark-three { right: 10px; bottom: 48px; transform: scale(.58); }

.employee-documentation-divider {
  width: 1px;
  height: 156px;
  background: #dfe4ea;
}

.employee-documentation-search {
  gap: 16px;
  color: #111827;
  font-size: 1rem;
}

.documentation-search-shell {
  min-height: 56px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  border: 1px solid #d8dee7;
  border-radius: 12px;
  padding: 0 17px;
  background: #fff;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out, transform 200ms ease-out;
}

.documentation-search-shell:focus-within {
  border-color: #e53935;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, .10);
}

.documentation-search-shell:hover {
  border-color: #cfd6df;
}

.documentation-search-icon,
.documentation-chevron {
  width: 22px;
  height: 22px;
  color: #6b7280;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.documentation-chevron {
  justify-self: end;
}

.documentation-search-shell input {
  min-height: 54px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #111827;
  background: transparent;
  box-shadow: none;
}

.employee-documentation-results {
  display: grid;
  gap: 20px;
}

.employee-documentation-empty {
  min-height: 342px;
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 26px;
  padding: 56px 28px;
  text-align: center;
}

.documentation-empty-art {
  width: 190px;
  height: 168px;
}

.documentation-empty-art::before {
  width: 150px;
  height: 150px;
  border: 1px dashed rgba(229, 57, 53, .22);
  background: transparent;
}

.documentation-empty-art svg {
  width: 170px;
  height: 150px;
}

.documentation-empty-art .empty-tray {
  fill: #ffdada;
  filter: drop-shadow(0 14px 20px rgba(229, 57, 53, .14));
}

.documentation-empty-art .empty-paper-back {
  opacity: .86;
}

.empty-spark-one { left: 14px; top: 52px; }
.empty-spark-two { right: 4px; top: 36px; transform: scale(.8); }
.empty-spark-three { right: 24px; bottom: 22px; transform: scale(.65); }

.employee-documentation-empty p {
  margin: 0;
  color: #111827;
  font-size: 1.18rem;
  line-height: 1.55;
}

.employee-documentation-groups {
  gap: 22px;
}

.employee-documentation-month {
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, .06);
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}

.employee-documentation-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.employee-documentation-card {
  min-height: 170px;
  border-color: #e5e7eb;
  border-left-color: #e53935;
  border-radius: 18px;
  padding: 18px;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}

.employee-documentation-card:hover {
  border-color: #f0caca;
  box-shadow: 0 16px 32px rgba(17, 24, 39, .08);
  transform: translateY(-2px);
}

.document-card h3 {
  margin-top: 8px;
  font-size: 1.12rem;
}

.document-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.document-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.document-card .link-button {
  width: auto;
  justify-self: start;
}

.absence-admin,
.absence-history,
.absence-form {
  display: grid;
  gap: 14px;
}

.absence-hero {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-red);
  border-radius: 8px;
  padding: 22px 24px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.absence-hero h2,
.absence-hero p {
  margin: 0;
}

.absence-hero h2 {
  margin-top: 6px;
}

.absence-hero p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

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

.absence-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.absence-subject,
.absence-file,
.absence-form-grid .primary {
  grid-column: 1 / -1;
}

.absence-file span {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
}

.absence-admin-panel {
  display: grid;
  gap: 14px;
}

.absence-search {
  width: min(100%, 360px);
}

.absence-summary-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.absence-summary-actions label {
  min-width: 170px;
}

.absence-summary-actions label:nth-child(2) {
  min-width: 260px;
}

.absence-summary-actions .link-button {
  min-height: 44px;
  align-self: end;
}

.absence-table td:nth-child(4) {
  max-width: 420px;
  line-height: 1.45;
}

.absence-attachment {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.absence-attachment.sent {
  color: #12623e;
  background: #e3f6ee;
}

.absence-attachment.missing {
  color: #8c241a;
  background: #ffe7e1;
}

.employee-layout .absence-page-premium {
  --abs-red: #e53935;
  --abs-red-dark: #c62828;
  --abs-ink: #111827;
  --abs-muted: #6b7280;
  --abs-line: #e5e7eb;
  width: calc(100% - 76px);
  display: grid;
  gap: 24px;
  margin: 0 38px;
  color: var(--abs-ink);
}

.employee-layout .absence-page-premium .premium-kicker {
  color: var(--abs-red);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.employee-layout .absence-hero-premium,
.employee-layout .absence-form-card,
.employee-layout .absence-history-card {
  border: 1px solid var(--abs-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(17, 24, 39, .06);
}

.employee-layout .absence-hero-premium {
  min-height: 232px;
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(310px, 420px) minmax(260px, 360px);
  align-items: center;
  gap: 22px;
  border-left: 4px solid var(--abs-red);
  padding: 34px 44px;
  overflow: hidden;
}

.employee-layout .absence-hero-copy h2,
.employee-layout .absence-hero-copy p {
  margin: 0;
}

.employee-layout .absence-hero-copy h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.employee-layout .absence-hero-copy p {
  max-width: 580px;
  margin-top: 16px;
  color: var(--abs-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.employee-layout .absence-hero-art {
  min-height: 190px;
  max-height: 214px;
  display: grid;
  place-items: center start;
  overflow: hidden;
}

.employee-layout .absence-hero-img {
  width: 255px;
  max-width: 100%;
  max-height: 255px;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: translateX(-18px) scale(1.12);
  transform-origin: center;
}

.employee-layout .absence-hero-art svg {
  width: min(318px, 100%);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 24px 30px rgba(229, 57, 53, .15));
}

.employee-layout .absence-art-ground {
  fill: #fff0f0;
}

.employee-layout .absence-art-calendar,
.employee-layout .absence-art-doc {
  fill: #fff;
  stroke: #ffc4c4;
  stroke-width: 2.5;
}

.employee-layout .absence-art-calendar-top {
  fill: #ef4444;
}

.employee-layout .absence-art-ring,
.employee-layout .absence-art-line,
.employee-layout .absence-art-plus,
.employee-layout .absence-art-clock-hand {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .absence-art-ring {
  stroke: #ff8080;
  stroke-width: 8;
}

.employee-layout .absence-art-line {
  stroke: #ef4444;
  stroke-width: 6;
}

.employee-layout .absence-art-clock-face {
  fill: #fff;
  stroke: #ef4444;
  stroke-width: 7;
}

.employee-layout .absence-art-clock-hand {
  stroke: #ef4444;
  stroke-width: 5;
}

.employee-layout .absence-art-dot {
  fill: #ff8b8b;
  opacity: .75;
}

.employee-layout .absence-art-plus {
  stroke: #ef4444;
  stroke-width: 5;
  opacity: .74;
}

.employee-layout .absence-stat-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 4px 18px;
  border: 1px solid #ffe0e0;
  border-radius: 20px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #fff7f7, #fff);
}

.employee-layout .absence-stat-icon {
  width: 60px;
  height: 60px;
  grid-row: span 3;
  position: relative;
  display: block;
  border-radius: 16px;
  color: var(--abs-red);
  background: linear-gradient(145deg, #fff1f1, #ffe5e5);
  box-shadow: 0 14px 28px rgba(229, 57, 53, .08);
}

.employee-layout .absence-stat-icon svg,
.employee-layout .absence-heading-icon svg,
.employee-layout .absence-field-icon svg,
.employee-layout .absence-upload-icon svg,
.employee-layout .absence-submit-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .absence-stat-icon svg {
  width: 43px;
  height: 43px;
}

.employee-layout .absence-stat-icon .stat-calendar-svg,
.employee-layout .general-stat-icon .stat-calendar-svg {
  position: absolute;
  top: 54%;
  left: 54%;
  display: block;
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #e53935;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transform: translate(-50%, -50%);
}

.employee-layout .absence-stat-card strong {
  color: var(--abs-red);
  font-size: 2.15rem;
  line-height: 1;
}

.employee-layout .absence-stat-card b {
  display: block;
  font-weight: 900;
  line-height: 1.2;
}

.employee-layout .absence-stat-card span {
  display: block;
  margin-top: 0;
  color: var(--abs-muted);
  font-size: .94rem;
  font-weight: 700;
}

.employee-layout .absence-workspace {
  display: grid;
  grid-template-columns: minmax(420px, .95fr) minmax(420px, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.employee-layout .absence-form-card,
.employee-layout .absence-history-card {
  padding: 26px;
}

.employee-layout .absence-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--abs-line);
}

.employee-layout .absence-card-heading h3,
.employee-layout .absence-card-heading p {
  margin: 0;
}

.employee-layout .absence-card-heading h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.employee-layout .absence-card-heading p {
  margin-top: 8px;
  color: var(--abs-muted);
  line-height: 1.55;
}

.employee-layout .absence-heading-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--abs-red);
  background: #fff1f1;
  box-shadow: 0 10px 22px rgba(229, 57, 53, .08);
}

.employee-layout .absence-heading-icon svg {
  width: 26px;
  height: 26px;
}

.employee-layout .absence-form-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 24px;
}

.employee-layout .absence-form-grid-premium label {
  display: grid;
  gap: 9px;
  color: var(--abs-ink);
  font-size: .9rem;
  font-weight: 900;
}

.employee-layout .absence-field-shell {
  min-height: 52px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.employee-layout .absence-field-shell:focus-within {
  border-color: rgba(229, 57, 53, .45);
  box-shadow: 0 0 0 4px rgba(229, 57, 53, .1);
}

.employee-layout .absence-field-shell:hover {
  border-color: #cfd6e2;
}

.employee-layout .absence-field-shell.textarea {
  min-height: 126px;
  align-items: start;
}

.employee-layout .absence-field-icon {
  width: 20px;
  height: 20px;
  justify-self: center;
  color: #64748b;
}

.employee-layout .absence-field-shell input,
.employee-layout .absence-field-shell textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--abs-ink);
  font: inherit;
  font-weight: 700;
}

.employee-layout .absence-field-shell textarea {
  min-height: 102px;
  padding: 15px 16px 15px 0;
  resize: vertical;
}

.employee-layout .absence-subject-premium,
.employee-layout .absence-upload-zone,
.employee-layout .absence-submit-button,
.employee-layout #absenceNotice {
  grid-column: 1 / -1;
}

.employee-layout .absence-upload-zone {
  min-height: 86px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1.5px dashed #d8dee8;
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--abs-ink);
  background: #fbfcff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.employee-layout .absence-upload-zone:hover,
.employee-layout .absence-upload-zone.dragging {
  border-color: rgba(229, 57, 53, .45);
  background: #fff7f7;
  box-shadow: 0 14px 26px rgba(229, 57, 53, .07);
  transform: translateY(-1px);
}

.employee-layout .absence-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.employee-layout .absence-upload-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--abs-red);
  background: #fff1f1;
}

.employee-layout .absence-upload-icon svg {
  width: 26px;
  height: 26px;
}

.employee-layout .absence-upload-zone strong,
.employee-layout .absence-upload-zone small {
  display: block;
}

.employee-layout .absence-upload-zone strong {
  font-size: .97rem;
  font-weight: 900;
}

.employee-layout .absence-upload-zone small {
  margin-top: 5px;
  color: var(--abs-muted);
  font-size: .82rem;
  font-weight: 700;
}

.employee-layout .absence-submit-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f01824, var(--abs-red));
  box-shadow: 0 18px 32px rgba(229, 57, 53, .18);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.employee-layout .absence-submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(229, 57, 53, .24);
  filter: saturate(1.05);
}

.employee-layout .absence-submit-button:active {
  transform: translateY(1px) scale(.99);
}

.employee-layout .absence-submit-button svg {
  width: 19px;
  height: 19px;
}

.employee-layout .absence-record-list {
  display: grid;
  gap: 14px;
  padding-top: 22px;
}

.employee-layout .absence-record-card {
  border: 1px solid #edf0f5;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.employee-layout .absence-record-card:hover {
  border-color: #ffd5d5;
  box-shadow: 0 16px 30px rgba(17, 24, 39, .06);
  transform: translateY(-1px);
}

.employee-layout .absence-record-top,
.employee-layout .absence-record-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-layout .absence-record-top span {
  color: var(--abs-muted);
  font-size: .86rem;
  font-weight: 900;
}

.employee-layout .absence-record-top strong {
  color: var(--abs-red);
  font-size: .9rem;
}

.employee-layout .absence-record-card h3 {
  margin: 12px 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.employee-layout .absence-record-meta {
  color: var(--abs-muted);
  font-size: .86rem;
  font-weight: 800;
}

.employee-layout .absence-record-file {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .75rem;
  font-weight: 900;
}

.employee-layout .absence-record-file.sent {
  color: #12623e;
  background: #e3f6ee;
}

.employee-layout .absence-record-file.missing {
  color: #8c241a;
  background: #ffe7e1;
}

.employee-layout .absence-empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 26px;
  text-align: center;
}

.employee-layout .absence-empty-art {
  width: min(220px, 62%);
  display: block;
  margin-bottom: 4px;
  filter: drop-shadow(0 18px 24px rgba(229, 57, 53, .12));
}

.employee-layout .absence-empty-art svg {
  width: 100%;
  height: auto;
}

.employee-layout .absence-empty-state strong {
  font-size: 1.05rem;
}

.employee-layout .absence-empty-state p {
  max-width: 430px;
  margin: 0;
  color: var(--abs-muted);
  line-height: 1.55;
}

.justification-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.justification-mark.yes {
  border-color: #bde3cf;
  color: #12623e;
  background: #e3f6ee;
}

.justification-mark.yes:hover {
  border-color: #12623e;
  box-shadow: 0 8px 18px rgba(18, 98, 62, 0.14);
}

.justification-mark.no {
  border-color: #f2c1b7;
  color: #a12d22;
  background: #ffe7e1;
}

.vacation-hero,
.vacation-admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-red);
  border-radius: 8px;
  padding: 22px 24px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.vacation-hero h2,
.vacation-admin-hero h2,
.vacation-hero p,
.vacation-admin-hero p {
  margin: 0;
}

.vacation-hero h2,
.vacation-admin-hero h2 {
  margin-top: 6px;
}

.vacation-hero p,
.vacation-admin-hero p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.vacation-summary-card {
  min-width: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
  text-align: center;
}

.vacation-summary-card strong {
  display: block;
  color: var(--brand-red);
  font-size: 2rem;
  line-height: 1;
}

.vacation-summary-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 900;
}

.overtime-summary-card strong {
  color: #12623e;
}

.overtime-layout {
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
}

.overtime-form-grid {
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr);
}

.overtime-card.pending {
  border-left-color: var(--brand-red);
}

.overtime-summary-panel {
  display: grid;
  gap: 14px;
}

.overtime-summary-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.overtime-summary-actions label {
  min-width: 170px;
}

.overtime-summary-actions .link-button {
  min-height: 44px;
  align-self: end;
}

.overtime-summary-table td:nth-child(4) {
  max-width: 520px;
  line-height: 1.45;
}

.employee-layout .overtime-page-premium {
  --ot-red: #e53935;
  --ot-red-dark: #c62828;
  --ot-ink: #111827;
  --ot-muted: #6b7280;
  --ot-line: #e5e7eb;
  width: calc(100% - 76px);
  display: grid;
  gap: 24px;
  margin: 0 38px;
  color: var(--ot-ink);
}

.employee-layout .overtime-page-premium .eyebrow {
  color: var(--ot-red);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.employee-layout .overtime-hero-premium,
.employee-layout .overtime-form-card,
.employee-layout .overtime-history-card {
  border: 1px solid var(--ot-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(17, 24, 39, .06);
}

.employee-layout .overtime-hero-premium {
  min-height: 232px;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(260px, 330px) minmax(390px, 460px);
  align-items: center;
  gap: 22px;
  border-left: 4px solid var(--ot-red);
  padding: 34px 44px;
  overflow: hidden;
}

.employee-layout .overtime-hero-copy h2,
.employee-layout .overtime-hero-copy p {
  margin: 0;
}

.employee-layout .overtime-hero-copy h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.employee-layout .overtime-hero-copy p {
  max-width: 560px;
  margin-top: 16px;
  color: var(--ot-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.employee-layout .overtime-hero-art {
  min-height: 190px;
  max-height: 214px;
  position: relative;
  display: grid;
  place-items: center start;
  overflow: hidden;
}

.employee-layout .overtime-hero-img {
  width: 255px;
  max-width: 100%;
  max-height: 255px;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: translateX(-18px) scale(1.12);
  transform-origin: center;
}

.employee-layout .overtime-hero-art svg {
  width: min(306px, 100%);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 24px 30px rgba(229, 57, 53, .15));
}

.employee-layout .overtime-art-spark {
  position: absolute;
  color: var(--ot-red);
  font-size: 1.1rem;
  font-weight: 900;
  opacity: .7;
}

.employee-layout .overtime-art-spark.spark-one {
  left: 8%;
  bottom: 23%;
}

.employee-layout .overtime-art-spark.spark-two {
  top: 10%;
  left: 58%;
}

.employee-layout .overtime-art-spark.spark-three {
  right: 2%;
  bottom: 31%;
}

.employee-layout .overtime-art-ground {
  fill: #fff0f0;
}

.employee-layout .overtime-art-sheet {
  fill: #fff;
  stroke: #ffe0e0;
  stroke-width: 2;
}

.employee-layout .overtime-art-calendar {
  fill: #fff;
  stroke: #ffbcbc;
  stroke-width: 2.5;
}

.employee-layout .overtime-art-rings,
.employee-layout .overtime-art-grid,
.employee-layout .overtime-art-hour,
.employee-layout .overtime-art-hand,
.employee-layout .overtime-art-plus-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .overtime-art-rings {
  stroke: #ff7d7d;
  stroke-width: 8;
}

.employee-layout .overtime-art-grid {
  stroke: #ffb0b0;
  stroke-width: 6;
}

.employee-layout .overtime-art-halo {
  fill: #ffe5e5;
}

.employee-layout .overtime-art-clock {
  fill: #fff;
  stroke: #ef4444;
  stroke-width: 7;
}

.employee-layout .overtime-art-hour {
  stroke: #111827;
  stroke-width: 4;
  opacity: .72;
}

.employee-layout .overtime-art-hand {
  stroke: #ef4444;
  stroke-width: 5;
}

.employee-layout .overtime-art-plus {
  fill: #ef4444;
}

.employee-layout .overtime-art-plus-line {
  stroke: #fff;
  stroke-width: 6;
}

.employee-layout .overtime-stat-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 7px 20px;
  border: 1px solid #ffe0e0;
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(135deg, #fff7f7, #fff);
}

.employee-layout .overtime-stat-card b,
.employee-layout .overtime-stat-card small {
  white-space: nowrap;
}

.employee-layout .overtime-stat-icon {
  width: 72px;
  height: 72px;
  grid-row: span 3;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--ot-red);
  background: #feecec;
  box-shadow: 0 14px 28px rgba(229, 57, 53, .1);
}

.employee-layout .overtime-stat-icon svg,
.employee-layout .overtime-heading-icon svg,
.employee-layout .overtime-field-icon svg,
.employee-layout .overtime-submit-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .overtime-stat-icon svg {
  width: 36px;
  height: 36px;
}

.employee-layout .overtime-stat-card strong {
  color: var(--ot-red);
  font-size: 2.35rem;
  line-height: .9;
}

.employee-layout .overtime-stat-card span {
  color: var(--ot-ink);
  font-weight: 900;
  line-height: 1.25;
}

.employee-layout .overtime-stat-card small {
  color: var(--ot-muted);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

.employee-layout .overtime-pending-alert {
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 14px 18px;
  color: #9a5012;
  background: #fff7ed;
  font-weight: 900;
}

.employee-layout .overtime-workspace {
  display: grid;
  grid-template-columns: minmax(420px, .95fr) minmax(420px, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.employee-layout .overtime-form-card,
.employee-layout .overtime-history-card {
  padding: 26px;
}

.employee-layout .overtime-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ot-line);
}

.employee-layout .overtime-card-heading h3,
.employee-layout .overtime-card-heading p {
  margin: 0;
}

.employee-layout .overtime-card-heading h3 {
  color: var(--ot-ink);
  font-size: 1.24rem;
}

.employee-layout .overtime-card-heading p {
  margin-top: 7px;
  color: var(--ot-muted);
  line-height: 1.5;
}

.employee-layout .overtime-heading-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--ot-red);
  background: #fff0f0;
  box-shadow: 0 12px 22px rgba(229, 57, 53, .08);
}

.employee-layout .overtime-heading-icon svg {
  width: 26px;
  height: 26px;
}

.employee-layout .overtime-form-grid-premium {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-top: 24px;
}

.employee-layout .overtime-form-grid-premium label {
  color: var(--ot-ink);
  font-weight: 900;
}

.employee-layout .overtime-field-shell,
.employee-layout .overtime-textarea-shell {
  position: relative;
  display: block;
}

.employee-layout .overtime-field-icon {
  width: 22px;
  height: 22px;
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  color: #7b8492;
  transform: translateY(-50%);
  pointer-events: none;
}

.employee-layout .overtime-textarea-shell .overtime-field-icon {
  top: 22px;
  transform: none;
}

.employee-layout .overtime-form-grid-premium input,
.employee-layout .overtime-form-grid-premium select,
.employee-layout .overtime-form-grid-premium textarea {
  width: 100%;
  border: 1px solid var(--ot-line);
  border-radius: 14px;
  color: var(--ot-ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.employee-layout .overtime-form-grid-premium input,
.employee-layout .overtime-form-grid-premium select {
  min-height: 56px;
  padding-left: 52px;
}

.employee-layout .overtime-form-grid-premium textarea {
  min-height: 132px;
  padding: 18px 18px 34px 52px;
  resize: vertical;
}

.employee-layout .overtime-form-grid-premium input:hover,
.employee-layout .overtime-form-grid-premium select:hover,
.employee-layout .overtime-form-grid-premium textarea:hover {
  border-color: #f8b4b4;
  background: #fffdfd;
}

.employee-layout .overtime-form-grid-premium input:focus,
.employee-layout .overtime-form-grid-premium select:focus,
.employee-layout .overtime-form-grid-premium textarea:focus {
  border-color: var(--ot-red);
  box-shadow: 0 0 0 4px rgba(229, 57, 53, .12);
}

.employee-layout .overtime-concept-field,
.employee-layout .overtime-submit-button {
  grid-column: 1 / -1;
}

.employee-layout .overtime-textarea-shell small {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: var(--ot-muted);
  font-size: .82rem;
  font-weight: 800;
}

.employee-layout .overtime-submit-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, var(--ot-red));
  box-shadow: 0 16px 30px rgba(229, 57, 53, .22);
}

.employee-layout .overtime-submit-button:hover {
  background: linear-gradient(135deg, #dc2626, var(--ot-red-dark));
  box-shadow: 0 18px 34px rgba(229, 57, 53, .28);
}

.employee-layout .overtime-submit-button svg {
  width: 20px;
  height: 20px;
}

.employee-layout .overtime-history-card {
  display: grid;
  align-content: start;
  gap: 24px;
}

.employee-layout .overtime-empty-state {
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.employee-layout .overtime-empty-art {
  width: 164px;
  height: 130px;
}

.employee-layout .overtime-empty-art svg {
  width: 100%;
  height: 100%;
}

.employee-layout .overtime-empty-state strong {
  color: var(--ot-ink);
  font-size: 1.06rem;
}

.employee-layout .overtime-empty-state p {
  max-width: 360px;
  margin: 0;
  color: var(--ot-muted);
  line-height: 1.55;
}

.employee-layout .overtime-request-list {
  display: grid;
  gap: 14px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.employee-layout .overtime-request-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--ot-line);
  border-left: 4px solid #f59e0b;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(17, 24, 39, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.employee-layout .overtime-request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(17, 24, 39, .07);
}

.employee-layout .overtime-request-card.approved {
  border-left-color: #16a34a;
}

.employee-layout .overtime-request-card.rejected {
  border-left-color: #dc2626;
}

.employee-layout .overtime-request-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-layout .overtime-request-status strong {
  color: var(--ot-red);
  font-size: 1.35rem;
}

.employee-layout .overtime-request-card h3,
.employee-layout .overtime-request-card p,
.employee-layout .overtime-request-card small {
  margin: 0;
}

.employee-layout .overtime-request-card h3 {
  font-size: 1.08rem;
}

.employee-layout .overtime-request-card p,
.employee-layout .overtime-request-card small,
.employee-layout .overtime-request-resolution {
  color: var(--ot-muted);
  line-height: 1.45;
}

.employee-layout .overtime-request-card small {
  display: block;
  margin-top: 6px;
  font-weight: 800;
}

.employee-layout .overtime-request-resolution {
  border-top: 1px solid var(--ot-line);
  padding-top: 12px;
}

.vacation-pending-alert {
  margin-top: 0;
  border-left: 4px solid var(--warn);
  background: #fff7e8;
  color: #7b3e10;
}

.vacation-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(300px, 380px);
  gap: 18px;
  align-items: start;
}

.vacation-calendar {
  display: grid;
  gap: 14px;
}

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

.calendar-head h3 {
  margin: 3px 0 0;
  text-align: center;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-empty,
.calendar-day {
  min-height: 76px;
  border-radius: 8px;
}

.calendar-day {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  padding: 8px 5px;
  color: var(--brand-charcoal);
  background: white;
  box-shadow: 0 1px 0 rgba(31, 36, 43, 0.04);
}

.calendar-day strong {
  font-size: 1.05rem;
}

.calendar-day span {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.calendar-day:not(:disabled):hover {
  border-color: var(--brand-red);
  box-shadow: 0 10px 20px rgba(196, 59, 59, 0.12);
}

.calendar-day.selected {
  color: white;
  border-color: var(--brand-red);
  background: var(--brand-red);
}

.calendar-day.selected span {
  color: rgba(255, 255, 255, 0.86);
}

.calendar-day.blocked,
.calendar-day.own-approved {
  border-color: #d7dde4;
  color: #7c8794;
  background: repeating-linear-gradient(135deg, #eef1f4, #eef1f4 7px, #f8fafc 7px, #f8fafc 14px);
}

.calendar-day.weekend {
  border-color: #d7dde4;
  color: #7c8794;
  background: #f3f5f7;
}

.calendar-day.holiday {
  border-color: #efc4cb;
  color: #9a1a36;
  background: #fff2f3;
}

.calendar-day.unverified {
  border-color: #ead9b8;
  color: #8d5a12;
  background: #fff7e8;
}

.calendar-day.own-pending {
  border-color: #f2d1a7;
  color: #875111;
  background: #fff7e8;
}

.calendar-day.past {
  background: #f1f3f5;
}

.vacation-publication-panel,
.published-vacation-list {
  display: grid;
  gap: 14px;
}

.general-vacation-empty {
  min-height: 180px;
}

.general-calendar-head {
  justify-content: space-between;
}

.general-month-select {
  min-width: 210px;
}

.general-month-select select {
  width: 100%;
  min-height: 42px;
}

.general-vacation-day {
  min-height: 114px;
  align-content: start;
  justify-items: stretch;
  gap: 8px;
  padding: 10px;
}

.general-vacation-day strong {
  justify-self: start;
}

.general-vacation-day em {
  align-self: center;
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
}

.general-vacation-day.has-vacation {
  align-content: start;
  border-color: #d8b5bb;
  background: #fff8f8;
}

.general-vacation-names {
  display: grid;
  gap: 5px;
  width: 100%;
}

.general-vacation-names span {
  display: block;
  overflow-wrap: anywhere;
  border-radius: 6px;
  padding: 5px 6px;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
}

.general-vacation-names .tone-0 {
  color: #8e1833;
  background: #ffe2e6;
}

.general-vacation-names .tone-1 {
  color: #12623e;
  background: #dff5e9;
}

.general-vacation-names .tone-2 {
  color: #185a89;
  background: #def0ff;
}

.general-vacation-names .tone-3 {
  color: #875111;
  background: #ffe9c6;
}

.general-vacation-names .tone-4 {
  color: #145c64;
  background: #dff5f4;
}

.general-vacation-names .tone-5 {
  color: #5b496f;
  background: #eee7f7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.employee-layout .general-vacations-page {
  --gv-red: #e53935;
  --gv-ink: #111827;
  --gv-muted: #6b7280;
  --gv-line: #e5e7eb;
  width: calc(100% - 76px);
  display: grid;
  gap: 24px;
  margin: 0 38px;
  color: var(--gv-ink);
}

.employee-layout .general-vacations-page .premium-kicker {
  color: var(--gv-red);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.employee-layout .general-vacation-hero-premium,
.employee-layout .general-published-calendar,
.employee-layout .general-vacation-empty-premium {
  border: 1px solid var(--gv-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(17, 24, 39, .06);
}

.employee-layout .general-vacation-hero-premium {
  min-height: 232px;
  display: grid;
  grid-template-columns: minmax(250px, .82fr) minmax(320px, 430px) minmax(360px, 430px);
  align-items: center;
  gap: 28px;
  border-left: 4px solid var(--gv-red);
  padding: 34px 44px;
  overflow: hidden;
}

.employee-layout .general-vacation-copy h2,
.employee-layout .general-vacation-copy p {
  margin: 0;
}

.employee-layout .general-vacation-copy h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.employee-layout .general-vacation-copy p {
  max-width: 560px;
  margin-top: 16px;
  color: var(--gv-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.employee-layout .general-vacation-art {
  display: grid;
  place-items: center;
  min-height: 176px;
}

.employee-layout .general-vacation-art svg,
.employee-layout .general-vacation-illustration-img {
  width: min(640px, 100%);
  height: auto;
  overflow: visible;
}

.employee-layout .general-vacation-illustration-img {
  display: block;
  max-height: 255px;
  object-fit: contain;
}

.employee-layout .general-art-ground,
.employee-layout .general-art-calendar,
.employee-layout .general-art-suitcase,
.employee-layout .general-art-ball {
  fill: #fff1f1;
}

.employee-layout .general-art-calendar,
.employee-layout .general-art-suitcase {
  stroke: #ffbcbc;
  stroke-width: 2.5;
}

.employee-layout .general-art-top {
  fill: #ef4444;
}

.employee-layout .general-art-palm,
.employee-layout .general-art-leaf,
.employee-layout .general-art-ring,
.employee-layout .general-art-grid,
.employee-layout .general-art-check,
.employee-layout .general-art-suitcase-line,
.employee-layout .general-art-chair {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .general-art-palm,
.employee-layout .general-art-chair {
  stroke: #f87171;
  stroke-width: 7;
}

.employee-layout .general-art-leaf {
  stroke: #fb7185;
  stroke-width: 8;
}

.employee-layout .general-art-ring {
  stroke: #ff8080;
  stroke-width: 8;
}

.employee-layout .general-art-grid {
  stroke: #ffd2d2;
  stroke-width: 8;
}

.employee-layout .general-art-check {
  stroke: #ef4444;
  stroke-width: 5;
}

.employee-layout .general-art-suitcase-line {
  stroke: #ef4444;
  stroke-width: 4;
}

.employee-layout .general-vacation-stat {
  min-height: 118px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 4px 18px;
  border: 1px solid #ffe0e0;
  border-radius: 20px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #fff7f7, #fff);
}

.employee-layout .general-stat-icon {
  width: 60px;
  height: 60px;
  grid-row: span 3;
  position: relative;
  display: block;
  border-radius: 16px;
  color: var(--gv-red);
  background: linear-gradient(145deg, #fff1f1, #ffe5e5);
  box-shadow: 0 14px 28px rgba(229, 57, 53, .08);
}

.employee-layout .general-stat-icon svg,
.employee-layout .general-month-icon svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .general-vacation-stat strong {
  color: var(--gv-red);
  font-size: 2.15rem;
  line-height: 1;
}

.employee-layout .general-vacation-stat b,
.employee-layout .general-vacation-stat span {
  display: block;
}

.employee-layout .general-vacation-stat b {
  font-weight: 900;
  line-height: 1.2;
}

.employee-layout .general-vacation-stat span {
  margin-top: 0;
  color: var(--gv-muted);
  font-size: .94rem;
  font-weight: 700;
}

.employee-layout .general-vacation-stat b,
.employee-layout .general-vacation-stat span {
  white-space: nowrap;
}

.employee-layout .general-published-calendar {
  padding: 30px;
}

.employee-layout .general-published-head {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, auto);
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.employee-layout .general-month-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.employee-layout .general-month-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--gv-red);
  background: #fff1f1;
}

.employee-layout .general-published-menu {
  position: relative;
  width: min(320px, 100%);
  margin-top: 3px;
}

.employee-layout .general-published-menu summary {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 14px 0 0;
  color: var(--gv-ink);
  background: transparent;
  cursor: pointer;
  list-style: none;
  transition: border-color 180ms ease-out, background 180ms ease-out, box-shadow 180ms ease-out;
}

.employee-layout .general-published-menu summary::-webkit-details-marker {
  display: none;
}

.employee-layout .general-published-menu summary span {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(1rem, 1vw, 1.18rem);
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-layout .general-published-menu summary svg {
  width: 20px;
  height: 20px;
  justify-self: end;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease-out;
}

.employee-layout .general-published-menu[open] summary,
.employee-layout .general-published-menu summary:focus-visible {
  border-color: #ffd3d3;
  background: #fffafa;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, .08);
}

.employee-layout .general-published-menu[open] summary svg {
  transform: rotate(180deg);
}

.employee-layout .general-published-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid #ffd6d6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(17, 24, 39, .14);
}

.employee-layout .general-published-options button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  padding: 0 16px;
  color: var(--gv-ink);
  background: #fff;
  font-size: 1rem;
  font-weight: 850;
  text-align: left;
  box-shadow: none;
}

.employee-layout .general-published-options button:hover,
.employee-layout .general-published-options button.active {
  color: var(--gv-red);
  background: #fff1f1;
}

.employee-layout .general-month-controls {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--gv-line);
  border-radius: 14px;
  background: #fff;
}

.employee-layout .general-month-controls button {
  width: 54px;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  color: var(--gv-ink);
  background: transparent;
  font-size: 1.55rem;
  box-shadow: none;
}

.employee-layout .general-month-controls button + button {
  border-left: 1px solid var(--gv-line);
}

.employee-layout .general-month-controls button:not(:disabled):hover {
  color: var(--gv-red);
  background: #fff7f7;
}

.employee-layout .general-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.employee-layout .general-calendar-legend span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gv-line);
  border-radius: 12px;
  padding: 0 13px;
  color: var(--gv-muted);
  background: #fff;
  font-size: .82rem;
  font-weight: 900;
}

.employee-layout .general-calendar-legend i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.employee-layout .general-calendar-legend .vacation {
  background: #ffdce1;
}

.employee-layout .general-calendar-legend .weekend {
  background: #e2e8f0;
}

.employee-layout .general-calendar-legend .holiday {
  background: #ffe2e6;
}

.employee-layout .general-published-calendar .calendar-weekdays {
  margin-bottom: 12px;
}

.employee-layout .general-published-calendar .calendar-weekdays span {
  color: var(--gv-muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-layout .general-published-calendar .calendar-grid {
  gap: 10px;
}

.employee-layout .general-published-calendar .calendar-empty,
.employee-layout .general-published-calendar .general-vacation-day {
  min-height: 96px;
  border-radius: 12px;
}

.employee-layout .general-published-calendar .general-vacation-day {
  display: grid;
  align-content: start;
  justify-items: stretch;
  gap: 8px;
  border: 1px solid #edf0f5;
  padding: 12px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.employee-layout .general-published-calendar .general-vacation-day:hover {
  border-color: #ffd4d4;
  box-shadow: 0 12px 24px rgba(17, 24, 39, .05);
  transform: translateY(-1px);
}

.employee-layout .general-published-calendar .general-vacation-day.weekend {
  color: #64748b;
  background: #f3f6fa;
}

.employee-layout .general-published-calendar .general-vacation-day.holiday {
  color: #dc2626;
  background: #fff2f3;
}

.employee-layout .general-published-calendar .general-vacation-day.has-vacation {
  border-color: #ffc7d0;
  background: #fff8f9;
}

.employee-layout .general-vacation-empty-premium {
  min-height: 390px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 42px 24px;
  text-align: center;
}

.employee-layout .general-empty-art {
  width: min(230px, 68%);
  color: var(--gv-red);
  filter: drop-shadow(0 18px 24px rgba(229, 57, 53, .12));
}

.employee-layout .general-empty-art svg {
  width: 100%;
  height: auto;
}

.employee-layout .general-empty-art circle {
  fill: #fff1f1;
}

.employee-layout .general-empty-art rect {
  fill: #fff;
  stroke: #fca5a5;
  stroke-width: 4;
}

.employee-layout .general-empty-art path {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .general-vacation-empty-premium h3,
.employee-layout .general-vacation-empty-premium p {
  margin: 0;
}

.employee-layout .general-vacation-empty-premium h3 {
  max-width: 620px;
  font-size: 1.35rem;
}

.employee-layout .general-vacation-empty-premium p {
  max-width: 540px;
  color: var(--gv-muted);
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .employee-layout .general-vacations-page {
    width: calc(100% - 36px);
    margin: 0 18px;
  }

  .employee-layout .general-vacation-hero-premium {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px;
  }

  .employee-layout .general-vacation-art {
    order: 3;
  }

  .employee-layout .general-vacation-stat {
    max-width: 460px;
  }

  .employee-layout .general-published-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .employee-layout .general-calendar-legend {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .employee-layout .general-vacations-page {
    width: auto;
    gap: 18px;
    margin: 0 12px;
  }

  .employee-layout .general-vacation-hero-premium,
  .employee-layout .general-published-calendar,
  .employee-layout .general-vacation-empty-premium {
    border-radius: 18px;
  }

  .employee-layout .general-vacation-hero-premium {
    border-left-width: 0;
    border-top: 4px solid var(--gv-red);
    padding: 22px;
  }

  .employee-layout .general-vacation-copy h2 {
    font-size: 2rem;
  }

  .employee-layout .general-vacation-copy p {
    font-size: .95rem;
  }

  .employee-layout .general-vacation-stat {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 18px;
  }

  .employee-layout .general-stat-icon {
    width: 58px;
    height: 58px;
  }

  .employee-layout .general-published-calendar {
    padding: 18px;
  }

  .employee-layout .general-month-title {
    align-items: flex-start;
  }

  .employee-layout .general-month-icon {
    width: 46px;
    height: 46px;
  }

  .employee-layout .general-published-menu {
    width: 100%;
  }

  .employee-layout .general-published-menu summary span {
    font-size: 1rem;
  }

  .employee-layout .general-month-controls {
    justify-self: start;
  }

  .employee-layout .general-calendar-legend span {
    min-height: 34px;
    padding: 0 10px;
    font-size: .74rem;
  }

  .employee-layout .general-published-calendar .calendar-grid {
    gap: 6px;
  }

  .employee-layout .general-published-calendar .calendar-empty,
  .employee-layout .general-published-calendar .general-vacation-day {
    min-height: 76px;
    border-radius: 9px;
  }

  .employee-layout .general-published-calendar .general-vacation-day {
    padding: 7px 5px;
  }

  .employee-layout .general-published-calendar .general-vacation-day em {
    display: none;
  }

  .employee-layout .general-vacation-names span {
    padding: 4px;
    font-size: .55rem;
  }
}

.vacation-publication-form {
  display: grid;
  grid-template-columns: minmax(180px, 280px) auto;
  align-items: end;
  gap: 12px;
}

.published-vacation-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.published-vacation-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.published-vacation-month strong,
.published-vacation-month span {
  display: block;
}

.published-vacation-month span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.calendar-policy-note {
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.calendar-policy-note.warning {
  border-color: #ead9b8;
  color: #875111;
  background: #fff7e8;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
}

.legend-dot.selected {
  border-color: var(--brand-red);
  background: var(--brand-red);
}

.legend-dot.blocked {
  background: #c8d0d9;
}

.legend-dot.holiday {
  border-color: #efc4cb;
  background: #d74a5c;
}

.legend-dot.weekend {
  background: #e1e6ec;
}

.legend-dot.pending {
  background: #f2b866;
}

.vacation-form {
  display: grid;
  gap: 14px;
}

.vacation-form h3 {
  margin: 0;
}

.selected-vacation-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.selected-vacation-box strong {
  min-width: 54px;
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--brand-red);
  font-size: 1.5rem;
}

.selected-vacation-box span {
  color: var(--brand-charcoal);
  font-weight: 900;
}

.selected-vacation-box small {
  grid-column: 2;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.35;
}

.selected-vacation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-chip {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--brand-red-strong);
  background: #fff0f0;
  font-size: 0.82rem;
  font-weight: 900;
}

.vacation-history {
  display: grid;
  gap: 14px;
}

.vacation-request-list,
.admin-vacation-list {
  display: grid;
  gap: 12px;
}

.vacation-request-card,
.admin-vacation-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: 8px;
  padding: 16px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.vacation-request-card.approved,
.admin-vacation-card.approved {
  border-left-color: var(--ok);
}

.vacation-request-card.rejected,
.admin-vacation-card.rejected {
  border-left-color: var(--danger);
}

.vacation-request-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.vacation-request-main h3,
.admin-vacation-head h3 {
  margin: 8px 0 0;
}

.vacation-request-main p,
.admin-vacation-head p,
.vacation-resolution,
.vacation-resolution-box span {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.vacation-request-main small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.vacation-request-side {
  min-width: 82px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
  text-align: center;
}

.vacation-request-side strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.vacation-request-side span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.vacation-resolution {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.vacation-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.vacation-status.pending {
  color: #8a4511;
  background: #fff0df;
}

.vacation-status.approved {
  color: #12623e;
  background: #e3f6ee;
}

.vacation-status.rejected {
  color: #8c241a;
  background: #ffe7e1;
}

.employee-layout .vacation-page-premium {
  --vac-red: #e53935;
  --vac-red-dark: #c62828;
  --vac-bg: #f6f7fb;
  --vac-ink: #111827;
  --vac-muted: #6b7280;
  --vac-line: #e5e7eb;
  --vac-soft-red: #fff1f1;
  width: calc(100% - 76px);
  display: grid;
  gap: 24px;
  margin: 0 38px;
  color: var(--vac-ink);
}

.employee-layout .vacation-page-premium .eyebrow {
  color: var(--vac-red);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.employee-layout .vacation-hero-premium {
  min-height: 220px;
  grid-template-columns: minmax(260px, .95fr) minmax(300px, 410px) minmax(210px, 270px);
  gap: 24px;
  border: 1px solid var(--vac-line);
  border-left: 4px solid var(--vac-red);
  border-radius: 24px;
  padding: 34px 40px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(17, 24, 39, .07);
  overflow: hidden;
}

.employee-layout .vacation-hero-copy h2 {
  margin: 12px 0 0;
  color: var(--vac-ink);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.employee-layout .vacation-hero-copy p {
  max-width: 540px;
  margin: 16px 0 0;
  color: var(--vac-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.employee-layout .vacation-hero-art {
  min-height: 188px;
  max-height: 212px;
  position: relative;
  display: grid;
  place-items: center start;
  overflow: hidden;
}

.employee-layout .vacation-hero-img {
  width: 260px;
  max-width: 100%;
  max-height: 250px;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: translateX(-14px) scale(1.1);
  transform-origin: center;
}

.employee-layout .vacation-hero-art svg {
  width: min(250px, 100%);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 24px 28px rgba(229, 57, 53, .16));
}

.employee-layout .vacation-art-dot {
  width: 64px;
  height: 64px;
  position: absolute;
  border-radius: 50%;
  opacity: .45;
  background-image: radial-gradient(var(--vac-red) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
}

.employee-layout .vacation-art-dot.dot-one {
  left: 2%;
  top: 18%;
}

.employee-layout .vacation-art-dot.dot-two {
  right: 6%;
  bottom: 12%;
  transform: scale(.72);
}

.employee-layout .vacation-art-shadow {
  fill: #fff3f3;
}

.employee-layout .vacation-art-page.back {
  fill: #ffb8b8;
}

.employee-layout .vacation-art-page.front {
  fill: #fff;
  stroke: #ffc9c9;
  stroke-width: 2;
}

.employee-layout .vacation-art-calendar-top {
  fill: #ff8a8a;
}

.employee-layout .vacation-art-ring,
.employee-layout .vacation-art-grid {
  fill: none;
  stroke: #ff8a8a;
  stroke-width: 7;
  stroke-linecap: round;
}

.employee-layout .vacation-art-grid {
  stroke-width: 4;
  opacity: .65;
}

.employee-layout .vacation-art-cell {
  fill: #ffe1e1;
}

.employee-layout .vacation-art-cell.selected {
  fill: #ff8a8a;
}

.employee-layout .vacation-art-mini-check {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .vacation-art-check-bg {
  fill: var(--vac-red);
}

.employee-layout .vacation-art-check {
  fill: none;
  stroke: #fff;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .vacation-availability-card {
  min-height: 134px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 8px 18px;
  border: 1px solid #ffe0e0;
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #fff7f7, #fff);
}

.employee-layout .vacation-availability-icon {
  width: 68px;
  height: 68px;
  grid-row: span 3;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--vac-red);
  background: #feecec;
}

.employee-layout .vacation-availability-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .vacation-availability-card strong {
  color: var(--vac-red);
  font-size: 2.25rem;
  line-height: .9;
}

.employee-layout .vacation-availability-card span,
.employee-layout .vacation-availability-card small {
  color: #4b5563;
  font-weight: 900;
  line-height: 1.25;
}

.employee-layout .vacation-availability-card small {
  color: var(--vac-muted);
  font-size: .88rem;
}

.employee-layout .vacation-workspace {
  grid-template-columns: minmax(560px, 1fr) minmax(330px, 390px);
  gap: 22px;
}

.employee-layout .vacation-calendar-premium,
.employee-layout .vacation-submit-panel,
.employee-layout .vacation-history-card {
  border: 1px solid var(--vac-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(17, 24, 39, .06);
}

.employee-layout .vacation-calendar-premium {
  padding: 24px 28px 22px;
}

.employee-layout .vacation-calendar-head {
  min-height: 58px;
  align-items: center;
}

.employee-layout .vacation-calendar-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: left;
}

.employee-layout .vacation-calendar-title h3 {
  margin: 2px 0 0;
  color: var(--vac-ink);
  font-size: 1.22rem;
}

.employee-layout .vacation-calendar-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--vac-red);
  background: #fff0f0;
}

.employee-layout .vacation-calendar-badge svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .vacation-month-button {
  min-height: 44px;
  gap: 8px;
  border: 1px solid #ffc7c7;
  border-radius: 12px;
  padding: 0 16px;
  color: var(--vac-red);
  background: #fff;
  box-shadow: none;
}

.employee-layout .vacation-month-button:hover {
  border-color: var(--vac-red);
  background: #fff7f7;
  box-shadow: 0 10px 22px rgba(229, 57, 53, .1);
}

.employee-layout .vacation-calendar-premium .calendar-weekdays {
  margin-top: 8px;
  gap: 10px;
}

.employee-layout .vacation-calendar-premium .calendar-weekdays span {
  color: #5b6472;
  font-size: .72rem;
  letter-spacing: .05em;
}

.employee-layout .vacation-calendar-premium .calendar-grid {
  gap: 10px;
}

.employee-layout .vacation-calendar-premium .calendar-empty,
.employee-layout .vacation-calendar-premium .calendar-day {
  min-height: 76px;
  border-radius: 13px;
}

.employee-layout .vacation-calendar-premium .calendar-day {
  border: 1px solid var(--vac-line);
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, .03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}

.employee-layout .vacation-calendar-premium .calendar-day strong {
  font-size: 1.04rem;
}

.employee-layout .vacation-calendar-premium .calendar-day span {
  font-size: .62rem;
  letter-spacing: 0;
}

.employee-layout .vacation-calendar-premium .calendar-day:not(:disabled):not(.selected) {
  border-color: #bdebd4;
  color: #087f4b;
  background: #f0fdf6;
}

.employee-layout .vacation-calendar-premium .calendar-day:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--vac-red);
  color: var(--vac-red-dark);
  background: #fff7f7;
  box-shadow: 0 14px 24px rgba(229, 57, 53, .12);
}

.employee-layout .vacation-calendar-premium .calendar-day.selected {
  border-color: var(--vac-red);
  color: #fff;
  background: linear-gradient(135deg, #ef4444, var(--vac-red));
  box-shadow: 0 14px 26px rgba(229, 57, 53, .22);
}

.employee-layout .vacation-calendar-premium .calendar-day.selected span {
  color: rgba(255, 255, 255, .88);
}

.employee-layout .vacation-calendar-premium .calendar-day.weekend {
  border-color: #e4e8ee;
  color: #8792a0;
  background: #f8fafc;
}

.employee-layout .vacation-calendar-premium .calendar-day.past,
.employee-layout .vacation-calendar-premium .calendar-day.own-approved,
.employee-layout .vacation-calendar-premium .calendar-day.unverified {
  border-color: #e3e8ef;
  color: #8a95a3;
  background: #f3f5f8;
}

.employee-layout .vacation-calendar-premium .calendar-day.holiday {
  border-color: #ffd8a8;
  color: #a85300;
  background: #fff7ed;
}

.employee-layout .vacation-calendar-premium .calendar-day.own-pending {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.employee-layout .vacation-calendar-premium .calendar-policy-note {
  border-color: #e6ebf1;
  border-radius: 12px;
  padding: 12px 14px;
  color: #596374;
  background: #fbfcfe;
}

.employee-layout .vacation-calendar-premium .calendar-policy-note.warning {
  border-color: #fed7aa;
  color: #9a5012;
  background: #fff7ed;
}

.employee-layout .vacation-calendar-premium .calendar-legend {
  gap: 12px 18px;
  color: #667085;
  font-size: .82rem;
}

.employee-layout .vacation-calendar-premium .legend-dot.available {
  border-color: #77d9aa;
  background: #77d9aa;
}

.employee-layout .vacation-calendar-premium .legend-dot.selected {
  border-color: var(--vac-red);
  background: var(--vac-red);
}

.employee-layout .vacation-calendar-premium .legend-dot.holiday {
  border-color: #f59e0b;
  background: #f59e0b;
}

.employee-layout .vacation-calendar-premium .legend-dot.weekend {
  border-color: #d8dee8;
  background: #d8dee8;
}

.employee-layout .vacation-calendar-premium .legend-dot.blocked {
  border-color: #cfd7e2;
  background: #cfd7e2;
}

.employee-layout .vacation-calendar-premium .legend-dot.pending {
  border-color: #5b8def;
  background: #5b8def;
}

.employee-layout .vacation-submit-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.employee-layout .vacation-submit-panel h3 {
  color: var(--vac-ink);
  font-size: 1.1rem;
}

.employee-layout .selected-vacation-box {
  grid-template-columns: 60px minmax(0, 1fr);
  border-color: #ffe1e1;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #fff1f1, #fff8f8);
}

.employee-layout .selected-vacation-box strong {
  min-width: 58px;
  min-height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, var(--vac-red));
  box-shadow: 0 12px 22px rgba(229, 57, 53, .22);
}

.employee-layout .selected-vacation-box span {
  color: var(--vac-ink);
}

.employee-layout .selected-vacation-box small {
  color: var(--vac-muted);
}

.employee-layout .selected-vacation-chips .muted {
  color: var(--vac-muted);
  line-height: 1.5;
}

.employee-layout .date-chip {
  min-height: 34px;
  border: 1px solid #ffc7c7;
  border-radius: 999px;
  color: var(--vac-red-dark);
  background: #fff4f4;
}

.employee-layout .date-chip:hover {
  border-color: var(--vac-red);
  background: #ffecec;
}

.employee-layout .vacation-submit-panel label {
  color: var(--vac-ink);
  font-weight: 900;
}

.employee-layout .vacation-textarea-shell {
  position: relative;
  display: block;
}

.employee-layout .vacation-textarea-icon {
  width: 22px;
  height: 22px;
  position: absolute;
  left: 16px;
  top: 18px;
  color: #7b8492;
  pointer-events: none;
}

.employee-layout .vacation-textarea-icon svg,
.employee-layout .vacation-submit-button svg,
.employee-layout .vacation-history-icon svg,
.employee-layout .vacation-empty-illustration svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-layout .vacation-submit-panel textarea {
  min-height: 112px;
  border-color: var(--vac-line);
  border-radius: 14px;
  padding: 18px 18px 32px 52px;
  color: var(--vac-ink);
  background: #fff;
  resize: vertical;
}

.employee-layout .vacation-submit-panel textarea:focus {
  border-color: var(--vac-red);
  box-shadow: 0 0 0 4px rgba(229, 57, 53, .12);
}

.employee-layout .vacation-textarea-shell small {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: var(--vac-muted);
  font-size: .82rem;
  font-weight: 800;
}

.employee-layout .vacation-submit-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ef4444, var(--vac-red));
  box-shadow: 0 16px 30px rgba(229, 57, 53, .22);
}

.employee-layout .vacation-submit-button:hover {
  background: linear-gradient(135deg, #dc2626, var(--vac-red-dark));
  box-shadow: 0 18px 34px rgba(229, 57, 53, .28);
}

.employee-layout .vacation-submit-button svg {
  width: 20px;
  height: 20px;
}

.employee-layout .vacation-history-card {
  min-height: 132px;
  display: grid;
  gap: 22px;
  padding: 26px 30px 30px;
}

.employee-layout .vacation-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.employee-layout .vacation-history-intro {
  display: flex;
  align-items: center;
  gap: 18px;
}

.employee-layout .vacation-history-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--vac-red);
  background: #fff0f0;
}

.employee-layout .vacation-history-icon svg {
  width: 28px;
  height: 28px;
}

.employee-layout .vacation-history-label {
  display: block;
  margin: 0 0 4px;
  color: var(--vac-red);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.employee-layout .vacation-history-card h3,
.employee-layout .vacation-history-card p {
  margin: 0;
}

.employee-layout .vacation-history-card h3 {
  color: var(--vac-ink);
}

.employee-layout .vacation-history-card p {
  margin-top: 6px;
  color: var(--vac-muted);
  line-height: 1.45;
}

.employee-layout .vacation-history-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: left;
}

.employee-layout .vacation-empty-illustration {
  width: 96px;
  height: 82px;
  flex: 0 0 auto;
  color: var(--vac-red);
}

.employee-layout .vacation-history-empty strong {
  color: var(--vac-ink);
  font-weight: 900;
}

.employee-layout .vacation-history-card.has-requests .vacation-request-list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.employee-layout .vacation-history-card.has-requests .vacation-request-card {
  border-radius: 16px;
  box-shadow: none;
}

.vacation-admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.vacation-admin-stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
  text-align: center;
}

.vacation-admin-stats strong {
  display: block;
  color: var(--brand-red);
  font-size: 1.7rem;
  line-height: 1;
}

.vacation-admin-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 900;
}

.admin-vacation-card.pending {
  border-left-color: var(--brand-red);
}

.admin-vacation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-vacation-details {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.admin-vacation-details span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-vacation-details p {
  margin: 0;
  color: var(--brand-charcoal);
}

.decision-note {
  display: grid;
  gap: 6px;
}

.admin-vacation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.vacation-resolution-box {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.vacation-resolution-box strong {
  display: block;
}

.upload-layout {
  align-items: start;
}

.upload-shell {
  display: grid;
  gap: 18px;
}

.upload-header {
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-red);
  border-radius: 8px;
  padding: 22px 24px;
  background: white;
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.upload-header h2,
.upload-header p {
  margin: 0;
}

.upload-header h2 {
  margin-top: 6px;
}

.upload-header p {
  max-width: 720px;
  margin: 8px auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.upload-form {
  max-width: 980px;
  width: 100%;
  justify-self: center;
}

.document-upload-form {
  max-width: 1240px;
}

.upload-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.65fr);
  gap: 16px;
  align-items: end;
}

.document-upload-form-grid {
  grid-template-columns: minmax(220px, 34%) minmax(600px, 66%);
}

.document-upload-form-grid label,
.document-upload-form-grid select {
  min-width: 0;
}

.upload-form-grid label:nth-child(3),
.upload-form-grid label:nth-child(4),
.upload-form-grid .primary {
  grid-column: 1 / -1;
}

.document-type-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.document-type-field button {
  min-height: 44px;
  white-space: nowrap;
}

#documentTypePickerHost {
  min-width: 0;
}

.document-type-combobox {
  position: relative;
}

.document-type-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--brand-charcoal);
  background: white;
  font: inherit;
  font-size: .96rem;
  font-weight: 900;
  text-align: left;
}

.document-type-trigger:focus {
  outline: 2px solid rgba(196, 59, 59, .24);
  border-color: var(--brand-red);
}

.select-caret {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .9;
}

.document-type-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 238px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 36px rgba(31, 36, 43, .16);
}

.document-type-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  min-height: 40px;
  padding: 2px 10px 2px 0;
}

.document-type-row + .document-type-row {
  border-top: 1px solid #eef1f4;
}

.document-type-row.selected {
  background: #fff4f4;
}

.document-type-option {
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  padding: 0 18px 0 14px;
  justify-content: flex-start;
  color: var(--brand-charcoal);
  background: transparent;
  box-shadow: none;
  font-size: .9rem;
  text-align: left;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-type-option:hover {
  background: #f6f7f9;
}

.document-type-delete {
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  margin-left: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0;
  color: #8a4650;
  background: transparent;
  box-shadow: none;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  opacity: .72;
}

.document-type-delete:hover {
  opacity: 1;
  color: #b3193a;
  border-color: #f3c4cc;
  background: #fff0f3;
  box-shadow: 0 6px 14px rgba(179, 25, 58, .12);
}

.document-type-delete:focus-visible {
  outline: 2px solid rgba(196, 59, 59, .24);
  outline-offset: 2px;
}

.document-type-empty {
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 800;
}

.upload-assurance {
  max-width: 980px;
  width: 100%;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.upload-assurance article {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.upload-assurance strong {
  display: block;
  color: var(--brand-charcoal);
}

.upload-assurance span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.payslip-account-panel {
  max-width: 980px;
  width: 100%;
  justify-self: center;
}

.account-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  gap: 14px;
  align-items: end;
}

.account-payslip-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f7f9fb;
}

.account-payslip-summary span {
  color: var(--muted);
  font-weight: 800;
}

.table-scroll {
  overflow: auto;
}

.compact-table {
  min-width: 760px;
}

.upload-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  align-items: end;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.upload-intro h2,
.upload-intro p {
  margin: 0;
}

.upload-intro h2 {
  margin-top: 6px;
}

.upload-intro p,
.upload-rules p {
  color: var(--muted);
  line-height: 1.6;
}

.upload-layout-modern {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.upload-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-form label:nth-child(3),
.upload-form label:nth-child(4),
.upload-form .primary {
  grid-column: 1 / -1;
}

.upload-side {
  display: grid;
  gap: 14px;
}

.upload-rules {
  border-left: 5px solid var(--brand-red);
}

.secure-panel {
  min-height: 280px;
  color: white;
  background: linear-gradient(135deg, var(--brand-charcoal), var(--brand-blue));
}

.secure-panel p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.secure-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.secure-list span {
  border-left: 3px solid var(--brand-gold);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.audit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.audit-search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 0.22fr) minmax(160px, 0.22fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.audit-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-toolbar button {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--brand-slate);
  background: #e8ebef;
  font-weight: 900;
}

.audit-toolbar button.active {
  color: white;
  background: var(--brand-red);
}

.audit-timeline,
.audit-preview {
  display: grid;
  gap: 12px;
}

.audit-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-slate);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.audit-card.security {
  border-left-color: var(--brand-red);
}

.audit-card.warning {
  border-left-color: var(--warn);
}

.audit-card.critical {
  border-left-color: var(--danger);
  background: #fff8f6;
}

.audit-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: white;
  background: var(--brand-charcoal);
  font-weight: 900;
}

.audit-card.security .audit-icon {
  background: var(--brand-red);
}

.audit-card.warning .audit-icon {
  background: var(--warn);
}

.audit-card.critical .audit-icon {
  background: var(--danger);
}

.audit-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.audit-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audit-title span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.audit-delete-button {
  width: 34px;
  min-height: 34px;
  color: var(--danger);
  background: #fff0ed;
}

.trash-symbol {
  width: 15px;
  height: 17px;
  position: relative;
  display: inline-block;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.trash-symbol::before {
  content: "";
  width: 19px;
  height: 2px;
  position: absolute;
  left: -4px;
  top: -5px;
  border-radius: 2px;
  background: currentColor;
}

.trash-symbol::after {
  content: "";
  width: 7px;
  height: 2px;
  position: absolute;
  left: 2px;
  top: -9px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
}

.audit-card p {
  margin: 6px 0 10px;
  color: #3f454d;
}

.audit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.audit-meta span,
.audit-meta time {
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef1f4;
}

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

.security-card {
  min-height: 118px;
  padding: 18px;
  border-top: 4px solid var(--brand-red);
}

.security-card span {
  color: var(--muted);
  font-weight: 900;
}

.security-card strong {
  display: block;
  margin-top: 10px;
  line-height: 1.35;
}

.security-overview {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: white;
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.security-overview h2,
.security-overview p {
  margin: 0;
}

.security-overview h2 {
  margin-top: 6px;
}

.security-overview p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.security-counter {
  min-height: 118px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  padding: 16px;
  color: white;
  background: var(--brand-charcoal);
  text-align: center;
}

.security-counter strong {
  font-size: 2.45rem;
  line-height: 1;
}

.security-counter span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

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

.security-section,
.security-next {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.security-section header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.security-section h3,
.security-section p {
  margin: 0;
}

.security-section p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.security-list-table {
  display: grid;
}

.security-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 0.65fr);
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.security-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.security-row span {
  color: var(--muted);
  font-weight: 900;
}

.security-row strong {
  line-height: 1.35;
}

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

.security-summary-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.security-summary-card h3,
.security-summary-card p {
  margin: 0;
}

.security-summary-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.security-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.security-command h2,
.security-command p {
  margin: 0;
}

.security-command h2 {
  margin-top: 6px;
}

.security-command p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.security-command strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  border-radius: 999px;
  padding: 10px 16px;
  color: #0f6640;
  background: #e8f7ef;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.security-control {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-red);
  border-radius: 8px;
  padding: 18px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.security-control-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--brand-red);
  background: #fff0f0;
  font-weight: 950;
}

.security-control h3,
.security-control p,
.security-procedure h3,
.security-procedure p {
  margin: 0;
}

.security-control p,
.security-procedure p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.security-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 14px;
}

.security-procedure {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.security-procedure.muted-panel {
  background: #f7f8fa;
}

.security-checklist {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.security-checklist span {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px 11px 36px;
  background: #fbfcfd;
  color: #303741;
  font-weight: 800;
}

.security-checklist span::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-red);
  transform: translateY(-50%);
}

.legal-note p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.legal-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  justify-content: center;
}

.legal-footer button {
  padding: 0;
  color: var(--brand-red);
  background: transparent;
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 18, 24, 0.58);
}

.notice-modal-backdrop {
  z-index: 60;
  place-items: center;
  padding: 18px;
  background: rgba(15, 18, 24, 0.5);
  backdrop-filter: blur(7px);
}

.vacation-decision-backdrop {
  z-index: 70;
  background: rgba(15, 18, 24, 0.56);
  backdrop-filter: blur(8px);
}

.legal-modal,
.confirm-modal,
.password-modal,
.info-modal {
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border-radius: 8px;
  padding: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.confirm-modal {
  width: min(480px, 100%);
}

.info-modal {
  width: min(520px, 100%);
  border-top: 5px solid var(--brand-red);
  padding: 28px;
  text-align: center;
}

.info-modal h2 {
  margin: 8px 0 0;
}

.info-modal p {
  margin: 14px auto 0;
  max-width: 420px;
  color: #3f454d;
  line-height: 1.65;
}

.info-modal .modal-actions {
  justify-content: center;
}

.vacation-decision-modal {
  width: min(520px, 100%);
  border-radius: 10px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--brand-red);
  padding: 30px;
  background: white;
  text-align: center;
  box-shadow: var(--shadow);
}

.vacation-decision-modal.approved {
  border-top-color: var(--ok);
}

.vacation-decision-modal.rejected {
  border-top-color: var(--danger);
}

.decision-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 2rem;
  font-weight: 900;
}

.vacation-decision-modal.approved .decision-icon {
  color: #0d6b43;
  background: #e1f7ed;
}

.vacation-decision-modal.rejected .decision-icon {
  color: #a22525;
  background: #ffe5e5;
}

.vacation-decision-modal h2 {
  margin: 8px 0 0;
}

.vacation-decision-modal p {
  max-width: 420px;
  margin: 14px auto 0;
  color: #3f454d;
  line-height: 1.65;
}

.vacation-decision-modal .modal-actions {
  justify-content: center;
}

.vacation-decision-modal {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  border: 1px solid rgba(198, 205, 214, .86);
  border-top: 0;
  border-radius: 14px;
  padding: 34px 34px 28px;
  background:
    radial-gradient(circle at 22% 10%, rgba(255, 255, 255, .92), transparent 34%),
    #fff;
  box-shadow: 0 22px 58px rgba(15, 18, 24, .22), 0 2px 8px rgba(15, 18, 24, .08);
}

.decision-close {
  position: absolute;
  top: 17px;
  right: 18px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: #747b86;
  background: transparent;
  box-shadow: none;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.decision-close:hover {
  color: #343b46;
  background: #f3f5f7;
  box-shadow: none;
}

.decision-icon-wrap {
  position: relative;
  width: 156px;
  height: 112px;
  margin: -8px auto 8px;
}

.decision-icon-wrap > span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: .72;
}

.decision-icon-wrap > span:nth-child(1) { left: 18px; top: 54px; }
.decision-icon-wrap > span:nth-child(2) { left: 31px; top: 25px; }
.decision-icon-wrap > span:nth-child(3) { left: 40px; bottom: 11px; }
.decision-icon-wrap > span:nth-child(4) { right: 31px; top: 25px; }
.decision-icon-wrap > span:nth-child(5) { right: 18px; top: 56px; }

.vacation-decision-modal.approved .decision-icon-wrap > span {
  background: #90d7a5;
}

.vacation-decision-modal.rejected .decision-icon-wrap > span {
  background: #f2a9b0;
}

.decision-icon {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  margin: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.decision-icon svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vacation-decision-modal.approved.initial .decision-icon,
.vacation-decision-modal.approved.changed .decision-icon {
  color: #17943b;
  background: radial-gradient(circle at 50% 42%, #d9f6e2, #eaf8ed);
}

.vacation-decision-modal.rejected.initial .decision-icon {
  color: white;
  background:
    radial-gradient(circle at 50% 42%, #df3336 0 48%, #fce2e5 49% 100%);
}

.vacation-decision-modal.rejected.changed .decision-icon {
  color: #d72b31;
  background: #fde1e4;
}

.vacation-decision-modal.initial.rejected .decision-icon svg {
  width: 44px;
  height: 44px;
}

.vacation-decision-modal.changed .decision-icon svg {
  width: 50px;
  height: 50px;
  stroke-width: 2.5;
}

.vacation-decision-modal h2 {
  max-width: 390px;
  margin: 10px auto 0;
  color: #1f8f39;
  font-size: 1.55rem;
  line-height: 1.22;
}

.vacation-decision-modal.rejected h2 {
  color: #dc2b31;
}

.vacation-decision-modal p {
  max-width: 430px;
  margin: 14px auto 0;
  color: #202938;
  font-size: .95rem;
  line-height: 1.55;
}

.decision-date-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 26px;
  border-radius: 8px;
  padding: 20px 22px;
  text-align: left;
}

.vacation-decision-modal.approved .decision-date-card {
  background: linear-gradient(90deg, #dbf6e3, #eafaf0);
}

.vacation-decision-modal.rejected .decision-date-card {
  background: linear-gradient(90deg, #ffe1e2, #ffecee);
}

.decision-calendar svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vacation-decision-modal.approved .decision-calendar {
  color: #158a35;
}

.vacation-decision-modal.rejected .decision-calendar {
  color: #d6282f;
}

.decision-date-card strong,
.decision-date-card span {
  display: block;
}

.decision-date-card strong {
  color: #162231;
  font-size: .98rem;
  font-weight: 900;
}

.decision-date-card span {
  margin-top: 6px;
  color: #1f2937;
  font-size: .93rem;
}

.decision-transition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 24px auto 0;
  flex-wrap: wrap;
}

.decision-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 900;
  font-size: .95rem;
}

.decision-status-pill.approved {
  color: #168b36;
  background: #e0f6e6;
}

.decision-status-pill.rejected {
  color: #d22b31;
  background: #ffe2e5;
}

.decision-status-pill i {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-style: normal;
  font-size: .8rem;
}

.decision-status-pill.approved i {
  background: #1fa246;
}

.decision-status-pill.rejected i {
  background: #dd3138;
}

.decision-arrow {
  color: #df2b31;
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
}

.decision-footnote {
  font-size: .95rem;
}

.decision-confirm {
  min-width: 150px;
  min-height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: 7px;
  color: white;
  font-weight: 900;
}

.vacation-decision-modal.approved .decision-confirm {
  background: linear-gradient(180deg, #2fb954, #18913c);
  box-shadow: 0 10px 22px rgba(24, 145, 60, .22);
}

.vacation-decision-modal.rejected .decision-confirm {
  background: linear-gradient(180deg, #ef3d43, #d7282f);
  box-shadow: 0 10px 22px rgba(215, 40, 47, .22);
}

.decision-confirm:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

.decision-confirm:focus,
.decision-confirm:focus-visible {
  outline: 3px solid rgba(31, 36, 43, .12);
  outline-offset: 3px;
}

.vacation-decision-modal.approved .decision-confirm:focus,
.vacation-decision-modal.approved .decision-confirm:focus-visible {
  outline-color: rgba(24, 145, 60, .24);
}

.vacation-decision-modal.rejected .decision-confirm:focus,
.vacation-decision-modal.rejected .decision-confirm:focus-visible {
  outline-color: rgba(215, 40, 47, .24);
}

.password-modal {
  width: min(560px, 100%);
}

.user-edit-modal {
  width: min(680px, 100%);
}

.legal-modal header,
.password-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.legal-modal p {
  color: #3f454d;
  line-height: 1.7;
}

.confirm-modal p {
  color: #3f454d;
  line-height: 1.6;
}

.password-modal h2 {
  margin-bottom: 0;
}

.password-modal form {
  margin-top: 18px;
}

.edit-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edit-details .check-row,
.edit-details label:nth-child(8),
.edit-details .modal-actions,
.edit-details .notice {
  grid-column: 1 / -1;
}

.check-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #f8fafc;
  font-weight: 900;
}

.check-row input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .app-layout,
  .dashboard-grid,
  .grid-2,
  .absence-layout,
  .absence-form-grid,
  .upload-intro,
  .upload-layout-modern,
  .upload-form-grid,
  .upload-assurance,
  .account-filter-grid,
  .audit-search-panel,
  .security-overview,
  .security-command,
  .security-sections,
  .security-summary-grid,
  .security-control-grid,
  .security-workspace,
  .user-create .form-grid,
  .stats,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    grid-template-rows: auto auto;
  }

  .brand {
    align-items: center;
  }

  .portal-cover {
    align-items: flex-start;
    justify-content: start;
    text-align: left;
  }

  .side-note {
    display: none;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav button,
  .nav-parent {
    justify-content: center;
    text-align: center;
  }

  .nav-submenu {
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    margin-top: 5px;
  }

  .nav-caret {
    transform: rotate(90deg) translateX(-1px);
  }
}

@media (max-width: 640px) {
  .create-user-grid {
    grid-template-columns: 1fr;
  }

  .create-user-grid label:nth-child(7) {
    grid-column: auto;
  }

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

  body {
    background: #f6f7f9;
  }

  input,
  select,
  textarea {
    min-height: 46px;
    border-radius: 8px;
    font-size: 16px;
  }

  .primary,
  .secondary,
  .danger,
  .link-button {
    min-height: 46px;
  }

  .login-screen {
    min-height: 100dvh;
    align-items: start;
    justify-items: center;
    padding: 12px;
  }

  .login-panel {
    width: 100%;
    min-height: calc(100dvh - 24px);
    gap: 22px;
    border-radius: 10px;
    padding: 24px 18px 18px;
  }

  .login-logo {
    width: min(220px, 74vw);
  }

  .portal-pill-large {
    min-height: 44px;
    padding: 0 20px;
    font-size: 1.05rem;
  }

  .login-heading {
    gap: 8px;
  }

  .login-heading h2 {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .login-card h3 {
    font-size: 1.12rem;
  }

  .login-lock-notice.blocked {
    gap: 6px;
    padding: 13px;
  }

  .app-layout {
    display: block;
    min-height: 100dvh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 15;
    min-height: auto;
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 10px 10px 12px;
    box-shadow: 0 12px 26px rgba(18, 22, 28, 0.2);
  }

  .brand.portal-cover {
    min-height: 48px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    padding: 10px 12px;
  }

  .portal-cover span {
    font-size: 0.68rem;
  }

  .portal-cover strong {
    font-size: 1rem;
    line-height: 1.1;
    text-align: right;
  }

  .nav {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nav button,
  .nav-parent {
    min-width: 112px;
    min-height: 42px;
    flex: 0 0 auto;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 13px;
    text-align: center;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .nav button.active,
  .nav button:hover,
  .nav-group.active > .nav-parent,
  .nav-parent:hover {
    box-shadow: inset 0 -3px 0 var(--brand-red);
  }

  .nav-group {
    flex: 0 0 auto;
  }

  .nav-group .nav-parent {
    width: 112px;
  }

  .nav-submenu {
    position: fixed;
    top: 112px;
    left: 12px;
    right: 12px;
    width: auto;
    margin-top: 0;
  }

  .nav-caret {
    transform: rotate(90deg) translateX(-1px);
  }

  .content {
    gap: 16px;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
  }

  .topbar {
    display: grid;
    align-items: stretch;
    gap: 12px;
  }

  .topbar h1 {
    margin-top: 5px;
    font-size: 1.5rem;
    line-height: 1.15;
  }

  .topbar-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-brand {
    display: none;
  }

  .user-chip {
    display: grid;
    grid-template-columns: 44px 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 10px;
  }

  .notification-button {
    width: 44px;
    height: 44px;
  }

  .notification-popover {
    width: calc(100vw - 28px);
    right: auto;
    left: -10px;
    max-height: 72dvh;
  }

  .user-chip .secondary {
    min-width: 74px;
    padding: 0 12px;
  }

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

  .stat {
    min-height: 84px;
    padding: 14px;
    border-left-width: 3px;
  }

  .stat span {
    font-size: 0.78rem;
  }

  .stat strong {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .panel,
  .secure-panel,
  .audit-preview,
  .security-card,
  .security-section,
  .security-next {
    border-radius: 8px;
    padding: 14px;
  }

  .section-head {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
    gap: 10px;
  }

  .section-head.compact {
    padding: 0;
    margin-bottom: 12px;
  }

  .user-search-tools {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .user-search-tools input {
    width: 100%;
  }

  .overtime-summary-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .overtime-summary-actions label {
    min-width: 0;
  }

  .absence-summary-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .absence-summary-actions label,
  .absence-summary-actions label:nth-child(2) {
    min-width: 0;
  }

  .search-toggle {
    width: 100%;
  }

  .dashboard-grid,
  .grid-2,
  .absence-layout,
  .absence-form-grid,
  .upload-intro,
  .upload-layout-modern,
  .audit-search-panel,
  .document-grid,
  .employee-hero,
  .vacation-hero,
  .vacation-admin-hero,
  .vacation-layout,
  .vacation-request-card,
  .upload-form .form-grid,
  .upload-form-grid,
  .upload-assurance,
  .account-filter-grid,
  .edit-details,
  .security-row,
  .security-summary-grid,
  .security-command,
  .security-control-grid,
  .security-workspace,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-command {
    align-items: stretch;
    padding: 18px;
  }

  .security-command strong {
    min-width: 0;
  }

  .table-wrap,
  .table-scroll {
    overflow: visible;
  }

  table,
  .compact-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  thead {
    display: none;
  }

  tbody,
  tr,
  td {
    display: block;
  }

  tr {
    display: grid;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: white;
    box-shadow: 0 1px 0 rgba(31, 36, 43, 0.04);
  }

  td {
    min-height: 28px;
    display: grid;
    grid-template-columns: minmax(92px, 0.36fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 0;
    padding: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  td[colspan] {
    display: block;
  }

  td[colspan]::before,
  td.actions::before {
    display: none;
  }

  td.actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
  }

  td.actions button {
    width: 100%;
  }

  .employee-hero {
    align-items: start;
    gap: 14px;
    border-left-width: 0;
    border-top: 4px solid var(--brand-red);
    padding: 16px;
    text-align: left;
  }

  .absence-hero {
    border-left-width: 0;
    border-top: 4px solid var(--brand-red);
    padding: 16px;
  }

  .absence-search {
    width: 100%;
  }

  .employee-hero h2 {
    font-size: 1.35rem;
  }

  .employee-hero p {
    line-height: 1.45;
  }

  .employee-search {
    text-align: left;
  }

  .document-month {
    gap: 10px;
  }

  .document-month header {
    align-items: flex-start;
    flex-direction: row;
    padding-bottom: 8px;
  }

  .document-card {
    min-height: auto;
    gap: 14px;
    border-radius: 8px;
    padding: 14px;
  }

  .document-card .link-button {
    width: 100%;
    justify-self: stretch;
  }

  .vacation-hero,
  .vacation-admin-hero {
    align-items: start;
    border-left-width: 0;
    border-top: 4px solid var(--brand-red);
    padding: 16px;
  }

  .vacation-summary-card,
  .vacation-admin-stats {
    width: 100%;
  }

  .vacation-calendar {
    padding: 12px;
  }

  .calendar-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .calendar-head div {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .calendar-head button:first-child {
    grid-column: 1;
    grid-row: 2;
  }

  .calendar-head button:last-child {
    grid-column: 2;
    grid-row: 2;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 5px;
  }

  .calendar-empty,
  .calendar-day {
    min-height: 58px;
    border-radius: 7px;
  }

  .calendar-day {
    padding: 6px 3px;
  }

  .calendar-day strong {
    font-size: 0.92rem;
  }

  .calendar-day span {
    display: none;
  }

  .calendar-day.holiday span,
  .calendar-day.weekend span,
  .calendar-day.unverified span {
    display: block;
    font-size: 0.56rem;
  }

  .vacation-publication-form {
    grid-template-columns: 1fr;
  }

  .general-month-select {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .published-vacation-list {
    grid-template-columns: 1fr;
  }

  .published-vacation-month {
    align-items: stretch;
    flex-direction: column;
  }

  .general-vacation-day {
    min-height: 76px;
    padding: 6px 4px;
  }

  .general-vacation-day em {
    display: none;
  }

  .general-vacation-names {
    gap: 3px;
  }

  .general-vacation-names span {
    display: block;
    padding: 4px 3px;
    font-size: 0.52rem;
  }

  .calendar-legend {
    gap: 8px;
    font-size: 0.76rem;
  }

  .selected-vacation-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .selected-vacation-box strong {
    justify-self: center;
  }

  .vacation-request-card {
    gap: 12px;
  }

  .vacation-request-side {
    width: 100%;
  }

  .admin-vacation-head,
  .admin-vacation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-vacation-actions button {
    width: 100%;
  }

  .admin-vacation-details {
    grid-template-columns: 1fr;
  }

  .upload-header,
  .upload-intro,
  .security-overview {
    padding: 16px;
    text-align: left;
  }

  .upload-header p,
  .upload-intro p,
  .security-overview p {
    line-height: 1.5;
  }

  .upload-form,
  .payslip-account-panel,
  .upload-assurance {
    max-width: none;
  }

  .upload-assurance article {
    min-height: auto;
    padding: 14px;
  }

  .account-payslip-summary {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .audit-search-panel {
    gap: 10px;
    padding: 12px;
  }

  .audit-actions,
  .audit-title {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-toolbar button {
    width: 100%;
    padding: 0 10px;
  }

  .audit-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .audit-icon {
    width: 32px;
    height: 32px;
  }

  .audit-title-actions {
    width: 100%;
    justify-content: space-between;
  }

  .audit-meta {
    gap: 6px;
  }

  .security-summary-card {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .security-row {
    gap: 6px;
    padding: 12px 0;
  }

  .legal-footer {
    justify-content: center;
    gap: 8px 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
  }

  .empty {
    padding: 22px 14px;
  }

  .modal-backdrop {
    place-items: end center;
    padding: 0;
  }

  .notice-modal-backdrop {
    place-items: center;
    padding: 18px;
  }

  .legal-modal,
  .confirm-modal,
  .password-modal,
  .user-edit-modal {
    width: 100%;
    max-height: 92dvh;
    border-radius: 14px 14px 0 0;
    padding: 18px;
  }

  .info-modal {
    width: 100%;
    max-height: none;
    border-radius: 12px;
    padding: 22px;
  }

  .legal-modal header,
  .password-modal header {
    align-items: flex-start;
  }

  .modal-actions {
    flex-direction: column-reverse;
    gap: 8px;
    margin-top: 16px;
  }

  .modal-actions button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .stats,
  .audit-toolbar {
    grid-template-columns: 1fr;
  }

  .user-chip {
    grid-template-columns: 40px 40px minmax(0, 1fr);
  }

  .user-chip .secondary {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .employee-layout .absence-page-premium {
    width: calc(100% - 36px);
    margin: 0 18px;
  }

  .employee-layout .absence-hero-premium {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px;
  }

  .employee-layout .absence-hero-art {
    order: 3;
    place-items: center;
  }

  .employee-layout .absence-hero-img {
    width: min(300px, 100%);
    max-height: 190px;
    transform: none;
  }

  .employee-layout .absence-stat-card {
    max-width: 460px;
  }

  .employee-layout .absence-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .employee-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .employee-layout .sidebar {
    padding: 24px 16px;
  }

  .employee-layout .sidebar-logo {
    width: 165px;
  }

  .employee-payroll-hero {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  }

  .employee-payroll-divider {
    display: none;
  }

  .employee-payroll-search {
    grid-column: 1 / -1;
  }
}

@media (min-width: 761px) and (max-height: 720px) {
  .employee-layout .sidebar {
    gap: 14px;
    padding: 20px 18px 22px;
  }

  .employee-layout .sidebar-logo {
    width: 155px;
  }

  .employee-sidebar-brand {
    min-height: 54px;
  }

  .employee-layout .nav {
    gap: 8px;
    margin-top: 4px;
    padding-bottom: 10px;
  }

  .employee-layout .nav button {
    min-height: 44px;
    gap: 12px;
    padding: 0 14px;
  }

  .employee-layout .side-note {
    gap: 8px;
    border-radius: 12px;
    padding: 16px;
  }
}

@media (max-width: 760px) {
  .employee-layout .absence-page-premium {
    width: auto;
    gap: 18px;
    margin: 0 12px;
  }

  .employee-layout .absence-hero-premium,
  .employee-layout .absence-form-card,
  .employee-layout .absence-history-card {
    border-radius: 18px;
  }

  .employee-layout .absence-hero-premium {
    border-left-width: 0;
    border-top: 4px solid var(--abs-red);
    padding: 22px;
  }

  .employee-layout .absence-hero-copy h2 {
    font-size: 2rem;
  }

  .employee-layout .absence-hero-copy p {
    font-size: .95rem;
  }

  .employee-layout .absence-stat-card {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 18px;
  }

  .employee-layout .absence-stat-icon {
    width: 58px;
    height: 58px;
  }

  .employee-layout .absence-stat-card strong {
    font-size: 2rem;
  }

  .employee-layout .absence-form-card,
  .employee-layout .absence-history-card {
    padding: 18px;
  }

  .employee-layout .absence-card-heading {
    gap: 14px;
    padding-bottom: 18px;
  }

  .employee-layout .absence-heading-icon {
    width: 46px;
    height: 46px;
  }

  .employee-layout .absence-form-grid-premium {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .employee-layout .absence-upload-zone {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .employee-layout .absence-upload-icon {
    width: 46px;
    height: 46px;
  }

  .employee-layout .absence-record-top,
  .employee-layout .absence-record-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .employee-layout .absence-empty-state {
    min-height: 280px;
    padding: 18px 8px;
  }

  .employee-layout {
    display: block;
  }

  .employee-layout .sidebar {
    position: static;
    height: auto;
    min-height: auto;
    display: flex;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid #dfe4ea;
    padding: 16px;
    overflow: visible;
  }

  .employee-layout .sidebar::after {
    display: none;
  }

  .employee-sidebar-brand {
    min-height: auto;
  }

  .employee-layout .sidebar-logo {
    width: 150px;
  }

  .employee-layout .nav {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .employee-layout .nav button {
    min-width: max-content;
    min-height: 46px;
    grid-template-columns: 22px max-content;
    gap: 10px;
    border-radius: 10px;
    padding: 0 14px;
  }

  .employee-layout .nav button::before {
    width: auto;
    height: 3px;
    top: auto;
    right: 12px;
    bottom: 0;
    left: 12px;
  }

  .employee-layout .nav-icon,
  .employee-layout .nav-icon svg {
    width: 20px;
    height: 20px;
  }

  .employee-layout .side-note {
    display: none;
  }

  .employee-layout .topbar {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px;
  }

  .employee-layout .topbar h1 {
    font-size: 1.9rem;
  }

  .employee-layout .topbar-actions,
  .employee-layout .user-chip {
    width: 100%;
  }

  .employee-layout .user-chip {
    display: grid;
    grid-template-columns: 52px 54px minmax(0, 1fr) auto;
  }

  .employee-layout .user-chip .secondary {
    margin-left: 0;
    padding: 0 16px;
  }

  .employee-payroll-hero,
  .employee-empty-card,
  .employee-layout .employee-document-groups {
    width: calc(100% - 32px);
    margin-right: 16px;
    margin-left: 16px;
  }

  .employee-payroll-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 0;
    padding: 28px 22px;
  }

  .employee-payroll-copy {
    text-align: left;
  }

  .employee-payroll-copy h2 {
    font-size: 1.9rem;
  }

  .employee-payroll-art {
    min-height: 160px;
    max-height: 180px;
  }

  .employee-payroll-illustration-img {
    width: min(300px, 100%) !important;
    max-height: 170px !important;
  }

  .employee-payroll-art::before {
    width: 170px;
    height: 170px;
  }

  .employee-payroll-art svg {
    width: 86px;
    height: 104px;
  }

  .employee-empty-card {
    min-height: 250px;
    padding: 38px 20px;
  }

  .employee-empty-card p {
    font-size: 1rem;
  }

  .employee-layout .legal-footer {
    margin: 0 16px 22px;
  }
}

@media (max-width: 480px) {
  .employee-layout .user-chip {
    grid-template-columns: 48px 50px minmax(0, 1fr);
  }

  .employee-layout .user-chip .secondary {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .employee-documentation-hero {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  }

  .employee-documentation-divider {
    display: none;
  }

  .employee-documentation-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .employee-documentation-main {
    gap: 18px;
    padding: 0 16px;
  }

  .employee-documentation-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    border-radius: 18px;
    padding: 30px 22px;
  }

  .documentation-accent {
    width: auto;
    height: 5px;
    inset: 0 18px auto 18px;
    border-radius: 0 0 999px 999px;
  }

  .employee-documentation-copy h2 {
    font-size: 2rem;
  }

  .employee-documentation-copy p {
    margin-top: 14px;
    font-size: 1rem;
  }

  .documentation-hero-art svg {
    width: 180px;
    height: 156px;
  }

  .documentation-hero-art {
    min-height: 160px;
    max-height: 180px;
  }

  .documentation-hero-img {
    width: min(300px, 100%);
    max-height: 170px;
  }

  .documentation-hero-art::before {
    width: 144px;
    height: 144px;
  }

  .documentation-search-shell {
    min-height: 54px;
  }

  .employee-documentation-empty {
    min-height: 280px;
    border-radius: 18px;
    padding: 40px 20px;
  }

  .employee-documentation-empty p {
    font-size: 1rem;
  }

  .documentation-empty-art {
    width: 158px;
    height: 140px;
  }

  .documentation-empty-art svg {
    width: 150px;
    height: 132px;
  }

  .employee-documentation-month {
    border-radius: 18px;
    padding: 18px;
  }

  .employee-documentation-card {
    min-height: auto;
    border-radius: 14px;
  }
}

@media (max-width: 1180px) {
  .employee-layout .overtime-page-premium {
    width: calc(100% - 36px);
    margin: 0 18px;
  }

  .employee-layout .overtime-hero-premium {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  }

  .employee-layout .overtime-stat-card {
    grid-column: 1 / -1;
  }

  .employee-layout .overtime-workspace {
    grid-template-columns: 1fr;
  }

  .employee-layout .overtime-request-list {
    max-height: none;
  }

  .employee-layout .vacation-page-premium {
    width: calc(100% - 36px);
    margin: 0 18px;
  }

  .employee-layout .vacation-hero-premium {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  }

  .employee-layout .vacation-hero-img {
    width: min(295px, 100%);
    max-height: 185px;
    transform: none;
  }

  .employee-layout .vacation-availability-card {
    grid-column: 1 / -1;
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .employee-layout .vacation-workspace {
    grid-template-columns: 1fr;
  }

  .employee-layout .vacation-submit-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .employee-layout .overtime-page-premium {
    width: auto;
    gap: 18px;
    margin: 0 16px;
  }

  .employee-layout .overtime-hero-premium {
    grid-template-columns: 1fr;
    gap: 20px;
    border-left-width: 0;
    border-top: 4px solid var(--ot-red);
    border-radius: 18px;
    padding: 26px 20px;
  }

  .employee-layout .overtime-hero-copy h2 {
    font-size: 2rem;
  }

  .employee-layout .overtime-hero-copy p {
    font-size: .98rem;
  }

  .employee-layout .overtime-hero-art {
    min-height: 138px;
    max-height: 178px;
  }

  .employee-layout .overtime-hero-art svg {
    width: 226px;
  }

  .employee-layout .overtime-hero-img {
    width: min(300px, 100%);
    max-height: 190px;
    transform: none;
  }

  .employee-layout .overtime-stat-card {
    min-height: auto;
    grid-template-columns: 58px minmax(0, 1fr);
    border-radius: 16px;
    padding: 16px;
  }

  .employee-layout .overtime-stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .employee-layout .overtime-stat-icon svg {
    width: 30px;
    height: 30px;
  }

  .employee-layout .overtime-form-card,
  .employee-layout .overtime-history-card {
    border-radius: 18px;
    padding: 20px;
  }

  .employee-layout .overtime-card-heading {
    gap: 14px;
    padding-bottom: 18px;
  }

  .employee-layout .overtime-heading-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .employee-layout .overtime-form-grid-premium {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 18px;
  }

  .employee-layout .overtime-concept-field,
  .employee-layout .overtime-submit-button {
    grid-column: auto;
  }

  .employee-layout .overtime-empty-state {
    min-height: 250px;
    padding: 18px 0;
  }

  .employee-layout .overtime-empty-art {
    width: 136px;
    height: 112px;
  }

  .employee-layout .vacation-page-premium {
    width: auto;
    gap: 18px;
    margin: 0 16px;
  }

  .employee-layout .vacation-hero-premium {
    grid-template-columns: 1fr;
    gap: 20px;
    border-left-width: 0;
    border-top: 4px solid var(--vac-red);
    border-radius: 18px;
    padding: 26px 20px;
  }

  .employee-layout .vacation-hero-copy h2 {
    font-size: 2rem;
  }

  .employee-layout .vacation-hero-copy p {
    font-size: .98rem;
  }

  .employee-layout .vacation-hero-art {
    min-height: 150px;
    max-height: 180px;
    place-items: center;
  }

  .employee-layout .vacation-hero-art svg {
    width: 190px;
  }

  .employee-layout .vacation-hero-img {
    width: min(270px, 100%);
    max-height: 165px;
    transform: none;
  }

  .employee-layout .vacation-availability-card {
    min-height: auto;
    border-radius: 16px;
    padding: 16px;
  }

  .employee-layout .vacation-calendar-premium,
  .employee-layout .vacation-submit-panel,
  .employee-layout .vacation-history-card {
    border-radius: 18px;
  }

  .employee-layout .vacation-calendar-premium {
    padding: 18px 14px;
  }

  .employee-layout .vacation-calendar-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .employee-layout .vacation-calendar-title {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: flex-start;
  }

  .employee-layout .vacation-calendar-head button:first-child {
    grid-column: 1;
    grid-row: 2;
  }

  .employee-layout .vacation-calendar-head button:last-child {
    grid-column: 2;
    grid-row: 2;
  }

  .employee-layout .vacation-month-button {
    width: 100%;
    justify-content: center;
    padding: 0 10px;
  }

  .employee-layout .vacation-calendar-premium .calendar-weekdays,
  .employee-layout .vacation-calendar-premium .calendar-grid {
    gap: 6px;
  }

  .employee-layout .vacation-calendar-premium .calendar-empty,
  .employee-layout .vacation-calendar-premium .calendar-day {
    min-height: 60px;
    border-radius: 10px;
  }

  .employee-layout .vacation-calendar-premium .calendar-day {
    padding: 6px 3px;
  }

  .employee-layout .vacation-calendar-premium .calendar-day strong {
    font-size: .95rem;
  }

  .employee-layout .vacation-calendar-premium .calendar-day span {
    display: none;
  }

  .employee-layout .vacation-calendar-premium .calendar-day.holiday span,
  .employee-layout .vacation-calendar-premium .calendar-day.weekend span,
  .employee-layout .vacation-calendar-premium .calendar-day.unverified span {
    display: block;
    font-size: .52rem;
  }

  .employee-layout .vacation-submit-panel {
    padding: 20px;
  }

  .employee-layout .selected-vacation-box {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 14px;
  }

  .employee-layout .selected-vacation-box strong {
    min-width: 48px;
    min-height: 48px;
  }

  .employee-layout .selected-vacation-box small {
    grid-column: 1 / -1;
  }

  .employee-layout .vacation-history-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }

  .employee-layout .vacation-history-divider {
    width: 100%;
    height: 1px;
  }

  .employee-layout .vacation-history-empty {
    align-items: center;
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .employee-layout .vacation-history-card.has-requests .vacation-request-list {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .employee-layout .overtime-page-premium {
    margin: 0 12px;
  }

  .employee-layout .overtime-hero-art svg {
    width: 200px;
  }

  .employee-layout .overtime-hero-img {
    width: min(260px, 100%);
    max-height: 155px;
    transform: none;
  }

  .employee-layout .overtime-stat-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .employee-layout .overtime-stat-icon {
    grid-row: auto;
  }

  .employee-layout .vacation-page-premium {
    margin: 0 12px;
  }

  .employee-layout .vacation-calendar-premium {
    padding: 16px 10px;
  }

  .employee-layout .vacation-calendar-premium .calendar-weekdays span {
    font-size: .62rem;
  }

  .employee-layout .vacation-calendar-premium .calendar-empty,
  .employee-layout .vacation-calendar-premium .calendar-day {
    min-height: 52px;
  }

  .employee-layout .vacation-calendar-premium .calendar-day span {
    display: none !important;
  }
}

@media (min-width: 1181px) {
  .employee-payroll-hero,
  .employee-documentation-hero,
  .employee-layout .vacation-hero-premium,
  .employee-layout .general-vacation-hero-premium,
  .employee-layout .overtime-hero-premium,
  .employee-layout .absence-hero-premium {
    min-height: 220px;
    align-items: center;
    justify-content: center;
    gap: clamp(26px, 3vw, 58px);
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .employee-payroll-hero,
  .employee-documentation-hero {
    grid-template-columns:
      minmax(260px, 470px)
      minmax(210px, 300px)
      1px
      minmax(300px, 500px);
  }

  .employee-layout .vacation-hero-premium,
  .employee-layout .general-vacation-hero-premium,
  .employee-layout .overtime-hero-premium,
  .employee-layout .absence-hero-premium {
    grid-template-columns:
      minmax(300px, 520px)
      minmax(220px, 330px)
      minmax(360px, 460px);
  }

  .employee-payroll-copy,
  .employee-documentation-copy,
  .employee-layout .vacation-hero-copy,
  .employee-layout .general-vacation-copy,
  .employee-layout .overtime-hero-copy,
  .employee-layout .absence-hero-copy {
    max-width: 520px;
  }

  .employee-payroll-copy p,
  .employee-documentation-copy p,
  .employee-layout .vacation-hero-copy p,
  .employee-layout .general-vacation-copy p,
  .employee-layout .overtime-hero-copy p,
  .employee-layout .absence-hero-copy p {
    max-width: 500px;
  }

  .employee-payroll-art,
  .documentation-hero-art,
  .employee-layout .vacation-hero-art,
  .employee-layout .general-vacation-art,
  .employee-layout .overtime-hero-art,
  .employee-layout .absence-hero-art {
    min-height: 160px;
    max-height: 190px;
    place-items: center;
    justify-self: center;
  }

  .employee-payroll-illustration-img,
  .documentation-hero-img,
  .employee-layout .vacation-hero-img,
  .employee-layout .general-vacation-illustration-img,
  .employee-layout .overtime-hero-img,
  .employee-layout .absence-hero-img {
    width: min(300px, 100%);
    max-height: 180px;
    transform: none;
  }

  .employee-layout .general-vacation-illustration-img {
    width: min(360px, 100%);
    max-height: 188px;
  }

  .employee-layout .vacation-hero-img {
    width: min(280px, 100%);
  }

  .employee-layout .overtime-hero-img,
  .employee-layout .absence-hero-img {
    width: min(285px, 100%);
  }

  .employee-payroll-divider,
  .employee-documentation-divider {
    height: 126px;
    justify-self: center;
  }

  .employee-payroll-search,
  .employee-documentation-search {
    width: 100%;
    max-width: 500px;
    justify-self: center;
  }

  .search-input-shell,
  .documentation-search-shell {
    width: 100%;
  }

  .employee-layout .vacation-availability-card,
  .employee-layout .general-vacation-stat,
  .employee-layout .overtime-stat-card,
  .employee-layout .absence-stat-card {
    width: 100%;
    max-width: 460px;
    min-height: 128px;
    justify-self: center;
    padding: 20px;
  }
}
