/* ===================================
   Tenders — Full Table [tenders_list]
   =================================== */

.tdl-wrap {
    font-family: 'DM Sans', -apple-system, sans-serif;
    width: 100%;
}

.tdl-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tdl-search {
    flex: 1;
    min-width: 200px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 13px;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.tdl-search:focus {
    border-color: #0056b3;
}

.tdl-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
}

.tdl-tab {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    transition: all 0.15s;
}

.tdl-tab.active {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.tdl-count {
    font-size: 12px;
    color: #94a3b8;
    margin-left: auto;
    white-space: nowrap;
}

.tdl-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.tdl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.tdl-table th {
    background: #f8fafc;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tdl-table th.col-ref    { width: 17%; }
.tdl-table th.col-title  { width: 33%; }
.tdl-table th.col-issuer { width: 17%; }
.tdl-table th.col-loc    { width: 13%; }
.tdl-table th.col-date   { width: 11%; }
.tdl-table th.col-doc    { width: 9%;  text-align: center; }

.tdl-table td {
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    color: #1a1a1a;
    overflow: hidden;
}

.tdl-table tbody tr:last-child td {
    border-bottom: none;
}

.tdl-table tbody tr:hover td {
    background: #f8fafc;
}

.tdl-ref {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 5px;
}

.tdl-badge-wrap {
    margin-top: 2px;
}

.tdl-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tdl-badge-open   { background: #dcfce7; color: #166534; }
.tdl-badge-soon   { background: #fef9c3; color: #854d0e; }
.tdl-badge-closed { background: #fee2e2; color: #991b1b; }

.tdl-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.35;
}

.tdl-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.tdl-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.tdl-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.45;
}

.tdl-issuer   { font-size: 12px; color: #334155; }
.tdl-location { font-size: 12px; color: #64748b; }
.tdl-date     { font-size: 12px; color: #334155; white-space: nowrap; }

.tdl-doc-cell {
    text-align: center;
}

.tdl-btn {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: #1a1a2e;
    color: #ffffff !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.tdl-btn:hover {
    background: #0056b3;
}

.tdl-btn-closed {
    background: #94a3b8;
}

.tdl-btn-closed:hover {
    background: #64748b;
}

.tdl-no-doc {
    font-size: 13px;
    color: #cbd5e1;
}

.tdl-empty {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 13px;
}

.tdl-footer {
    padding: 12px 16px;
    text-align: right;
    border-top: 1px solid #f1f5f9;
}

.tdl-result-count {
    font-size: 12px;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .tdl-table-wrap {
        overflow-x: auto;
    }
    .tdl-table {
        min-width: 640px;
    }
    .tdl-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .tdl-count {
        margin-left: 0;
    }
}

/* ===================================
   Tenders — Preview Strip [tenders_preview]
   =================================== */

.tdp-wrap {
    font-family: 'DM Sans', -apple-system, sans-serif;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.tdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tdp-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tdp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.tdp-header-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.tdp-header-count {
    font-size: 12px;
    color: #94a3b8;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 2px 8px;
}

.tdp-header-link {
    font-size: 12px;
    font-weight: 500;
    color: #0056b3;
    text-decoration: none;
}

.tdp-header-link:hover {
    text-decoration: underline;
}

.tdp-row {
    display: grid;
    grid-template-columns: 150px 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.15s;
}

.tdp-row:last-of-type {
    border-bottom: none;
}

.tdp-row:hover {
    background: #f8fafc;
}

.tdp-row *,
.tdp-row *:hover {
    text-decoration: none !important;
    color: inherit;
}

.tdp-ref {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: #64748b;
    line-height: 1.4;
}

.tdp-title {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
}

.tdp-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.tdp-badge-open { background: #dcfce7; color: #15803d; }
.tdp-badge-soon { background: #fef9c3; color: #a16207; }

.tdp-date {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    text-align: right;
    min-width: 130px;
}

.tdp-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.tdp-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 20px;
    transition: all 0.15s;
}

.tdp-footer-btn:hover {
    background: #0056b3;
    color: #ffffff !important;
    border-color: #0056b3;
}

.tdp-empty {
    padding: 32px 24px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

@media (max-width: 640px) {
    .tdp-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 6px 12px;
    }
    .tdp-ref {
        grid-column: 1;
        grid-row: 2;
        color: #94a3b8;
    }
    .tdp-title {
        grid-column: 1;
        grid-row: 1;
    }
    .tdp-badge {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }
    .tdp-date {
        grid-column: 2;
        grid-row: 2;
        min-width: unset;
        font-size: 11px;
    }
}