.employee-home-actions.single-action {
  grid-template-columns: 1fr;
}

.employee-home-actions .my-expenses-dashboard-card {
  display: grid;
  grid-template-columns: auto minmax(150px,1fr) auto auto auto;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 18px;
  overflow: hidden;
}

.my-expenses-card-icon {
  color: #1769e0;
  font-size: 1.45rem;
}

.my-expenses-card-title,
.my-expenses-inline-stat {
  display: grid;
  min-width: 0;
}

.my-expenses-card-title strong {
  color: #102f53;
  font-size: 1rem;
}

.my-expenses-card-title small,
.my-expenses-inline-stat small {
  color: #6b7f94;
  font-size: .72rem;
  white-space: nowrap;
}

.my-expenses-inline-stat {
  padding-left: 20px;
  border-left: 1px solid #dbe5ef;
}

.my-expenses-inline-stat strong {
  color: #102f53;
  font-size: 1.02rem;
  white-space: nowrap;
}

.my-expenses-card-link {
  color: #1769e0;
  font-size: .78rem;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .employee-home-actions .my-expenses-dashboard-card {
    grid-template-columns: auto minmax(72px,1fr) auto auto;
    gap: 8px;
    padding: 12px;
  }
  .my-expenses-card-link { display: none; }
  .my-expenses-card-title small { font-size: .66rem; }
  .my-expenses-inline-stat {
    padding-left: 8px;
  }
  .my-expenses-inline-stat small { font-size: .61rem; }
  .my-expenses-inline-stat strong { font-size: .88rem; }
}

/* High-density dashboards: keep more useful information above the fold. */
body[data-path="/dashboard"] .page-head,
body[data-path="/dashboard"] .employee-home-head {
  min-height: 0;
  margin-bottom: 12px;
}

body[data-path="/dashboard"] .employee-home-head h1 {
  font-size: 1.55rem;
}

body[data-path="/dashboard"] .employee-home-head p:last-child {
  margin-top: 1px;
  font-size: .85rem;
}

body[data-path="/dashboard"] .record-expense-hero {
  min-height: 72px;
  gap: 11px;
  padding: 11px 15px;
  border-radius: 15px;
}

body[data-path="/dashboard"] .record-expense-hero > span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.9rem;
}

body[data-path="/dashboard"] .record-expense-hero strong { font-size: 1.12rem; }
body[data-path="/dashboard"] .employee-home-actions { margin: 7px 0; }
body[data-path="/dashboard"] .employee-home-actions .my-expenses-dashboard-card { padding-top: 9px; padding-bottom: 9px; }

body[data-path="/dashboard"] .section-row {
  margin: 12px 0 6px;
}

body[data-path="/dashboard"] .active-trip-grid {
  gap: 6px;
}

body[data-path="/dashboard"] .active-trip-grid a {
  min-height: 72px;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 11px;
}

body[data-path="/dashboard"] .active-trip-grid a strong { font-size: .86rem; }
body[data-path="/dashboard"] .active-trip-grid a span { font-size: .68rem; }

body[data-path="/dashboard"] .home-expense-list > a {
  padding: 8px 11px;
  font-size: .84rem;
}

body[data-path="/dashboard"] .home-expense-list small { font-size: .7rem; }

