/* Customer dashboard (dashboard.aspx): same panel style as the news feed (style/news.css) */
.db { --ink:#2b2b38; --muted:#7a8195; --line:#eceff4; --brand:#3639a4; --blue:#3c9cf0; --soft:#f6f7fb; --ok:#1f8f53;
      background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 28px rgba(54,57,164,.06); overflow: hidden; font-family: 'poppins', system-ui, sans-serif; margin-bottom: 40px; }
.db *, .db *::before, .db *::after { box-sizing: border-box; }

.db-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 26px 18px; }
.db-title { display: flex; align-items: center; gap: 14px; }
.db-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px 13px 0 13px; background: var(--brand); display: grid; place-items: center; }
.db-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.db-title h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--ink); }
.db-title p { margin: 2px 0 0; font-size: 13px; color: var(--muted); max-width: 560px; }
.db-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 12px; background: var(--brand); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.db-cta:hover { background: #2c2f8f; }

/* Tabs (the three tiles) */
.db-bar { padding: 0 26px; border-bottom: 1px solid var(--line); }
.db-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0; }
.db-tabs::-webkit-scrollbar { display: none; }
.db .db-tabs .dashStat { position: relative; display: inline-flex; flex-direction: row; align-items: center; gap: 8px; flex: 0 0 auto; width: auto; min-height: 0; padding: 12px 12px 14px; margin: 0;
      background: none; border: 0; border-radius: 0; box-shadow: none; text-decoration: none; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.db .db-tabs .dashStat:hover { color: var(--brand); transform: none; box-shadow: none; }
.db .db-tabs .dashStat .dashStatLabel { font-size: 13.5px; color: inherit; margin: 0; }
.db .db-tabs .dashStat .dashStatNum { font-size: 11.5px; font-weight: 600; line-height: 1.6; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 0 8px; margin: 0; }
.db .db-tabs .dashStat.is-active { color: var(--brand); font-weight: 600; border: 0; }
.db .db-tabs .dashStat.is-active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.db .db-tabs .dashStat.is-active .dashStatNum { color: var(--brand); background: #eef0ff; }

.db-filter { margin: 0; padding: 10px 26px; font-size: 13px; color: var(--muted); background: #fafbfe; border-bottom: 1px solid var(--line); }
.db-filter a { color: var(--brand); font-weight: 600; margin-left: 6px; }

/* List: the GridView renders a table; make it a plain list of cards */
.db-list { padding: 14px 20px 6px; background: var(--soft); }
.db-list table.dashRequests, .db-list table.dashRequests tbody, .db-list table.dashRequests tr, .db-list table.dashRequests td { display: block; width: 100%; border: 0; padding: 0; background: none; }
.db-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-left: 3px solid #cfd6e4; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; transition: border-color .15s, box-shadow .15s; }
.db-item:hover { border-color: #d5dcf0; box-shadow: 0 6px 18px rgba(54,57,164,.07); }
.db-item.is-answered { border-left-color: #2bb673; }
.db-item.is-new { border-left-color: var(--blue); }
.db-item.is-pending { border-left-color: #e0a100; }

.db-thumb a, .db-nophoto { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.db-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.db-nophoto svg { width: 22px; height: 22px; fill: none; stroke: #b2b9c8; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.db-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.db-status { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; color: #8a6400; background: #fdf3d8; }
.is-answered .db-status { color: var(--ok); background: #e4f8ed; }
.is-new .db-status { color: var(--blue); background: #e6f3fe; }
.db-style { font-size: 12.5px; color: var(--muted); }
.db-style b { color: var(--ink); font-weight: 600; }
.db-date { font-size: 12px; color: #a0a6b4; }
.db-date::before { content: '\00b7'; margin-right: 8px; color: #c3c8d4; }

.db-q { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.db-a { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f5f8fd; border: 1px solid #e6edf8; }
.db-a > span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.db-a p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #464a53; }
.db-a .reqWaiting { color: var(--muted); font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13.5px; }

.db .db-remove { border: 1px solid var(--line); background: #fff; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 9px; cursor: pointer; width: auto; height: auto; margin: 0; box-shadow: none; text-decoration: none; }
.db .db-remove:hover { color: #c0392b; border-color: #f0c9c4; background: #fff6f5; }

.db-empty { text-align: center; padding: 36px 20px 30px; }
.db-empty-ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: #eef0ff; display: grid; place-items: center; }
.db-empty-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.db-empty h3 { margin: 0; font-size: 17px; color: var(--ink); }
.db-empty p { margin: 6px auto 16px; max-width: 460px; font-size: 13.5px; color: var(--muted); }
.db-steps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.db-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; }
.db-steps li span { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }

@media (max-width: 640px) {
  .db { border-radius: 16px; }
  .db-head { padding: 18px 16px 14px; }
  .db-cta { width: 100%; justify-content: center; }
  .db-bar { padding: 0 8px; }
  .db-list { padding: 10px 10px 4px; }
  .db-item { grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; }
  .db-thumb a, .db-nophoto { width: 44px; height: 44px; }
  .db-act { grid-column: 2; }
}

/* Beat the older dashboard rules in dev.css */
.db .db-tabs.dashStats { gap: 4px; margin: 0; flex-wrap: nowrap; }
.db .db-tabs .dashStat { max-width: none; flex: 0 0 auto; transition: color .15s; }
.db .db-tabs .dashStat .dashStatNum { display: inline-block; }
.db .db-tabs .dashStat.is-active .dashStatLabel { color: var(--brand); font-weight: 600; }
.db .db-filter.dashFilter { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fafbfe; margin: 0; padding: 10px 26px; font-size: 13px; color: var(--muted); }
.db-list .dashRequests td { padding: 0 !important; }

/* Status shows as a pill with a dot (same as the engineer board), no colored left edge */
.db-item, .db-item.is-answered, .db-item.is-new, .db-item.is-pending { border-left: 1px solid var(--line); }
.db-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; }
.db-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
