﻿#content-wrapper {
    & > div[id="main-div"] {
        h1 {
            text-align: center;
        }

        .collapsible {
            cursor: pointer;
            width: 100%;
            text-align: center;
        }

        .tbl {
            .tbl-row[id^="corporate"] {
                & > div:first-child {
                    grid-column: 1 / 6;
                    max-width: none;
                }

                & > div:last-child {
                    grid-column: 6;
                }
            }
        }

        & > div {
            width: 75%;
            margin: var(--margin-md) auto;

            @media (max-width: 1024px) {
                width: 100%;
            }
        }

        .modal {
            .modal-body {
                display: flex;

                & > div {
                    padding: var(--padding-xs);
                }

                .event-image {
                    max-height: 300px;
                    width: 50%;
                    object-fit: cover;
                    border-radius: var(--border-radius-md);

                    &.hide {
                        display: none;
                    }
                }

                .event-details {
                    flex: 1;

                    & > h4 {
                        text-align: center;
                    }

                    & > p {
                        margin: var(--margin-lg) 0;
                    }

                    & > div {
                        display: flex;
                        flex-direction: column;

                        & > div {
                            flex: 1;
                            display: flex;
                            align-items: center;

                            label {
                                text-align: right;
                                flex: 1;
                                font-weight: bold;
                                margin-right: var(--margin-sm);

                                &::after {
                                    content: ":";
                                }
                            }

                            span {
                                flex: 1;
                            }
                        }
                    }
                }
            }
        }
    }

    .tbl-filters {
        display: flex;
        gap: 0.625rem;
        margin: 0;
        padding: 0;
        flex-wrap: nowrap;

        @media (max-width: 1200px) {
            flex-wrap: wrap;
        }
    }

    .search-card {
        background: #ffffff;
        border-radius: 4px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        padding: 0.75rem;
        margin: 0 auto 1rem auto;
        border: 1px solid #e5e7eb;
        box-sizing: border-box;
        width: fit-content;
        max-width: 100%;
    }

    .search-card-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.375rem;
        border-bottom: 1px solid #e5e7eb;

        h3 {
            color: #374151;
            font-size: 0.875rem;
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.375rem;

            i {
                color: #3b82f6;
                font-size: 14px;
            }
        }
    }

    .form-label {
        font-weight: 600;
        color: #6b7280;
        font-size: 0.6875rem;
        text-transform: uppercase;
        letter-spacing: 0.025em;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        margin-bottom: 0;

        i {
            color: #9ca3af;
            font-size: 12px;
        }
    }

    .filter-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        flex: 0 0 auto;

        &:first-child {
            flex: 0 0 auto;
            width: 220px;
        }

        &:nth-child(2),
        &:nth-child(3) {
            flex: 0 0 auto;
            width: 165px;
        }

        &:nth-child(4) {
            flex: 0 0 auto;
            width: 200px;
        }

        .form-control {
            padding: 0.375rem 0.5rem;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-size: 0.8125rem;
            transition: all 0.2s ease;
            background-color: #ffffff;
            height: 32px;
            width: 100%;

            &:focus {
                outline: none;
                border-color: #3b82f6;
                box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
            }

            &:hover {
                border-color: #9ca3af;
            }

            &::placeholder {
                color: #9ca3af;
                font-size: 0.8125rem;
            }
        }

        select.form-control {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.5rem center;
            background-size: 12px;
            padding-right: 1.75rem;
        }

        @media (max-width: 1200px) {
            width: 100% !important;
        }
    }

    .filter-actions {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        flex: 0 0 auto;

        .btn-clear-filters {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.375rem 0.75rem;
            background-color: #3b82f6;
            color: #ffffff;
            border: 1px solid #3b82f6;
            border-radius: 4px;
            font-size: 0.8125rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            height: 32px;
            margin-top: 1.2rem;
            
            &:hover {
                background-color: #2563eb;
                border-color: #2563eb;
            }

            &:active {
                transform: scale(0.98);
            }

            i {
                font-size: 12px;
            }
        }
    }

    .tbl .tbl-row.hide {
        display: none;
    }
}
