/* =========================================================
   SHIFT PILOT STYLES.CSS
   Organized by: base, layout, dashboard, schedule, employees,
   time cards, approvals, payroll, users, feedback, responsive.
   Replace your full styles.css with this file.
   ========================================================= */

/* =========================
   01. THEME VARIABLES
   ========================= */
:root {
  --bg: #02070d;
  --panel: #07101a;
  --panel-2: #0b1624;
  --border: #1c2a3a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #2583ff;
  --teal: #12d6b5;
  --purple: #a855f7;
  --orange: #f59e0b;
  --red: #ef4444;
  --green: #22c55e;
}


/* =========================
   02. RESET + BASE
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top right, rgba(37, 131, 255, 0.12), transparent 35%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
}




/* =========================
   03. APP LAYOUT + SIDEBAR
   ========================= */
/* =========================================================
   SHIFTLYNX SIDEBAR
========================================================= */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 900;

  display: flex;
  flex-direction: column;

  width: 260px;
  min-height: 100vh;
  padding: 18px 16px;

  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;

  border-right:
    1px solid rgba(120, 160, 210, 0.12);

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(30, 145, 255, 0.1),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      rgba(4, 12, 22, 0.98),
      rgba(3, 9, 17, 0.99)
    );

  box-shadow:
    18px 0 50px rgba(0, 0, 0, 0.18);

  backdrop-filter: blur(22px);
}

/* subtle glow line */

.sidebar::after {
  content: "";

  position: absolute;
  top: 0;
  right: -1px;

  width: 1px;
  height: 100%;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(38, 178, 255, 0.38),
      transparent
    );

  opacity: 0.55;
}

/* =========================================================
   BRAND
========================================================= */

.brand {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 76px;

  margin: 0 0 22px;
  padding: 14px 12px;

  box-sizing: border-box;
  overflow: hidden;

  border:
    1px solid rgba(59, 160, 255, 0.18);

  border-radius: 18px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(46, 175, 255, 0.13),
      transparent 70%
    ),
    rgba(255, 255, 255, 0.025);

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.18);
}

.brand::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.045),
      transparent
    );

  transform: translateX(-100%);
  transition: transform 500ms ease;
}

.brand:hover::before {
  transform: translateX(100%);
}

.brand-logo {
  position: relative;
  z-index: 1;

  display: block;

  width: 100%;
  max-width: 182px;
  height: auto;

  object-fit: contain;

  filter:
    drop-shadow(
      0 0 16px
      rgba(38, 178, 255, 0.13)
    );
}

/* =========================================================
   NAVIGATION
========================================================= */

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;

  width: 100%;
}

.sidebar-nav > a,
.nav-parent {
  position: relative;

  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  min-height: 46px;

  padding: 0 13px;

  box-sizing: border-box;

  border:
    1px solid transparent;

  border-radius: 13px;

  color: #93a5bd;
  background: transparent;

  text-decoration: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  text-align: left;

  cursor: pointer;

  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.sidebar-nav > a:hover,
.nav-parent:hover {
  color: #f3f8ff;

  background:
    rgba(255, 255, 255, 0.035);

  border-color:
    rgba(255, 255, 255, 0.065);

  transform: translateX(2px);
}

/* active item */

.sidebar-nav > a.active,
.nav-parent.active {
  color: #f7fbff;

  border-color:
    rgba(32, 185, 255, 0.28);

  background:
    linear-gradient(
      90deg,
      rgba(32, 185, 255, 0.16),
      rgba(32, 185, 255, 0.045)
    );

  box-shadow:
    inset 3px 0 0 #20b9ff,
    0 12px 28px rgba(0, 0, 0, 0.15),
    0 0 24px rgba(32, 185, 255, 0.06);
}

/* icon containers */

.sidebar-nav a > svg,
.sidebar-nav a > i,
.nav-parent > svg,
.nav-parent > i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;

  color: #6f849f;

  transition:
    color 160ms ease,
    transform 160ms ease;
}

.sidebar-nav > a:hover > svg,
.sidebar-nav > a:hover > i,
.nav-parent:hover > svg,
.nav-parent:hover > i,
.sidebar-nav > a.active > svg,
.sidebar-nav > a.active > i,
.nav-parent.active > svg,
.nav-parent.active > i {
  color: #38c8ff;
}

.sidebar-nav > a:hover > svg,
.sidebar-nav > a:hover > i,
.nav-parent:hover > svg,
.nav-parent:hover > i {
  transform: scale(1.06);
}

/* =========================================================
   NAV GROUPS
========================================================= */

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-parent {
  justify-content: flex-start;
}

.nav-parent > span:first-of-type {
  flex: 1;
}

.nav-chevron {
  margin-left: auto;

  color: #5f7187;
  font-size: 0.78rem;

  transition:
    transform 180ms ease,
    color 180ms ease;
}

.nav-group.open .nav-chevron {
  transform: rotate(180deg);
  color: #34c4ff;
}

/* submenu */

.sub-nav {
  display: grid;
  gap: 3px;

  max-height: 0;
  margin-left: 19px;
  padding-left: 11px;

  overflow: hidden;

  border-left:
    1px solid rgba(255, 255, 255, 0.07);

  opacity: 0;

  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    margin-bottom 220ms ease;
}

.nav-group.open .sub-nav {
  max-height: 400px;
  margin-bottom: 3px;
  opacity: 1;
}

.sub-nav a {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 38px;
  padding: 0 11px;

  border:
    1px solid transparent;

  border-radius: 10px;

  color: #768aa3;

  text-decoration: none;
  font-size: 0.81rem;
  font-weight: 600;

  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.sub-nav a::before {
  content: "";

  width: 5px;
  height: 5px;
  margin-right: 9px;
  flex: 0 0 auto;

  border-radius: 50%;

  background:
    rgba(124, 145, 169, 0.55);

  transition:
    background 150ms ease,
    box-shadow 150ms ease;
}

.sub-nav a:hover {
  color: #dcecff;

  background:
    rgba(255, 255, 255, 0.026);
}

.sub-nav a.active {
  color: #eaf8ff;

  border-color:
    rgba(32, 185, 255, 0.15);

  background:
    rgba(32, 185, 255, 0.075);
}

.sub-nav a.active::before {
  background: #25c2ff;

  box-shadow:
    0 0 10px
    rgba(37, 194, 255, 0.55);
}

/* =========================================================
   NOTIFICATION DOTS
========================================================= */

.nav-page-notification-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  flex: 0 0 auto;

  border:
    2px solid #08111d;

  border-radius: 50%;

  background: #ff5871;

  box-shadow:
    0 0 10px
    rgba(255, 88, 113, 0.65);
}

.nav-group.has-notification
  > .nav-parent::after {
  content: "";

  width: 7px;
  height: 7px;
  margin-left: 8px;

  border:
    2px solid #08111d;

  border-radius: 50%;

  background: #ff5871;
}

/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: auto;
  padding-top: 18px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 11px;

  min-height: 62px;
  padding: 10px 11px;

  box-sizing: border-box;

  border:
    1px solid rgba(255, 255, 255, 0.07);

  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.018)
    );

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.03);
}

.profile-card .avatar,
.sidebar .avatar {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;
  flex: 0 0 auto;

  border:
    1px solid rgba(32, 185, 255, 0.22);

  border-radius: 13px;

  color: #dff6ff;

  background:
    linear-gradient(
      145deg,
      rgba(32, 185, 255, 0.22),
      rgba(38, 97, 255, 0.14)
    );

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.18);

  font-size: 0.8rem;
  font-weight: 850;
}

.profile-card > div:last-child {
  min-width: 0;
}

