@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  font-family:
    Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #060912;
  color: #e6edf7;
  --bg: #060912;
  --surface: #111726;
  --surface-soft: #1a2232;
  --ink: #e6edf7;
  --muted: #97a3b6;
  --line: #232c3d;
  --line-strong: #33405a;
  --sidebar: #080b14;
  --sidebar-ink: #e6edf7;
  /* Brand accent (aligned with nexaorb.xyz): blue. Names kept for compatibility. */
  --teal: #1e86ee;
  --teal-dark: #1668c9;
  --amber: #f0b429;
  --red: #f87171;
  --red-soft: #2a1518;
  --blue: #4ea3f5;
  --brand-grad: linear-gradient(135deg, #2f3ad8 0%, #1e86ee 45%, #22d0ea 100%);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.app-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
}

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

.sidebar {
  background: var(--sidebar);
  color: var(--sidebar-ink);
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}

.brand-lockup {
  display: grid;
  gap: 10px;
  padding-bottom: 20px;
}

/* Brand lockup centered in the header (logo mark + larger NexaOrb wordmark) */
.brand-lockup-main {
  justify-items: center;
  text-align: center;
  gap: 4px;
}

.brand-lockup-main .brand-mark {
  justify-content: center;
  gap: 14px;
}

.brand-lockup-main .brand-mark-img {
  height: 50px;
}

.brand-lockup-main .brand-mark-text strong {
  font-size: 3rem;
  line-height: 1;
}

.brand-lockup-main .brand-system-name {
  font-size: 1.6rem;
}

.brand-logo {
  display: block;
  width: min(100%, 248px);
  height: auto;
}

/* Logo lockup: wave mark + wordmark, matching the nexaorb.xyz header */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark-img {
  width: auto;
  height: 46px;
  flex: none;
}

.brand-mark-text {
  display: grid;
  line-height: 1.05;
}

