/* Proposals pages (list + section editor + the public share view). Complements
   dotleads.css with the dl-pr- prefix so nothing here can collide with the shared
   design system. */

/* ---------- list: filter bar ---------- */

.dl-pr-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.dl-pr-filters .dl-select,
.dl-pr-filters .dl-input { width: auto; min-width: 150px; flex: 0 1 auto; }

.dl-pr-search {
    position: relative;
    flex: 1 1 240px;
    min-width: 200px;
}

.dl-pr-search > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    pointer-events: none;
}

.dl-pr-search .dl-input { width: 100%; padding-left: 34px; }

/* ---------- list: table ---------- */

.dl-pr-tablehead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dl-pr-tablewrap { overflow-x: auto; }

.dl-pr-actions-col { width: 1%; white-space: nowrap; }

.dl-pr-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 34px 12px;
    color: var(--text-muted);
    font-size: .88rem;
}

.dl-pr-title-link { font-weight: 600; color: var(--text-strong); }

.dl-pr-title-link:hover { color: var(--emerald); }

.dl-pr-sub { font-size: .74rem; color: var(--text-faint); }

.dl-pr-none { color: var(--text-faint); }

/* Shared / viewed tracking icons in the list. */
.dl-pr-track-chips { display: inline-flex; gap: 6px; align-items: center; }

.dl-pr-track-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--hairline-strong);
    background: var(--hover-bg);
    color: var(--text-muted);
    white-space: nowrap;
}

.dl-pr-track-chip.on { color: var(--emerald); border-color: rgba(34, 197, 94, .3); }

.dl-pr-rowacts { display: inline-flex; gap: 2px; }

/* ---------- list: pager ---------- */

.dl-pr-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.dl-pr-pageinfo { font-size: .8rem; color: var(--text-muted); }

.dl-pr-pagebtns { display: flex; gap: 8px; }

/* ---------- editor: header ---------- */

.dl-pr-head {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
}

.dl-pr-headmain { flex: 1 1 340px; min-width: 0; }

.dl-pr-headline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.dl-pr-title-input {
    font-family: var(--nav-font);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-strong);
}

.dl-pr-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.dl-pr-meta a { color: var(--emerald); }

.dl-pr-headfields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.dl-pr-headfields .dl-field { margin-bottom: 0; min-width: 150px; }

.dl-pr-saverow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dl-pr-dirty {
    font-size: .78rem;
    color: var(--status-warn-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- editor: timestamps strip ---------- */

.dl-pr-track {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dl-pr-stamp {
    flex: 1 1 160px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--surface-color);
}

.dl-pr-stamp .l {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-faint);
    margin: 0;
}

.dl-pr-stamp .v {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-strong);
    margin: 4px 0 0;
}

.dl-pr-stamp .v i { color: var(--emerald); margin-right: 4px; }

.dl-pr-stamp.pending .v { color: var(--text-faint); font-weight: 500; }

/* ---------- editor: sections ---------- */

.dl-pr-section {
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    background: var(--surface-color);
}

.dl-pr-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dl-pr-section-num {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(34, 197, 94, .12);
    color: var(--emerald);
    font-family: var(--nav-font);
    font-weight: 700;
    font-size: .78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dl-pr-section-head .dl-input { flex: 1; min-width: 0; font-weight: 600; }

.dl-pr-section-acts { display: inline-flex; gap: 2px; flex-shrink: 0; }

.dl-pr-section textarea { resize: vertical; min-height: 96px; }

.dl-pr-hint { font-size: .78rem; color: var(--text-faint); margin: 4px 0 0; }

.dl-pr-accepted {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid rgba(34, 197, 94, .3);
    border-radius: 11px;
    font-size: .83rem;
    color: var(--text-soft);
}

.dl-pr-accepted i { color: var(--emerald); font-size: 1.05rem; }

.dl-pr-accepted a { color: var(--emerald); }

/* ---------- public share view ---------- */

.dl-pr-public-title {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--text-strong);
    margin: 26px 0 10px;
}

.dl-pr-public-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: .84rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.dl-pr-public-meta i { color: var(--emerald); margin-right: 5px; }

.dl-pr-public-download { margin-bottom: 18px; }

.dl-pr-public-body {
    font-size: .93rem;
    color: var(--text-soft);
    line-height: 1.65;
    margin: 0 0 10px;
}

.dl-pr-public-body:last-child { margin-bottom: 0; }

.dl-pr-public-amount {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    padding: 18px 20px;
    border-left: 3px solid var(--accent-color);
    border-radius: 12px;
    background: var(--hover-bg);
}

.dl-pr-public-amount .l {
    font-family: var(--nav-font);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-strong);
    margin: 0;
}

.dl-pr-public-amount .s { font-size: .8rem; color: var(--text-muted); margin: 3px 0 0; }

.dl-pr-public-amount .v {
    font-family: var(--nav-font);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-strong);
    margin: 0;
}

.dl-pr-public-cta { font-size: .88rem; color: var(--text-soft); margin: 0 0 12px; }

@media (max-width: 575px) {
    .dl-pr-headfields { width: 100%; }
    .dl-pr-headfields .dl-field { flex: 1 1 100%; }
    .dl-pr-public-title { font-size: 1.4rem; }
}