.profile-card strong {
  display: block;

  overflow: hidden;

  color: #eef7ff;
  font-size: 0.83rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card p {
  margin: 3px 0 0;

  color: #71859e;
  font-size: 0.7rem;
  text-transform: capitalize;
}

/* =========================================================
   LOGOUT
========================================================= */

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  width: 100%;
  min-height: 42px;

  border:
    1px solid rgba(255, 98, 119, 0.12);

  border-radius: 12px;

  color: #a2b0c1;

  background:
    rgba(255, 255, 255, 0.018);

  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.logout-btn:hover {
  color: #ffdce2;

  border-color:
    rgba(255, 98, 119, 0.28);

  background:
    rgba(255, 98, 119, 0.075);

  transform: translateY(-1px);
}

/* =========================================================
   SCROLLBAR
========================================================= */

.sidebar {
  scrollbar-width: thin;
  scrollbar-color:
    rgba(75, 111, 150, 0.45)
    transparent;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background:
    rgba(75, 111, 150, 0.38);
}

/* =========================================================
   MAIN CONTENT OFFSET
========================================================= */

.main {
  margin-left: 260px;
}

/* =========================
   04. MAIN LAYOUT + TOPBAR
   ========================= */
.main {
  margin-left: 260px;
  padding: 34px;
  width: calc(100% - 260px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.topbar h2 {
  font-size: 2rem;
}

.topbar p {
  color: var(--muted);
  margin-top: 6px;
}

.top-actions {
  display: flex;
  gap: 12px;
}

button {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  color: white;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
}

.icon-btn {
  width: 46px;
  padding: 0;
}

.company-btn {
  min-width: 210px;
}


/* =========================
   05. DASHBOARD
   ========================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.stat-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(2, 6, 12, 0.75));
  border-radius: 18px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.stat-card.blue .stat-icon { background: rgba(37, 131, 255, 0.18); color: var(--blue); }
.stat-card.purple .stat-icon { background: rgba(168, 85, 247, 0.18); color: var(--purple); }
.stat-card.teal .stat-icon { background: rgba(18, 214, 181, 0.18); color: var(--teal); }
.stat-card.orange .stat-icon { background: rgba(245, 158, 11, 0.18); color: var(--orange); }

.stat-card p {
  color: var(--muted);
}

.stat-card h3 {
  font-size: 2rem;
  margin: 4px 0;
}

.stat-card span {
  font-size: 0.9rem;
}

.blue span { color: var(--blue); }
.purple span { color: var(--purple); }
.teal span { color: var(--teal); }
.orange span { color: var(--orange); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
}

.panel {
  border: 1px solid var(--border);
  background: rgba(7, 16, 26, 0.82);
  border-radius: 18px;
  padding: 24px;
  min-height: 280px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.panel-header h3 {
  font-size: 1.2rem;
}

.panel-header a {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.9rem;
}

.shift-row,
.approval-row,
.timeoff-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 16px 0;
}

.shift-row:last-child,
.approval-row:last-child,
.timeoff-row:last-child {
  border-bottom: 0;
}

.time {
  color: white;
}

.time span,
.row-sub {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.status {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.status.progress {
  background: rgba(37, 131, 255, 0.14);
  color: var(--blue);
}

.status.upcoming {
  background: rgba(168, 85, 247, 0.14);
  color: var(--purple);
}

.status.approved {
  background: rgba(34, 197, 94, 0.14);
  color: var(--green);
}

.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  min-height: 210px;
}

.donut {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--teal) 0 50%,
      var(--blue) 50% 71%,
      var(--purple) 71% 88%,
      var(--orange) 88% 96%,
      #64748b 96% 100%
    );
  display: grid;
  place-items: center;
}

.donut::before {
  content: "";
  position: absolute;
}

.donut > div {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  text-align: center;
}

.donut strong {
  font-size: 2rem;
}

.donut span {
  color: var(--muted);
  display: block;
}

.legend {
  list-style: none;
  display: grid;
  gap: 14px;
  min-width: 210px;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
}

.legend b {
  margin-left: auto;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.approved { background: var(--teal); }
.submitted { background: var(--blue); }
.draft { background: var(--purple); }
.rejected { background: var(--orange); }
.missing { background: #64748b; }

@media (max-width: 1100px) {
  .stats-grid,
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .donut-wrap {
    flex-direction: column;
  }
}

@media (max-width: 800px) {
  body {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
  }

  .profile-card {
    position: static;
    margin-top: 20px;
  }

  .main {
    margin-left: 0;
    width: 100%;
    padding: 20px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

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

  .shift-row,
  .approval-row,
  .timeoff-row {
    grid-template-columns: 1fr;
  }
}



/* =========================
   06. SCHEDULE
   ========================= */
.schedule-toolbar {
  border: 1px solid var(--border);
  background: rgba(7, 16, 26, 0.82);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-toolbar p {
  color: var(--muted);
  margin-top: 5px;
}

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

.primary-btn {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(37, 131, 255, 0.35);
}

.schedule-board {
  border: 1px solid var(--border);
  background: rgba(7, 16, 26, 0.82);
  border-radius: 18px;
  padding: 18px;
  overflow-x: auto;
}

.schedule-table {
  min-width: 1050px;
  display: grid;
  grid-template-columns: 180px repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.schedule-cell {
  min-height: 90px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px;
  background: rgba(2, 7, 13, 0.6);
}

.schedule-cell:nth-child(8n) {
  border-right: none;
}

.schedule-head {
  background: rgba(37, 131, 255, 0.12);
  font-weight: 700;
  color: white;
  min-height: 58px;
}

.employee-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.employee-cell .avatar {
  width: 36px;
  height: 36px;
  font-size: 0.8rem;
}

.shift-pill {
  border-radius: 12px;
  padding: 12px;
  font-size: 0.86rem;
  border: 1px solid rgba(37, 131, 255, 0.35);
  background: rgba(37, 131, 255, 0.12);
  color: white;
}

.shift-pill small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.shift-pill.morning {
  border-color: rgba(18, 214, 181, 0.45);
  background: rgba(18, 214, 181, 0.12);
}

.shift-pill.evening {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.12);
}

.shift-pill.night {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
}

.off-day {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .schedule-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* =========================
   07. MODALS + FORMS
   ========================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  width: min(460px, 92vw);
  background: #07101a;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 0 60px rgba(37, 131, 255, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.modal-header button {
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  padding: 0;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
select {
  width: 100%;
  background: #02070d;
  border: 1px solid var(--border);
  color: white;
  padding: 13px 14px;
  border-radius: 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 131, 255, 0.15);
}

.shift-pill {
  position: relative;
}

.delete-shift {
  margin-top: 10px;
  width: 100%;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 7px;
  font-size: 0.8rem;
}
.shift-editor {
  border: 1px solid var(--border);
  background: rgba(7, 16, 26, 0.88);
  border-radius: 18px;
  padding: 22px;
  min-height: 400px;
}

.template-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(2, 7, 13, 0.65);
}

.template-card span,
.template-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.employee-checklist {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.check-row input {
  width: auto;
}



/* =========================
   08. EMPLOYEES
   ========================= */
.search-input {
  max-width: 280px;
}

.employee-table {
  display: grid;
  gap: 10px;
}

.employee-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr 0.8fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(2, 7, 13, 0.55);
}

.employee-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.small-btn {
  padding: 8px 10px;
  font-size: 0.8rem;
}

.danger-btn {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(37, 131, 255, 0.14);
  color: var(--blue);
}

.badge.green {
  background: rgba(34, 197, 94, 0.14);
  color: var(--green);
}

.badge.orange {
  background: rgba(245, 158, 11, 0.14);
  color: var(--orange);
}

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

@media (max-width: 1000px) {
  .employee-row {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .search-input {
    max-width: 100%;
  }
}

/* =========================
   09. MONTH VIEW
   ========================= */
.month-table {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-height: 650px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.month-head {
  background: rgba(37, 131, 255, 0.12);
  color: white;
  font-weight: 700;
  padding: 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.month-cell {
  min-height: 120px;
  padding: 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(2, 7, 13, 0.65);
  cursor: pointer;
  transition: 0.2s ease;
}

.month-cell:hover {
  background: rgba(37, 131, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(37, 131, 255, 0.35);
}

.month-date {
  font-weight: 800;
  margin-bottom: 10px;
  color: white;
}

.muted-month {
  opacity: 0.35;
}

.month-shift {
  background: rgba(37, 131, 255, 0.14);
  border: 1px solid rgba(37, 131, 255, 0.35);
  border-radius: 10px;
  padding: 8px;
  margin-top: 7px;
  font-size: 0.8rem;
}

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

.month-shift span {
  color: var(--muted);
  margin-top: 3px;
}

.more-shifts {
  display: block;
  color: var(--blue);
  margin-top: 8px;
  font-size: 0.8rem;
}
.shift-employees{
    display:flex;
    gap:6px;
    margin-top:10px;
}

.employee-avatar{
    width:32px;
    height:32px;
    border-radius:50%;
    background:#2563eb;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:700;
    color:white;
    font-size:.8rem;
    border:2px solid rgba(255,255,255,.15);
}



/* =========================
   10. SHIFT TEMPLATES
   ========================= */
.template-list {
  display: grid;
  gap: 12px;
}

.template-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(2, 7, 13, 0.65);
  border-left-width: 5px;
}

.template-row span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.template-row.blue { border-left-color: var(--blue); }
.template-row.teal { border-left-color: var(--teal); }
.template-row.purple { border-left-color: var(--purple); }
.template-row.orange { border-left-color: var(--orange); }
.template-row.green { border-left-color: var(--green); }

@media (max-width: 900px) {
  .template-row {
    grid-template-columns: 1fr;
  }
}
.availability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.availability-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.availability-grid input {
  width: auto;
}

textarea {
  min-height: 90px;
  resize: vertical;
  background: #02070d;
  border: 1px solid var(--border);
  color: white;
  padding: 13px 14px;
  border-radius: 12px;
  outline: none;
}

.employee-table {
  display: grid;
  gap: 12px;
}

.employee-card {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.7fr 0.7fr 0.85fr 0.6fr 0.8fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(2, 7, 13, 0.65);
}

.employee-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.availability-preview {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.day-pill {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(37, 131, 255, 0.14);
  color: var(--blue);
}

.large-modal {
  max-height: 90vh;
  overflow-y: auto;
}

.form-section {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: rgba(2, 7, 13, 0.45);
}

.form-section h4 {
  margin-bottom: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.availability-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 16px;
}

.availability-pills label {
  display: block;
}

.availability-pills input {
  display: none;
}

.availability-pills span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
}

.availability-pills input:checked + span {
  background: rgba(37, 131, 255, 0.18);
  border-color: var(--blue);
  color: white;
}

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

  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
.day-modal {
  width: min(900px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
}

.day-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.day-shift-card {
  border: 1px solid var(--border);
  background: rgba(2, 7, 13, 0.65);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.day-shift-card h4 {
  margin-bottom: 6px;
}

.employee-check-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.employee-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employee-check-item input {
  width: auto;
}


/* =========================
   11. TIME OFF
   ========================= */
.timeoff-card {
  border: 1px solid var(--border);
  background: rgba(245, 158, 11, 0.10);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

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

.timeoff-row-card {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 0.5fr 0.7fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(2, 7, 13, 0.65);
}
/* =========================================================
   EMPLOYEE PAGE DESKTOP LAYOUT FIX
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  background: #020911;
}

/* Fixed desktop sidebar */
.sidebar {
  width: 260px;
  height: 100vh;
  min-height: 100vh;

  position: fixed;
  top: 0;
  left: 0;

  display: flex;
  flex-direction: column;

  overflow-y: auto;
  overflow-x: hidden;
}

/* Let the bottom profile stay at the bottom */
.sidebar-bottom {
  margin-top: auto;
}

/* Main content uses only the remaining space */
.main {
  width: auto;
  min-width: 0;
  min-height: 100vh;

  margin-left: 260px;
  padding: 32px 34px 60px;

  overflow-x: hidden;
}

/* Prevent children from forcing the page wider */
.main > *,
.main section,
.main article,
.main header,
.panel {
  min-width: 0;
  max-width: 100%;
}

/* Page heading */
.topbar,
.employee-page-header,
.time-off-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;

  width: 100%;
  margin-bottom: 24px;
}

/* Request page content */
.time-off-content,
.employee-time-off-content,
.request-page-content {
  width: 100%;
  max-width: 1400px;
}

/* Main request container */
.panel,
.time-off-panel,
.requests-panel,
.employee-request-panel {
  width: 100%;
  max-width: 100%;

  min-height: 280px;
  margin: 0;

  overflow: hidden;
}

/* Tables and request lists must scroll internally */
.time-off-table,
.request-list,
.requests-list,
.table-wrapper {
  width: 100%;
  max-width: 100%;

  overflow-x: auto;
}

/* Prevent long text from widening cards */
.request-card,
.request-row,
.time-off-row {
  min-width: 0;
  max-width: 100%;
}

.request-card *,
.request-row *,
.time-off-row * {
  min-width: 0;
}

/* Keep buttons from stretching */
.primary-btn,
.secondary-btn {
  width: fit-content;
  max-width: 100%;
}

@media (max-width: 1000px) {
  .timeoff-row-card {
    grid-template-columns: 1fr;
  }
}


/* =========================
   12. LOGIN
   ========================= */
   .brand {
  text-align: center;
  margin-bottom: 1rem;
}

.brand-logo {
  max-width: 450px;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem auto;
}

.brand-subtitle {
  color: #aaaaaa;
  font-size: 0.9rem;
}

.login-body {
  display: block;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-page {
  margin-top: 0.5rem;
}

.login-card {
  width: 100%;
max-width: 550px; /* Expands the boundary */
min-width: 350px; /* Keeps it from getting too narrow on mobile */

  border: 1px solid var(--border);
  background: rgba(12, 30, 53, 0.92);
  border-radius: 24px;
  padding: 32px;
  padding-top: 2rem;
  box-shadow: 0 0 60px rgba(37, 131, 255, 0.16);
}

.login-brand {
  margin-bottom: 28px;
  
}

.login-card h2 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.login-options {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.login-options button {
  padding: 15px;
  font-weight: 700;
}
.password-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 4px;
}

.password-actions a {
  color: #69a9ff;
  font-size: 0.88rem;
  text-decoration: none;
}

.password-actions a:hover {
  color: #8ec0ff;
  text-decoration: underline;
}

/*FORGOTPASSWORDSCREEN*/


/* =========================
   13. UTILITIES
   ========================= */
.hidden {
  display: none !important;
}


/* =========================
   14. PUNCH CLOCK + TIME CARD BASICS
   ========================= */
.punch-panel {
  display: grid;
  gap: 18px;
}

.clock-card {
  border: 1px solid var(--border);
  background: rgba(2, 7, 13, 0.65);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}

.clock-card p {
  color: var(--muted);
}

.clock-card h3 {
  font-size: 1.8rem;
  margin: 8px 0;
}

.punch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.time-card-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(2, 7, 13, 0.65);
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .time-card-row,
  .punch-actions {
    grid-template-columns: 1fr;
  }
}
.settings-panel {
  max-width: 700px;
  margin-bottom: 22px;
}

.settings-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.settings-summary > div {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: rgba(2, 7, 13, 0.65);
}

@media (max-width: 800px) {
  .settings-summary {
    grid-template-columns: 1fr;
  }
}
.company-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:22px;

    padding:28px;

}

.company-card-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:28px;

}

.company-card-header h3{

    margin:0;

    font-size:26px;

}

.company-card-header p{

    margin-top:6px;

    color:var(--muted);

}

.company-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

}

.company-item{

    background:rgba(255,255,255,.02);

    border:1px solid rgba(255,255,255,.05);

    border-radius:14px;

    padding:18px;

}

.company-item span{

    display:block;

    font-size:12px;

    color:var(--muted);

    text-transform:uppercase;

    letter-spacing:.08em;

    margin-bottom:8px;

}

.company-item strong{

    font-size:18px;

    color:#fff;

}
.pay-period-calendar {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.pay-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.pay-day {
  border: 1px solid var(--border);
  background: rgba(2, 7, 13, 0.65);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
}

.pay-day:hover {
  border-color: var(--blue);
}

.pay-day.active {
  background: rgba(37, 131, 255, 0.22);
  border-color: var(--blue);
  box-shadow: 0 0 18px rgba(37, 131, 255, 0.25);
}

.pay-day span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.pay-day strong {
  display: block;
  margin-top: 4px;
}
.timecard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0;
}

.mini-timecard-grid {
  display: grid;
  gap: 10px;
}

.timecard-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.timecard-day {
  min-height: 130px;
  border: 1px solid var(--border);
  background: rgba(2, 7, 13, 0.65);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.timecard-day:hover {
  border-color: var(--blue);
  background: rgba(37, 131, 255, 0.1);
}

.timecard-day strong {
  display: block;
}

.timecard-day .date-num {
  font-size: 1.4rem;
  margin: 4px 0 10px;
}

.day-empty {
  color: var(--muted);
  margin-top: 18px;
}

.day-entry {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
}

.day-entry span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .timecard-week {
    grid-template-columns: 1fr;
  }

  .timecard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(560px, 1.5fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.settings-card,
.company-card {
  width: 100%;
  box-sizing: border-box;
}

.company-card {
  min-width: 0;
}

@media (max-width: 1200px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
.modal-overlay{
    display:none;

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.65);

    justify-content:center;
    align-items:center;

    z-index:9999;
}

.modal-overlay.show{
    display:flex;
}

.modal-card{

    width:500px;
    max-width:90vw;

    background:#08111c;

    border-radius:20px;

    padding:28px;

    border:1px solid var(--border);
}

.modal-card input{

    width:100%;

    margin-bottom:18px;
}

body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;

  background: #081321;
  border: 1px solid #223953;
  border-radius: 18px;

  padding: 26px;

  box-sizing: border-box;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;

  margin-bottom: 24px;
}

.modal-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
}

.modal-header p {
  margin: 6px 0 0;
  color: #91a7c4;
}

.icon-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid #263d58;
  border-radius: 11px;

  background: #0a1726;
  color: #ffffff;

  font-size: 24px;
  cursor: pointer;
}

#companyForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#companyForm .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#companyForm label {
  color: #a5b7cf;
  font-size: 13px;
  font-weight: 600;
}

#companyForm input {
  width: 100%;
  min-height: 48px;

  padding: 0 14px;

  box-sizing: border-box;

  background: #050d17;
  border: 1px solid #223a55;
  border-radius: 12px;

  color: #ffffff;
  font: inherit;

  outline: none;
}

#companyForm input:focus {
  border-color: #2f8dff;
  box-shadow: 0 0 0 4px rgba(47, 141, 255, 0.14);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;

  margin-top: 8px;
  padding-top: 20px;

  border-top: 1px solid #172a40;
}

/* =========================
   15. TIME CARDS
   ========================= */
.timecard-toolbar {
  border: 1px solid var(--border);
  background: rgba(7, 16, 26, 0.82);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1.1fr 1.2fr auto;
  gap: 20px;
  align-items: end;
}

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

.timecard-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
}

