:root {
  --bg-shell: radial-gradient(circle at top right, rgba(25, 163, 184, 0.22), transparent 24%), linear-gradient(135deg, #0f3440 0%, #123949 42%, #0d2931 100%);
  --panel-bg: rgba(255, 255, 255, 0.96);
  --panel-border: rgba(125, 188, 201, 0.34);
  --sidebar-bg: rgba(255, 255, 255, 0.11);
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --text-primary: #172033;
  --text-muted: #68758f;
  --teal: #117b8b;
  --teal-strong: #0d6471;
  --teal-soft: #e9f8fb;
  --orange: #ffb642;
  --danger: #c83b2b;
  --shadow-lg: 0 26px 60px rgba(7, 29, 39, 0.22);
  --shadow-sm: 0 10px 24px rgba(12, 37, 50, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-shell);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

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

.login-shell {
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-card {
  width: min(560px, 100%);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  padding: 34px;
}

.login-brand,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-mark,
.sidebar-logo {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(16, 122, 138, 0.96), rgba(31, 153, 173, 0.92));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 15px;
}

.eyebrow,
.section-tag {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #62809d;
}

.login-brand h1,
.topbar h2,
.panel h3,
.sidebar-title {
  margin: 4px 0 8px;
}

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

.login-form,
.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

#employeeLoginCredentialsStep {
  display: grid;
  gap: 16px;
}

/* Employee login field polish */
#employeeLoginCredentialsStep .field,
#employeeLoginOtpStep .field {
  gap: 10px;
}

#employeeLoginCredentialsStep .field span,
#employeeLoginOtpStep .field span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4e6981;
}

#employeeLoginCredentialsStep .field input,
#employeeLoginOtpStep .field input {
  min-height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(120, 149, 171, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(10, 39, 54, 0.06);
  padding: 16px 18px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#employeeLoginCredentialsStep .field input::placeholder,
#employeeLoginOtpStep .field input::placeholder {
  color: #8a98ac;
  font-weight: 500;
}

#employeeLoginCredentialsStep .field input:hover,
#employeeLoginOtpStep .field input:hover {
  border-color: rgba(17, 123, 139, 0.28);
}

#employeeLoginCredentialsStep .field input:focus,
#employeeLoginOtpStep .field input:focus {
  border-color: rgba(17, 123, 139, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 0 4px rgba(17, 123, 139, 0.12),
    0 14px 30px rgba(10, 39, 54, 0.12);
  transform: translateY(-1px);
}

#employeeLoginCredentialsStep .goat-password-field,
#employeeLoginOtpStep .field .goat-password-field {
  display: block;
  width: 100%;
}

#employeeLoginCredentialsStep .goat-password-field > input {
  padding-right: 58px !important;
}

#employeeLoginCredentialsStep .goat-password-field .goat-password-toggle {
  right: 14px;
  width: 30px;
  height: 30px;
  background: rgba(17, 123, 139, 0.08);
  color: #5b7388;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

#employeeLoginCredentialsStep .goat-password-field:focus-within .goat-password-toggle,
#employeeLoginCredentialsStep .goat-password-field.is-visible .goat-password-toggle {
  background: rgba(17, 123, 139, 0.15);
  color: var(--teal-strong);
}

#employeeLoginOtp {
  text-align: center;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

#employeeLoginOtp::placeholder {
  letter-spacing: 0.02em;
  font-size: 17px;
}


.login-security-banner {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(17, 123, 139, 0.16);
  background: linear-gradient(135deg, rgba(17, 123, 139, 0.08), rgba(255, 182, 66, 0.08));
}

.login-security-pill,
.login-step-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-security-pill {
  background: rgba(17, 123, 139, 0.12);
  color: var(--teal-strong);
}

.login-security-banner p {
  margin: 0;
  color: #48627a;
  line-height: 1.6;
  font-weight: 600;
}

