﻿/* BuyersDetails.aspx page styles */
        .buyers-noaccess { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
        .buyers-noaccess .bg-text { position: static; transform: none; width: 100%; max-width: 640px; padding: 0 12px; }
        .buyers-noaccess-image { width: min(520px, 100%); height: auto; }

        /* ── Tender details row: dates + CTA on one line ── */
        .tnd-details {
            display: flex;
            gap: 8px;
            flex-wrap: nowrap;
            padding: 6px;
            border: 1px solid #e9e9e9;
            border-radius: 12px;
            background: #fff;
            align-items: stretch;
        }
        .tnd-details__item {
            flex: 1 1 0;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 8px;
            border-radius: 10px;
            background: #fafafa;
            border: 1px solid #f0f0f0;
        }
        .tnd-details__icon {
            width: 28px; height: 28px;
            min-width: 28px;
            display: flex; align-items: center; justify-content: center;
            border-radius: 8px;
            background: #fff; border: 1px solid #eee;
        }
        .tnd-details__icon i { font-size: 14px; color: #6b7280; }
        .tnd-details__content {
            display: flex; flex-direction: column;
            line-height: 1.2; min-width: 0;
        }
        .tnd-details__label {
            font-size: 10px; opacity: .65;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            text-transform: uppercase; letter-spacing: 0.3px;
        }
        .tnd-details__value {
            font-size: 12px; font-weight: 600; margin-top: 2px;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            color: #374151;
        }
        .tnd-details__value--deadline { color: #dc2626; }
        [dir="rtl"] .tnd-details { direction: rtl; }

        /* CTA button inside the details row */
        .tnd-details .tnd-details__cta {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            padding: 0;
            background: none;
            border: none;
        }
        .tnd-details .tnd-details__cta .tender-card-action-btn {
            min-height: 100%;
            margin: 0;
            border-radius: 10px;
            overflow: hidden;
            flex-direction: row;
            align-items: stretch;
        }
        .tnd-details .tnd-details__cta .tender-card-btn-main {
            padding: 6px 14px;
            font-size: 12px;
            font-weight: 700;
            min-height: 100%;
            display: flex;
            align-items: center;
            white-space: nowrap;
        }
        .tnd-details .tnd-details__cta .tender-card-btn-external {
            min-height: 100%;
            padding: 6px 8px;
            display: flex;
            align-items: center;
            border-inline-start: 1px solid rgba(255,127,39,0.2);
        }
        .tnd-details .tnd-details__cta .tender-card-btn-external i {
            font-size: 11px;
        }

        /* Footer row: TGID + city compact */
        .tnd-card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 4px 0 0;
            font-size: 11px;
            color: #9ca3af;
        }
        .tnd-card-footer .price {
            display: inline-flex; align-items: baseline; gap: 4px;
            font-size: 12px; margin: 0;
        }
        .tnd-card-footer .price small { font-size: 9px; color: #9ca3af; }
        .tnd-card-footer .price .numbertg { font-size: 13px; font-weight: 600; color: #4b5563; }

        /* Mobile: dates always in ONE row, CTA stays compact */
        @media (max-width: 768px) {
            .tnd-details {
                flex-wrap: nowrap !important;
                gap: 0;
            }
            .tnd-details__item {
                flex: 1 1 0 !important;
                min-width: 0;
                padding: 6px 8px;
            }
            .tnd-details__label {
                font-size: 10px !important;
                font-weight: 600;
                color: #6b7280;
                text-transform: uppercase;
                letter-spacing: 0.4px;
            }
            .tnd-details__value {
                font-size: 14px !important;
                font-weight: 700;
                color: #111827;
            }
            .tnd-details .tnd-details__cta {
                flex: 0 0 auto;
            }
        }

        .tenders-titlebar { position: relative; }
        .tenders-titlebar > * { position: relative; z-index: 1; }
        .tenders-title-icon { z-index: 0; }
        .tenders-live-dot { width: 12px; height: 12px; border-radius: 50%; background: #2e8795; position: relative; display: inline-block; animation: tenders-live-pulse 2.6s ease-out infinite; }
        .tenders-update-text { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; font-weight: 400; line-height: 1.4; }
        .tenders-update-text i { font-size: 12px; color: #9ca3af; }
        #tendersLastUpdated { font-weight: 500; color: #757575;font-size:10px }
        .tenders-update-text { font-family: "Cairo", "Noto Kufi Arabic", system-ui, sans-serif; }
        @keyframes tenders-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 135, 149, 0.45); transform: scale(1); opacity: 1; } 65% { box-shadow: 0 0 0 6px rgba(46, 135, 149, 0); transform: scale(1.03); opacity: 1; } 100% { box-shadow: 0 0 0 6px rgba(46, 135, 149, 0); transform: scale(1); opacity: 1; } }
        @media (prefers-reduced-motion: reduce) { .tenders-live-dot { animation: none; } }

        /* ── lblTenderJoID: teal badge ────────────────────────────────── */
        [id$="_lblTenderJoID"] {
            background: #308896;
            color: #ffffff !important;
            border-radius: 4px;
            padding: 1px 7px;
            font-size: 12px;
            font-weight: 700;
            display: inline-block;
            letter-spacing: 0.3px;
        }