.timecard-main,
.timecard-summary {
  border: 1px solid var(--border);
  background: rgba(7, 16, 26, 0.82);
  border-radius: 18px;
  padding: 22px;
}

.timecard-week-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.second-week {
  margin-top: 28px;
}

.timecard-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.timecard-day-card {
  min-height: 170px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(2, 7, 13, 0.7);
  color: white;
  text-align: left;
  cursor: pointer;
  transition: 0.2s;
}

.timecard-day-card:hover {
  border-color: var(--blue);
  background: rgba(37, 131, 255, 0.1);
}

.day-top span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.day-top strong {
  font-size: 1.5rem;
}

.add-time {
  margin-top: 38px;
  text-align: center;
  color: var(--blue);
}

.add-time span {
  display: block;
  font-size: 2rem;
}

.entry-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  margin: 14px 0;
}

.timecard-day-card.draft .entry-dot {
  background: var(--orange);
}

.timecard-day-card.submitted .entry-dot {
  background: var(--green);
}

.timecard-day-card.approved .entry-dot {
  background: var(--purple);
}

.entry-times strong {
  display: block;
  margin-bottom: 4px;
}

.break-text {
  display: block;
  color: var(--muted);
  margin: 10px 0;
}

.hours-text {
  color: var(--blue);
  font-weight: 800;
  margin-top: 14px;
}

.timecard-summary h3 {
  margin-bottom: 24px;
}

.summary-line {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.summary-line span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.summary-line strong {
  font-size: 1.8rem;
}

.summary-line.total strong {
  color: var(--blue);
}

.purple-text strong {
  color: var(--purple);
}

.orange-text strong {
  color: var(--orange);
}

.teal-text strong {
  color: var(--teal);
}

.submit-wide {
  width: 100%;
  margin-top: 10px;
}

.center {
  text-align: center;
  margin-top: 12px;
}

.timecard-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 18px;
  color: var(--muted);
}

.timecard-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notes-panel {
  margin-top: 22px;
}

.entry-modal {
  width: min(700px, 94vw);
}

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

@media (max-width: 1200px) {
  .timecard-layout,
  .timecard-toolbar {
    grid-template-columns: 1fr;
  }

  .timecard-week {
    grid-template-columns: 1fr;
  }
}
.scheduled-shift-box {
  border: 1px solid var(--border);
  background: rgba(37, 131, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.scheduled-shift-box h4 {
  margin-bottom: 8px;
}

.scheduled-shift-box .schedule-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.scheduled-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(37, 131, 255, 0.18);
  color: var(--blue);
  font-size: 0.85rem;
  margin-top: 8px;
}
.entry-type-pill {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(18, 214, 181, 0.14);
  color: var(--teal);
  font-size: 0.75rem;
  margin: 10px 0;
}

/* =========================
   16. APPROVALS
   ========================= */
.approvals-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 22px;
}

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