body[data-path="/dashboard"] .home-expense-list .home-expense-remark {
  margin-top: 2px;
  overflow: visible;
  color: #52677d;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

body[data-path="/dashboard"] .home-expense-remark b { color: #9a5a00; }
body[data-path="/dashboard"] .claim-created-emphasis {
  color: #294e75;
  font-weight: 800;
}
body[data-path="/dashboard"] .shared-action-banner { margin-bottom: 7px; padding: 8px 11px; }

body[data-path="/dashboard"] .dashboard-stat-grid,
body[data-path="/dashboard"] .admin-workflow-grid,
body[data-path="/dashboard"] .dashboard-summary-grid,
body[data-path="/dashboard"] .dashboard-trip-spending {
  margin-bottom: 12px !important;
}

body[data-path="/dashboard"] .dashboard-stat-grid,
body[data-path="/dashboard"] .dashboard-summary-grid {
  --bs-gutter-x: .65rem;
  --bs-gutter-y: .65rem;
}

body[data-path="/dashboard"] .dashboard-stat-grid .stat-card {
  min-height: 78px;
  padding: 11px 13px;
}

body[data-path="/dashboard"] .dashboard-stat-grid .stat-value {
  margin-top: 2px;
  font-size: 1.3rem;
}

body[data-path="/dashboard"] .admin-workflow-grid {
  gap: 7px;
}

body[data-path="/dashboard"] .admin-workflow-grid a {
  min-height: 70px;
  padding: 9px;
}

body[data-path="/dashboard"] .dashboard-panel {
  padding: 12px 14px !important;
}

body[data-path="/dashboard"] .dashboard-panel .section-title {
  margin-bottom: 5px;
  font-size: .98rem;
}

body[data-path="/dashboard"] .dashboard-panel .admin-summary-list > a,
body[data-path="/dashboard"] .dashboard-panel .admin-summary-list > div {
  padding: 6px 0;
  font-size: .82rem;
}

body[data-path="/dashboard"] .dashboard-admin-links .btn {
  min-height: 38px;
  padding: .4rem .6rem;
  font-size: .76rem;
}

body[data-path="/dashboard"] .manager-dashboard .empty-state {
  min-height: 105px;
  padding: 20px;
}

@media (max-width: 575.98px) {
  body[data-path="/dashboard"] .employee-home-head h1 { font-size: 1.38rem; }
  body[data-path="/dashboard"] .employee-home-head > a { width: 38px; height: 38px; }
  body[data-path="/dashboard"] .record-expense-hero { min-height: 64px; padding: 9px 11px; }
  body[data-path="/dashboard"] .record-expense-hero > span { width: 38px; height: 38px; font-size: 1.65rem; }
  body[data-path="/dashboard"] .active-trip-grid a { min-height: 64px; padding: 8px 9px; }
  body[data-path="/dashboard"] .dashboard-stat-grid .stat-card { min-height: 70px; padding: 9px 10px; }
}

/* Phone-first role launcher. Desktop dashboards remain untouched. */
.mobile-home-launcher { display: none; }

@media (max-width: 767.98px) {
  body[data-path="/dashboard"] .topbar-actions { display: none; }
  body[data-path="/dashboard"] .employee-home > .desktop-dashboard-content,
  body[data-path="/dashboard"] .manager-dashboard > .desktop-dashboard-content,
  body[data-role="admin"][data-path="/dashboard"] .admin-dashboard,
  body[data-role="report"][data-path="/dashboard"] .desktop-dashboard-redirect { display: none; }

  body[data-path="/dashboard"] .mobile-home-launcher {
    width: 100%;
    display: block;
    padding: 0 12px 18px;
  }
  body[data-path="/dashboard"] .employee-home > .mobile-home-launcher,
  body[data-path="/dashboard"] .manager-dashboard > .mobile-home-launcher,
  body[data-path="/dashboard"] .report-mobile-dashboard > .mobile-home-launcher { padding-right: 0; padding-left: 0; }

  .mobile-home-welcome { margin: 2px 0 12px; }
  .mobile-home-welcome p {
    margin: 0 0 2px;
    color: #0f8f87;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .mobile-home-welcome h1 {
    margin: 0;
    color: #08294d;
    font-size: clamp(1.42rem, 7vw, 1.82rem);
    font-weight: 900;
    letter-spacing: -.035em;
  }
  .mobile-home-welcome > span { color: #6b7f94; font-size: .82rem; }

  .mobile-home-review-alert {
    min-height: 46px;
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) auto;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    padding: 7px 10px;
    border: 1px solid #f3ce8a;
    border-radius: 13px;
    background: #fff8e8;
    color: #874f00;
  }
  .mobile-home-review-alert > span { display: grid; place-items: center; }
  .mobile-home-review-alert .nav-line-icon { width: 20px; height: 20px; }
  .mobile-home-review-alert strong { font-size: .74rem; }
  .mobile-home-review-alert small { color: #9d5c00; font-size: .65rem; font-weight: 800; white-space: nowrap; }

  .mobile-home-scan {
    min-height: 92px;
    display: grid;
    grid-template-columns: 58px minmax(0,1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 1px 13px;
    margin-bottom: 11px;
    padding: 14px 16px;
    border-radius: 19px;
    background: linear-gradient(135deg,#15bfb0 0%,#087fd1 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(6,139,158,.25);
  }
  button.mobile-home-scan { width: 100%; border: 0; font-family: inherit; text-align: left; cursor: pointer; }
  .mobile-home-scan > span {
    width: 56px;
    height: 56px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,.18);
  }
  .mobile-home-scan .nav-line-icon { width: 30px; height: 30px; stroke-width: 1.8; }
  .mobile-home-scan strong { align-self: end; font-size: 1.12rem; font-weight: 900; }
  .mobile-home-scan small { align-self: start; color: rgba(255,255,255,.9); font-size: .75rem; }

  .mobile-home-menu {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
    margin-bottom: 11px;
  }
  .mobile-home-menu > a {
    min-height: 104px;
    display: grid;
    grid-template-columns: 46px minmax(0,1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 1px 9px;
    padding: 11px;
    border: 1px solid #dce7f0;
    border-radius: 17px;
    background: #fff;
    color: #0b2f55;
    box-shadow: 0 5px 16px rgba(18,50,86,.07);
  }
  .mobile-home-menu > a:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 84px; }
  .mobile-home-menu > a > span {
    width: 44px;
    height: 44px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 14px;
  }
  .mobile-home-menu .nav-line-icon,
  .mobile-home-menu .notification-bell-icon { width: 24px; height: 24px; }
  .mobile-home-menu > a > strong { align-self: end; font-size: .83rem; font-weight: 900; line-height: 1.15; }
  .mobile-home-menu > a > small { align-self: start; color: #718399; font-size: .62rem; line-height: 1.25; }
  .mobile-home-menu .tone-green { background:#e4f8ee; color:#15915e; }
  .mobile-home-menu .tone-blue { background:#e8f2ff; color:#1769e0; }
  .mobile-home-menu .tone-purple { background:#f1eaff; color:#7553bf; }
  .mobile-home-menu .tone-orange { background:#fff0df; color:#e56b17; }
  .mobile-home-menu .tone-teal { background:#e1f8f5; color:#0f9f91; }
  .mobile-home-menu .tone-cyan { background:#e4f7fb; color:#168aa2; }
  .mobile-home-menu .notification-count { top: -5px; right: -5px; }

  .mobile-home-summary {
    display: grid;
    grid-template-columns: minmax(88px,1.25fr) repeat(3,minmax(52px,.75fr));
    overflow: hidden;
    border: 1px solid #dce7f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(18,50,86,.12);
    font-family: inherit;
  }
  .mobile-home-summary * { font-family: inherit; }
  .mobile-home-summary > div,
  .mobile-home-summary > a {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 10px 7px;
    border-left: 1px solid #e5ebf1;
    text-align: center;
  }
  .mobile-home-summary > div:first-child { border-left: 0; text-align: left; padding-left: 11px; background: linear-gradient(145deg,#f4f9fc,#e7f1f8); }
  .mobile-home-summary-month { display:flex; align-items:center; justify-content:space-between; gap:3px; }
  .mobile-home-summary-month a,.mobile-home-summary-month span { display:grid; place-items:center; width:14px; height:14px; color:#1769e0; font-size:.85rem; line-height:1; text-decoration:none; }
  .mobile-home-summary-month span { color:#a9b7c5; }
  .mobile-home-summary-heading small { color: #647c91; font-size: .56rem; font-weight: 800; }
  .mobile-home-summary-heading strong { color: #12365d; font-size: 1.06rem; font-weight: 950; }
  .mobile-home-summary > a {
    position: relative;
    color: inherit;
    text-decoration: none;
    transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
  }
  .mobile-home-summary > a::after {
    content: '';
    position: absolute;
    right: 4px;
    bottom: 4px;
    left: 4px;
    height: 2px;
    border-radius: 999px;
    opacity: 0;
    transition: opacity .16s ease;
  }
  .mobile-home-summary > a.status-approved::after { background:#24a66b; }
  .mobile-home-summary > a.status-submitted::after { background:#f2a62b; }
  .mobile-home-summary > a.status-rejected::after { background:#e9535c; }
  .mobile-home-summary > a:hover,
  .mobile-home-summary > a:focus-visible {
    background: #f3f8fd;
    box-shadow: inset 0 0 0 2px rgba(23,105,224,.18);
    outline: none;
  }
  .mobile-home-summary > a:hover::after,
  .mobile-home-summary > a:focus-visible::after { opacity: 1; }
  .mobile-home-summary > a:active { transform: scale(.97); }
  .mobile-home-summary small { overflow: hidden; color: #718399; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-home-summary strong { color: #0b2f55; font-size: .9rem; font-weight: 900; white-space: nowrap; }
  .mobile-home-summary-count { color: #718399; font-size: .5rem; font-style: normal; font-weight: 750; line-height: 1.1; }
  .mobile-home-summary > a { background: linear-gradient(180deg,#fff 0%,#fbfdff 100%); }
  .mobile-home-summary > a.status-approved { background: linear-gradient(180deg,#f7fffa 0%,#e4f8ee 100%); }
  .mobile-home-summary > a.status-submitted { background: linear-gradient(180deg,#fffdf8 0%,#fff3df 100%); }
  .mobile-home-summary > a.status-rejected { background: linear-gradient(180deg,#fffafb 0%,#fde7eb 100%); }
  .mobile-home-summary .mobile-home-total strong { font-size: 1.04rem; }
  .mobile-home-summary i { width: 6px; height: 6px; display: inline-block; margin-right: 2px; border-radius: 50%; }
  .summary-approved { background:#24a66b; }
  .summary-submitted { background:#f2a62b; }
  .summary-rejected { background:#e9535c; }
  .mobile-home-readonly { display:flex; align-items:center; gap:6px; margin:8px 2px 0; color:#60788e; font-size:.66rem; }
  .mobile-home-readonly .nav-line-icon { width:15px; height:15px; color:#0f9f91; }
}

@media (max-width: 340px) {
  .mobile-home-menu { gap: 7px; }
  .mobile-home-menu > a { min-height: 94px; padding: 9px; }
  .mobile-home-menu > a > span { width: 40px; height: 40px; }
  .mobile-home-summary > div,
  .mobile-home-summary > a { padding-right: 4px; padding-left: 4px; }
  .mobile-home-summary small { font-size: .5rem; }
  .mobile-home-summary strong { font-size: .82rem; }
}
