/* EASE home mobile entry points. Keep this file scoped to the home page. */
@media screen and (max-width: 430px) {
  body[data-page="home"] .home-primary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="home"] .home-primary-actions .home-primary-action,
  body[data-page="home"] .home-primary-actions .home-secondary-action {
    min-height: 64px;
    padding: 14px;
  }

  body[data-page="home"] .home-primary-actions .home-order-action {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 60px;
    padding: 15px 18px;
    border-color: color-mix(in srgb, var(--accent, #245a43) 42%, var(--line));
    background: var(--accent-soft);
  }

  body[data-page="home"] .home-primary-actions .home-primary-action {
    grid-column: 1;
    grid-row: 2;
  }

  body[data-page="home"] .home-primary-actions .home-secondary-action:not(.home-order-action) {
    grid-column: 2;
    grid-row: 2;
  }

  body[data-page="home"] .home-primary-actions .home-primary-action strong,
  body[data-page="home"] .home-primary-actions .home-secondary-action strong {
    font-size: 16px;
  }

  body[data-page="home"] .home-primary-actions .home-order-action strong {
    font-size: 18px;
  }

}

body[data-page="home"] .home-account-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

.home-account-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
}

#homeAccountEmail { overflow-wrap: anywhere; min-width: 0; }
.home-account-trigger svg { width: 16px; height: 16px; flex: none; }
.home-account-trigger svg, .home-icon-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.home-account-dropdown {
  position: fixed;
  z-index: 120;
  display: grid;
  width: 220px;
  max-width: calc(100vw - 20px);
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  box-shadow: 0 12px 32px rgba(21, 33, 29, 0.16);
}

.home-account-dropdown[hidden], .home-account-dropdown [hidden] { display: none; }
.home-account-dropdown > a, .home-account-dropdown > button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
}
.home-account-dropdown > a:hover, .home-account-dropdown > button:hover,
.home-account-dropdown > a:focus-visible, .home-account-dropdown > button:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.home-recent-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.home-recent-header .home-status-filters { flex: 1; min-width: 0; margin: 0; }
.home-list-tools { display: flex; flex: none; justify-content: flex-end; gap: 6px; }
.home-list-tools .home-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px;
  border-radius: 12px;
}
.home-icon-button svg { width: 22px; height: 22px; }
.home-version { padding: 0 4px; color: var(--muted); text-align: right; }
.home-version small { font-size: 11px; }

@media screen and (min-width: 431px) {
  body[data-page="home"] .home-primary-action,
  body[data-page="home"] .home-secondary-action { min-height: 76px; padding: 18px 22px; }
}
@media screen and (max-width: 640px) {
  .home-recent-header { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .home-recent-header .home-status-filters { flex: auto; }
}

.home-customer-folder{border:1px solid #dce2e8;border-radius:14px;background:#fff;overflow:hidden}.home-customer-folder summary{display:flex;gap:22px;justify-content:space-between;align-items:center;padding:20px;cursor:pointer;list-style:none}.home-customer-folder summary>div{display:grid;gap:6px}.home-customer-folder summary strong{font-size:20px}.home-customer-folder summary small{font-size:14px;color:#657082;overflow-wrap:anywhere}.home-folder-meta{text-align:right;min-width:180px}.home-folder-content{padding:0 18px 16px;border-top:1px solid #e6e9ee}.home-folder-links{display:flex;gap:12px;padding:14px 0}.home-folder-links a{padding:10px 14px;border:1px solid #dce2e8;border-radius:9px;text-decoration:none}.home-folder-estimate{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #e6e9ee;padding:15px 0;text-decoration:none;color:inherit}.home-folder-estimate>span:first-child{flex:1;overflow-wrap:anywhere}.home-folder-estimate b{display:block;margin-bottom:5px}
@media(max-width:640px){.home-customer-folder summary{flex-direction:column;align-items:stretch;padding:16px;gap:12px}.home-folder-meta{text-align:left;min-width:0;grid-template-columns:1fr 1fr}.home-folder-meta small{grid-column:1/-1}.home-folder-estimate{flex-wrap:wrap;gap:10px}.home-folder-estimate>span:first-child{flex-basis:100%}.home-folder-links a{font-size:14px}}