.approval-card {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr 0.6fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(2, 7, 13, 0.65);
}

.approval-card:hover {
  border-color: var(--blue);
  background: rgba(37, 131, 255, 0.08);
}

.approval-detail {
  min-height: 520px;
  position: sticky;
  top: 24px;
}

.approval-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.approval-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.approval-summary-grid > div {
  border: 1px solid var(--border);
  background: rgba(2, 7, 13, 0.65);
  border-radius: 14px;
  padding: 14px;
}

.approval-summary-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1.5rem;
}

.approval-entry-list {
  display: grid;
  gap: 10px;
}

.approval-entry {
  border: 1px solid var(--border);
  background: rgba(2, 7, 13, 0.65);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.approval-entry p {
  color: var(--muted);
}

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

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

  .approval-card {
    grid-template-columns: 1fr;
  }

  .approval-detail {
    position: static;
  }
}

/* =========================
   17. CLOSED DAYS
   ========================= */
.closed-day-list {
  display: grid;
  gap: 12px;
}

.closed-day-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(2, 7, 13, 0.65);
}

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

.toggle-row input {
  width: auto;
}

@media (max-width: 1000px) {
  .closed-day-card {
    grid-template-columns: 1fr;
  }
}
.weekday-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:14px;
}

.weekday-card{
    background:rgba(255,255,255,.04);
    border:1px solid var(--border);
    border-radius:14px;
    padding:20px;
    text-align:center;
    cursor:pointer;
    transition:.25s;
}

.weekday-card:hover{
    border-color:var(--blue);
}

.weekday-card input{
    display:block;
    margin:0 auto 12px;
    transform:scale(1.3);
}

.weekday-card span{
    font-weight:600;
}

@media(max-width:900px){

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

}
.closed-calendar-day {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
}

.closed-day-banner {
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 0.78rem;
}

.closed-day-banner strong,
.closed-day-banner span {
  display: block;
}


/* =========================
   18. RECURRING SHIFTS
   ========================= */
.recurring-rule-list {
  display: grid;
  gap: 12px;
}

.recurring-rule-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(2, 7, 13, 0.65);
}

@media (max-width: 1000px) {
  .recurring-rule-card {
    grid-template-columns: 1fr;
  }
}

/* =========================
   19. TOASTS + CONFIRM MODALS
   ========================= */
.toast-message {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
  max-width: 420px;
  padding: 18px 20px;
  background: rgba(8, 18, 32, 0.96);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-size: 1.3rem;
  font-weight: 900;
}

.toast-message strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.toast-message p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .toast-message {
    left: 16px;
    right: 16px;
    bottom: 18px;
    min-width: unset;
    max-width: unset;
  }
}
.btn.danger {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn.danger:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.6);
}
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.confirm-overlay.show {
  display: flex;
}

.confirm-box {
  width: min(440px, 100%);
  background: rgba(8, 18, 32, 0.98);
  border: 1px solid rgba(34, 97, 195, 0.35);
  border-radius: 22px;
  padding: 26px;
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  animation: modalPop 0.22s ease;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(34, 97, 195, 0.15);
  color: var(--blue);
  border: 1px solid rgba(34, 97, 195, 0.35);
  font-size: 1.5rem;
  font-weight: 900;
}

.confirm-content h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--text);
}

.confirm-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.confirm-actions .btn {
  min-width: 100px;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
  .confirm-box {
    padding: 22px;
    border-radius: 18px;
  }

  .confirm-actions {
    flex-direction: column-reverse;
  }

  .confirm-actions .btn {
    width: 100%;
  }
}
.timecard-summary {
  position: sticky;
  top: 90px;
  align-self: flex-start;
  background: rgba(7, 16, 30, 0.96);
  border: 1px solid rgba(47, 72, 105, 0.55);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.summary-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.summary-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.summary-stat {
  padding: 14px;
  border-radius: 16px;
  background: rgba(12, 27, 48, 0.75);
  border: 1px solid rgba(70, 93, 128, 0.35);
}

.summary-stat span,
.summary-total span,
.summary-status-wrap span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-stat strong {
  color: var(--blue);
  font-size: 1.25rem;
  line-height: 1;
}

.summary-stat.purple strong {
  color: var(--purple);
}

.summary-stat.orange strong {
  color: #f59e0b;
}

.summary-stat.teal strong {
  color: #14b8a6;
}

.summary-total {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.16),
    rgba(37, 99, 235, 0.04)
  );
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.summary-total strong {
  display: block;
  color: var(--blue);
  font-size: 1.7rem;
  line-height: 1;
}

.summary-status-wrap {
  margin-top: 16px;
}

.summary-status {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.summary-status.draft {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.24);
}

.summary-status.submitted {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.24);
}

.summary-status.approved {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.24);
}

.summary-status.rejected,
.summary-status.needs-changes {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.summary-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.summary-submit-btn,
.summary-cancel-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.summary-submit-btn {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.summary-submit-btn:hover,
.summary-cancel-btn:hover {
  transform: translateY(-1px);
}

.summary-cancel-btn {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.summary-cancel-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
}

.summary-note {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.45;
}


/* =========================
   20. PAYROLL
   ========================= */
.payroll-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(7, 16, 30, 0.92);
  border: 1px solid rgba(47, 72, 105, 0.5);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.payroll-toolbar h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.05rem;
}

.payroll-print-card {
  background: rgba(7, 16, 30, 0.96);
  border: 1px solid rgba(47, 72, 105, 0.5);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.payroll-print-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.payroll-print-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.6rem;
}

.payroll-print-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.payroll-print-meta {
  text-align: right;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.payroll-print-meta strong {
  color: var(--text);
  margin-bottom: 4px;
}

.payroll-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.payroll-summary-grid div {
  background: rgba(12, 27, 48, 0.75);
  border: 1px solid rgba(70, 93, 128, 0.35);
  border-radius: 16px;
  padding: 14px;
}

.payroll-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.payroll-summary-grid strong {
  color: var(--blue);
  font-size: 1.3rem;
}

.payroll-table-wrap {
  overflow-x: auto;
}

.payroll-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
  overflow: hidden;
  border-radius: 16px;
}

.payroll-table th {
  text-align: left;
  padding: 13px 14px;
  background: rgba(37, 99, 235, 0.14);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.payroll-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(70, 93, 128, 0.25);
  color: var(--text);
  vertical-align: middle;
}

.payroll-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.payroll-table tfoot th {
  background: rgba(12, 27, 48, 0.95);
  color: var(--text);
  border-top: 1px solid rgba(70, 93, 128, 0.45);
}

.payroll-ready {
  display: inline-flex !important;
  width: fit-content;
  margin: 0 !important;
  padding: 6px 10px;
  border-radius: 999px;
  color: #22c55e !important;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  font-size: 0.72rem !important;
  font-weight: 800;
}

.payroll-empty-state {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(12, 27, 48, 0.65);
  border: 1px dashed rgba(70, 93, 128, 0.45);
  text-align: center;
}

@media (max-width: 900px) {
  .payroll-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .payroll-print-header,
  .payroll-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .payroll-print-meta {
    text-align: left;
  }
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .no-print,
  .sidebar,
  .topbar,
  .payroll-toolbar {
    display: none !important;
  }

  .main,
  .payroll-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .payroll-print-card {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }

  .payroll-print-header h1,
  .payroll-print-header p,
  .payroll-print-meta,
  .payroll-print-meta strong,
  .payroll-summary-grid span,
  .payroll-summary-grid strong,
  .payroll-table,
  .payroll-table th,
  .payroll-table td,
  .payroll-table tfoot th {
    color: #000 !important;
  }

  .payroll-summary-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .payroll-summary-grid div {
    background: #fff !important;
    border: 1px solid #ccc !important;
  }

  .payroll-table {
    border: 1px solid #999;
  }

  .payroll-table th {
    background: #eee !important;
    color: #000 !important;
  }

  .payroll-table td,
  .payroll-table th {
    border: 1px solid #ccc;
  }

  .payroll-ready {
    color: #000 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }
}
.payroll-processed {
  display: inline-flex !important;
  width: fit-content;
  margin: 0 !important;
  padding: 6px 10px;
  border-radius: 999px;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.72rem !important;
  font-weight: 800;
}
.timecard-day-card.locked {
  cursor: not-allowed;
  opacity: 0.92;
}

.processed-pill,
.approved-pill,
.submitted-pill {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  margin: 6px auto 0;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.processed-pill {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.approved-pill {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.submitted-pill {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* =========================
   21. USERS
   ========================= */
.users-panel {
  background: rgba(7, 16, 30, 0.96);
  border: 1px solid rgba(47, 72, 105, 0.5);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

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

.users-panel-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
}

.users-panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.users-table-wrap {
  overflow-x: auto;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.users-table th {
  text-align: left;
  padding: 13px 14px;
  background: rgba(37, 99, 235, 0.14);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.users-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(70, 93, 128, 0.25);
  vertical-align: middle;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-cell strong {
  display: block;
  color: var(--text);
}

.user-cell span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.users-table select {
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(12, 27, 48, 0.9);
  border: 1px solid rgba(70, 93, 128, 0.45);
}

.users-table select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.7);
}

.users-table .primary-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
}
.sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  flex: 1;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-card {
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 35, 65, 0.95);
  border: 1px solid rgba(96, 125, 170, 0.28);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.24);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #dbeafe;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex-shrink: 0;
}

.profile-info strong {
  display: block;
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
}

.profile-info span {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 0.78rem;
}

.logout-btn {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(248, 113, 113, 0.18);
  border-radius: 16px;
  background: rgba(248, 113, 113, 0.07);
  color: #fca5a5;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: 0.2s ease;
  margin-top: 10px;
}

.logout-btn:hover {
  background: rgba(248, 113, 113, 0.13);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
  transform: translateY(-1px);
}

.logout-icon {
  font-size: 0.95rem;
}
/* Shared modal hidden state */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(1, 7, 16, 0.78);
  backdrop-filter: blur(7px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

/* Support both existing modal systems */
.modal-overlay.show,
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;

  background: #07111e;
  border: 1px solid #1e3550;
  border-radius: 20px;
  box-sizing: border-box;

  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.65);

  transform: translateY(18px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal-overlay.show .modal-card,
.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}

body.modal-open {
  overflow: hidden;
}

/* =========================
   22. FINAL SIDEBAR PROFILE + LOGOUT OVERRIDES
   Keep this at the bottom so it beats older sidebar styles.
   HTML order should be:
   .sidebar-bottom > .profile-card, then .logout-btn
   ========================= */

.sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-nav,
nav.sidebar-nav {
  flex: 1;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-bottom .profile-card {
  position: static;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 35, 65, 0.95);
  border: 1px solid rgba(96, 125, 170, 0.28);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.24);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #dbeafe;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex-shrink: 0;
}

.profile-info {
  min-width: 0;
}

.profile-info strong {
  display: block;
  max-width: 145px;
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-info span {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 0.78rem;
}

.sidebar-bottom .logout-btn {
  position: static;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(248, 113, 113, 0.18);
  border-radius: 16px;
  background: rgba(248, 113, 113, 0.07);
  color: #fca5a5;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-bottom .logout-btn:hover {
  background: rgba(248, 113, 113, 0.13);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
  transform: translateY(-1px);
}

.logout-icon {
  font-size: 0.95rem;
  line-height: 1;
}

@media (max-width: 800px) {
  .sidebar-bottom {
    margin-top: 20px;
  }
}
/* Stop page scrolling while modal is open */
body.modal-open {
  overflow: hidden;
}

/* Hidden popup background */
.modal-overlay.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Visible popup */
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Popup card */
.invite-employee-modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;

  padding: 0;

  background: #07111e;
  border: 1px solid #1e3550;
  border-radius: 20px;

  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(47, 141, 255, 0.05);

  transform: translateY(20px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal-overlay.is-open .invite-employee-modal {
  transform: translateY(0) scale(1);
}

/* Modal heading */
.invite-employee-modal .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  padding: 24px 28px 20px;
  border-bottom: 1px solid #172a40;
}

.invite-employee-modal .modal-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
}

.invite-employee-modal .modal-header p {
  margin: 7px 0 0;
  color: #9db1ca;
  line-height: 1.5;
}

/* Close button */
.invite-employee-modal .icon-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  display: grid;
  place-items: center;

  padding: 0;

  background: #0a1726;
  border: 1px solid #213950;
  border-radius: 12px;

  color: #c7d4e5;
  font-size: 25px;
  line-height: 1;

  cursor: pointer;
}

.invite-employee-modal .icon-btn:hover {
  background: #10243a;
  border-color: #315779;
  color: #ffffff;
}

/* Form */
.invite-employee-modal form {
  padding: 26px 28px 28px;
}

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

.invite-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite-field-full {
  grid-column: 1 / -1;
}

.invite-field label {
  color: #a7bad2;
  font-size: 13px;
  font-weight: 600;
}

.invite-field input,
.invite-field select {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;

  padding: 0 14px;

  background: #050d17;
  border: 1px solid #203a55;
  border-radius: 12px;

  color: #ffffff;
  font: inherit;

  outline: none;
}

.invite-field input::placeholder {
  color: #71849d;
}

.invite-field input:focus,
.invite-field select:focus {
  border-color: #2f8dff;
  box-shadow: 0 0 0 4px rgba(47, 141, 255, 0.14);
}

/* Status message */
.invite-status {
  min-height: 20px;
  margin: 18px 0 0;
  color: #9fb4ce;
  font-size: 13px;
}

/* Bottom buttons */
.invite-employee-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;

  margin-top: 22px;
  padding-top: 20px;

  border-top: 1px solid #172a40;
}