.login-otp-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(17, 123, 139, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.login-otp-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.login-step-tag {
  margin: 0 0 8px;
  background: rgba(255, 182, 66, 0.18);
  color: #8b5a00;
}

.login-otp-title {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.login-otp-timer {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 123, 139, 0.10);
  color: var(--teal-strong);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.login-otp-hint,
.login-otp-dev-hint {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.login-otp-hint {
  border: 1px solid rgba(17, 123, 139, 0.14);
  background: rgba(17, 123, 139, 0.06);
  color: #355267;
}

.login-otp-dev-hint {
  border: 1px dashed rgba(255, 182, 66, 0.42);
  background: rgba(255, 182, 66, 0.12);
  color: #7d4f00;
}

.login-otp-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 600;
  color: #31425f;
}

.input,
select,
input[type="date"],
input[type="file"] {
  width: 100%;
  border: 1px solid #d8e1ea;
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 16px;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.input:focus,
select:focus,
input[type="date"]:focus,
input[type="file"]:focus {
  outline: none;
  border-color: rgba(17, 123, 139, 0.62);
  box-shadow: 0 0 0 4px rgba(17, 123, 139, 0.12);
  transform: translateY(-1px);
}

.btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn-plain-locked,
.btn-plain-locked:disabled {
  background: #fff;
  border: 1px solid #d8e1ea;
  color: var(--text-primary);
  box-shadow: none;
  opacity: 1;
}

.btn-success-locked,
.btn-success-locked:disabled {
  background: linear-gradient(135deg, #198754 0%, #27ae60 100%);
  border: 1px solid rgba(18, 113, 67, 0.22);
  color: #fff;
  box-shadow: 0 12px 28px rgba(25, 135, 84, 0.26);
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, #1a96a9 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(17, 123, 139, 0.22);
}

.btn-secondary {
  background: #fff;
  border: 1px solid #d8e1ea;
  color: var(--text-primary);
}

.btn-accent {
  background: linear-gradient(135deg, #ffb642 0%, #ffcc76 100%);
  color: #3e2900;
  box-shadow: 0 14px 30px rgba(255, 182, 66, 0.24);
}

.btn-danger {
  background: #cd4332;
  color: #fff;
}

.btn-filter.active {
  background: linear-gradient(135deg, var(--teal) 0%, #1a96a9 100%);
  color: #fff;
}

.login-actions,
.action-row,
.panel-actions,
.topbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.topbar > div,
.panel-head > div,
.filter-row > * {
  min-width: 0;
}

.login-message,
.status-copy {
  min-height: 24px;
  color: var(--text-muted);
}

.login-message:empty,
.status-copy:empty {
  display: none;
  min-height: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.sidebar {
  background: var(--sidebar-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-xl);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.sidebar-title,
.sidebar-sub,
.employee-code,
.employee-name,
.employee-role,
.nav-btn {
  color: #fff;
}

.sidebar-sub,
.employee-role {
  opacity: 0.72;
}

.employee-summary {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px;
}

.employee-code {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.employee-name {
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  text-align: left;
  padding: 12px 14px;
  border-radius: 15px;
  font-weight: 700;
  font-size: 14px;
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(255, 182, 66, 0.94), rgba(255, 158, 38, 0.96));
  color: #3a2500;
}

.sidebar-foot {
  margin-top: auto;
}

.main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  background: transparent;
  color: #fff;
  min-width: 0;
}

.topbar h2,
.topbar .muted,
.topbar .eyebrow {
  color: #fff;
}

.view {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.stats-grid,
.grid-two {
  display: grid;
  gap: 18px;
}

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

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

.stat-card,
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.stat-card {
  padding: 22px 24px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}

.stat-value {
  display: block;
  font-size: 36px;
  margin-top: 12px;
}

.stat-meta {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
}

.panel {
  padding: 20px 20px 18px;
  min-width: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  min-width: 0;
}

.inline-form,
.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-form .input,
.filter-search {
  flex: 1 1 220px;
  min-width: 0;
}

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

.span-2 {
  grid-column: span 2;
}

.stack-gap {
  display: grid;
  gap: 10px;
}

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

.timeline-item {
  border: 1px solid #e4edf3;
  background: #fbfdff;
  border-radius: 18px;
  padding: 14px 16px;
}

.timeline-item strong {
  display: block;
}

.timeline-item span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
}

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

.timeline-pagination__meta {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

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

.timeline-page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #d8e5ec;
  background: #fbfdff;
  color: #234053;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.timeline-page-btn:hover:not(:disabled),
.timeline-page-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(12, 37, 50, 0.1);
}

.timeline-page-btn.active {
  background: linear-gradient(135deg, rgba(17, 123, 139, 0.96), rgba(47, 163, 180, 0.94));
  border-color: transparent;
  color: #fff;
}

.timeline-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.timeline-page-btn--nav {
  min-width: 94px;
}

.timeline-page-ellipsis {
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 2px;
}

.table-wrap {
  overflow: hidden;
  border: 1px solid #e4edf3;
  border-radius: 22px;
  width: 100%;
  max-width: 100%;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid #edf2f6;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table th {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #677791;
  background: #f8fbfd;
}

.table td {
  font-size: 13px;
}

.empty-cell,
.empty-state {
  color: var(--text-muted);
  padding: 16px 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pending {
  background: #fff5df;
  color: #a16c00;
}

.status-approved {
  background: #e9f7ef;
  color: #16724a;
}

.status-blocked,
.status-rejected {
  background: #ffe8e4;
  color: #a03024;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions .btn {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.topbar-actions .btn,
.panel-actions .btn,
.action-row .btn {
  padding: 11px 14px;
  font-size: 14px;
}

#view-warranties .panel-head {
  align-items: flex-start;
  gap: 20px;
}

#view-warranties .panel-head > :first-child {
  flex: 0 0 260px;
  min-width: 260px;
}

#view-warranties .section-tag,
#view-warranties .panel-head h3 {
  white-space: nowrap;
}

#view-warranties .section-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
}

#view-warranties .panel-head h3 {
  font-size: 18px;
  line-height: 1.08;
}

#view-warranties .panel-actions {
  flex: 0 1 760px;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: min(100%, 760px);
}

#employeeWarrantySearch {
  min-width: 0;
}

#employeeWarrantySearchBtn,
#employeeWarrantyReloadBtn {
  min-width: 108px;
  white-space: nowrap;
  justify-content: center;
}

#view-warranties .table-wrap {
  overflow: auto;
}

