/* Zemhan Mobile SaaS v20 */
.mobile-saas-dashboard,
.saas-menu-page { display: grid; gap: 18px; }
.dashboard-content > .crm-summary,
.dashboard-content > .upcoming-alerts,
.dashboard-content > .organization-list-card { display: none; }
.saas-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.saas-kpi {
  display: grid;
  align-content: space-between;
  min-height: 106px;
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 17px;
  padding: 15px;
  box-shadow: 0 8px 25px #11182709;
}
.saas-kpi span {
  color: #7b8492;
  font-size: 10px;
  font-weight: 700;
}
.saas-kpi strong {
  color: #111318;
  letter-spacing: -.6px;
  font-size: 21px;
}
.saas-kpi.primary { color: #fff; background: #17191e; border-color: #17191e; }
.saas-kpi.primary span { color: #aeb3bd; }
.saas-kpi.primary strong { color: #fff; }
.saas-kpi.profit { background: #edf8f3; border-color: #dcefe6; }
.saas-kpi.profit strong { color: #247657; }
.saas-kpi.warning { background: #fff8ea; border-color: #f5ead4; }
.saas-kpi.warning strong { color: #9b6b1e; }
.saas-kpi.danger strong { color: #b44949; }
.saas-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3px 1px -7px;
}
.saas-section-head h2 {
  color: #121419;
  margin: 0;
  font-size: 18px;
  letter-spacing: -.4px;
}
.saas-section-head span,
.saas-section-head a {
  color: #7c8491;
  font-size: 10px;
  text-decoration: none;
}
.today-job-list,
.upcoming-saas-list { display: grid; gap: 8px; }
.today-job-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 16px;
  padding: 13px;
  box-shadow: 0 7px 20px #11182707;
  cursor: pointer;
}
.today-job-time {
  display: grid;
  place-items: center;
  align-self: stretch;
  background: #f1f3f5;
  border-radius: 11px;
  padding: 8px 4px;
}
.today-job-time strong { color: #111318; font-size: 15px; }
.today-job-time small { color: #8b929d; font-size: 8px; }
.today-job-copy { display: grid; gap: 3px; min-width: 0; }
.today-job-copy strong { color: #15171b; font-size: 13px; }
.today-job-copy span { color: #565e6b; font-size: 10px; }
.today-job-copy small { color: #9299a4; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-job-payment { display: grid; justify-items: end; gap: 3px; }
.today-job-payment span { color: #969da8; font-size: 8px; }
.today-job-payment b { color: #a06d22; font-size: 11px; white-space: nowrap; }
.today-empty {
  color: #858d98;
  background: #fff;
  border: 1px dashed #d8dde4;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  font-size: 11px;
}
.upcoming-saas-list article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  background: #fff;
  border-bottom: 1px solid #eceff3;
  padding: 11px 12px;
}
.upcoming-saas-list article:first-child { border-radius: 15px 15px 0 0; }
.upcoming-saas-list article:last-child { border: 0; border-radius: 0 0 15px 15px; }
.upcoming-saas-list time { color: #22252b; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.upcoming-saas-list div { display: grid; gap: 3px; }
.upcoming-saas-list strong { color: #181a1f; font-size: 12px; }
.upcoming-saas-list span { color: #8a929e; font-size: 9px; }
.upcoming-saas-list article > b { color: #8a642d; background: #fff5e4; border-radius: 999px; padding: 6px 8px; font-size: 8px; }
.saas-menu-page > header {
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 18px;
  padding: 20px;
}
.saas-menu-page header p { color: #8a919d; letter-spacing: 1.3px; margin: 0 0 5px; font-size: 8px; font-weight: 900; }
.saas-menu-page header h2 { color: #14161b; margin: 0 0 5px; font-size: 24px; letter-spacing: -.8px; }
.saas-menu-page header span { color: #858d99; font-size: 11px; }
.saas-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.saas-menu-grid a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  color: inherit;
  background: #fff;
  border: 1px solid #e7eaef;
  border-radius: 15px;
  padding: 11px;
  text-decoration: none;
  box-shadow: 0 7px 20px #11182707;
}
.saas-menu-grid i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #1d2026;
  border-radius: 11px;
  font-size: 17px;
  font-style: normal;
}
.saas-menu-grid div { display: grid; gap: 3px; min-width: 0; }
.saas-menu-grid strong { color: #181a1f; font-size: 12px; }
.saas-menu-grid span { color: #8a929e; font-size: 8px; line-height: 1.3; }
.saas-menu-grid b { color: #b4bac3; }

@media (max-width: 760px) {
  :root { color-scheme: light; }
  html, body { background: #f4f5f7 !important; }
  body { color: #15171b; background-image: none !important; }
  .crm-shell { background: #f4f5f7; }
  .crm-sidebar {
    height: 58px;
    color: #111318;
    background: #ffffffed !important;
    border-bottom: 1px solid #e7e9ed;
    box-shadow: 0 5px 18px #11182708;
  }
  .crm-brand { height: 58px; }
  .crm-brand img { width: 35px; height: 35px; }
  .crm-brand > div strong { color: #111318; }
  .crm-brand > div small { color: #8b929c; }
  .crm-main { padding: 13px 12px 104px; }
  .crm-topbar { padding: 5px 1px 10px; }
  .crm-eyebrow { color: #8d949e; letter-spacing: 1.1px; font-size: 7px; }
  .crm-topbar h1 { color: #111318; font-size: 25px; letter-spacing: -.9px; }
  .crm-topbar p { color: #8a919b; }
  .mobile-top-actions a,
  .mobile-top-actions button {
    color: #24272d;
    background: #fff;
    border: 1px solid #e4e7eb;
    box-shadow: 0 5px 15px #11182708;
  }
  .crm-tabs { display: none; }
  .saas-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .saas-kpi { min-height: 89px; border-radius: 15px; padding: 12px; }
  .saas-kpi span { font-size: 9px; }
  .saas-kpi strong { font-size: clamp(16px, 5.1vw, 21px); }
  .mobile-bottom-nav,
  .mobile-bottom-nav.with-admin {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: calc(100% - 18px);
    max-width: 430px;
    height: 67px;
    right: auto;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    color: #7b828d;
    background: #fffffff2 !important;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 5px 4px;
    box-shadow: 0 14px 40px #1118271c;
    backdrop-filter: blur(20px);
  }
  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    display: grid !important;
    width: 100%;
    place-items: center;
    align-content: center;
    justify-self: stretch;
    gap: 3px;
    min-width: 0;
    color: #858c97;
    background: transparent;
    border: 0;
  }
  .mobile-bottom-nav > :nth-child(6),
  .mobile-bottom-nav > :nth-child(7) {
    display: grid !important;
  }
  .mobile-bottom-nav span { display: grid; place-items: center; width: 30px; height: 27px; }
  .mobile-bottom-nav svg { width: 18px; height: 18px; stroke-width: 1.8px; }
  .mobile-bottom-nav small,
  .mobile-bottom-nav.with-admin small { color: inherit; font-size: 7.5px; font-weight: 700; }
  .mobile-bottom-nav .mobile-add { transform: translateY(-13px); }
  .mobile-bottom-nav .mobile-add span {
    width: 48px;
    height: 48px;
    color: #fff;
    background: #17191e;
    border: 4px solid #f4f5f7;
    border-radius: 16px;
    box-shadow: 0 10px 24px #11182730;
  }
  .mobile-bottom-nav .mobile-add small { color: #262930; }
  .menu-dots { letter-spacing: 2px; font-size: 11px; font-weight: 900; }
  .saas-menu-grid { grid-template-columns: 1fr; }
  .today-job-list article { grid-template-columns: 54px minmax(0, 1fr) auto; }
}
@media (max-width: 370px) {
  .crm-main { padding-right: 9px; padding-left: 9px; }
  .today-job-list article { grid-template-columns: 49px minmax(0, 1fr); }
  .today-job-payment { grid-column: 2; justify-items: start; }
}
