/**
 * Requests tab visual language, matched to Home / Schedule / Jobs / Clients.
 * Scoped to #tab-requests.requests-2026. Create, convert, and detail
 * behavior stay as-is.
 */

#app-shell .app-main:has(#tab-requests.requests-2026:not(.is-hidden)) {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  background: #eceef1;
}

#app-shell #tab-requests.requests-2026 {
  --req-ink: #1c1f26;
  --req-panel: #ffffff;
  --req-mist: #eceef1;
  --req-paper: #f4f5f7;
  --req-accent: #0369a1;
  --req-accent-hover: #025887;
  --req-line: color-mix(in srgb, var(--req-ink) 10%, transparent);
  --fd-blue: #0369a1;
  --fd-bg: #ffffff;
  --fd-bg-subtle: #ffffff;
  --fd-row-hover: #ffffff;
  --fd-row-selected: #ffffff;
  --font-req-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-req-body: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-req-body);
  color: var(--req-ink);
  background: var(--req-mist);
  min-height: 100%;
}

#app-shell #tab-requests.requests-2026 .requests-2026-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  background: var(--req-mist);
}

#app-shell #tab-requests.requests-2026 .requests-hero {
  background: var(--req-paper);
  color: var(--req-ink);
  margin: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--req-line);
  flex-shrink: 0;
}

@media (min-width: 900px) {
  #app-shell #tab-requests.requests-2026 .requests-hero {
    padding: 1.85rem 2.25rem 1.4rem;
  }
}

@media (max-width: 767px) {
  #app-shell #tab-requests.requests-2026 .requests-hero {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

#app-shell #tab-requests.requests-2026 .requests-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-req-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--req-ink) 45%, transparent);
}

#app-shell #tab-requests.requests-2026 .requests-display {
  margin: 0;
  font-family: var(--font-req-display);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--req-ink);
}

#app-shell #tab-requests.requests-2026 .requests-hero-lead {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--req-ink) 62%, transparent);
}

#app-shell #tab-requests.requests-2026 .requests-hero-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 0.85rem;
  margin-top: 1.15rem;
}

#app-shell #tab-requests.requests-2026 .requests-view-tabs {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.2rem;
  background: var(--req-mist);
  border: 1px solid var(--req-line);
  border-radius: 999px;
}

#app-shell #tab-requests.requests-2026 .requests-filter {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-req-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--req-ink) 50%, transparent);
  background: transparent;
  cursor: pointer;
}

#app-shell #tab-requests.requests-2026 .requests-filter:hover {
  color: var(--req-ink);
  background: rgba(3, 105, 161, 0.08);
}

#app-shell #tab-requests.requests-2026 .requests-filter.is-active,
#app-shell #tab-requests.requests-2026 .requests-filter[aria-selected="true"] {
  background: rgba(3, 105, 161, 0.12);
  color: var(--req-accent);
}

#app-shell #tab-requests.requests-2026 .requests-filter[data-requests-status="new"] {
  color: #b45309;
}

#app-shell #tab-requests.requests-2026 .requests-filter[data-requests-status="new"]:hover {
  background: rgba(180, 83, 9, 0.1);
  color: #92400e;
}

#app-shell #tab-requests.requests-2026 .requests-filter[data-requests-status="new"].is-active,
#app-shell #tab-requests.requests-2026 .requests-filter[data-requests-status="new"][aria-selected="true"] {
  background: #fef3c7;
  color: #b45309;
}

#app-shell #tab-requests.requests-2026 .requests-filter[data-requests-status="converted"] {
  color: #166534;
}

#app-shell #tab-requests.requests-2026 .requests-filter[data-requests-status="converted"]:hover {
  background: rgba(22, 101, 52, 0.1);
  color: #14532d;
}

#app-shell #tab-requests.requests-2026 .requests-filter[data-requests-status="converted"].is-active,
#app-shell #tab-requests.requests-2026 .requests-filter[data-requests-status="converted"][aria-selected="true"] {
  background: #dcfce7;
  color: #166534;
}

#app-shell #tab-requests.requests-2026 .requests-filter-count {
  margin-left: 0.35rem;
  font-size: 0.7rem;
  opacity: 0.7;
}

#app-shell #tab-requests.requests-2026 .requests-add-btn {
  border-radius: 999px;
  font-family: var(--font-req-display);
  font-weight: 700;
  background: var(--req-accent);
  border-color: var(--req-accent);
  transform: none;
}

#app-shell #tab-requests.requests-2026 .requests-add-btn:hover {
  background: var(--req-accent-hover);
  border-color: var(--req-accent-hover);
  transform: none;
}

#app-shell #tab-requests.requests-2026 .requests-2026-body {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
}

@media (min-width: 900px) {
  #app-shell #tab-requests.requests-2026 .requests-2026-body {
    padding: 1.15rem 2.25rem 1.75rem;
  }
}

#app-shell #tab-requests.requests-2026 .jobs-hub {
  flex: 1 1 0;
  min-height: 0;
  border: 1px solid var(--req-line);
  border-top: 1px solid var(--req-line);
  border-radius: 1.15rem;
  background: var(--req-panel);
  box-shadow: none;
  overflow: hidden;
}

#app-shell #tab-requests.requests-2026 .jobs-list-pane {
  background: var(--req-paper);
  border-right-color: var(--req-line);
}

#app-shell #tab-requests.requests-2026 .jobs-list-header {
  display: none;
}

#app-shell #tab-requests.requests-2026 .jobs-list-tools {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.95rem 0.95rem 0.65rem;
  border-bottom: 1px solid var(--req-line);
  background: var(--req-paper);
}

