body {
  min-height: 100vh;
  background:
    linear-gradient(140deg, rgba(15, 51, 255, 0.18), rgba(12, 12, 12, 0) 38%),
    #0c0c0c;
}

.app-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar,
.brand,
.quick-nav,
.hero-panel,
.summary-grid,
.workspace,
.form-heading,
.two-cols,
.panel-heading,
.filter-control,
.report-row,
.export-actions,
.entry-actions {
  display: flex;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
}

.brand {
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 31px;
  height: 31px;
}

.quick-nav {
  align-items: center;
  gap: 10px;
}

.profile-menu {
  position: relative;
  padding-bottom: 8px;
}

.admin-time-menu {
  position: relative;
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 10px;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 5px 10px 5px 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-button img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(125, 255, 178, 0.55);
}

.profile-button strong {
  color: #7dffb2;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  display: none;
  min-width: 190px;
  padding: 8px;
  background: #101218;
  border: 1px solid rgba(163, 174, 201, 0.32);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.admin-time-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none;
  width: min(430px, calc(100vw - 32px));
  max-height: 430px;
  overflow: auto;
  padding: 10px;
  background: rgba(16, 18, 24, 0.78);
  border: 1px solid rgba(163, 174, 201, 0.34);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.profile-menu:hover .profile-dropdown,
.profile-menu.is-open .profile-dropdown {
  display: grid;
  gap: 8px;
}

.admin-time-menu:hover .admin-time-dropdown,
.admin-time-menu.is-open .admin-time-dropdown {
  display: grid;
  gap: 10px;
}

.admin-user-search {
  margin-bottom: 0;
}

.admin-user-search input {
  min-height: 38px;
  padding: 9px 10px;
  background: rgba(8, 8, 8, 0.78);
}

.admin-user-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 7px;
}

.admin-user-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 8px;
  color: #fff;
  background: rgba(21, 25, 34, 0.74);
  border: 1px solid rgba(163, 174, 201, 0.2);
  text-align: left;
}

.admin-user-item:hover,
.admin-user-item.is-selected {
  background: #202736;
  border-color: rgba(125, 148, 255, 0.85);
}

.admin-user-item span {
  min-width: 0;
}

.admin-user-item .account-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.admin-user-item strong,
.admin-user-item small {
  display: block;
}

.admin-user-item strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.25;
}