#view-warranties .table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

#view-warranties .table th,
#view-warranties .table td {
  padding: 14px 10px;
}

#view-warranties .table th:nth-child(1),
#view-warranties .table td:nth-child(1) {
  width: 10%;
}

#view-warranties .table th:nth-child(2),
#view-warranties .table td:nth-child(2) {
  width: 11%;
}

#view-warranties .table th:nth-child(3),
#view-warranties .table td:nth-child(3) {
  width: 12%;
}

#view-warranties .table th:nth-child(4),
#view-warranties .table td:nth-child(4) {
  width: 8%;
}

#view-warranties .table th:nth-child(5),
#view-warranties .table td:nth-child(5) {
  width: 14%;
}

#view-warranties .table th:nth-child(6),
#view-warranties .table td:nth-child(6) {
  width: 9%;
}

#view-warranties .table th:nth-child(7),
#view-warranties .table td:nth-child(7) {
  width: 19%;
}

#view-warranties .table th:nth-child(8),
#view-warranties .table td:nth-child(8) {
  width: 9%;
}

#view-warranties .table th:nth-child(9),
#view-warranties .table td:nth-child(9) {
  width: 8%;
}

#view-warranties .table-inline-meta {
  font-size: 11px;
}

#view-warranties .table-inline-meta::before {
  content: " / ";
}

@media (min-width: 761px) {
  #view-warranties .table th {
    font-size: 10px;
    letter-spacing: 0.03em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #view-warranties .table td {
    font-size: 11px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

#view-approvals .table th,
#view-approvals .table td,
#view-requests .table th,
#view-requests .table td,
#view-activity .table th,
#view-activity .table td {
  padding: 12px 10px;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 27, 35, 0.58);
  backdrop-filter: blur(10px);
}

.success-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 251, 253, 0.98));
  border: 1px solid rgba(125, 188, 201, 0.4);
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(7, 29, 39, 0.28);
  padding: 34px 34px 28px;
  overflow: hidden;
}

.success-modal__tag {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6482a0;
}

.success-modal__dialog h3 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
}

.success-modal__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 540px;
}

.success-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.success-modal__metric {
  background: #f7fbfd;
  border: 1px solid #dce9f0;
  border-radius: 20px;
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}

