﻿.ec-admin { max-width: 1500px; margin: 30px auto 60px; }
.ec-admin h2 { font-weight: 800; margin: 0 0 18px; }
.ec-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.ec-toolbar .form-control { height: 36px; border-radius: 8px; width: 280px; }
.ec-kpis { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ec-kpi { flex: 1 1 150px; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 12px 16px; }
.ec-kpi .v { font-size: 22px; font-weight: 800; }
.ec-kpi .l { font-size: 11px; color: #8e8e8e; text-transform: uppercase; letter-spacing: .4px; }
#dvScroll { overflow: auto; max-height: 620px; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.grid-modern { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: auto; }
.grid-modern th { position: sticky; top: 0; z-index: 2; background: #f7f7f8; border-bottom: 1px solid #e5e5e5; padding: 10px 10px; text-align: left; font-weight: 700; }
.grid-modern td { padding: 8px 10px; border-bottom: 1px solid #f1f1f1; vertical-align: middle; overflow-wrap: anywhere; }
.grid-modern td.nowrap, .grid-modern th.nowrap { white-space: nowrap; }
.grid-modern tr:hover td { background: #fafafa; }
.action-cell { white-space: normal; min-width: 250px; max-width: 340px; }
.action-cell a, .cmd-cell a { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; text-decoration: none !important; border: 1px solid transparent; line-height: 1.4; }
.action-cell a.pill-neutral, .cmd-cell a.pill-neutral { background: #f1f1f1; color: #333; border-color: #e3e3e3; }
.action-cell a.pill-neutral:hover, .cmd-cell a.pill-neutral:hover { background: #e3e3e3; color: #0d0d0d; }
.action-cell a.pill-primary, .cmd-cell a.pill-primary { background: #e8f7f2; color: #0e8f6f; border-color: #c9ede1; }
.action-cell a.pill-primary:hover, .cmd-cell a.pill-primary:hover { background: #10a37f; color: #fff; }
.action-cell a.pill-purple, .cmd-cell a.pill-purple { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.action-cell a.pill-purple:hover, .cmd-cell a.pill-purple:hover { background: #6d28d9; color: #fff; }
.action-cell a.pill-warn, .cmd-cell a.pill-warn { background: #fff4e5; color: #b45309; border-color: #fde4c4; }
.action-cell a.pill-warn:hover, .cmd-cell a.pill-warn:hover { background: #f59e0b; color: #fff; }
.action-cell a.pill-danger, .cmd-cell a.pill-danger { background: #fbe9e8; color: #c9302c; border-color: #f5cfcd; }
.action-cell a.pill-danger:hover, .cmd-cell a.pill-danger:hover { background: #d9534f; color: #fff; }
.ec-pill { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ec-pill.on { background: #e8f7f2; color: #0e8f6f; }
.ec-pill.off { background: #fbe9e8; color: #c9302c; }
.ec-pill.admin { background: #ede9fe; color: #6d28d9; }

@media (max-width: 1100px) {
    .grid-modern th:nth-child(1), .grid-modern td:nth-child(1),
    .grid-modern th:nth-child(10), .grid-modern td:nth-child(10),
    .grid-modern th:nth-child(11), .grid-modern td:nth-child(11) { display: none; }
}

/* credit / comp panel */
.ec-credit-panel { background: #fff; border: 1px solid #ddd6fe; border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; }
.ec-credit-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ec-credit-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid #f1f1f1; font-size: 13px; }
.ec-credit-row .lbl { font-weight: 700; min-width: 90px; }
.ec-credit-row .form-control { height: 34px; border-radius: 8px; }
.ec-small { width: 110px !important; display: inline-block; }

.ec-credit-head .pill-close { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f1f1; color: #333; border: 1px solid #e3e3e3; text-decoration: none !important; margin-left: auto; }
.ec-credit-head .pill-close:hover { background: #e3e3e3; color: #0d0d0d; }

/* sortable headers + expandable detail rows */
.grid-modern th a { color: #333; text-decoration: none; }
.grid-modern th a:hover { color: #6d28d9; }
.ec-expander { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; color: #888; font-size: 11px; margin-right: 2px; }
.ec-expander:hover { background: #ede9fe; color: #6d28d9; text-decoration: none; }
tr.is-open td { background: #faf8ff !important; border-bottom: none; }
tr.ec-detail-row td { background: #faf8ff; padding: 6px 14px 14px 44px; border-bottom: 1px solid #e5e5e5; }
.ec-detail { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 22px; font-size: 12.5px; }
.ec-dcell { display: flex; flex-direction: column; }
.ec-dcell .k { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #888; font-weight: 700; }
.ec-dcell .v { color: #222; overflow-wrap: anywhere; }

.btn-ec-purple, .btn-ec-purple:focus { background: #6d28d9; color: #fff !important; border: 1px solid #6d28d9; border-radius: 8px; font-weight: 600; }
.btn-ec-purple:hover { background: #5b21b6; border-color: #5b21b6; color: #fff; }

/* referral fees page */
.ec-pager table { margin: 10px auto; }
.ec-pager a, .ec-pager span { display: inline-block; padding: 3px 10px; margin: 0 2px; border-radius: 6px; border: 1px solid #e3e3e3; text-decoration: none; color: #333; font-size: 12px; }
.ec-pager span { background: #6d28d9; color: #fff; border-color: #6d28d9; font-weight: 700; }
.grid-modern code { background: #f6f6f6; color: #6d28d9; font-weight: 700; }

/* wide grids that should never show a horizontal scrollbar */
/* Hug the content instead of stretching to the page width, so one short row does
   not spread its columns across 1800px. */
.ec-gridwrap { display: block; width: fit-content; max-width: 100%; overflow-x: auto; background: #fff;
               border: 1px solid #e5e5e5; border-radius: 10px; }
.ec-gridwrap .grid-modern { width: auto; min-width: 0; table-layout: auto; }
.ec-gridwrap .grid-modern th, .ec-gridwrap .grid-modern td { padding-left: 7px; padding-right: 7px; }
.ec-gridwrap .grid-modern th, .ec-gridwrap .grid-modern td { white-space: normal; word-break: normal; }
.ec-gridwrap .action-cell { min-width: 0; max-width: none; }

/* green Excel button */
.btn-ec-excel, .btn-ec-excel:focus { background: #1d7044; color: #fff !important; border: 1px solid #1d7044; border-radius: 8px; font-weight: 600; }
.btn-ec-excel:hover { background: #15603a; border-color: #15603a; color: #fff; }

/* inline custom date range */
.ec-inline { display: inline-flex; gap: 6px; align-items: center; }
.ec-date { width: 160px; display: inline-block; }

/* glyph command column (Edit / Save / Cancel / Delete) */
.cmd-cell { white-space: nowrap !important; width: 1%; padding-left: 8px !important; padding-right: 8px !important; }
.cmd-cell a i, .action-cell a i { margin-right: 4px; }
.ec-gridwrap .action-cell, .ec-gridwrap .cmd-cell { white-space: nowrap !important; }


/* Partners grid: pin the action pills into a narrow two-per-row block so the
   text columns (partner name, email, coupon id) keep their width. */
/* Action pills: two stacked per column, columns running left to right.
   Flex column + wrap fills top-to-bottom first, which gives 2 | 2 | 2 | 1. */
.act-stack { width: 452px; white-space: nowrap !important; vertical-align: middle; text-align: left; padding-left: 6px !important; padding-right: 6px !important; }
.pillgrid { display: flex; flex-direction: column; flex-wrap: wrap; max-height: 62px; width: 448px; align-content: flex-start; }
.pillgrid > a, .pillgrid > .pill-warn, .pillgrid > .pill-primary, .pillgrid > .pill-purple, .pillgrid > .pill-neutral, .pillgrid > .pill-danger {
    display: block; width: 106px; box-sizing: border-box; margin: 2px 3px !important;
    text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-gridwrap .grid-modern td.nowrap { white-space: nowrap; }
.ec-gridwrap .grid-modern td { vertical-align: middle; }

/* ---------- drop-down add / edit panel ---------- */
.ec-editpanel { background: #fff; border: 1px solid #d9d9e3; border-left: 4px solid #10a37f; border-radius: 12px; padding: 0 18px 16px; margin: 0 0 18px; box-shadow: 0 6px 20px rgba(10,20,60,.07); }
.ec-editpanel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; border-bottom: 1px solid #eee; margin-bottom: 14px; font-size: 16px; }
.ec-editpanel-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid #eee; }
.ec-linkhint { font-size: 12.5px; color: #777; }
.ec-linkhint code { background: #f6f6f6; color: #6d28d9; font-weight: 700; }

.ec-fieldgroup { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: #8e8e8e; margin: 18px 0 8px; }
.ec-fields { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.ec-fields .fld { display: flex; flex-direction: column; flex: 0 0 200px; }
.ec-fields .fld.narrow { flex-basis: 130px; }
.ec-fields .fld.wide { flex-basis: 300px; }
.ec-fields .fld.wider { flex-basis: 380px; }
.ec-fields .fld.chk { flex-basis: 260px; justify-content: flex-start; padding-top: 22px; }
.ec-fields .fld.full { flex: 1 1 100%; }
.ec-fields label { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.ec-fields .fld.chk label { font-weight: 600; }
.ec-fields .hint { font-size: 11.5px; color: #8e8e8e; margin-top: 4px; line-height: 1.35; }
.ec-fields .form-control { width: 100%; }
.ec-unit { display: flex; align-items: center; gap: 6px; }
.ec-unit .form-control { width: 70px; }
.ec-unit span { font-weight: 700; color: #777; }
.ec-readonly { padding: 7px 0; font-family: Menlo, Consolas, monospace; font-size: 12.5px; color: #6d28d9; font-weight: 700; }

.pill-close { font-size: 12.5px; font-weight: 700; color: #777; text-decoration: none !important; padding: 4px 10px; border-radius: 999px; background: #f1f1f1; }
.pill-close:hover { background: #e3e3e3; color: #0d0d0d; }

@media (max-width: 700px) { .ec-fields .fld, .ec-fields .fld.wide, .ec-fields .fld.wider, .ec-fields .fld.narrow { flex-basis: 100%; } }

.grid-modern th { white-space: nowrap; vertical-align: bottom; line-height: 1.25; }

/* centre the admin pages on the screen */
.ec-admin { display: flex; flex-direction: column; align-items: center; }
.ec-admin > * { max-width: 100%; }
.ec-admin > h2, .ec-admin > h3, .ec-admin > h4 { text-align: center; }
.ec-admin > p { text-align: center; }
.ec-admin .ec-toolbar { justify-content: center; }
.ec-admin .ec-kpis { justify-content: center; }
.ec-gridwrap { margin-left: auto; margin-right: auto; }
.ec-editpanel { margin-left: auto; margin-right: auto; box-sizing: border-box; }

/* partner badge beside a user's name */
.ec-partnertag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
                 letter-spacing: .3px; background: #e8f7f2; color: #0e8f6f; border: 1px solid #c9ede1; text-decoration: none !important; vertical-align: middle; }
.ec-partnertag:hover { background: #10a37f; color: #fff; border-color: #10a37f; }
.ec-partnertag i { margin-right: 3px; }

/* the users grid carries both classes - keep one border, not two */
#dvScroll.ec-gridwrap { border: 1px solid #e5e5e5; }
.ec-admin .ec-editpanel .ec-fields .fld.chk { padding-top: 0; justify-content: center; }
.ec-admin .ec-editpanel .ec-fields .fld.chk .btn { margin-right: 8px; }

/* users grid: let every cell keep its text on one line, and give the row room to breathe */
#dvScroll .grid-modern td, #dvScroll .grid-modern th { white-space: nowrap; }
#dvScroll .grid-modern td.action-cell { white-space: nowrap; }
.ec-pill.admin { margin-left: 4px; }

#dvScroll .grid-modern th, #dvScroll .grid-modern td { padding-left: 7px; padding-right: 7px; }
.pillgrid > a, .pillgrid > .pill-warn, .pillgrid > .pill-primary, .pillgrid > .pill-purple,
.pillgrid > .pill-neutral, .pillgrid > .pill-danger { font-size: 11.5px; padding-left: 7px; padding-right: 7px; }

/* give the admin pages the whole window - Bootstrap's container padding was costing ~60px,
   and the grid may use everything that is left */
.ec-admin.container-fluid { padding-left: 6px; padding-right: 6px; width: 100%; max-width: 100%; }
.ec-admin #dvScroll, .ec-admin .ec-gridwrap { max-width: calc(100vw - 24px); }

/* grids that read better with their headings on one line */
.no-stack .grid-modern th { white-space: nowrap; }

/* icon-only action pills (edit, delete) - same footprint so the pill grid stays even */
.pill-icon { text-align: center !important; }
.pill-icon i { margin: 0 !important; font-size: 13px; }

/* Partner "What you pay them": four even columns with room for one-line labels */
.ec-fields.ec-payfields { gap: 14px 40px; }
.ec-fields .fld.pay { flex: 0 0 210px; }
.ec-fields .fld.pay label { white-space: nowrap; }
@media (max-width: 700px) { .ec-fields .fld.pay { flex-basis: 100%; } }

/* Admin > Users: professionals (grief counselors / hospice) and families who came through their link */
.ec-pill.pro { background: #e0f2fe; color: #0369a1; text-decoration: none; }
.ec-pill.pro:hover { background: #0369a1; color: #fff; text-decoration: none; }
.ec-caretag { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 700; background: #f2fbf8; color: #0e8f6f; border: 1px solid #c9ede1; text-decoration: none; white-space: nowrap; }
.ec-caretag:hover { background: #10a37f; color: #fff; text-decoration: none; }

/* ---- User admin (AdminUsers.aspx): header, filter sidebar, search row, rows that open to show their actions ---- */
.ecu-head { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 14px; }   /* title on top, buttons centered below, like the other admin pages */
.ecu-head h2 { margin: 0 !important; }
.ecu-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ecu-layout { align-self: stretch; width: 100%; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.ecu-side { flex: 1 1 210px; max-width: 230px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 18px; }
.ecu-side-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.ecu-side-head a { font-size: 13px; font-weight: 600; color: #6d28d9; }
.ecu-grp { display: flex; flex-direction: column; gap: 2px; }
.ecu-plans { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid #e5e7eb; padding-top: 16px; }
.ecu-grp-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #4b5563; margin-bottom: 4px; }
.ecu-note { font-size: 12px; color: #4b5563; margin: -2px 0 4px; }
.ecu-opt, .ecu-cbl label { display: flex; align-items: center; gap: 10px; min-height: 32px; margin: 0; font-size: 15px; font-weight: 500; color: #111827; cursor: pointer; }
.ecu-opt .t { flex: 1; }
.ecu-opt input, .ecu-cbl input { width: 17px; height: 17px; margin: 0; accent-color: #10a37f; cursor: pointer; }
.ecu-plans input { accent-color: #7c3aed; }
.ecu-n { font-size: 12px; font-weight: 700; background: #f3f4f6; color: #374151; border-radius: 999px; padding: 1px 8px; }
.ecu-cbl { list-style: none; margin: 0; padding: 0; }
.ecu-cbl li { display: flex; align-items: center; gap: 10px; }
.ecu-cbl label { flex: 1; justify-content: space-between; }
.ecu-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ecu-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ecu-search .form-control { width: 340px; max-width: 100%; height: 40px; border-radius: 10px; }
.ecu-showing { color: #4b5563; font-size: 14px; }
#dvScroll.ecu-gridwrap { width: 100%; max-width: 100%; margin: 0; overflow-x: hidden; overflow-y: auto; max-height: 72vh; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
#dvScroll.ecu-gridwrap .grid-modern { width: 100%; }
#dvScroll.ecu-gridwrap td { white-space: nowrap; }
#dvScroll.ecu-gridwrap td:nth-child(8), #dvScroll.ecu-gridwrap tr.ec-detail-row td { white-space: normal; }   /* only Came from may wrap */
#dvScroll .ec-actcol { display: none !important; }
#dvScroll tr td { cursor: pointer; }   /* rows open on click, open panels close on click */
#dvScroll tr.is-open td { background: #f9fafb; }
.ecu-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 4px 0 12px; }
.ecu-acts.action-cell { min-width: 0; max-width: none; white-space: nowrap; }
.ecu-acts .pillgrid { flex-direction: row; flex-wrap: wrap; max-height: none; width: auto; gap: 4px; }   /* opened row: all actions on one line */
.ecu-acts-lbl { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #4b5563; }

/* ================================================================= Traffic (AdminTraffic.aspx) */
.ect-page .ect-intro { text-align: center; margin: -6px 0 14px; }
.ect-page .ect-chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin: 0 4px; white-space: nowrap; }
.ect-page .ect-chk input { margin: 0; }
.ect-page .ect-period { text-align: center; color: #6b7280; font-size: 13px; margin: -6px 0 14px; }
.ect-err { color: #dc2626; font-weight: 700; text-align: center; margin: 0 0 12px; max-width: 900px; }
.ect-msg { color: #b45309; text-align: center; margin: 0 0 10px; font-weight: 600; }
.ect-muted { color: #9ca3af; }
.ect-empty { padding: 26px; text-align: center; color: #dc2626; font-weight: 700; }
.ect-h { margin: 26px 0 10px; font-weight: 800; }

/* summary cards */
.ect-split { align-self: stretch; width: 100%; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: flex-start; }
.ect-card { flex: 1 1 300px; max-width: 460px; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 12px 14px 10px; }
.ect-card h4 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.ect-card h4 i { color: #6d28d9; }
.ect-mini { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.ect-mini th { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #6b7280; font-weight: 700; padding: 4px 6px; border-bottom: 1px solid #eee; text-align: left; }
.ect-mini th.n { width: 72px; text-align: right; }
.ect-mini td { padding: 5px 6px; border-bottom: 1px solid #f3f4f6; white-space: nowrap; }
.ect-mini td.t { white-space: normal; overflow-wrap: anywhere; }   /* long page names wrap instead of being cut off */
.ect-mini td.n { text-align: right; font-variant-numeric: tabular-nums; }
.ect-more { display: inline-block; font-size: 12.5px; font-weight: 700; margin-top: 8px; color: #6d28d9; }
.ect-more:hover { color: #5b21b6; }
.ect-foot { font-size: 12px; color: #6b7280; margin-top: 8px; }
.ect-card tr.ect-x { display: none; }
.ect-card.all tr.ect-x { display: table-row; }

/* every visitor: fits the page, no sideways scrolling */
.ect-wrap { align-self: stretch; width: 100%; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; overflow-x: hidden; overflow-y: auto; max-height: 78vh; }
.ect-vis { width: 100%; border-collapse: collapse; font-size: 13px; }
.ect-vis th { position: sticky; top: 0; z-index: 1; background: #f9fafb; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #6b7280; font-weight: 700; padding: 9px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; white-space: nowrap; }
.ect-vis th.n, .ect-vis td.n { text-align: right; font-variant-numeric: tabular-nums; }
.ect-vis td { padding: 8px 10px; border-top: 1px solid #f1f1f1; white-space: nowrap; vertical-align: middle; }
.ect-vis td.loc { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.ect-vis td.land { max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: #374151; }
.ect-vis td.did { white-space: normal; min-width: 90px; }
.ect-vis td.tm { color: #374151; }
.ect-vis tr.ect-row { cursor: pointer; }
.ect-vis tr.ect-row:hover td { background: #f8fafc; }
.ect-vis tr.ect-row.open td { background: #eef6ff; }
.ect-vis tr.ect-detail { display: none; }
.ect-vis tr.ect-detail.open { display: table-row; }
.ect-vis tr.ect-detail td { background: #fbfcfe; white-space: normal; border-top: 0; padding: 6px 16px 14px; }
.ect-ip { font-family: Consolas, monospace; font-size: 12px; color: #4b5563; }
.ect-flag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: #fff1f2; color: #be123c; vertical-align: 1px; }
.ect-flag.dc { background: #fff7ed; color: #c2410c; }
.ect-flag.pr { background: #eff6ff; color: #1d4ed8; }
.ect-note { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #f3f0ff; color: #6d28d9; margin: 1px 4px 1px 0; white-space: nowrap; }
.ect-note.su { background: #e8f7f2; color: #0e8f6f; }
.ect-det-who { font-size: 12.5px; color: #374151; margin-bottom: 8px; word-break: break-word; }
.ect-pages { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.ect-pages li { display: flex; gap: 12px; padding: 3px 0; border-bottom: 1px dashed #eef0f3; align-items: baseline; }
.ect-pages li .tm { flex: none; width: 118px; color: #6b7280; font-variant-numeric: tabular-nums; }
.ect-pages li .pg { word-break: break-all; color: #111827; }
.ect-pages li .st.bad { color: #dc2626; font-weight: 800; }
.ect-pages li .ref { color: #6b7280; margin-left: auto; word-break: break-all; text-align: right; }
.ect-pages li.gap { color: #6d28d9; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 0; padding-top: 8px; }

/* source pills */
.ect-src { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.3; }
.ect-src.facebook { background: #e7f0ff; color: #1877f2; }
.ect-src.instagram { background: #fbe6f0; color: #c13584; }
.ect-src.tiktok { background: #111; color: #fff; }
.ect-src.youtube { background: #ffe9e9; color: #e00; }
.ect-src.google { background: #eef3fe; color: #1a56db; }
.ect-src.ads { background: #fef3c7; color: #92400e; }
.ect-src.search { background: #f1f5f9; color: #475569; }
.ect-src.direct { background: #f3f0ff; color: #6d28d9; }
.ect-src.other { background: #fff7e6; color: #b45309; }

/* Browsers over Devices in one column; 404 and 500 lists get the room they need */
.ect-stack { flex: 1 1 300px; max-width: 460px; display: flex; flex-direction: column; gap: 14px; }
.ect-stack .ect-card { flex: none; max-width: none; }
.ect-card.wide { flex: 2 1 520px; max-width: 760px; }
.ect-card.wide.nf { flex: 1.6 1 420px; max-width: 600px; }   /* Not found card gives up width to Pages */
.ect-card.pages { flex: 1.4 1 380px; max-width: 560px; }
.ect-card.wide .ect-mini th.n { width: 110px; }

/* all eight totals on one line */
.ect-page .ect-kpis { flex-wrap: nowrap; align-self: stretch; width: 100%; }
.ect-page .ect-kpis .ec-kpi { flex: 1 1 0; min-width: 0; padding: 10px 12px; }
.ect-page .ect-kpis .ec-kpi .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .ect-page .ect-kpis { flex-wrap: wrap; } .ect-page .ect-kpis .ec-kpi { flex: 1 1 140px; } }

/* sortable headings */
.ect-sort { cursor: pointer; user-select: none; }
.ect-sort:hover { color: #111827; }
.ect-sort.asc::after { content: " \25B2"; font-size: 9px; }
.ect-sort.desc::after { content: " \25BC"; font-size: 9px; }

/* narrower screens: drop the device and first-page columns rather than scroll sideways */
@media (max-width: 1250px) { .ect-vis .md { display: none; } }
@media (max-width: 800px) { .ect-vis td.loc { max-width: 140px; } }

/* ================================================================= Keepsakes (AdminKeepsakes.aspx) */
.eck-wrap { align-self: stretch; width: 100%; overflow-x: hidden; }
.eck-wrap .grid-modern { width: 100%; }
.eck-wrap .grid-modern td { white-space: nowrap; vertical-align: top; }
.eck-st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f3f4f6; color: #4b5563; }
.eck-st.ready, .eck-st.redeemed { background: #e8f7f2; color: #0e8f6f; }
.eck-st.paid, .eck-st.making { background: #eef3fe; color: #1a56db; }
.eck-st.failed { background: #fff1f2; color: #be123c; }
.eck-st.draft { background: #fff7ed; color: #c2410c; }
.eck-err { color: #dc2626; font-size: 12px; white-space: normal; max-width: 320px; margin-top: 4px; }
.eck-acts { display: flex; gap: 6px; }
.eck-empty { color: #dc2626; font-weight: 700; }
.eck-mb30 { margin-bottom: 30px; }
.eck-bold { font-weight: 700; }
.ec-admin .kp-teal { color: #10a37f; }
.ec-admin .kp-violet { color: #6d28d9; }

/* Traffic page icons and labels (moved out of AdminTraffic.aspx) */
.ect-ic-green { color: #10a37f; }
.ect-ic-purple { color: #6d28d9; }
.ect-bold { font-weight: 700; }
.ect-center { text-align: center; margin-bottom: 8px; }

/* Admin > Free samples (moved out of AdminFreeSamples.aspx; scoped to .ecfs) */
.ecfs .ec-split { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.ecfs .ec-kpi.good .v { color: #10a37f; }
.ecfs .ec-kpi.neg .v { color: #dc2626; }
.ecfs .ec-period-label { text-align: center; color: #6b7280; font-size: 13px; margin: -8px 0 14px; }
.ecfs .ec-err { color: #dc2626; font-size: 12px; margin-top: 4px; white-space: normal; min-width: 220px; }
/* Wide grid: headers on one line, room for the sentences */
.ecfs #dvScroll.ec-wide { width: 100%; max-height: 720px; }
.ecfs .ec-wide .grid-modern { min-width: 1500px; font-size: 13.5px; }
.ecfs .ec-wide .grid-modern th { white-space: nowrap; padding: 12px 14px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: #4b5563; }
.ecfs .ec-wide .grid-modern td { padding: 12px 14px; overflow-wrap: normal; vertical-align: top; }
.ecfs .ec-wide .col-typed { white-space: nowrap; }
.ecfs .ec-wide .col-who { font-weight: 700; color: #111827; }
.ecfs .ec-num { font-variant-numeric: tabular-nums; }
.ecfs .ec-set { font-size: 12px; color: #4b5563; white-space: nowrap; }
.ecfs .ec-loc { white-space: nowrap; color: #374151; }
.ecfs .ec-loc i { color: #ef4444; margin-right: 5px; }
.ecfs .ec-ip { font-family: Consolas, monospace; font-size: 12px; color: #6b7280; white-space: nowrap; }
.ecfs .ec-signed { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #e8f7f2; color: #0e8f6f; font-weight: 700; font-size: 12px; text-decoration: none; white-space: nowrap; }
.ecfs .ec-signed:hover { background: #d3f0e6; text-decoration: none; color: #0b7a5f; }
.ecfs .ec-not { color: #9ca3af; font-size: 12.5px; }
/* Source pills */
.ecfs .ec-src { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.3; }
.ecfs .ec-src i { font-size: 13px; }
.ecfs .ec-src.facebook { background: #e7f0ff; color: #1877f2; }
.ecfs .ec-src.instagram { background: linear-gradient(90deg, #fdf0e6, #fbe6f0, #efe8fd); color: #c13584; }
.ecfs .ec-src.tiktok { background: #111; color: #fff; }
.ecfs .ec-src.tiktok i { color: #25f4ee; text-shadow: 1px 1px 0 #fe2c55; }
.ecfs .ec-src.youtube { background: #ffe9e9; color: #e00; }
.ecfs .ec-src.google { background: #eef3fe; color: #1a56db; }
.ecfs .ec-src.google i { background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335); -webkit-background-clip: text; color: transparent; }
.ecfs .ec-src.search { background: #f1f5f9; color: #475569; }
.ecfs .ec-src.direct { background: #f3f0ff; color: #6d28d9; }
.ecfs .ec-src.other { background: #fff7e6; color: #b45309; }
.ecfs .ec-src.unknown { background: #f3f4f6; color: #6b7280; }
.ecfs .ec-said { font-style: italic; color: #4b5563; max-width: none; white-space: normal; margin: 0; padding-left: 18px; }
.ecfs .ec-said li { margin-bottom: 3px; }
/* "What they typed": a small badge; hover (or tap) shows every sentence */
.ecfs .ec-said-ico { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: #f3f0ff; border: 1px solid #ddd6fe; color: #6d28d9; font-weight: 700; font-size: 12.5px; cursor: pointer; user-select: none; }
.ecfs .ec-said-ico:hover, .ecfs .ec-said-ico.on { background: #ede9fe; border-color: #a78bfa; }
.ec-said-tip { position: fixed; z-index: 3000; display: none; max-width: 460px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 14px 40px rgba(17,24,39,.18); padding: 12px 16px 10px; font-size: 13.5px; color: #374151; white-space: normal; }
.ec-said-tip b { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; margin-bottom: 6px; }
.ec-said-tip ol { margin: 0; padding-left: 20px; font-style: italic; }
.ec-said-tip li { margin-bottom: 5px; line-height: 1.4; }
.ecfs { max-width: 100%; padding-left: 10px; padding-right: 10px; }
.ecfs .ecfs-green { color: #10a37f; }
.ecfs .ecfs-purple { color: #6d28d9; }
.ecfs .ecfs-intro { text-align: center; margin-top: -6px; }
.ecfs .ecfs-mt24 { margin-top: 24px; }
.ecfs .ecfs-foot { font-size: 12px; margin-top: 14px; text-align: center; }
.ecfs .ecfs-bold { font-weight: 700; }
.ecfs .ecfs-empty { color: #dc2626; font-weight: 700; }
.ecfs .ec-said-src { display: none; }
.ecfs .ec-dev { white-space: nowrap; color: #374151; }
.ecfs .ec-dev i { margin-right: 6px; color: #6b7280; }
.ecfs .ec-dev.iphone i, .ecfs .ec-dev.mac i { color: #111827; }
.ecfs .ec-dev.android i { color: #3ddc84; }
.ecfs .ec-dev.windows i { color: #0078d4; }
.ecfs .ec-dev-guess { color: #9ca3af; margin-left: 2px; }

/* Traffic grid: browser and device icons */
.ect-vis .ect-ico { width: 18px; margin-right: 7px; text-align: center; font-size: 14px; }
.ect-vis .b-safari { color: #1a8cff; }
.ect-vis .b-chrome { color: #1a73e8; }
.ect-vis .b-edge { color: #0c8ce9; }
.ect-vis .b-firefox { color: #ff7139; }
.ect-vis .b-opera { color: #ff1b2d; }
.ect-vis .b-facebook { color: #1877f2; }
.ect-vis .b-instagram { color: #c13584; }
.ect-vis .b-tiktok { color: #111; }
.ect-vis .b-google { color: #4285f4; }
.ect-vis .b-ddg { color: #de5833; }
.ect-vis .b-samsung { color: #1428a0; }
.ect-vis .b-bot { color: #9ca3af; }
.ect-vis .b-other, .ect-vis .d-other { color: #6b7280; }
.ect-vis .d-apple { color: #111827; }
.ect-vis .d-android { color: #3ddc84; }
.ect-vis .d-windows { color: #0078d4; }
.ect-src.ai, .ecfs .ec-src.ai { background: #e6fbf5; color: #0d7a5f; }
.ect-src.ai .bi, .ecfs .ec-src.ai .bi { color: #111; }
.ect-visfilter { justify-content: center; margin: 4px 0 10px; }

/* Admin > Site questions (moved out of AdminQuestions.aspx; scoped to .ecaq) */
.ecaq .ec-split { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.ecaq .ec-kpi.good .v { color: #10a37f; }
.ecaq .ec-kpi.neg .v { color: #dc2626; }
.ecaq .ec-period-label { text-align: center; color: #6b7280; font-size: 13px; margin: -8px 0 14px; }
.ecaq .ec-err { color: #dc2626; font-size: 12px; margin-top: 4px; white-space: normal; min-width: 220px; }
/* Wide grid: headers on one line, room for the sentences */
.ecaq #dvScroll.ec-wide { width: 100%; max-height: 720px; }
.ecaq .ec-wide .grid-modern { min-width: 1400px; font-size: 13.5px; }
.ecaq .ec-wide .grid-modern th { white-space: nowrap; padding: 12px 14px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: #4b5563; }
.ecaq .ec-wide .grid-modern td { padding: 12px 14px; overflow-wrap: normal; vertical-align: top; }
.ecaq .ec-wide .col-typed { white-space: nowrap; }
.ecaq .ec-wide .col-who { font-weight: 700; color: #111827; }
.ecaq .ec-num { font-variant-numeric: tabular-nums; }
.ecaq .ec-set { font-size: 12px; color: #4b5563; white-space: nowrap; }
.ecaq .ec-loc { white-space: nowrap; color: #374151; }
.ecaq .ec-loc i { color: #ef4444; margin-right: 5px; }
.ecaq .ec-ip { font-family: Consolas, monospace; font-size: 12px; color: #6b7280; white-space: nowrap; }
.ecaq .ec-signed { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #e8f7f2; color: #0e8f6f; font-weight: 700; font-size: 12px; text-decoration: none; white-space: nowrap; }
.ecaq .ec-signed:hover { background: #d3f0e6; text-decoration: none; color: #0b7a5f; }
.ecaq .ec-not { color: #9ca3af; font-size: 12.5px; }
/* Source pills */
.ecaq .ec-src { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.3; }
.ecaq .ec-src i { font-size: 13px; }
.ecaq .ec-src.facebook { background: #e7f0ff; color: #1877f2; }
.ecaq .ec-src.instagram { background: linear-gradient(90deg, #fdf0e6, #fbe6f0, #efe8fd); color: #c13584; }
.ecaq .ec-src.tiktok { background: #111; color: #fff; }
.ecaq .ec-src.tiktok i { color: #25f4ee; text-shadow: 1px 1px 0 #fe2c55; }
.ecaq .ec-src.youtube { background: #ffe9e9; color: #e00; }
.ecaq .ec-src.google { background: #eef3fe; color: #1a56db; }
.ecaq .ec-src.google i { background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335); -webkit-background-clip: text; color: transparent; }
.ecaq .ec-src.search { background: #f1f5f9; color: #475569; }
.ecaq .ec-src.direct { background: #f3f0ff; color: #6d28d9; }
.ecaq .ec-src.other { background: #fff7e6; color: #b45309; }
.ecaq .ec-src.unknown { background: #f3f4f6; color: #6b7280; }
.ecaq .ec-said { font-style: italic; color: #4b5563; max-width: none; white-space: normal; margin: 0; padding-left: 18px; }
.ecaq .ec-said li { margin-bottom: 3px; }
/* "What they typed": a small badge; hover (or tap) shows every sentence */
.ecaq .ec-said-ico { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: #f3f0ff; border: 1px solid #ddd6fe; color: #6d28d9; font-weight: 700; font-size: 12.5px; cursor: pointer; user-select: none; }
.ecaq .ec-said-ico:hover, .ecaq .ec-said-ico.on { background: #ede9fe; border-color: #a78bfa; }
.ecaq .ec-said-tip { position: fixed; z-index: 3000; display: none; max-width: 460px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 14px 40px rgba(17,24,39,.18); padding: 12px 16px 10px; font-size: 13.5px; color: #374151; white-space: normal; }
.ecaq .ec-said-tip b { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; margin-bottom: 6px; }
.ecaq .ec-said-tip ol { margin: 0; padding-left: 20px; font-style: italic; }
.ecaq .ec-said-tip li { margin-bottom: 5px; line-height: 1.4; }
.ecaq .ec-q { font-weight: 600; color: #111827; white-space: normal; min-width: 260px; max-width: 380px; }
.ecaq .ec-a { color: #4b5563; white-space: normal; min-width: 320px; max-width: 480px; font-size: 13px; }
.ecaq .ec-a.more { max-height: 58px; overflow: hidden; position: relative; cursor: pointer; }
.ecaq .ec-a.more:after { content: "more"; position: absolute; right: 0; bottom: 0; background: #fff; color: #6d28d9; font-weight: 700; padding-left: 6px; font-size: 12px; }
.ecaq .ec-askpg { font-family: Consolas, monospace; font-size: 12px; color: #6b7280; white-space: nowrap; }
.ecaq .ec-st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ecaq .ec-st.ok { background: #e8f7f2; color: #0e8f6f; }
.ecaq .ec-st.unanswered { background: #fff7e6; color: #b45309; }
.ecaq .ec-st.crisis { background: #fee2e2; color: #b91c1c; }
.ecaq .ec-st.limited, .ecaq .ec-st.off { background: #f3f4f6; color: #6b7280; }
.ecaq .ec-st.error { background: #fee2e2; color: #dc2626; }
.ecaq tr.row-unanswered td { background: #fffbeb; }
.ecaq tr.row-crisis td { background: #fef2f2; }
.ecaq .ec-tried { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f3f0ff; color: #6d28d9; font-weight: 700; font-size: 12px; white-space: nowrap; }
.ecaq .ec-cost { font-variant-numeric: tabular-nums; color: #374151; white-space: nowrap; }
.ecaq { max-width: 100%; padding-left: 10px; padding-right: 10px; }
.ecaq .ecfs-green { color: #10a37f; }
.ecaq .ecfs-purple { color: #6d28d9; }
.ecaq .ecfs-intro { text-align: center; margin-top: -6px; }
.ecaq .ecfs-mt24 { margin-top: 24px; }
.ecaq .ecfs-foot { font-size: 12px; margin-top: 14px; text-align: center; }
.ecaq .ecfs-bold { font-weight: 700; }
.ecaq .ecfs-empty { color: #dc2626; font-weight: 700; }
.ect-note.eng { background: #eef2ff; color: #3730a3; }
.ect-note.eng.quick { background: #fee2e2; color: #b91c1c; }
.ect-note.eng.go { background: #dcfce7; color: #166534; }

/* ---- robertsoft.com admin pages (standalone, no site menu) ---- */
.rsa-body { background: #f4f6f8; font-family: "Segoe UI", Arial, sans-serif; }
.rsa-top { display: flex; justify-content: space-between; align-items: center; background: #0b3d2e; color: #fff; padding: 10px 18px; }
.rsa-brand { font-weight: 700; font-size: 16px; }
.rsa-brand i { color: #34d399; margin-right: 6px; }
.rsa-out, .rsa-out:hover, .rsa-out:focus { color: #d1fae5; font-weight: 600; text-decoration: none; }
.rsa-signin { max-width: 380px; margin: 80px auto; background: #fff; border-radius: 14px; padding: 0 30px 28px; box-shadow: 0 8px 30px rgba(0,0,0,.08); overflow: hidden; }
.rsa-logo { background: #111111; border-bottom: 3px solid #48bf4f; margin: 0 -30px 20px; padding: 18px 20px; text-align: center; }
.rsa-logo img { width: 236px; max-width: 100%; height: auto; }
.rsa-pw .btn { height: 39px; color: #555; }
.rsa-pw .btn:hover { color: #10a37f; }
.rsa-signin h2 { text-align: center; font-size: 22px; font-weight: 800; margin: 0 0 18px; }
.rsa-signin h2 i { color: #10a37f; }
.rsa-signin label { font-weight: 600; margin-top: 10px; }
.rsa-center { text-align: center; margin-top: 18px; }
.rsa-center .btn { min-width: 140px; }
.rsa-error { background: #fee2e2; color: #b91c1c; border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; font-weight: 600; }

/* Refresh button: same look as EverChat's (Simplex theme's button styling turned off) */
.btn-ec-outline, .btn-ec-outline:focus, .btn-ec-outline:active { background: #fff; background-image: none; border: 1px solid #d0d0d0; color: #0d0d0d; font-weight: 600; border-radius: 8px; text-shadow: none; text-transform: none; box-shadow: none; padding: 6px 14px; font-size: 14px; line-height: 1.42857143; filter: none; }
.btn-ec-outline:hover { background: #f1f1f1; background-image: none; border-color: #d0d0d0; color: #0d0d0d; text-decoration: none; }
.ect-note.pf { background: #f1f5f9; color: #64748b; }
