/* Compact supplier document listings. Presentation only; existing Vuetable/API behavior is preserved. */
.crm-list-page {
    background: linear-gradient(180deg, #edf6ff 0%, #f5f8fc 42%, #eef4fb 100%);
    margin: -15px;
    min-height: calc(100vh - 72px);
    padding: 10px 14px 16px;
}

.crm-list-page .crm-list-hero {
    align-items: center;
    background: rgba(255,255,255,.94) !important;
    border: 1px solid #d5e0ed !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(18,39,75,.075) !important;
    margin-bottom: 8px !important;
    min-height: 66px;
    padding: 9px 16px !important;
}

.crm-list-page .crm-list-badge {
    background: transparent !important;
    color: #2563eb !important;
    font-size: 10px !important;
    letter-spacing: .08em !important;
    padding: 0 !important;
}

.crm-list-page .crm-list-hero h1 {
    color: #172033 !important;
    font-size: 22px !important;
    line-height: 1.15;
    margin: 4px 0 0 !important;
}

.crm-list-page .crm-list-hero p {
    color: #56657a !important;
    font-size: 12px;
    line-height: 1.35;
    margin: 4px 0 0;
    max-width: 980px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crm-list-page .crm-filter-card {
    background: rgba(255,255,255,.96) !important;
    border: 1px solid #cddbec !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 14px rgba(18,39,75,.06) !important;
    margin-bottom: 8px;
    padding: 9px 12px 3px !important;
}

.crm-list-page .crm-filter-row { row-gap: 7px; }
.crm-list-page .crm-filter-label { color:#516177; font-size:12px; margin-bottom:4px; }
.crm-list-page .crm-filter-input {
    border-color:#cad6e6 !important;
    border-radius:8px !important;
    min-height:34px !important;
    height:34px;
    background:#fff !important;
    font-size:13px;
}

.crm-list-page .crm-data-card {
    border:1px solid #cddbec !important;
    border-radius:12px !important;
    box-shadow:0 20px 46px rgba(18,39,75,.13) !important;
    overflow:hidden;
}

.crm-list-page .crm-data-card .el-card__body { overflow-x:auto; padding:0; }
.crm-list-page .crm-data-card table { min-width:1180px; margin:0; }
.crm-list-page .crm-data-card thead th {
    background:#f7faff !important;
    border-bottom:1px solid #dbe6f2 !important;
    color:#3b4a60 !important;
    font-size:12px !important;
    font-weight:700 !important;
    letter-spacing:.01em;
    padding:12px !important;
    text-transform:none;
}

.crm-list-page .crm-data-card tbody td {
    border-top:1px solid #edf2f7;
    color:#29445c;
    font-size:13px;
    padding:10px 12px;
}

.crm-list-page .crm-data-card tbody tr:hover { background:#f7faff !important; }
.crm-list-page .crm-table-footer {
    align-items:center;
    border-top:1px solid #dbe6f2;
    display:flex;
    justify-content:space-between;
    min-height:42px;
    padding:8px 14px 4px;
}
.crm-list-page .crm-table-hint { background:#fbfdff; border-radius:0; border-top:1px solid #dbe6f2; margin:0; padding:8px 14px; font-size:11px; }

@media (max-width: 767px) {
    .crm-list-page { margin:-15px -10px; padding:8px 8px 12px; }
    .crm-list-page .crm-list-hero h1 { font-size:19px !important; }
    .crm-list-page .crm-list-hero p { display:none; }
    .crm-list-page .crm-table-footer { align-items:flex-start; flex-direction:column; }
}

/* DigitalPurchasing listing structure used by SupplierHub document pages. */
.dp-listing-page.crm-list-page {
    background: linear-gradient(180deg, #edf6ff 0%, #f5f8fc 42%, #eef4fb 100%) !important;
    display: block !important;
    gap: 0 !important;
    margin: 0 !important;
    min-height: calc(100vh - 104px);
    padding: 0 !important;
}

.dp-listing-shell {
    margin: 0 auto;
    max-width: 1760px;
}

.dp-listing-page .dp-listing-hero.crm-list-hero {
    align-items: center !important;
    background: rgba(255,255,255,.92) !important;
    border: 1px solid #d5e0ed !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(18,39,75,.075) !important;
    color: #172033 !important;
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
    min-height: 66px !important;
    padding: 9px 16px !important;
}

.dp-listing-page .dp-listing-eyebrow.crm-list-badge {
    background: transparent !important;
    border-radius: 0 !important;
    color: #2563eb !important;
    display: block !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    margin-bottom: 4px !important;
    padding: 0 !important;
    text-transform: uppercase !important;
}

.dp-listing-page .dp-listing-title {
    color: #172033 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-listing-page .dp-listing-subtitle {
    color: #56657a !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin: 4px 0 0 !important;
    max-width: 980px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-listing-page .dp-listing-kpis {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 7px;
}

.dp-listing-page .dp-listing-kpi {
    background: #fff;
    border: 1px solid #cfdaea;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(18,39,75,.055);
    column-gap: 10px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    min-height: 42px;
    overflow: hidden;
    padding: 6px 10px 6px 11px;
    position: relative;
}

.dp-listing-page .dp-listing-kpi::before {
    background: linear-gradient(180deg,#2563eb,#0ea5a4);
    border-radius: 999px;
    content: "";
    height: 22px;
    left: 0;
    position: absolute;
    top: 10px;
    width: 3px;
}

.dp-listing-page .dp-listing-kpi--attention {
    background: linear-gradient(135deg,#fff 0%,#fff8ed 100%);
    border-color: #f6d5a7;
}

.dp-listing-page .dp-listing-kpi--attention::before {
    background: linear-gradient(180deg,#dc2626,#f59e0b);
}

.dp-listing-page .dp-listing-kpi--info::before {
    background: linear-gradient(180deg,#0f74d8,#38bdf8);
}

.dp-listing-page .dp-listing-kpi--progress::before {
    background: linear-gradient(180deg,#4f46e5,#7c3aed);
}

.dp-listing-page .dp-listing-kpi--success::before {
    background: linear-gradient(180deg,#059669,#22c55e);
}

.dp-listing-page .dp-listing-kpi span {
    color: #5b6b82;
    display: block;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.dp-listing-page .dp-listing-kpi strong {
    align-self: center;
    color: #172033;
    display: block;
    font-size: 19px;
    font-weight: 800;
    grid-column: 2;
    grid-row: 1 / span 2;
    line-height: 1;
}

.dp-listing-page .dp-listing-kpi small {
    color: #7a8798;
    display: block;
    font-size: 9px;
    line-height: 1.15;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-listing-page .dp-listing-toolbar.crm-filter-card {
    background: rgba(255,255,255,.96) !important;
    border: 1px solid #cddbec !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 14px rgba(18,39,75,.06) !important;
    margin-bottom: 8px !important;
    padding: 9px 12px 3px !important;
}

.dp-listing-page .dp-listing-table-card.crm-data-card {
    border: 1px solid #cddbec !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 28px rgba(18,39,75,.10) !important;
    overflow: hidden !important;
}

.dp-listing-page .dp-listing-result-bar {
    align-items: center;
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid #dbe6f2;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 45px;
    padding: 9px 14px;
}

.dp-listing-page .dp-listing-result-bar div {
    align-items: center;
    display: flex;
    gap: 9px;
}

.dp-listing-page .dp-listing-result-bar strong {
    color: #172033;
    font-size: 13px;
}

.dp-listing-page .dp-listing-result-bar span {
    color: #66758b;
    font-size: 11px;
}

.dp-listing-page .dp-listing-result-actions .btn {
    border-radius: 999px;
    box-shadow: none;
    min-height: 30px;
    padding: 4px 12px;
}

.dp-listing-page .crm-table-footer {
    border-top: 1px solid #dbe6f2 !important;
    margin: 0 !important;
    min-height: 42px;
    padding: 8px 14px 4px !important;
}

.dp-listing-page .crm-table-hint {
    background: #fbfdff !important;
    border-radius: 0 !important;
    border-top: 1px solid #dbe6f2 !important;
    color: #607086 !important;
    font-size: 11px !important;
    margin: 0 !important;
    padding: 8px 14px !important;
}

@media (max-width: 900px) {
    .dp-listing-page .dp-listing-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dp-listing-page .dp-listing-kpis {
        grid-template-columns: 1fr;
    }

    .dp-listing-page .dp-listing-result-bar,
    .dp-listing-page .dp-listing-result-bar div {
        align-items: flex-start;
        flex-direction: column;
    }
}