.admin-user-item small {
  margin-top: 3px;
  color: #b8c1d6;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-dropdown a,
.profile-dropdown .nav-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.quick-nav a,
.nav-button,
.ghost-button,
.icon-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.quick-nav a,
.nav-button {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-button {
  min-height: auto;
}

.admin-time-button {
  min-height: 42px;
  padding: 0 16px;
  color: #06150d;
  background: #7dffb2;
  border: 0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-time-button:hover {
  background: #a5ffc8;
}

.hero-panel {
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  min-height: 430px;
  padding: 70px 0 48px;
  border-bottom: 2px solid #282828;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 78px;
  height: 5px;
  background: #0f33ff;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #7d94ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.1;
}

.heading-with-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.selected-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 5px 10px 5px 6px;
  background: #101218;
  border: 1px solid rgba(163, 174, 201, 0.32);
}

.selected-user-badge img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.selected-user-badge strong,
.selected-user-badge small {
  display: block;
}

.selected-user-badge strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.selected-user-badge small {
  margin-top: 2px;
  color: #b8c1d6;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-text {
  max-width: 560px;
  color: #c9c9c9;
  font-size: 16px;
}

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

.notice-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: #06150d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-approved {
  background: #7dffb2;
}

.notice-pending {
  color: #fff;
  background: #d7284f;
}

.summary-grid {
  width: min(380px, 100%);
  flex-direction: column;
  gap: 12px;
}

.metric,
.time-form,
.entries-panel,
.reports-panel {
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.metric {
  padding: 18px;
}

.metric span {
  color: #a8a8a8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  line-height: 1;
}

.workspace {
  align-items: flex-start;
  gap: 26px;
  padding: 34px 0;
}

.account-layout {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding: 34px 0;
}

.account-hero {
  min-height: 300px;
}

.time-form {
  position: sticky;
  top: 24px;
  width: 390px;
  flex: 0 0 390px;
  padding: 24px;
}

.form-heading,
.panel-heading {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

label {
  display: block;
  margin-bottom: 16px;
  color: #d8d8d8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  padding: 12px 13px;
  color: #fff;
  background: #080808;
  border: 1px solid #343434;
  border-radius: 0;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #0f33ff;
}

textarea {
  resize: vertical;
}

.two-cols {
  gap: 14px;
}

.two-cols label {
  flex: 1;
}

.primary-button,
.ghost-button,
.icon-button,
.export-button {
  min-height: 42px;
  border-radius: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-button {
  width: 100%;
  color: #fff;
  background: #0f33ff;
  border: 0;
}

.ghost-button {
  padding: 0 14px;
}

.form-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: #7dffb2;
  font-size: 13px;
}

.entries-panel {
  flex: 1;
  min-width: 0;
  padding: 24px;
  color: #f8fafc;
  background: #17191f;
  border-color: rgba(163, 174, 201, 0.32);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.history-filters,
.custom-filter {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-control {
  width: 190px;
  align-items: flex-start;
  flex-direction: column;
  margin-bottom: 0;
}

.is-hidden {
  display: none;
}

.table-wrap {
  position: relative;
  overflow-x: auto;
  background: #101218;
  border: 1px solid rgba(163, 174, 201, 0.22);
}

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

th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid rgba(163, 174, 201, 0.18);
  text-align: left;
  vertical-align: top;
}

th {
  color: #d8def0;
  background: #222836;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  color: #f8fafc;
  background: #151922;
}

tbody tr:nth-child(even) td {
  background: #1b202b;
}

tbody tr:hover td {
  background: #242b3a;
}

.task-title {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-weight: 900;
}

.task-note {
  color: #b8c1d6;
  font-size: 12px;
}

.status-pill {
  display: inline-block;
  padding: 6px 9px;
  color: #06150d;
  background: #7dffb2;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.approval-approved {
  color: #06150d;
  background: #7dffb2;
}

.approval-pending {
  color: #fff;
  background: #d7284f;
}

.entry-actions {
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  width: 38px;
  padding: 0;
}

.approve-button {
  width: auto;
  padding: 0 10px;
}

.export-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.export-button {
  padding: 0 18px;
  color: #06150d;
  background: #7dffb2;
  border: 0;
}

.export-button:hover {
  background: #a5ffc8;
}

.empty-state {
  display: none;
  margin: 18px 0 0;
  color: #c6cce0;
}

.total-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.total-row span {
  display: block;
  padding: 14px;
  color: #d8def0;
  background: #101218;
  border: 1px solid rgba(125, 255, 178, 0.3);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.total-row strong {
  display: block;
  margin-top: 6px;
  color: #7dffb2;
  font-size: 22px;
  line-height: 1.1;
}

.reports-panel {
  padding: 24px;
  margin-top: 4px;
  color: #f8fafc;
  background: #17191f;
  border-color: rgba(163, 174, 201, 0.32);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.report-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.report-row {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #f4f7fb;
  border-left: 4px solid #2f64ff;
  color: #151922;
}

.report-row > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-date {
  color: #111827;
  font-weight: 900;
}

.report-money {
  color: #4b5870;
  font-size: 12px;
  font-weight: 700;
}

.report-row strong {
  color: #0f33ff;
  font-size: 24px;
}

.report-summary {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #101218;
  border: 1px solid rgba(125, 255, 178, 0.42);
  border-left: 4px solid #7dffb2;
}

.report-summary span {
  color: #d8def0;
}

.report-summary strong {
  color: #7dffb2;
}

.report-summary-title {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-form {
  position: static;
}

.account-panel {
  flex: 1;
}

.avatar-preview {
  width: 96px;
  height: 96px;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(163, 174, 201, 0.32);
  background: #101218;
}

.avatar-preview img,
.account-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #101218;
  border: 1px solid rgba(163, 174, 201, 0.22);
  cursor: pointer;
}

.account-card.is-selected {
  border-color: rgba(125, 148, 255, 0.9);
  background: #161b27;
}

.account-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid rgba(163, 174, 201, 0.32);
  border-radius: 999px;
}

.account-avatar.has-pending {
  border: 3px solid #d7284f;
}

.account-avatar.is-clear {
  border: 3px solid #35d177;
}

.account-info {
  min-width: 0;
  flex: 1;
}

.account-info strong,
.account-info span {
  display: block;
}

.account-info strong {
  color: #fff;
  font-size: 16px;
}

.account-info span {
  color: #b8c1d6;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.account-info .account-pending {
  color: #ff8fa5;
}

.account-info .account-clear {
  color: #7dffb2;
}

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

.danger-button {
  border-color: rgba(255, 112, 112, 0.5);
  color: #ffb4b4;
}

.user-time-panel {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(163, 174, 201, 0.22);
}

.account-time-table {
  margin-top: 16px;
}

.account-report-title {
  margin-top: 26px;
}


@media (max-width: 980px) {
  .hero-panel,
  .workspace,
  .account-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .time-form {
    position: static;
    width: auto;
    flex-basis: auto;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 16px;
  }

  .topbar,
  .quick-nav,
  .two-cols,
  .panel-heading,
  .history-filters,
  .custom-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-dropdown {
    left: 0;
    right: auto;
  }

  .admin-time-dropdown {
    left: 0;
    right: auto;
    width: min(100%, calc(100vw - 24px));
  }

  .hero-panel {
    min-height: auto;
    padding: 48px 0 34px;
  }

  h1 {
    font-size: 42px;
  }

  .filter-control {
    width: 100%;
  }

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

  .account-card,
  .account-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