.brand-mark-text strong {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.2px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark-text small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.brand-system-name {
  color: #aebbc4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: transparent;
  color: #cdd8e4;
  cursor: pointer;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(30, 134, 238, 0.16);
  color: #ffffff;
}

.nav-item small {
  color: #8b97a8;
  font-size: 0.72rem;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar h2 {
  margin: 3px 0 0;
  font-size: 1.8rem;
  line-height: 1.15;
}

/* Single header row: logo + title (left) · signed-in panel (right) */
.topbar .brand-lockup-main {
  grid-column: 1;
  justify-self: start;
  justify-items: start;
  text-align: left;
  padding-bottom: 0;
}

.topbar .signed-in-panel {
  grid-column: 2;
  justify-self: end;
}

/* Mobile navigation toggle — hidden on desktop, shown in the compact topbar on
   narrow screens (see the max-width: 640px block). */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-label {
  font-size: 0.92rem;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  flex: none;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.app-shell.nav-open .nav-toggle {
  border-color: var(--blue);
  color: #ffffff;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    radial-gradient(1100px 560px at 72% -12%, rgba(30, 134, 238, 0.2), transparent 60%),
    linear-gradient(135deg, #080b14 0%, #04060c 100%);
  padding: 24px;
}

.auth-card {
  display: grid;
  gap: 18px;
  width: min(56vw, 380px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1.2;
}

/* Centered login / password-change header */
.auth-card .brand-mark {
  justify-content: center;
}

.auth-card .eyebrow,
.auth-card h1 {
  text-align: center;
}

/* Keep the admin-setup details block left-aligned */
.setup-note,
.setup-note .eyebrow {
  text-align: left;
}

.auth-logo {
  display: block;
  width: min(100%, 292px);
  height: auto;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.setup-note {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 12px;
}

.setup-note dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.setup-note div {
  display: grid;
  gap: 3px;
}

.setup-note dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.setup-note dd {
  margin: 0;
}

code {
  border-radius: 5px;
  background: #0d1320;
  color: #cfe0f5;
  padding: 2px 5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.password-rules {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.profile-switcher,
.role-picker {
  display: grid;
  gap: 6px;
  min-width: 260px;
}

.signed-in-panel {
  display: grid;
  gap: 5px;
  min-width: 0;
  justify-items: end;
  text-align: right;
}

.signed-in-panel span,
.signed-in-panel small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.signed-in-panel strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.profile-switcher span,
.role-picker span,
.field span,
.checkbox-field legend {
  color: #b3bfce;
  font-size: 0.84rem;
  font-weight: 700;
}

.content-shell {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.panel,
.stat-tile {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.compact-panel {
  padding: 14px 16px;
}

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

.panel-header h3,
.compact-panel h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-tile {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
}

.stat-tile span,
.stat-tile small {
  color: var(--muted);
}

.stat-tile strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

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

.report-form,
.role-add-form,
.timesheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

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

.field-span-2 {
  grid-column: 1 / -1;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-field {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.contact-field legend {
  color: #b3bfce;
  font-size: 0.84rem;
  font-weight: 700;
}

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

.contact-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 12px;
}

.contact-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.contact-add-button {
  justify-self: start;
}

.compact-field {
  min-width: 180px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0d1422;
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #5f6c7e;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 134, 238, 0.25);
}

.checkbox-field {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.checkbox-option input {
  width: 18px;
  min-height: 18px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  min-height: 38px;
  border-radius: var(--radius);
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  background: var(--brand-grad);
  color: #ffffff;
}

.primary-button:hover {
  filter: brightness(1.08);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
}

.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--blue);
}

.danger-button {
  border: 1px solid #5e2a2a;
  background: var(--red-soft);
  color: var(--red);
}

.danger-button:hover {
  background: #3a1c1c;
}

.icon-button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--blue);
}

.slim-button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 0.82rem;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(240, 180, 41, 0.15);
  color: var(--amber);
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #161d2b;
  color: #9fb0c4;
  font-size: 0.8rem;
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

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

.empty-cell,
.empty-state {
  color: var(--muted);
  text-align: center;
}

.empty-state {
  padding: 32px 18px;
}

.empty-state h3,
.empty-state p,
.compact-panel p {
  margin: 0;
}

.empty-state p {
  margin-top: 8px;
}

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

.block {
  display: block;
  margin-top: 3px;
}

.timesheet-toolbar {
  justify-content: space-between;
  margin-bottom: 14px;
}

.toolbar-total {
  display: grid;
  gap: 2px;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 9px 12px;
}

.toolbar-total span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.toolbar-total strong {
  font-size: 1.35rem;
}

.timesheet-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timesheet-table {
  min-width: 1500px;
}

.timesheet-main-col {
  width: 310px;
}

.timesheet-entry-controls {
  display: grid;
  grid-template-columns: 120px minmax(150px, 1fr);
  gap: 8px;
}

.timesheet-table td input[type="number"] {
  min-width: 92px;
  text-align: right;
}

.timesheet-cell-inputs {
  display: grid;
  gap: 7px;
  min-width: 124px;
}

.timesheet-cell-inputs textarea {
  min-height: 76px;
  min-width: 124px;
  resize: vertical;
  font-size: 0.84rem;
  line-height: 1.3;
}

.timesheet-table tfoot th,
.timesheet-table tfoot td {
  background: #141b29;
  font-weight: 800;
}

.timesheet-table tfoot td[data-day-total] {
  text-align: right;
  /* match the entry inputs above: cell padding (10px) + input padding (10px) */
  padding-right: 20px;
}

.non-working-day {
  background: #0b0f18;
  color: #5d6b7a;
}

.non-working-day input {
  background: #0d1422;
}

.row-total {
  min-width: 76px;
  color: var(--blue);
  font-weight: 800;
}

.week-total-cell {
  color: var(--blue);
}

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

.detailed-report-table {
  min-width: 1420px;
  table-layout: fixed;
}

.detailed-report-table th:not(:last-child),
.detailed-report-table td:not(:last-child) {
  white-space: nowrap;
}

.detailed-report-table th:first-child,
.detailed-report-table td:first-child {
  width: 116px;
}

.detailed-report-table th:nth-child(2),
.detailed-report-table td:nth-child(2) {
  width: 190px;
}

.detailed-report-table th:nth-child(3),
.detailed-report-table td:nth-child(3) {
  width: 120px;
}

.detailed-report-table th:nth-child(4),
.detailed-report-table td:nth-child(4) {
  width: 230px;
}

.detailed-report-table th:nth-child(5),
.detailed-report-table td:nth-child(5) {
  width: 150px;
}

.detailed-report-table th:nth-child(6),
.detailed-report-table td:nth-child(6) {
  width: 80px;
}

.detailed-report-table th:last-child,
.detailed-report-table td:last-child {
  min-width: 520px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.permission-table {
  min-width: 680px;
}

.password-admin-table {
  min-width: 920px;
}

.toggle-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toggle-cell input {
  width: 18px;
  min-height: 18px;
}

.toggle-cell span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(380px, calc(100vw - 40px));
  transform: translateY(18px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0f1626;
  color: #ffffff;
  padding: 12px 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  box-shadow: var(--shadow);
}

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

.toast.error {
  background: #7f1d1d;
  border-color: #7f1d1d;
}

@media (max-width: 1180px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  /* Keep the menu as a left sidebar; only the topbar stacks so the centered
     title and the signed-in panel both fit on medium screens. */
  .app-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .workspace {
    padding: 16px;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .topbar-title,
  .topbar .brand-lockup-main,
  .topbar .signed-in-panel {
    grid-column: auto;
    justify-self: stretch;
  }

  .topbar .brand-lockup-main {
    order: -1;
  }

  .profile-switcher,
  .role-picker,
  .signed-in-panel {
    min-width: 0;
  }

  .summary-grid,
  .data-form,
  .wide-form,
  .field-row,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .auth-shell {
    padding: 18px;
  }

  /* Login card: fill the small screen instead of a narrow vw fraction, and shrink
     the wordmark so it never overflows the card. */
  .auth-card {
    width: min(92vw, 400px);
    padding: 18px;
  }

  .auth-card .brand-mark-img {
    height: 38px;
  }

  .auth-card .brand-mark-text strong {
    font-size: 2rem;
  }

  /* Single column. The topbar becomes a compact sticky bar (logo + menu toggle);
     the nav and the account actions collapse behind the toggle so the page
     content starts at the top of the screen instead of below a full-height menu. */
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .topbar {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 14px;
  }

  .topbar .brand-lockup-main {
    flex: 1 1 auto;
    min-width: 0;
    padding-bottom: 0;
  }

  .topbar .brand-lockup-main .brand-mark {
    gap: 9px;
  }

  .topbar .brand-lockup-main .brand-mark-img {
    height: 30px;
  }

  .topbar .brand-lockup-main .brand-mark-text strong {
    font-size: 1.5rem;
  }

  /* Decorative subtitle is dropped from the compact bar to save space. */
  .brand-system-name {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex: none;
  }

  /* Collapsed by default; revealed when the shell has .nav-open. */
  .topbar .signed-in-panel {
    display: none;
    flex-basis: 100%;
    justify-items: stretch;
    text-align: left;
  }

  .sidebar {
    display: none;
    position: static;
    height: auto;
    padding: 4px 12px 14px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .app-shell.nav-open .topbar .signed-in-panel {
    display: grid;
  }

  .app-shell.nav-open .sidebar {
    display: block;
  }

  .workspace {
    padding: 14px 12px;
  }

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

  .nav-item {
    min-height: 46px;
    padding: 10px 12px;
  }

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

  .panel {
    padding: 14px;
  }

  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

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

  .report-form,
  .role-add-form,
  .timesheet-toolbar,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-field,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button,
  .icon-button {
    width: 100%;
  }

  /* ...but row-action buttons (Edit / Delete inside a table) stay compact and
     inline, otherwise they stack and inflate every row's height. */
  .actions-cell .secondary-button,
  .actions-cell .ghost-button,
  .actions-cell .danger-button,
  .actions-cell .icon-button {
    width: auto;
  }

  /* Data tables still scroll horizontally, but a touch less wide. */
  table {
    min-width: 640px;
  }

  /* Tighter cells on phones so horizontal-scroll rows aren't needlessly tall. */
  th,
  td {
    padding: 9px 9px;
  }

  /* Directory tables (employees, customers, projects, …) become stacked cards on
     phones — each row a card, each cell a labeled line. No horizontal scroll. The
     `cards` class scopes this so specialized tables (reports, permissions) keep
     their scroll. */
  table.cards,
  table.cards tbody {
    display: block;
    min-width: 0;
  }

  table.cards thead {
    display: none;
  }

  table.cards tbody tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 8px 12px;
    margin-bottom: 12px;
  }

  table.cards td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    padding: 7px 0;
    text-align: right;
    word-break: break-word;
  }

  table.cards td[data-label]::before {
    content: attr(data-label);
    flex: none;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: left;
  }

  table.cards td.actions-cell {
    justify-content: flex-end;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  table.cards td.empty-cell {
    justify-content: center;
    text-align: center;
  }

  /* Timesheet: replace the very wide horizontal-scroll grid with stacked cards —
     one card per project/category row, each day a labeled line (date · hours ·
     note). No horizontal scrolling, everything tap-sized. */
  .timesheet-wrap {
    border: 0;
    border-radius: 0;
  }

  .timesheet-table,
  .timesheet-table tbody {
    display: block;
    min-width: 0;
  }

  .timesheet-table thead,
  .timesheet-table tfoot {
    display: none;
  }

  .timesheet-table tbody tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 12px;
    margin-bottom: 12px;
  }

  .timesheet-table td {
    display: block;
    width: auto;
    border: 0;
    padding: 0;
  }

  .timesheet-table .timesheet-main-col {
    margin-bottom: 10px;
  }

  .timesheet-entry-controls {
    grid-template-columns: 1fr;
  }

  .timesheet-table td[data-day] {
    display: grid;
    gap: 6px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }

  .timesheet-table td[data-day]::before {
    content: attr(data-day);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .timesheet-table td.non-working-day {
    opacity: 0.72;
  }

  .timesheet-cell-inputs,
  .timesheet-cell-inputs textarea {
    min-width: 0;
  }

  .timesheet-table td input[type="number"] {
    min-width: 0;
    text-align: left;
  }

  .timesheet-table td.row-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .timesheet-table td.row-total::before {
    content: "Row total";
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
  }
}
