@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");
:root {
  --ink: #17243a;
  --muted: #748198;
  --line: #e8edf3;
  --paper: #f5f7fb;
  --navy: #15243d;
  --blue: #4169e1;
  --teal: #10a58a;
  --orange: #f4a340;
  --shadow: 0 8px 28px rgba(28, 47, 77, 0.055);
}
* {
  box-sizing: border-box;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}
h1,
h2,
h3,
h4,
h5,
.brand-name {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.035em;
}
a {
  text-decoration: none;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 258px;
  background: var(--navy);
  padding: 22px 16px;
  color: #d4dcec;
  overflow-y: auto;
  z-index: 1030;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 10px 24px;
  color: #fff;
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 38px;
}
.brand-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: "DM Sans";
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #99a9c2;
  font-weight: 600;
  margin-top: 5px;
}
.nav-caption {
  padding: 18px 12px 7px;
  color: #8292ab;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.side-link {
  color: #c6d0df;
  padding: 10px 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  margin: 2px 0;
  transition: 0.2s;
}
.side-link i {
  font-size: 16px;
  color: #96a8c5;
  width: 18px;
}
.side-link:hover,
.side-link.active {
  background: #ffffff14;
  color: #fff;
}
.side-link.active {
  box-shadow: inset 3px 0 #7c99ff;
}
.sidebar-footer {
  border-top: 1px solid #ffffff17;
  margin: 24px 8px 0;
  padding: 15px 4px;
  color: #8f9fb7;
  font-size: 11px;
}
.main-wrap {
  margin-left: 258px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.top-search {
  max-width: 340px;
  width: 35vw;
}
.top-search .form-control {
  border: 0;
  background: #f4f6fa;
  font-size: 13px;
  padding: 10px 14px;
}
.icon-btn {
  border: 0;
  background: #f5f7fb;
  color: #58677d;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  position: relative;
}
.notification-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 2px solid white;
  background: #f17a68;
  border-radius: 100%;
  top: 7px;
  right: 8px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 36px;
  height: 36px;
  background: #e6edff;
  color: #4868d7;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.user-chip strong {
  display: block;
  font-size: 12px;
}
.user-chip small {
  color: var(--muted);
  font-size: 10px;
}
.content {
  padding: 28px 30px 36px;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 23px;
}
.eyebrow {
  color: #71809a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 10px;
  margin-bottom: 5px;
}
.page-heading h1 {
  font-size: 25px;
  font-weight: 800;
  margin: 0;
}
.page-heading p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 13px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: #fff;
}
.card-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 17px 20px;
  border-radius: 14px 14px 0 0 !important;
}
.card-body {
  padding: 20px;
}
.section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
.text-muted,
.small-muted {
  color: var(--muted) !important;
}
.btn {
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 14px;
}
.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
}
.btn-light {
  border-color: var(--line);
  background: #fff;
  color: #52627a;
}
.btn-sm {
  padding: 6px 10px;
  font-size: 11px;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #45536a;
  margin-bottom: 7px;
}
.form-control,
.form-select {
  font-size: 13px;
  border-color: #e1e7ef;
  border-radius: 8px;
  padding: 10px 12px;
  color: #334258;
}
.form-control:focus,
.form-select:focus {
  border-color: #9ab0ff;
  box-shadow: 0 0 0 0.2rem #4169e11c;
}
.form-text {
  font-size: 11px;
  color: var(--muted);
}
.required {
  color: #e05f68;
}
.table {
  font-size: 12px;
  margin: 0;
  vertical-align: middle;
}
.table thead th {
  background: #f8f9fc;
  color: #77849a;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-weight: 700;
  font-size: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody td {
  padding: 13px 14px;
  border-color: #edf0f4;
  color: #435169;
}
.table tbody tr:hover {
  background: #fbfcfe;
}
.table-responsive {
  border-radius: 0 0 14px 14px;
}
.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 20px;
}
.status-active,
.status-approved {
  background: #e5f7f1;
  color: #148369;
}
.status-pending,
.status-submitted {
  background: #fff3dc;
  color: #a86d0b;
}
.status-draft {
  background: #eef1f6;
  color: #66748a;
}
.status-rejected,
.status-inactive {
  background: #ffebec;
  color: #c4525e;
}
.status-progress {
  background: #eaf0ff;
  color: #4966ce;
}
.progress {
  height: 7px;
  background: #edf0f6;
  border-radius: 10px;
}
.progress-bar {
  background: linear-gradient(90deg, #5579ed, #7b91f1);
  border-radius: 10px;
}
.stat-card {
  padding: 19px;
  position: relative;
  overflow: hidden;
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.stat-value {
  font: 800 25px "Manrope";
  letter-spacing: -0.05em;
  margin: 16px 0 3px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
}
.stat-foot {
  font-size: 10px;
  margin-top: 11px;
  color: #148369;
}
.stat-foot i {
  margin-right: 3px;
}
.panel-subtitle {
  font-size: 11px;
  color: var(--muted);
}
.action-group {
  display: flex;
  gap: 5px;
}
.action-link {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: #697891;
  background: #f5f7fa;
}
.action-link:hover {
  background: #e9efff;
  color: #4868d7;
}
.footer {
  padding: 16px 30px;
  color: #98a2b2;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 13px;
  height: 160px;
  padding: 12px 4px 0;
  border-bottom: 1px solid var(--line);
}
.chart-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  position: relative;
}
.chart-bar {
  width: 29%;
  border-radius: 5px 5px 0 0;
  background: #6483ee;
}
.chart-bar.alt {
  background: #c9d4fb;
}
.chart-labels {
  display: flex;
  justify-content: space-around;
  color: #8490a3;
  font-size: 10px;
  padding-top: 9px;
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: #6483ee;
}
.legend-dot.alt {
  background: #c9d4fb;
}
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 10%, #e1e9ff 0, transparent 40%), linear-gradient(135deg, #f7f9fe, #eef2fa);
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  padding: 38px;
  border: 1px solid #e7ebf3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px #243c6815;
}
.login-card .brand {
  color: var(--ink);
  padding: 0 0 28px;
}
.login-card .brand-name small {
  color: var(--muted);
}
.mobile-menu {
  display: none;
}
.form-check-input:checked {
  background-color: var(--blue);
  border-color: var(--blue);
}
.empty-state {
  padding: 38px;
  text-align: center;
  color: var(--muted);
}
.filter-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.detail-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 5px;
}
.detail-value {
  font-size: 13px;
  font-weight: 600;
  color: #34435b;
}
.notice {
  border-radius: 10px;
  font-size: 12px;
}
.week-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.profile-banner {
  background: linear-gradient(120deg, #263b63, #526fbb);
  height: 112px;
  border-radius: 14px 14px 0 0;
}
.profile-avatar {
  width: 76px;
  height: 76px;
  border: 4px solid #fff;
  margin-top: -40px;
  background: #e8eeff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #4868d7;
  font-weight: 800;
}
.page-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 991.98px) {
  .sidebar {
    width: 230px;
  }
  .main-wrap {
    margin-left: 230px;
  }
  .content {
    padding: 23px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
}
@media (max-width: 767.98px) {
  .sidebar {
    display: none;
  }
  .main-wrap {
    margin-left: 0;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    height: 64px;
    padding: 0 14px;
  }
  .top-search {
    width: auto;
    max-width: 190px;
  }
  .top-search .form-control {
    padding: 8px 10px;
  }
  .user-chip .user-meta {
    display: none;
  }
  .content {
    padding: 19px 14px;
  }
  .page-heading {
    margin-bottom: 17px;
  }
  .page-heading h1 {
    font-size: 21px;
  }
  .footer {
    padding: 14px;
  }
  .card-body {
    padding: 16px;
  }
  .stat-value {
    font-size: 22px;
  }
}
@media (max-width: 480px) {
  .top-search {
    display: none;
  }
  .page-heading {
    align-items: center;
  }
  .page-tools .btn {
    padding: 8px 10px;
  }
  .login-card {
    padding: 27px 22px;
  }
}

.page-breadcrumb {
  font-size: 11px;
}
.page-breadcrumb .breadcrumb-item a {
  color: var(--muted);
}
.page-breadcrumb .breadcrumb-item a:hover {
  color: var(--blue);
}
.page-breadcrumb .breadcrumb-item.active {
  color: #45536a;
  font-weight: 600;
}
.date-control {
  position: relative;
}
.date-control-native {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.date-control-button {
  min-width: 42px;
}
.date-control-feedback {
  color: #dc3545;
  font-size: 12px;
  min-height: 0;
}
.date-control-feedback:not(:empty) {
  margin-top: 4px;
}
.timesheet-calendar .card-body {
  padding: 16px;
}
.calendar-month {
  min-width: 142px;
  text-align: center;
  font-size: 14px;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.calendar-weekdays {
  margin-bottom: 6px;
  color: #778399;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.calendar-weekdays span {
  padding: 6px 0;
}
.calendar-day {
  min-height: 72px;
  border: 1px solid #e4e9f1;
  border-radius: 6px;
  background: #fff;
  color: #34435b;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
}
.calendar-day:not(:disabled):hover {
  border-color: #7389d8;
  background: #f7f9ff;
}
.calendar-day-number {
  font-weight: 700;
  font-size: 13px;
}
.calendar-day-status {
  font-size: 10px;
  margin-top: auto;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-day.outside-month {
  opacity: 0.48;
}
.calendar-day.is-today {
  border-color: #5873cf;
  background: #edf1ff;
}
.calendar-day.is-completed {
  border-color: #a8ddce;
  background: #eff9f5;
}
.calendar-day.is-missing {
  background: #fbfcfe;
}
.calendar-day.is-pending {
  border-color: #f0d18a;
  background: #fff9e8;
}
.calendar-day.is-approved {
  border-color: #a8ddce;
  background: #eff9f5;
}
.calendar-day.is-rejected {
  border-color: #edb4ad;
  background: #fff3f1;
}
.calendar-day.is-future,
.calendar-day:disabled {
  color: #a1a9b7;
  background: #f5f6f8;
  cursor: not-allowed;
}
.calendar-day.is-selected {
  box-shadow: inset 0 0 0 2px #516dc9;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  font-size: 11px;
  color: #657187;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
}
.legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #dce2ec;
  margin-right: 5px;
}
.legend-swatch.today {
  background: #5873cf;
}
.legend-swatch.completed,
.legend-swatch.approved {
  background: #52aa8e;
}
.legend-swatch.missing {
  background: #ccd3df;
}
.legend-swatch.pending {
  background: #e6b94f;
}
.legend-swatch.rejected {
  background: #d8786b;
}
.legend-swatch.future {
  background: #e8eaf0;
}
.permission-request-panel {
  border-top: 1px solid #e7ebf1;
  padding-top: 18px;
  margin-top: 12px;
}
@media (max-width: 575.98px) {
  .calendar-weekdays,
  .calendar-grid {
    gap: 3px;
  }
  .calendar-day {
    min-height: 58px;
    padding: 5px 4px;
  }
  .calendar-day-number {
    font-size: 12px;
  }
  .calendar-day-status {
    font-size: 9px;
  }
  .calendar-legend {
    gap: 8px 10px;
  }
  .timesheet-calendar .card-body {
    padding: 12px;
  }
}

.weekly-hours-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  min-height: 205px;
}
.weekly-chart-day {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #34435b;
  text-decoration: none;
}
.weekly-chart-day:hover {
  background: #f7f9ff;
  border-color: #dce3f4;
  color: #34435b;
}
.weekly-chart-day.is-selected {
  border-color: #5873cf;
  background: #edf1ff;
}
.weekly-chart-day.is-today .weekly-chart-label {
  font-weight: 700;
}
.weekly-chart-value {
  font-size: 11px;
  color: #657187;
  white-space: nowrap;
}
.weekly-chart-track {
  height: 132px;
  width: min(42px, 70%);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 7px;
  background: #f0f3f8;
}
.weekly-chart-bar {
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #7d91e5, #526dcb);
}
.weekly-chart-day.is-today .weekly-chart-bar {
  background: linear-gradient(180deg, #55b49a, #259777);
}
.weekly-chart-day {
  cursor: pointer;
}
.weekly-chart-day:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.weekly-chart-day:disabled .weekly-chart-bar {
  background: #cbd2df;
}
.weekly-chart-day {
  font-size: 12px;
}
.weekly-chart-label {
  font-weight: 700;
}
.weekly-chart-date {
  font-size: 11px;
  color: #778399;
}
@media (max-width: 575.98px) {
  .weekly-hours-chart {
    gap: 2px;
  }
  .weekly-chart-day {
    padding: 7px 1px;
  }
  .weekly-chart-value {
    font-size: 9px;
  }
  .weekly-chart-track {
    width: 64%;
    height: 100px;
  }
  .weekly-chart-day {
    font-size: 10px;
  }
}
