.ihaleler-container {
    margin: 0;
    padding: 0;
}

.ihaleler-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.ihaleler-search-box {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 14px;
    height: 46px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.ihaleler-search-box:focus-within {
    border-color: #153d25;
}

.ihaleler-search-box svg {
    flex-shrink: 0;
    color: #888;
}

.ihaleler-search-input {
    flex: 1;
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    outline: none;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    height: 100%;
    background: transparent !important;
    color: #333 !important;
    padding: 0 !important;
    box-shadow: none;
}

.ihaleler-search-input::placeholder {
    color: #888;
    opacity: 1;
}

.ihaleler-filter-dropdown {
    position: relative;
}

.ihaleler-filter-dropdown > summary {
    list-style: none;
}

.ihaleler-filter-dropdown > summary::-webkit-details-marker {
    display: none;
}

.ihaleler-filter-dropdown[open] > .ihaleler-filter-toggle {
    border-color: #153d25;
    color: #153d25;
}

.ihaleler-filter-dropdown[open] .ihaleler-chevron {
    transform: rotate(180deg);
}

.ihaleler-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ihaleler-filter-toggle:hover,
.ihaleler-filter-toggle.active {
    border-color: #153d25;
    color: #153d25;
}

.ihaleler-filter-toggle .ihaleler-chevron {
    transition: transform 0.2s ease;
}

.ihaleler-filter-count {
    background: #153d25;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    border-radius: 10px;
    padding: 3px 7px;
}

.ihaleler-filter-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 18px;
    min-width: 280px;
    z-index: 50;
}

.ihaleler-filter-group {
    margin-bottom: 14px;
}

.ihaleler-filter-group:last-of-type {
    margin-bottom: 0;
}

.ihaleler-filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.ihaleler-filter-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}

.ihaleler-filter-select:focus {
    outline: none;
    border-color: #153d25;
}

.ihaleler-filter-panel-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

a.ihaleler-clear-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: all 0.2s;
}

a.ihaleler-clear-filters:hover {
    background: #fdf0f0;
    border-color: #d9534f;
    color: #d9534f;
}

.ihaleler-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ihale-item {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 22px;
    transition: border-color 0.2s ease;
}

.ihale-item:hover {
    border-color: #d1d5db;
}

.ihale-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 10px;
}

body .ihale-item h3.ihale-baslik {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1f2937;
    margin: 0;
    line-height: 1.4 !important;
    flex: 1;
    min-width: 0;
}

.ihale-bottom-section {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #eeeeee;
}

.ihale-tarih-box {
    flex: 1 1 auto;
    min-width: 0;
}

.ihale-tarih-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.ihale-tarih-label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
}

.ihale-tarih-label::after {
    content: ':';
}

.ihale-tarih-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #4b5563;
}

.ihale-saat {
    display: inline-flex;
    align-items: center;
    padding-left: 8px;
    border-left: 1px solid #d1d5db;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #4b5563;
}

.ihale-durum-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.ihale-item.suresi-acik .ihale-durum-badge {
    background: #1f2937;
    color: #fff;
}

.ihale-item.suresi-gecti .ihale-durum-badge {
    background: #b91c1c;
    color: #fff;
}

a.ihale-dosya-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-height: 36px;
    padding: 7px 16px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

a.ihale-dosya-btn:hover {
    border-color: #153d25;
    color: #fff;
    background: #153d25;
}

.ihaleler-empty {
    margin: 12px 0;
    color: #555;
}

@media (max-width: 1024px) {
    .ihaleler-search-box {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .ihaleler-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        margin-bottom: 16px;
    }

    .ihaleler-search-box,
    .ihaleler-filter-dropdown,
    .ihaleler-filter-toggle {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .ihaleler-filter-toggle {
        justify-content: center;
    }

    .ihaleler-filter-panel {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-top: 8px;
        box-sizing: border-box;
    }

    .ihaleler-search-input,
    .ihaleler-filter-select {
        font-size: 16px !important;
    }

    .ihale-item {
        padding: 16px;
    }

    body .ihale-item h3.ihale-baslik {
        font-size: 17px !important;
    }

    .ihale-bottom-section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ihale-tarih-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ihale-saat {
        padding-left: 0;
        border-left: none;
    }

    .ihale-dosya-btn {
        width: 100%;
        margin-left: 0;
    }
}
