/**
 * MBWS Company - Public Styles
 */

/* Search Wrapper */
.mbws-company-search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mbws-search-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Search Form */
.mbws-search-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.mbws-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.mbws-form-field {
    flex: 1;
    min-width: 200px;
}

.mbws-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.mbws-form-field input[type=date],
.mbws-form-field input[type=email],
.mbws-form-field input[type=number],
.mbws-form-field input[type=password],
.mbws-form-field input[type=search],
.mbws-form-field input[type=tel],
.mbws-form-field input[type=text],
.mbws-form-field input[type=url],
.mbws-form-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    line-height: 1;
}

.mbws-form-field input:focus,
.mbws-form-field select:focus {
    border-color: #0073aa;
    outline: none;
}

.mbws-form-actions {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.mbws-search-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
    height: 2.507em;
}

.mbws-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.4);
}

.mbws-reset-btn {
    color: #666;
    text-decoration: none;
    padding: 10px 15px;
}

.mbws-reset-btn:hover {
    color: #dc3232;
}

/* Results */
.mbws-results-count {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.mbws-results-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.mbws-results-table td:first-child,
.mbws-results-table th:first-child {
    padding-left: 15px;
}

.mbws-results-table td:last-child,
.mbws-results-table th:last-child {
    padding-right: 15px;
}

.mbws-results-table th,
.mbws-results-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.mbws-results-table th {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}

.mbws-results-table tbody tr:hover {
    background: #f5f9fc;
}

.mbws-view-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.mbws-view-link:hover {
    text-decoration: underline;
}

.mbws-no-results {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 4px;
    color: #666;
}

/* Single Page */
.mbws-company-single-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.mbws-company-single-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.mbws-company-header {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #fff;
    padding: 40px 30px;
    text-align: center;
}

.mbws-company-logo {
    margin-bottom: 20px;
}

.mbws-company-logo img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.mbws-company-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: white;
}

.mbws-company-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.mbws-company-detail-table td:first-child,
.mbws-company-detail-table th:first-child {
    padding-left: 15px;
}

.mbws-company-detail-table td:last-child,
.mbws-company-detail-table th:last-child {
    padding-right: 15px;
}

.mbws-company-detail-table th,
.mbws-company-detail-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.mbws-company-detail-table th {
    width: 180px;
    background: #f9f9f9;
    font-weight: 600;
    color: #555;
}

.mbws-company-detail-table a {
    color: #0073aa;
}

.mbws-company-description {
    padding: 0 30px 30px;
}

.mbws-company-description h3 {
    margin-bottom: 15px;
    color: #333;
}

.mbws-company-content {
    line-height: 1.7;
    color: #555;
}

.mbws-company-back {
    padding: 20px 30px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.mbws-back-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.mbws-back-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .mbws-form-row {
        flex-direction: column;
    }

    .mbws-form-field {
        width: 100%;
    }

    .mbws-form-actions {
        width: 100%;
        justify-content: center;
    }

    .mbws-results-table {
        font-size: 14px;
    }

    .mbws-company-header {
        padding: 30px 20px;
    }

    .mbws-company-title {
        font-size: 22px;
    }

    .mbws-company-detail-table th {
        width: 120px;
    }
}