/* Public "Download documents" dialog (index.php #downloadModal, content from admin/src/tender-fetch.php) */

.dl-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(20, 20, 60, 0.25);
}
.dl-modal .modal-title { font-size: 1.15rem; }
.dl-modal .modal-body { background: #f7f8fc; }

/* Tender summary */
.dl-summary {
    background: #fff;
    border: 1px solid #e6e8f0;
    border-left: 4px solid #1565c0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.dl-tenderno {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1565c0;
}
.dl-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2330;
    margin: 4px 0 8px;
    line-height: 1.4;
}
.dl-dates { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.85rem; color: #5a6072; }
.dl-dates i { color: #1565c0; margin-right: 4px; }

/* Section headings */
.dl-section {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a90a2;
    margin: 18px 2px 8px;
}
.dl-summary + .dl-section { margin-top: 4px; }

/* File cards */
.dl-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e6e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dl-item:hover { border-color: #b6d0f0; box-shadow: 0 4px 14px rgba(21, 101, 192, 0.08); }
.dl-item-main { border-color: #c7dcf5; background: linear-gradient(90deg, #f4f8fe, #fff); }
.dl-item-disabled { opacity: 0.6; }
.dl-item-disabled:hover { border-color: #e6e8f0; box-shadow: none; }

.dl-icon {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #1565c0;
    background: #e8f1fc;
}
.dl-info { flex: 1 1 auto; min-width: 0; }
.dl-name { font-weight: 600; color: #1f2330; line-height: 1.3; word-break: break-word; }
.dl-meta { font-size: 0.82rem; color: #7a8094; margin-top: 2px; }
.dl-note { display: inline-block; margin-left: 6px; color: #2e7d4f; }
.dl-note i { margin-right: 2px; }
.dl-action { flex: 0 0 auto; }

/* Buttons */
.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #1565c0;
    color: #1565c0;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.dl-btn:hover, .dl-btn:focus { background: #1565c0; color: #fff; text-decoration: none; }
.dl-btn-primary { background: #1565c0; color: #fff; }
.dl-btn-primary:hover, .dl-btn-primary:focus { background: #0d47a1; border-color: #0d47a1; color: #fff; }
.dl-na { font-size: 0.82rem; color: #8a90a2; font-style: italic; white-space: nowrap; }

/* Loading / empty / help */
.dl-loading, .dl-empty { text-align: center; padding: 30px 10px; color: #7a8094; }
.dl-loading .spinner-border { color: #1565c0; width: 2rem; height: 2rem; display: block; margin: 0 auto 10px; }
.dl-help { margin-top: 14px; font-size: 0.8rem; color: #8a90a2; text-align: center; }

/* Phones: stack the button under the text */
@media (max-width: 575.98px) {
    .dl-item { flex-wrap: wrap; }
    .dl-action { flex: 1 1 100%; }
    .dl-btn { width: 100%; justify-content: center; }
    .dl-note { display: block; margin: 2px 0 0; }
}