/* Mobile popup */
@media (max-width: 650px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .invite-employee-modal {
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

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

  .invite-field-full {
    grid-column: auto;
  }

  .invite-employee-modal .modal-actions {
    flex-direction: column-reverse;
  }

  .invite-employee-modal .modal-actions button {
    width: 100%;
  }
}


/* Employee Stats */
/* =========================================================
   EMPLOYEE STATISTICS PAGE
========================================================= */

.stats-filter-panel {
  border: 1px solid var(--border);
  background: rgba(7, 16, 26, 0.92);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 220px 320px;
  gap: 18px;
  align-items: end;
}

.employee-stats-summary {
  margin-bottom: 22px;
}

.employee-stats-table {
  display: grid;
  gap: 10px;
}

.employee-stats-header,
.employee-stats-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(7, 0.7fr);
  gap: 14px;
  align-items: center;
}

.employee-stats-header {
  padding: 0 16px 10px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.employee-stats-row {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(2, 7, 13, 0.65);
}

.employee-stats-row strong {
  color: var(--text);
}

.employee-stats-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.employee-stats-row span {
  color: #e2e8f0;
}

.attendance-good {
  color: var(--green) !important;
}

.attendance-warning {
  color: var(--orange) !important;
}

.attendance-bad {
  color: var(--red) !important;
}

@media (max-width: 1100px) {
  .employee-stats-header {
    display: none;
  }

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

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

/* Prevent sidebar permission flicker while auth loads */
body.auth-loading .sidebar-nav,
body.auth-loading nav,
body.auth-loading .sidebar-bottom,
body.auth-loading .main {
  opacity: 0;
  pointer-events: none;
}

body.auth-ready .sidebar-nav,
body.auth-ready nav,
body.auth-ready .sidebar-bottom,
body.auth-ready .main {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.15s ease;
}
body.auth-loading .sidebar-nav,
body.auth-loading nav,
body.auth-loading .sidebar-bottom,
body.auth-loading .main {
  opacity: 0;
  pointer-events: none;
}

body.auth-ready .sidebar-nav,
body.auth-ready nav,
body.auth-ready .sidebar-bottom,
body.auth-ready .main {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.15s ease;
}
/* =========================================================
   AUTH FLICKER FIX
   Sidebar/nav stays hidden until auth.js finishes role check
========================================================= */

body:not(.auth-ready) .sidebar-nav,
body:not(.auth-ready) nav,
body:not(.auth-ready) .sidebar-bottom,
body:not(.auth-ready) .main {
  visibility: hidden !important;
  opacity: 0 !important;
}

body.auth-ready .sidebar-nav,
body.auth-ready nav,
body.auth-ready .sidebar-bottom,
body.auth-ready .main {
  visibility: visible !important;
  opacity: 1 !important;
  transition: opacity 0.12s ease;
}
/* =========================================================
   SIDEBAR NAV HEIGHT FIX
   Prevent nav links from stretching tall on stats page
========================================================= */

.sidebar-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  flex: 1;
  align-items: stretch;
}

.sidebar-nav a {
  min-height: 46px !important;
  height: auto !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 12px;
}

.sidebar-nav a.active {
  min-height: 46px !important;
  height: auto !important;
}
/* =========================================================
   SIDEBAR SUB NAV
========================================================= */

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-parent {
  width: 100%;
  min-height: 46px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.95rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.nav-parent:hover,
.nav-parent.active {
  color: #ffffff;
  background: rgba(37, 131, 255, 0.16);
  border: 1px solid rgba(37, 131, 255, 0.55);
  box-shadow: 0 0 28px rgba(37, 131, 255, 0.18);
}

.nav-chevron {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.nav-group.open .nav-chevron {
  transform: rotate(180deg);
}

.sub-nav {
  display: none;
  gap: 6px;
  padding-left: 12px;
  margin-bottom: 4px;
}

.nav-group.open .sub-nav {
  display: grid;
}

.sub-nav a {
  min-height: 38px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 0.86rem !important;
  color: #94a3b8 !important;
}

.sub-nav a:hover,
.sub-nav a.active {
  color: #ffffff !important;
  background: rgba(37, 131, 255, 0.12);
  border: 1px solid rgba(37, 131, 255, 0.35);
}
/* =========================================================
   SIDEBAR SUB NAV
========================================================= */

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-parent {
  width: 100%;
  min-height: 46px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.95rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.nav-parent:hover,
.nav-parent.active {
  color: #ffffff;
  background: rgba(37, 131, 255, 0.16);
  border: 1px solid rgba(37, 131, 255, 0.55);
  box-shadow: 0 0 28px rgba(37, 131, 255, 0.18);
}

.nav-chevron {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.nav-group.open .nav-chevron {
  transform: rotate(180deg);
}

.sub-nav {
  display: none;
  gap: 6px;
  padding-left: 12px;
  margin-bottom: 4px;
}

.nav-group.open .sub-nav {
  display: grid;
}

.sub-nav a {
  min-height: 38px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 0.86rem !important;
  color: #94a3b8 !important;
}

.sub-nav a:hover,
.sub-nav a.active {
  color: #ffffff !important;
  background: rgba(37, 131, 255, 0.12);
  border: 1px solid rgba(37, 131, 255, 0.35);
}

/* =========================================================
   ROLE-BASED NAVIGATION VISIBILITY
   Must come after sidebar rules because those use !important.
========================================================= */
.sidebar-nav a.role-hidden,
.sidebar-nav a[hidden],
.sidebar-nav .role-hidden {
  display: none !important;
}

.nav-group.role-hidden,
.nav-group[hidden] {
  display: none !important;
}

/* =========================================================
   USERS - INVITE EMPLOYEE MODAL
========================================================= */

.invite-employee-modal {
  width: min(590px, calc(100vw - 32px));
}

.invite-employee-modal form {
  padding: 24px;
}

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

.invite-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.invite-field-full {
  grid-column: 1 / -1;
}

.invite-field label {
  color: #9fb1c9;
  font-size: 0.83rem;
  font-weight: 650;
}

.invite-field input,
.invite-field select {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #21364f;
  border-radius: 11px;
  background: #050d17;
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.invite-field input:focus,
.invite-field select:focus {
  border-color: #2f8cff;
  box-shadow: 0 0 0 4px rgba(47, 140, 255, 0.13);
}

.invite-status {
  min-height: 20px;
  margin: 16px 0 0;
  font-size: 0.86rem;
}

.invite-status.error {
  color: #ff8e9b;
}

.invite-status.success {
  color: #50d9bd;
}

@media (max-width: 620px) {
  .invite-form-grid {
    grid-template-columns: 1fr;
  }

  .invite-field-full {
    grid-column: auto;
  }
}
.template-color-picker {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px;

  margin-top: 9px;
}

.template-color-option {
  position: relative;

  display: flex;
  align-items: center;
  gap: 9px;

  min-height: 46px;
  padding: 10px 12px;

  border: 1px solid
    rgba(140, 176, 218, 0.12);
  border-radius: 13px;

  background:
    rgba(7, 19, 33, 0.72);
  color: #c8d7e8;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.template-color-option:hover {
  transform: translateY(-1px);

  border-color:
    rgba(65, 155, 255, 0.3);

  background:
    rgba(16, 42, 70, 0.68);
}

.template-color-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.template-color-option:has(input:checked) {
  border-color:
    rgba(66, 157, 255, 0.48);

  background:
    rgba(27, 78, 129, 0.35);

  box-shadow:
    0 0 0 1px
      rgba(66, 157, 255, 0.08);
}

.template-color-swatch {
  width: 18px;
  height: 18px;

  border-radius: 6px;

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.22),
    0 4px 10px
      rgba(0, 0, 0, 0.2);
}

.template-color-swatch.blue {
  background: #2f8cff;
}

.template-color-swatch.teal {
  background: #22d3ee;
}

.template-color-swatch.green {
  background: #34d399;
}

.template-color-swatch.purple {
  background: #a78bfa;
}

.template-color-swatch.orange {
  background: #fb923c;
}

.template-color-swatch.pink {
  background: #f472b6;
}

@media (max-width: 600px) {
  .template-color-picker {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}
.month-shift.pink::before {
  background: #f472b6;
}

.month-shift.pink {
  border-color:
    rgba(244, 114, 182, 0.22);

  background:
    linear-gradient(
      145deg,
      rgba(92, 35, 70, 0.76),
      rgba(46, 18, 37, 0.84)
    );
}
/* =========================================================
   TOPBAR NOTIFICATIONS
========================================================= */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.notification-wrapper {
  position: relative;
  padding-right: 20px
}

.notification-bell {
  position: relative;

  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;
  padding: 0;

  border: 1px solid rgba(136, 179, 226, 0.14);
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(13, 32, 54, 0.82),
      rgba(6, 18, 31, 0.82)
    );

  color: #a8bdd5;
  cursor: pointer;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.notification-bell:hover,
.notification-bell.active {
  transform: translateY(-1px);

  border-color: rgba(50, 150, 255, 0.4);

  background:
    linear-gradient(
      145deg,
      rgba(23, 62, 103, 0.92),
      rgba(9, 30, 51, 0.92)
    );

  color: #ffffff;
}

.notification-bell svg {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 19px;
  height: 19px;
  padding: 0 5px;

  border: 2px solid #07111d;
  border-radius: 999px;

  background: #f04455;
  color: #ffffff;

  font-size: 9px;
  font-weight: 850;
  line-height: 1;
}

.notification-badge[hidden] {
  display: none;
}

/* =========================================================
   NOTIFICATION PANEL
========================================================= */

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1500;

  width: min(390px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 110px));

  border: 1px solid rgba(129, 177, 228, 0.16);
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(10, 28, 48, 0.98),
      rgba(4, 14, 25, 0.99)
    );

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.985);
  transform-origin: top right;

  overflow: hidden;
  pointer-events: none;

  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.notification-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 18px;

  border-bottom: 1px solid rgba(129, 177, 228, 0.1);
}

.notification-panel-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 820;
}

.notification-panel-header p {
  margin: 4px 0 0;
  color: #7f96b0;
  font-size: 11px;
}

.notification-mark-all {
  padding: 8px 10px;

  border: 1px solid rgba(51, 153, 255, 0.18);
  border-radius: 10px;

  background: rgba(51, 153, 255, 0.07);
  color: #8fd4ff;

  font: inherit;
  font-size: 10px;
  font-weight: 780;

  cursor: pointer;
}

.notification-mark-all:hover {
  background: rgba(51, 153, 255, 0.13);
}

.notification-list {
  max-height: 500px;
  overflow-y: auto;
}

.notification-item {
  position: relative;

  display: flex;
  align-items: flex-start;
  gap: 11px;

  width: 100%;
  padding: 14px 16px;

  border: 0;
  border-bottom: 1px solid rgba(129, 177, 228, 0.07);

  background: transparent;
  color: inherit;

  text-align: left;
  cursor: pointer;

  transition: background 0.16s ease;
}

.notification-item:hover {
  background: rgba(45, 139, 236, 0.08);
}

.notification-item.unread {
  background: rgba(45, 139, 236, 0.055);
}

.notification-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;

 

  width: 37px;
  height: 37px;

  border: 1px solid rgba(116, 170, 230, 0.13);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.035);

  font-size: 16px;
}