.success-modal__metric span {
  color: #6c7c95;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.success-modal__metric strong {
  font-size: 19px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.success-modal__countdown {
  margin: 18px 0 0;
  color: #4b6d7f;
  font-weight: 600;
}

.success-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.status-idle {
  background: #edf4f7;
  color: #5b7087;
}

.redemption-workflow-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 252, 0.98));
  border: 1px solid rgba(125, 188, 201, 0.42);
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(7, 29, 39, 0.28);
  padding: 30px 30px 24px;
}

.redemption-workflow-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.redemption-workflow-lead {
  max-width: 640px;
}

.redemption-complete-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.redemption-inline-stat {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dce8ef;
  background: #f7fbfd;
}

.redemption-inline-stat .k {
  color: #6a7c93;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.redemption-inline-stat strong {
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.redemption-complete-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.redemption-field {
  display: grid;
  gap: 8px;
}

.redemption-field span {
  color: #5d7188;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.redemption-field-wide {
  grid-column: 1 / -1;
}

.success-modal__confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.success-confetti-piece {
  position: absolute;
  top: -18px;
  width: 10px;
  height: 18px;
  border-radius: 4px;
  opacity: 0;
  box-shadow: 0 8px 18px rgba(17, 36, 45, 0.12);
  animation-name: employee-confetti-fall;
  animation-timing-function: cubic-bezier(0.18, 0.72, 0.32, 0.96);
  animation-fill-mode: forwards;
}

@keyframes employee-confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -24px, 0) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(0, 620px, 0) rotate(720deg);
  }
}

@media (max-width: 1360px) {
  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .sidebar {
    padding: 16px 14px;
  }

  .nav-btn {
    padding: 11px 13px;
    font-size: 13px;
  }

  .employee-name {
    font-size: 18px;
  }

  .panel {
    padding: 18px 18px 16px;
  }

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

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .grid-two,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .redemption-complete-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .redemption-complete-grid {
    grid-template-columns: 1fr;
  }

  #view-warranties .panel-actions {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (max-width: 640px) {
  .login-security-banner,
  .login-otp-panel {
    padding: 16px;
  }

  .login-otp-head {
    flex-direction: column;
    align-items: stretch;
  }

  .login-otp-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .login-otp-timer {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .login-shell,
  .app-shell {
    padding: 14px;
  }

  .login-card,
  .panel,
  .stat-card,
  .sidebar {
    border-radius: 22px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }

  .table-wrap {
    overflow: auto;
  }

  .table {
    min-width: 720px;
  }

  #view-warranties .panel-head {
    flex-direction: column;
  }

  #view-warranties .panel-head > :first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  #view-warranties .panel-actions {
    grid-template-columns: 1fr;
  }

  #employeeWarrantySearchBtn,
  #employeeWarrantyReloadBtn {
    width: 100%;
  }

  .timeline-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-pagination__meta {
    text-align: center;
  }

  .timeline-pagination__actions {
    justify-content: center;
  }

  .success-modal {
    padding: 14px;
  }

  .success-modal__dialog {
    padding: 24px 20px 20px;
    border-radius: 24px;
  }

  .success-modal__grid {
    grid-template-columns: 1fr;
  }

  .success-modal__actions {
    flex-direction: column;
  }

  .redemption-workflow-dialog {
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  .redemption-workflow-head {
    flex-direction: column;
  }

  .redemption-complete-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* Employee mobile navigation + tighter responsive shell */
body.sidebar-locked {
  overflow: hidden;
}

.topbar > div {
  min-width: 0;
}

.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: none;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.24);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(2, 6, 23, 0.56);
  backdrop-filter: blur(3px);
  z-index: 50;
}

@media (max-width: 1100px) {
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
  }

  .sidebar {
    position: fixed;
    top: 14px;
    bottom: 14px;
    left: 14px;
    width: min(320px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    overflow-y: auto;
    z-index: 60;
    transform: translateX(calc(-100% - 24px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 760px) {
  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .btn {
    flex: 1 1 140px;
  }
}

@media (min-width: 1101px) {
  .sidebar-backdrop {
    display: none !important;
  }
}

@media (max-width: 760px) {
  #employeeLoginCredentialsStep .field input,
  #employeeLoginOtpStep .field input {
    min-height: 56px;
    font-size: 17px;
  }

  #employeeLoginOtp {
    font-size: 18px;
  }
}