

/* Start:/local/templates/.default/components/bitrix/news.detail/tend_kundrat_tender/style.css?177150041112688*/
/* /local/templates/.default/components/bitrix/news.detail/tend_kundrat_tender/style.css */

/* === Основные стили === */
.tend_kundrat_wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.tend_kundrat_error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* === Заголовок === */
.tend_kundrat_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.tend_kundrat_title {
    margin: 0;
    font-size: 28px;
    color: #333;
}

.tend_kundrat_status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.tend_kundrat_status_pending {
    background: #fff3cd;
    color: #856404;
}

.tend_kundrat_status_active {
    background: #d4edda;
    color: #155724;
    animation: tend_kundrat_pulse 2s infinite;
}

.tend_kundrat_status_finished {
    background: #e2e3e5;
    color: #383d41;
}

@keyframes tend_kundrat_pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* === Таймер === */
.tend_kundrat_timer_block {
    background: linear-gradient(135deg, #c55454 0%, #9d0909 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.tend_kundrat_timer_label {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.tend_kundrat_timer {
    font-size: 48px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
}

.tend_kundrat_timer span:not(.tend_kundrat_timer_sep) {
    display: inline-block;
    min-width: 60px;
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 8px;
}

.tend_kundrat_timer_sep {
    margin: 0 5px;
}

.tend_kundrat_finished_time {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

/* === Описание === */
.tend_kundrat_description {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.tend_kundrat_description h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #333;
}

.tend_kundrat_preview_text {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.tend_kundrat_description_text {
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.tend_kundrat_params {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tend_kundrat_param {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tend_kundrat_param_label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.tend_kundrat_param_value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* === Лучшая ставка === */
.tend_kundrat_best_bid {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(17, 153, 142, 0.3);
}

.tend_kundrat_best_bid_label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.tend_kundrat_best_bid_value {
    font-size: 42px;
    font-weight: 700;
}

.tend_kundrat_best_bid_quantity {
    margin-top: 10px;
    font-size: 16px;
    opacity: 0.9;
}

/* === Форма ставки === */
.tend_kundrat_bid_form_wrapper {
    background: white;
    border: 2px solid #667eea;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.tend_kundrat_bid_form_wrapper h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.tend_kundrat_user_current_bid {
    background: #e7f3ff;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #0056b3;
    border-left: 4px solid #0056b3;
}

.tend_kundrat_form_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .tend_kundrat_form_row {
        grid-template-columns: 1fr;
    }
    
    .tend_kundrat_timer {
        font-size: 32px;
    }
    
    .tend_kundrat_best_bid_value {
        font-size: 28px;
    }
}

.tend_kundrat_form_group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.tend_kundrat_form_group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.tend_kundrat_form_group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.tend_kundrat_submit_btn {
    background: linear-gradient(135deg, #c55454 0%, #9d0909 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.tend_kundrat_submit_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.tend_kundrat_submit_btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.tend_kundrat_form_message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
}

.tend_kundrat_form_message.tend_kundrat_success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tend_kundrat_form_message.tend_kundrat_error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === Уведомления === */
.tend_kundrat_auth_notice,
.tend_kundrat_pending_notice {
    background: #fff3cd;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #ffc107;
}

.tend_kundrat_auth_notice p,
.tend_kundrat_pending_notice p {
    margin: 0;
    color: #856404;
}

.tend_kundrat_auth_notice a {
    color: #533f03;
    font-weight: 600;
}

/* === Таблица ставок === */
.tend_kundrat_bids_section {
    margin-top: 30px;
}

.tend_kundrat_bids_section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.tend_kundrat_bids_count {
    color: #888;
    font-weight: normal;
}

.tend_kundrat_bids_table_wrapper {
    overflow-x: auto;
}

.tend_kundrat_bids_table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tend_kundrat_bids_table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.tend_kundrat_bids_table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.tend_kundrat_bids_table tbody tr:hover {
    background: #f8f9fa;
}

.tend_kundrat_bids_table tbody tr:last-child td {
    border-bottom: none;
}

.tend_kundrat_bids_table .tend_kundrat_min_price {
    background: #d4edda !important;
}

.tend_kundrat_bids_table .tend_kundrat_min_price td {
    color: #155724;
    font-weight: 600;
}

.tend_kundrat_bids_table .tend_kundrat_min_price td:first-child::before {
    content: "🏆 ";
}

.tend_kundrat_no_bids td {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 30px;
}

/* === Результаты === */
.tend_kundrat_results {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border: 2px solid #28a745;
}

.tend_kundrat_results h3 {
    margin: 0 0 20px 0;
    color: #28a745;
}

.tend_kundrat_winner_info {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.tend_kundrat_winner_info p {
    margin: 0 0 10px 0;
}

.tend_kundrat_you_winner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
}

/* === Анимация обновления === */
@keyframes tend_kundrat_highlight {
    0% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

.tend_kundrat_updated {
    animation: tend_kundrat_highlight 1s ease-out;
}

/* === Админ-блок с информацией о победителе === */
.tend_kundrat_admin_winner_info {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
}

.tend_kundrat_admin_winner_info h4 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 16px;
}

.tend_kundrat_admin_table {
    width: 100%;
    border-collapse: collapse;
}

.tend_kundrat_admin_table td {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.tend_kundrat_admin_table td:first-child {
    width: 150px;
    color: #666;
    font-size: 14px;
}

.tend_kundrat_admin_table td:last-child {
    color: #333;
}

.tend_kundrat_admin_table a {
    color: #0056b3;
    text-decoration: none;
}

.tend_kundrat_admin_table a:hover {
    text-decoration: underline;
}

.tend_kundrat_admin_actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.tend_kundrat_admin_btn {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s;
}

.tend_kundrat_admin_btn:hover {
    background: #5a6fd6;
    color: white;
}

/* === Таблица всех ставок для админа === */
.tend_kundrat_admin_all_bids {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #dee2e6;
}

.tend_kundrat_admin_all_bids h3 {
    margin: 0 0 20px 0;
    color: #495057;
}

.tend_kundrat_admin_bids_table {
    font-size: 14px;
}

.tend_kundrat_admin_bids_table th {
    font-size: 12px;
    text-transform: uppercase;
}

.tend_kundrat_admin_bids_table td {
    vertical-align: middle;
}

.tend_kundrat_winner_badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 5px;
    vertical-align: middle;
}

.tend_kundrat_winner_bid {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.tend_kundrat_winner_bid p {
    margin: 0 0 10px 0;
}

.tend_kundrat_winner_bid p:last-child {
    margin-bottom: 0;
}

/* ====== POPUP ====== */

.tend_kundrat_popup{
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.tend_kundrat_popup_overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.tend_kundrat_popup_body{
    position: relative;
    max-width: 520px;
    width: calc(100% - 32px);
    margin: 6vh auto 0;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,.25);
}

.tend_kundrat_popup_head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.tend_kundrat_popup_title{
    font-size: 18px;
    font-weight: 600;
}

.tend_kundrat_popup_close{
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

/* форма */
#tend_kundrat_apply_form .tend_kundrat_form_group{
    margin-bottom: 10px;
}

#tend_kundrat_apply_form input{
    width: 100%;
    box-sizing: border-box;
}

.widget-web-form-2 {
    display: none!important;
}
/* End */
/* /local/templates/.default/components/bitrix/news.detail/tend_kundrat_tender/style.css?177150041112688 */