.notification-content {
  min-width: 0;
  flex: 1;
}

.notification-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.notification-topline strong {
  color: #edf5ff;
  font-size: 12px;
  font-weight: 790;
}

.notification-topline span {
  flex: 0 0 auto;
  color: #647c96;
  font-size: 9px;
}

.notification-content p {
  margin: 5px 0 0;
  color: #8da3bc;
  font-size: 11px;
  line-height: 1.45;
}

.notification-unread-dot {
  position: absolute;
  top: 50%;
  right: 8px;

  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: #f04455;

  box-shadow: 0 0 10px rgba(240, 68, 85, 0.55);

  transform: translateY(-50%);
}

.notification-empty,
.notification-loading {
  padding: 42px 24px;
  color: #7188a2;
  text-align: center;
}

.notification-empty-icon {
  margin-bottom: 10px;
  font-size: 27px;
}

.notification-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #d4e1f0;
}

.notification-empty p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

/* =========================================================
   SIDEBAR PAGE NOTIFICATION DOT
========================================================= */

.sidebar-nav a,
.nav-parent {
  position: relative;
}

.nav-page-notification-dot {
  position: absolute;
  top: 50%;
  right: 13px;

  width: 8px;
  height: 8px;

  border: 2px solid rgba(5, 15, 27, 0.96);
  border-radius: 50%;

  background: #f04455;

  box-shadow:
    0 0 0 3px rgba(240, 68, 85, 0.08),
    0 0 10px rgba(240, 68, 85, 0.52);

  transform: translateY(-50%);
}

.sub-nav a .nav-page-notification-dot {
  right: 12px;
}

.nav-group.has-notification >
.nav-parent::after {
  content: "";

  position: absolute;
  top: 50%;
  right: 36px;

  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: #f04455;

  box-shadow:
    0 0 9px rgba(240, 68, 85, 0.55);

  transform: translateY(-50%);
}

@media (max-width: 700px) {
  .notification-panel {
    position: fixed;
    top: 74px;
    right: 16px;
    left: 16px;

    width: auto;
    max-height: calc(100vh - 94px);
  }
}

/* =========================================================
   HOLIDAY SETTINGS
========================================================= */

.holiday-settings-panel {
  max-width: none;
}

.holiday-panel-header {
  align-items: flex-start;
  gap: 18px;
}

.holiday-panel-description {
  margin-top: 7px;

  color: var(--muted);

  font-size: 0.84rem;
  line-height: 1.5;
}

.holiday-sync-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  min-height: 29px;
  padding: 0 10px;

  border: 1px solid
    rgba(129, 169, 214, 0.16);

  border-radius: 999px;

  color: #8197ae;
  background:
    rgba(255, 255, 255, 0.025);

  font-size: 0.66rem;
  font-weight: 800;
}

.holiday-sync-status.success {
  border-color:
    rgba(39, 211, 150, 0.23);

  color: #55dfae;
  background:
    rgba(39, 211, 150, 0.1);
}

.holiday-sync-status.loading {
  border-color:
    rgba(53, 164, 255, 0.25);

  color: #65caff;
  background:
    rgba(53, 164, 255, 0.1);
}

.holiday-sync-status.error {
  border-color:
    rgba(239, 68, 68, 0.25);

  color: #ff918e;
  background:
    rgba(239, 68, 68, 0.1);
}

.holiday-sync-status.disabled {
  color: #78899c;
  opacity: 0.75;
}

.holiday-toggle-row {
  position: relative;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;

  padding: 14px;

  border: 1px solid
    rgba(126, 169, 214, 0.12);

  border-radius: 14px;

  background:
    rgba(255, 255, 255, 0.018);

  cursor: pointer;
}