#app-shell #tab-requests.requests-2026 .jobs-list-search {
  width: 100%;
  min-height: 2.5rem;
  border-radius: 999px !important;
  border: 1px solid var(--req-line);
  background: var(--req-panel);
  font-family: var(--font-req-body);
}

#app-shell #tab-requests.requests-2026 .jobs-list-search:focus {
  border-color: var(--req-accent);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.14);
}

#app-shell #tab-requests.requests-2026 .jobs-list-subtitle {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--req-ink) 42%, transparent);
}

#app-shell #tab-requests.requests-2026 .jobs-list {
  padding: 0.45rem 0.5rem 1rem;
  gap: 0.1rem;
  background: var(--req-paper);
}

#app-shell #tab-requests.requests-2026 .records-list-group-label {
  margin: 0.55rem 0.35rem 0.25rem;
  font-family: var(--font-req-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--req-ink) 42%, transparent);
}

#app-shell #tab-requests.requests-2026 .jobs-list-card,
#app-shell #tab-requests.requests-2026 .jobs-list-card:hover,
#app-shell #tab-requests.requests-2026 .jobs-list-card:active,
#app-shell #tab-requests.requests-2026 .jobs-list-card:focus,
#app-shell #tab-requests.requests-2026 .jobs-list-card:focus-visible,
#app-shell #tab-requests.requests-2026 .jobs-list-card.is-selected,
#app-shell #tab-requests.requests-2026 .jobs-list-card.is-selected:hover,
#app-shell #tab-requests.requests-2026 .jobs-list-card.is-selected:active,
#app-shell #tab-requests.requests-2026 .jobs-list-card.is-active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.12rem;
  flex: 0 0 auto;
  position: relative;
  border-radius: 0.85rem;
  padding: 0.75rem 0.8rem 0.75rem 0.9rem;
  background: var(--req-panel) !important;
  -webkit-tap-highlight-color: transparent;
}

#app-shell #tab-requests.requests-2026 .jobs-list-card.is-selected,
#app-shell #tab-requests.requests-2026 .jobs-list-card.is-active {
  border-left-color: transparent !important;
  box-shadow: 0 0 0 1px var(--req-line);
}

#app-shell #tab-requests.requests-2026 .jobs-list-card.is-selected::before,
#app-shell #tab-requests.requests-2026 .jobs-list-card.is-active::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: 0.2rem;
  width: 3px !important;
  border-radius: 999px;
  background: var(--req-accent) !important;
}

#app-shell #tab-requests.requests-2026 .jobs-list-card-title {
  font-family: var(--font-req-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

#app-shell #tab-requests.requests-2026 .jobs-list-card-client {
  display: block;
  color: color-mix(in srgb, var(--req-ink) 58%, transparent);
  font-size: 0.8125rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app-shell #tab-requests.requests-2026 .jobs-list-card-meta {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--req-ink) 55%, transparent);
}

#app-shell #tab-requests.requests-2026 .requests-list-flag {
  display: inline-flex;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-family: var(--font-req-display);
  font-size: 0.68rem;
  font-weight: 700;
}

#app-shell #tab-requests.requests-2026 .requests-list-flag--done {
  background: #dcfce7;
  color: #166534;
}

#app-shell #tab-requests.requests-2026 .requests-list-flag--awaiting {
  background: #fef3c7;
  color: #b45309;
}

#app-shell #tab-requests.requests-2026 .requests-list-flag--scheduled {
  background: #dbeafe;
  color: #1d4ed8;
}

#app-shell #tab-requests.requests-2026 .jobs-list-empty {
  margin: 1rem 0.75rem;
  color: color-mix(in srgb, var(--req-ink) 55%, transparent);
}

#app-shell #tab-requests.requests-2026 .jobs-detail-pane {
  background: var(--req-panel);
  padding: 1.1rem 1.25rem 1.5rem;
}

#app-shell #tab-requests.requests-2026 .jobs-detail-empty {
  border: 1px dashed var(--req-line);
  border-radius: 1rem;
  background: var(--req-paper);
  box-shadow: none;
}

#app-shell #tab-requests.requests-2026 .jobs-detail-empty-title,
#app-shell #tab-requests.requests-2026 .hub-form-section-title {
  font-family: var(--font-req-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--req-ink);
}

#app-shell #tab-requests.requests-2026 .hub-form--embedded,
#app-shell #tab-requests.requests-2026 .portal-detail,
#app-shell #tab-requests.requests-2026 .detail-card {
  border: none;
  box-shadow: none;
  background: transparent;
}

#app-shell #tab-requests.requests-2026 .jobs-hub .btn-primary,
#app-shell #tab-requests.requests-2026 .jobs-hub .btn-secondary {
  border-radius: 999px;
  font-family: var(--font-req-display);
  font-weight: 600;
  transform: none;
}

#app-shell #tab-requests.requests-2026 .jobs-hub .btn-primary {
  background: var(--req-accent);
  border-color: var(--req-accent);
}

@media (max-width: 767px) {
  #app-shell #tab-requests.requests-2026 .requests-2026-body {
    padding: 0.85rem 1.15rem 1.25rem;
  }

  #app-shell #tab-requests.requests-2026 .requests-2026-page,
  #app-shell #tab-requests.requests-2026 .requests-2026-body,
  #app-shell #tab-requests.requests-2026 .jobs-hub {
    flex: none;
    min-height: auto;
    overflow: visible;
  }
}
