.app-shell {
  min-height: 100vh;
  padding: 0 0 40px;
  background: #edf1f4;
  color: #17212b;
}

.app-shell .brand-header {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 144px;
  margin: 0;
  padding: 28px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: linear-gradient(105deg, #111820 0%, #192c3c 55%, #1b5f8d 100%);
  box-shadow: 0 8px 30px rgba(20,37,49,.18);
}

.app-shell .brand-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, #bf6a3e 0 18%, #2683c5 18% 100%);
}

.app-shell .brand-left { display: flex; align-items: center; gap: 20px; }
.app-shell .logo-frame { width: 66px; height: 66px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; background: rgba(255,255,255,.09); box-shadow: none; }
.app-shell .logo-frame img { width: 47px; height: 47px; object-fit: contain; filter: brightness(0) invert(1); }
.app-shell .brand-left .eyebrow { margin: 0 0 9px; color: #79bde9; font-size: 11px; letter-spacing: .16em; }
.app-shell .brand-left h1 { max-width: 620px; margin: 0; color: #fff; font-size: clamp(34px,3.4vw,48px); line-height: 1; letter-spacing: -.035em; }
.app-shell .user-greeting { margin: 12px 0 0; color: #d8e8f2; font-size: 15px; font-weight: 700; }

.app-shell .top-bar {
  display: grid;
  grid-template-columns: auto 160px auto auto;
  align-items: center;
  gap: 8px 10px;
  min-width: 475px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.app-shell .top-bar label { color: #a9c9de; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.app-shell .top-bar input[type="date"] { min-height: 42px; padding: 0 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; color: #17212b; background: #fff; font-weight: 700; }
.app-shell .top-bar #weekInfo { grid-column: 1 / 3; color: #fff; font-size: 12px; font-weight: 600; }
.app-shell .top-bar .admin-nav-button,
.app-shell .top-bar .logout-button { min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 7px; color: #fff; background: transparent; box-shadow: none; font-size: 10px; font-weight: 800; }
.app-shell .top-bar .admin-nav-button { grid-column: 3; grid-row: 1 / 3; }
.app-shell .top-bar .logout-button { grid-column: 4; grid-row: 1 / 3; }
.app-shell .top-bar .admin-nav-button:hover,
.app-shell .top-bar .logout-button:hover { background: rgba(255,255,255,.1); transform: none; }

.app-shell .timesheet-panel {
  width: 100%;
  max-width: none;
  margin: 26px auto 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell .job-tabs {
  min-height: 61px;
  padding: 12px 14px 0;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  overflow-x: auto;
  border: 1px solid #dbe3e8;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
  box-shadow: 0 8px 28px rgba(26,49,64,.07);
}

.app-shell .job-tab {
  min-height: 42px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid #d3dde3;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  color: #526773;
  background: #f2f5f7;
  box-shadow: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
}

.app-shell .job-tab::before { display: none; }
.app-shell .job-tab:hover { color: #174f77; background: #eaf3f8; transform: none; }
.app-shell .job-tab.is-active { min-height: 46px; color: #fff; border-color: #214f70; background: #214f70; box-shadow: 0 -3px 0 #bf6a3e inset; }

.app-shell .active-job-strip {
  min-height: 72px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #244f6d;
  border-top: 0;
  color: #fff;
  background: linear-gradient(100deg,#183d58,#245f87);
  box-shadow: none;
}

.app-shell .active-job-strip > span { color: #a9c9de; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.app-shell .active-job-strip > strong { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; color: #fff; background: rgba(255,255,255,.08); font-size: 12px; }
.app-shell .active-job-strip .reload-data-button { width: 35px; min-width: 35px; height: 35px; min-height: 35px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); box-shadow: none; }
.app-shell .active-job-strip .import-day-group { margin-left: auto; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: rgba(0,0,0,.14); box-shadow: none; }
.app-shell .active-job-strip .import-day-control { border-radius: 7px 0 0 7px; }
.app-shell .active-job-strip .import-day-select { border-radius: 5px; font-size: 11px; }
.app-shell .active-job-strip #importPreviousDayButton { border-radius: 0 7px 7px 0; font-size: 10px; }
.app-shell .active-job-strip #saveButton,
.app-shell .active-job-strip #approveButton { min-height: 40px; height: 40px; padding: 0 16px; border-radius: 7px; font-size: 10px; font-weight: 800; box-shadow: none; }
.app-shell .active-job-strip #saveButton { color: #174f77; border: 1px solid #c6dce9; background: #fff; }
.app-shell .active-job-strip #saveButton:hover { color: #103e5f; background: #edf6fb; transform: translateY(-1px); }
.app-shell .active-job-strip #approveButton { color: #fff; border: 1px solid #cb7b50; background: #bf6a3e; }
.app-shell .active-job-strip #approveButton:hover { background: #a85a34; transform: translateY(-1px); }
.app-shell .active-job-strip #approveButton::before { content: "✓"; margin-right: 6px; }

.app-shell .table-wrap {
  max-height: calc(100vh - 340px);
  padding: 0;
  overflow: auto;
  border: 1px solid #dbe3e8;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(26,49,64,.08);
}

.app-shell .table-wrap table { width: 100%; min-width: 1510px; border-spacing: 0; border-collapse: separate; table-layout: fixed; }
.app-shell .table-wrap thead { position: sticky; top: 0; z-index: 9; }
.app-shell .table-wrap th { height: 49px; padding: 8px; border-right: 1px solid rgba(255,255,255,.13); border-bottom: 0; color: #dceaf3; background: #214f70; font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .07em; }
.app-shell .table-wrap th.select-column { position: sticky; left: 0; z-index: 12; width: 52px; min-width: 52px; background: #183d58; }
.app-shell .table-wrap th.employee-header { position: sticky; left: 52px; z-index: 12; width: 230px; min-width: 230px; padding: 7px 12px; background: #183d58; text-align: left; }
.app-shell .employee-header-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 5px; }
.app-shell .employee-search { width: 100%; height: 27px; padding: 0 9px; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; color: #fff; background: rgba(255,255,255,.1); font-size: 9px; font-weight: 650; text-transform: none; letter-spacing: 0; }
.app-shell .employee-search::placeholder { color: rgba(255,255,255,.62); }
.app-shell .employee-search:focus { border-color: rgba(255,255,255,.55); outline: 2px solid rgba(255,255,255,.12); background-color: rgba(255,255,255,.16); }
.app-shell .table-wrap th:last-child { width: 82px; }
.app-shell .table-wrap td { padding: 13px 8px; border-right: 1px solid #e2e8ec; border-bottom: 1px solid #dce4e9; vertical-align: top; background: #fff; }
.app-shell .table-wrap tbody tr:nth-child(even) td { background: #f9fbfc; }
.app-shell .table-wrap tbody tr:hover td { background: #f2f8fc; }
.app-shell .table-wrap .select-cell { position: sticky; left: 0; z-index: 5; width: 52px; min-width: 52px; text-align: center; background: #fff; }
.app-shell .table-wrap .employee-cell { position: sticky; left: 52px; z-index: 5; width: 230px; min-width: 230px; padding: 14px 12px; border-right: 2px solid #cad7df; background: #fff; box-shadow: 7px 0 14px rgba(26,49,64,.04); }
.app-shell .employee { width: 100%; height: 40px; padding: 0 30px 0 10px; border: 1px solid #bdcad2; border-radius: 7px; color: #20313d; background: #fff; font-size: 11px; font-weight: 650; }
.app-shell .row-tools { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #e4e9ed; }
.app-shell .row-tools button { min-height: 29px; padding: 0 4px; border-radius: 5px; color: #476477; border: 1px solid #c7d5de; background: #f2f7fa; font-size: 8px; font-weight: 800; box-shadow: none; }
.app-shell .row-tools .text-danger,
.app-shell .row-tools .row-remove { color: #9d3a3f; border-color: #e1bfc1; background: #fff; }

.app-shell .day-cell { width: 160px; min-width: 160px; padding: 14px 9px !important; }
.app-shell .time-row { display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: center; gap: 6px 5px; }
.app-shell .time-row > span { color: #71808a; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.app-shell .time-row input[type="time"],
.app-shell .time-row .activity { width: 100%; min-width: 0; height: 38px; padding: 0 5px; border: 1px solid #c1cdd4; border-radius: 7px; color: #162b39; background: #fff; font-size: 11px; font-weight: 700; }
.app-shell .time-row .activity { grid-column: 2; }
.app-shell .time-row input:focus,
.app-shell .time-row select:focus,
.app-shell .employee:focus { border-color: #2683c5; outline: 3px solid rgba(38,131,197,.13); }
.app-shell .day-clear { grid-column: 1 / 3; width: 100%; min-height: 27px; margin: 2px 0 0; padding: 0 5px; border: 1px solid transparent; border-radius: 5px; color: #89949c; background: transparent; font-size: 8px; font-weight: 750; box-shadow: none; }
.app-shell .day-clear:hover { color: #ad343a; border-color: #ebcacc; background: #fff5f5; transform: none; }
.app-shell .total { width: 82px; min-width: 82px; padding-top: 23px !important; color: #174f77; font-size: 13px; font-weight: 850; text-align: center; white-space: nowrap; }
.app-shell .employee-add-button { width: 25px; height: 25px; min-height: 25px; margin-left: 7px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); box-shadow: none; }
.app-shell .select-all-control { justify-content: center; }
.app-shell #statusMessage { min-height: 28px; margin: 12px 4px; font-size: 12px; font-weight: 750; }
.app-shell .json-preview { border-radius: 10px; border: 1px solid #dbe3e8; box-shadow: 0 12px 30px rgba(26,49,64,.1); }

@media (max-width: 1250px) {
  .app-shell .brand-header { padding-inline: 10px; }
  .app-shell .timesheet-panel { padding-inline: 10px; }
}