.holiday-toggle-row input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.holiday-toggle-control {
  position: relative;

  width: 43px;
  height: 24px;

  border: 1px solid
    rgba(131, 169, 210, 0.22);

  border-radius: 999px;

  background: #0c1928;

  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.holiday-toggle-control::after {
  content: "";

  position: absolute;
  top: 3px;
  left: 3px;

  width: 16px;
  height: 16px;

  border-radius: 50%;

  background: #8093a8;

  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.holiday-toggle-row
input:checked +
.holiday-toggle-control {
  border-color:
    rgba(37, 151, 255, 0.5);

  background:
    rgba(37, 131, 255, 0.25);
}

.holiday-toggle-row
input:checked +
.holiday-toggle-control::after {
  background: #45caff;

  box-shadow:
    0 0 12px
    rgba(69, 202, 255, 0.45);

  transform:
    translateX(19px);
}

.holiday-toggle-copy strong {
  display: block;

  color: #eef7ff;

  font-size: 0.78rem;
}

.holiday-toggle-copy small {
  display: block;

  margin-top: 4px;

  color: #71859c;

  font-size: 0.65rem;
  line-height: 1.45;
}

.holiday-preview {
  overflow: hidden;

  border: 1px solid
    rgba(127, 170, 214, 0.12);

  border-radius: 15px;

  background:
    rgba(2, 7, 13, 0.42);
}

.holiday-preview > span {
  display: block;

  padding: 11px 13px;

  border-bottom: 1px solid
    rgba(127, 170, 214, 0.09);

  color: #7e93aa;

  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.holiday-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  padding: 12px 13px;
}

.holiday-preview-row +
.holiday-preview-row {
  border-top: 1px solid
    rgba(127, 170, 214, 0.07);
}

.holiday-preview-row strong {
  display: block;

  color: #eaf5ff;

  font-size: 0.75rem;
}

.holiday-preview-row span {
  display: block;

  margin-top: 3px;

  color: #6e8399;

  font-size: 0.61rem;
}

.holiday-preview-row time {
  flex: 0 0 auto;

  color: #75ccff;

  font-size: 0.67rem;
  font-weight: 750;
}

.holiday-preview-empty {
  padding: 18px;

  color: #71869c;

  font-size: 0.7rem;
  text-align: center;
}

.holiday-preview-empty.error {
  color: #ff918e;
}

@media (max-width: 700px) {
  .holiday-panel-header {
    flex-direction: column;
  }

  .holiday-preview-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* =========================================================
   COMPANY CLOSED TIME-CARD DAYS
========================================================= */

.timecard-day-card.company-closed-day {
  position: relative;
  padding-top: 48px;
  overflow: hidden;

  border-color:
    rgba(239, 157, 66, 0.38);

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(235, 143, 47, 0.08),
      transparent 44%
    ),
    rgba(2, 7, 13, 0.7);
}

.desktop-closed-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  display: flex;
  align-items: center;
  gap: 7px;

  min-height: 34px;
  padding: 0 10px;

  border-bottom: 1px solid
    rgba(255, 185, 105, 0.25);

  color: #ffe1bd;

  background:
    linear-gradient(
      90deg,
      rgba(170, 91, 25, 0.95),
      rgba(100, 51, 15, 0.92)
    );

  font-size: 0.68rem;
  font-weight: 850;
}

.desktop-closed-ribbon svg {
  width: 14px;
  height: 14px;

  color: #ffc47d;
}

.closed-day-info span {
  color: #efa457;
}

/* =========================================================
   EMPLOYEE VACATION BALANCES
========================================================= */

.employee-vacation-summary {
  display: grid;
  gap: 5px;
}

.employee-vacation-summary strong {
  color: #7dd3fc;
  font-size: 0.95rem;
}

.vacation-balance-button {
  width: fit-content;
  padding: 6px 9px;

  border: 1px solid
    rgba(37, 131, 255, 0.25);

  border-radius: 9px;

  color: #8dd8ff;

  background:
    rgba(37, 131, 255, 0.08);

  font-size: 0.72rem;
  font-weight: 750;
}

.vacation-balance-button:hover {
  border-color:
    rgba(37, 131, 255, 0.48);

  background:
    rgba(37, 131, 255, 0.15);
}

.vacation-balance-modal {
  width: min(560px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
}

.vacation-balance-overview {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 10px;

  margin-bottom: 18px;
}

.vacation-balance-overview > div {
  padding: 13px;

  border: 1px solid
    rgba(125, 211, 252, 0.12);

  border-radius: 13px;

  background:
    rgba(37, 131, 255, 0.055);
}

.vacation-balance-overview span {
  display: block;

  color: var(--muted);
  font-size: 0.7rem;
}

.vacation-balance-overview strong {
  display: block;
  margin-top: 7px;

  color: #dff6ff;
  font-size: 0.92rem;
}

.vacation-hours-input {
  position: relative;
}

.vacation-hours-input input {
  padding-right: 66px;
}

.vacation-hours-input span {
  position: absolute;
  top: 50%;
  right: 14px;

  color: var(--muted);
  font-size: 0.78rem;

  transform: translateY(-50%);
}

.vacation-adjustment-preview {
  padding: 12px 14px;

  border: 1px solid var(--border);
  border-radius: 12px;

  color: var(--muted);
  background: rgba(2, 7, 13, 0.5);

  font-size: 0.82rem;
  line-height: 1.45;
}

.vacation-adjustment-preview.positive {
  border-color:
    rgba(34, 197, 94, 0.24);

  color: #86efac;

  background:
    rgba(34, 197, 94, 0.07);
}

.vacation-adjustment-preview.negative {
  border-color:
    rgba(239, 68, 68, 0.24);

  color: #fca5a5;

  background:
    rgba(239, 68, 68, 0.07);
}

.vacation-adjustment-preview.neutral {
  color: var(--muted);
}

@media (max-width: 700px) {
  .vacation-balance-overview {
    grid-template-columns: 1fr 1fr;
  }
}


/* COMPANY DANGER ZONE */
.company-danger-zone{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:22px;border-color:rgba(239,68,68,.28);background:linear-gradient(145deg,rgba(79,18,28,.25),rgba(17,8,14,.72))}.company-danger-zone[hidden]{display:none!important}.danger-eyebrow{display:block;margin-bottom:7px;color:#fb7185;font-size:.66rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.company-danger-copy h3{color:#fff}.company-danger-copy p{max-width:720px;margin-top:7px;color:#a9b6c7;font-size:.82rem;line-height:1.55}.delete-company-btn,.delete-company-confirm-btn{border:1px solid rgba(239,68,68,.5);border-radius:11px;padding:11px 15px;color:#fff;background:linear-gradient(145deg,#dc3545,#a91f2f);font-weight:850;cursor:pointer;box-shadow:0 10px 24px rgba(189,34,49,.2)}.delete-company-btn:hover,.delete-company-confirm-btn:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.08)}.delete-company-confirm-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.delete-company-modal-card{width:min(620px,calc(100vw - 28px))}.delete-company-warning{margin-bottom:18px;padding:16px;border:1px solid rgba(239,68,68,.25);border-radius:14px;background:rgba(239,68,68,.07)}.delete-company-warning strong{color:#ffd6da}.delete-company-warning p{margin-top:7px;color:#aebdce;font-size:.8rem;line-height:1.52}.delete-company-warning b{color:#fff}.delete-company-checkbox{display:flex;align-items:flex-start;gap:10px;margin-top:15px;padding:13px;border:1px solid var(--border);border-radius:12px;color:#cad6e3;background:rgba(255,255,255,.018);font-size:.8rem}.delete-company-checkbox input{width:18px;height:18px;flex:0 0 auto;accent-color:#dc3545}.delete-company-error{display:block;min-height:16px;margin-top:6px;color:#fda4af;font-size:.72rem}@media(max-width:700px){.company-danger-zone{align-items:flex-start;flex-direction:column}.delete-company-btn{width:100%}}


/* =========================================================
   EMPLOYEE INVITATION MANAGEMENT / RESEND
========================================================= */
.invitation-management-panel{margin-top:20px}.employee-invitation-list{display:grid;gap:11px}.employee-invitation-card{display:grid;grid-template-columns:minmax(240px,1.4fr) minmax(180px,.8fr) auto;align-items:center;gap:18px;padding:16px;border:1px solid rgba(124,170,217,.13);border-radius:15px;background:rgba(7,19,32,.72)}.invitation-person{display:flex;align-items:center;gap:12px}.invitation-person strong,.invitation-person span,.invitation-person small{display:block}.invitation-person strong{color:#edf7ff;font-size:.8rem}.invitation-person span{margin-top:3px;color:#a5bbd0;font-size:.68rem}.invitation-person small{margin-top:4px;color:#71879e;font-size:.6rem}.invitation-meta{display:grid;justify-items:start;gap:5px}.invitation-meta small{color:#748ba3;font-size:.58rem}.invitation-meta p{margin:2px 0 0;color:#ff9da5;font-size:.58rem;line-height:1.4}.invite-status-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;border:1px solid rgba(124,170,217,.16);border-radius:999px;color:#a9bbcd;background:rgba(124,170,217,.06);font-size:.57rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.invite-status-badge.pending{border-color:rgba(245,176,65,.25);color:#ffd08a;background:rgba(245,176,65,.08)}.invite-status-badge.accepted{border-color:rgba(38,208,143,.25);color:#8ff0c5;background:rgba(38,208,143,.08)}.invite-status-badge.failed{border-color:rgba(255,91,101,.28);color:#ffadb4;background:rgba(255,91,101,.08)}.invite-status-badge.not-sent{color:#91a6ba}.invitation-actions{display:flex;justify-content:flex-end}.invitation-complete{color:#76dbb1;font-size:.65rem;font-weight:800}.resend-invite-modal{max-width:520px}.resend-employee-summary{display:flex;align-items:center;gap:12px;margin-bottom:17px;padding:14px;border:1px solid rgba(37,131,255,.2);border-radius:13px;background:rgba(37,131,255,.055)}.resend-employee-summary strong,.resend-employee-summary span,.resend-employee-summary small{display:block}.resend-employee-summary strong{color:#eff7ff}.resend-employee-summary span{margin-top:4px;color:#91a8bf;font-size:.7rem}.resend-employee-summary small{margin-top:4px;color:#70869d;font-size:.6rem}.invite-field small{display:block;margin-top:6px;color:#758ba2;font-size:.62rem}@media(max-width:900px){.employee-invitation-card{grid-template-columns:1fr}.invitation-actions{justify-content:flex-start}}

.invitation-error {
  margin: 3px 0 0;
  color: #ff9ca5;
  font-size: 0.6rem;
  line-height: 1.4;
  word-break: break-word;
}

/* Notification panel: View All footer */
.notification-view-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-top: 1px solid rgba(125, 165, 205, 0.11);
  color: #69b8ff;
  background: rgba(37, 131, 255, 0.035);
  font-size: 0.68rem;
  font-weight: 850;
  text-decoration: none;
}

.notification-view-all:hover {
  background: rgba(37, 131, 255, 0.08);
}

/* =========================================================
   SHARED PUSH PERMISSION BANNER
========================================================= */
.shiftlynx-push-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 12000;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: min(560px, calc(100vw - 36px));
  padding: 15px;
  border: 1px solid rgba(37, 131, 255, 0.28);
  border-radius: 17px;
  color: #eff7ff;
  background:
    linear-gradient(
      145deg,
      rgba(9, 24, 40, 0.98),
      rgba(5, 14, 25, 0.99)
    );
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.48),
    0 0 35px rgba(37, 131, 255, 0.08);
  backdrop-filter: blur(18px);
}

.shiftlynx-push-banner[hidden] {
  display: none;
}

.shiftlynx-push-banner-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background:
    rgba(37, 131, 255, 0.11);
  font-size: 1.15rem;
}

.shiftlynx-push-banner-copy strong,
.shiftlynx-push-banner-copy span {
  display: block;
}

.shiftlynx-push-banner-copy strong {
  color: #f4f9ff;
  font-size: 0.78rem;
}

.shiftlynx-push-banner-copy span {
  margin-top: 5px;
  color: #8fa6bc;
  font-size: 0.66rem;
  line-height: 1.45;
}

.shiftlynx-push-banner-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.shiftlynx-push-banner-actions button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 850;
  cursor: pointer;
}

.shiftlynx-push-enable {
  border: 1px solid #2583ff;
  color: #fff;
  background: #2583ff;
}

.shiftlynx-push-dismiss {
  border: 1px solid rgba(125, 165, 205, 0.16);
  color: #91a7bd;
  background: rgba(125, 165, 205, 0.04);
}

.shiftlynx-push-enable:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (max-width: 680px) {
  .shiftlynx-push-banner {
    right: 12px;
    bottom: 82px;
    grid-template-columns: 40px minmax(0, 1fr);
    width: calc(100vw - 24px);
  }

  .shiftlynx-push-banner-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* =========================================================
   SHIFTLYNX SIDEBAR INFORMATION ARCHITECTURE
========================================================= */
.sidebar-nav {
  gap: 0;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 18px;
  margin: 0 0 18px;
  border-bottom: 1px solid rgba(151, 174, 203, 0.14);
}

.sidebar-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-section-title {
  padding: 0 13px 7px;
  color: #d9e7f6;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.095em;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 0.72;
}

.sidebar-section > a,
.sidebar-section .nav-parent {
  position: relative;
}

.sidebar-attention-link .sidebar-status-dot {
  margin-left: auto;
}

.sidebar-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.025);
}

.sidebar-status-dot[hidden] {
  display: none !important;
}

.sidebar-status-dot.urgent {
  background: #ff5f79;
  box-shadow: 0 0 14px rgba(255, 95, 121, 0.58);
}

.sidebar-status-dot.warning {
  background: #ff9c5c;
  box-shadow: 0 0 14px rgba(255, 156, 92, 0.5);
}

.sidebar-status-dot.info {
  background: #4f9cff;
  box-shadow: 0 0 14px rgba(79, 156, 255, 0.52);
}

.sidebar-settings-section {
  padding-top: 1px;
}

.sidebar-section .sub-nav {
  margin-top: 3px;
}

@media (max-width: 900px) {
  .sidebar-section-title {
    font-size: 0.66rem;
  }
}


/* =========================================================
   SHIFTLYNX MANAGER SIDEBAR POLISH — V1.4.5
   Keeps the current pages while making navigation clearer.
========================================================= */
.sidebar {
  width: 260px;
  padding: 16px 12px 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(26, 194, 255, 0.07), transparent 28%),
    #030d18;
  border-right: 1px solid rgba(89, 132, 170, 0.18);
}

.sidebar .brand {
  min-height: 58px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid rgba(82, 137, 183, 0.08);
  border-radius: 15px;
  background: rgba(13, 31, 48, 0.52);
}

.sidebar .brand-logo {
  width: 100%;
  max-width: 190px;
  height: auto;
}

.sidebar-nav,
nav.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  min-height: 0;
}

.sidebar-nav .sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(139, 169, 197, 0.13);
}

.sidebar-nav .sidebar-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-nav .sidebar-section-title {
  margin: 0;
  padding: 7px 11px 5px;
  color: #8fa5bb;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 1;
}

.sidebar-nav .sidebar-section > a,
.sidebar-nav .sidebar-section .nav-parent {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  width: 100%;
  margin: 0;
  padding: 9px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #afc1d3 !important;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.sidebar-nav .sidebar-section > a:visited,
.sidebar-nav .sidebar-section .sub-nav a:visited {
  color: inherit !important;
}

.sidebar-nav .sidebar-section > a:hover,
.sidebar-nav .sidebar-section .nav-parent:hover {
  color: #f5fbff !important;
  background: rgba(24, 119, 181, 0.10) !important;
  border-color: rgba(58, 171, 235, 0.16) !important;
  transform: translateX(2px);
}

.sidebar-nav .sidebar-section > a.active {
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(21, 151, 225, 0.20), rgba(18, 107, 166, 0.08)) !important;
  border-color: rgba(55, 190, 255, 0.26) !important;
  box-shadow: inset 3px 0 0 #20c8ff !important;
}

.sidebar-nav .sidebar-section > a svg,
.sidebar-nav .sidebar-section > a i,
.sidebar-nav .sidebar-section .nav-parent svg,
.sidebar-nav .sidebar-section .nav-parent i {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px;
  color: #6f91ad !important;
  stroke-width: 1.9;
}

.sidebar-nav .sidebar-section > a:hover svg,
.sidebar-nav .sidebar-section > a.active svg,
.sidebar-nav .sidebar-section .nav-parent:hover svg {
  color: #27c7ff !important;
}

.sidebar-nav .sidebar-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-left: auto;
  border: 0;
}

.sidebar-nav .sidebar-settings-section {
  margin-top: 0;
}

.sidebar-nav .sidebar-settings-section .nav-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.sidebar-nav .sidebar-settings-section .nav-parent {
  color: #d1deeb !important;
}

.sidebar-nav .sidebar-settings-section .nav-chevron {
  margin-left: auto;
  color: #70879d;
  font-size: 0.75rem;
}

.sidebar-nav .sidebar-section .sub-nav {
  display: none;
  gap: 2px;
  margin: 4px 0 0 27px !important;
  padding: 5px 0 0 9px !important;
  border-left: 1px solid rgba(98, 142, 178, 0.20);
}

.sidebar-nav .nav-group.open .sub-nav {
  display: grid;
}

.sidebar-nav .sidebar-section .sub-nav a {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 9px !important;
  border-radius: 8px;
  color: #839bb1 !important;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none !important;
}

.sidebar-nav .sidebar-section .sub-nav a:hover,
.sidebar-nav .sidebar-section .sub-nav a.active {
  color: #e8f7ff !important;
  background: rgba(30, 147, 210, 0.10);
}

@media (max-width: 900px) {
  .sidebar { width: 244px; }
}


/* =========================================================
   EMPLOYEE SECONDARY ROLES
========================================================= */
.employee-cover-section {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(124, 170, 217, .14);
  border-radius: 15px;
  background: rgba(7, 19, 32, .55);
}

.employee-cover-heading,
.employee-cover-editor-actions,
.employee-cover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-cover-heading strong {
  display: block;
  color: #eef7ff;
  font-size: .8rem;
}

.employee-cover-heading p {
  margin: 4px 0 0;
  color: #7f94aa;
  font-size: .64rem;
  line-height: 1.45;
}

.employee-cover-editor {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(37, 131, 255, .17);
  border-radius: 13px;
  background: rgba(37, 131, 255, .045);
}

.employee-cover-editor-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.employee-cover-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.employee-cover-item {
  padding: 12px;
  border: 1px solid rgba(124, 170, 217, .11);
  border-radius: 12px;
  background: rgba(3, 13, 23, .62);
}

.employee-cover-item strong,
.employee-cover-item span,
.employee-cover-item small {
  display: block;
}

.employee-cover-item strong {
  color: #eff8ff;
  font-size: .74rem;
}

.employee-cover-item span {
  margin-top: 3px;
  color: #a5bbd0;
  font-size: .66rem;
}

.employee-cover-item small,
.employee-cover-summary {
  margin-top: 4px;
  color: #52c9ff;
  font-size: .58rem;
  font-weight: 750;
}

.employee-cover-empty {
  padding: 12px;
  border: 1px dashed rgba(124, 170, 217, .14);
  border-radius: 11px;
  color: #748ba3;
  font-size: .64rem;
  text-align: center;
}

@media (max-width: 620px) {
  .employee-cover-heading,
  .employee-cover-item {
    align-items: flex-start;
  }
}

.blocked-time-desktop-heading{margin-top:26px}
.blocked-time-desktop-heading p{margin:5px 0 0;color:#8fa7bd;font-size:.78rem}
.blocked-time-row .avatar.blocked{background:linear-gradient(145deg,#9b6418,#f0a943);color:#08111d}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 36px;
}

.login-logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;

    filter: drop-shadow(0 0 18px rgba(0, 170, 255, 0.35));

    transition: transform .25s ease;
}

.login-logo-image:hover {
    transform: scale(1.05);
}

.login-logo-text h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.login-logo-text span {
    color: #2fb8ff;
}

.login-logo-text p {
    margin-top: 8px;
    font-size: .95rem;
    color: #94a3b8;
}

.login-heading {
    text-align: center;
    margin-bottom: 30px;
}

.login-heading h2 {
    margin-bottom: 10px;
    color: #ffffff;
}

.login-description {
    color: #94a3b8;
    max-width: 420px;
    margin: auto;
    line-height: 1.6;
}