/**
 * ServiceTrade Service Portal - Professional Styling
 * Neutral colors, desktop-focused, mobile-friendly
 */

/* ============================================
   Base Container & Layout
   ============================================ */

/* Main Page Logo */
main .vulnixfire-logo {
    display: block;
    max-width: 240px;
    height: auto;
    margin: 1.5rem auto 1.5rem auto;
    width: auto;
}

/* Logo padding only for login page */
.vulnixfire-logo {
    margin-top: 2rem;
}

main h1 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Body background for ServiceTrade portal pages */
body:has(.servicetrade-container:not(.servicetrade-widget-login)) {
    background-image: url('https://www.vulnixfire.com/images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.servicetrade-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.95);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
}

.servicetrade-portal {
    width: 100%;
    padding: 2rem 1.5rem;
}

/* ============================================
   Portal Header with Logo and Branding
   ============================================ */

.servicetrade-portal-container {
    position: relative;
} 

.servicetrade-portal-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ============================================
   Navigation Tabs
   ============================================ */

ul.servicetrade-portal-router-tabs {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    border-bottom: 2px solid #e5e5e5;
    gap: 0;
}

li.servicetrade-portal-router-tab {
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
    text-align: center;
}

li.servicetrade-portal-router-tab a {
    display: block;
    padding: 1rem 1.5rem;
    color: #666666;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

li.servicetrade-portal-router-tab a:hover {
    color: #333333;
    background-color: #f8f8f8;
}

li.servicetrade-portal-router-tab.servicetrade-portal-router-tab-active a {
    color: #2c5aa0;
    font-weight: 600;
    border-bottom-color: #2c5aa0;
    background-color: transparent;
}

li.servicetrade-portal-router-tab.logout-tab a {
    color: #999999;
    margin-left: auto;
}

li.servicetrade-portal-router-tab.logout-tab a:hover {
    color: #666666;
}

/* ============================================
   Divider
   ============================================ */

.servicetrade-portal-divider {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin: 0 0 2rem 0;
}

/* ============================================
   Content Area
   ============================================ */

.servicetrade-portal-content {
    padding: 0;
}

.servicetrade-portal-content-page {
    padding: 0;
}

.servicetrade-portal-content-page h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 3rem 0 2rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e5e5;
}

.servicetrade-portal-content-page h3:first-child {
    margin-top: 0;
}

/* Ensure h3 headings after tables have proper spacing */
.dataTables_wrapper + h3,
.dataTables_wrapper ~ h3 {
    margin-top: 3rem;
}

/* ============================================
   Location Detail Page Header
   ============================================ */

.servicetrade-portal-content-page-location > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    gap: 1.5rem;
}

.servicetrade-portal-content-page-location > div:first-child > div:first-child {
    flex: 1 1 auto;
}

.servicetrade-portal-content-page-location > div:first-child h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    padding: 0;
    border: none;
}

.servicetrade-portal-content-page-location > div:first-child > div:first-child > div {
    font-size: 0.9375rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.servicetrade-portal-content-page-location > div:first-child button[type="button"] {
    flex: 0 0 auto;
    padding: 0.75rem 1.5rem;
    background-color: #2c5aa0;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    height: fit-content;
}

.servicetrade-portal-content-page-location > div:first-child button[type="button"]:hover {
    background-color: #1e3f73;
}

.servicetrade-portal-content-page-location > div:first-child button[type="button"]:active {
    transform: translateY(1px);
}

.servicetrade-portal-content-page-location > div:first-child button[type="button"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.2);
}

/* ============================================
   Deficiencies Section with Checkbox
   ============================================ */

.servicetrade-portal-content-page-location h3 input[type="checkbox"] {
    margin-left: 1rem;
    margin-right: 0.5rem;
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: #2c5aa0;
}

.servicetrade-portal-content-page-location h3 label {
    font-size: 0.875rem;
    font-weight: 400;
    color: #666666;
    cursor: pointer;
    margin-left: 0;
}

.servicetrade-portal-content-page-location h3 label:hover {
    color: #333333;
}

/* ============================================
   Asset Filter Component (Locations & Assets Page)
   ============================================ */

.servicetrade-service-portal-asset-filter-component {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.servicetrade-service-portal-asset-filter-component p {
    margin: 0 0 1rem 0;
    font-size: 0.9375rem;
    color: #666666;
    font-weight: 500;
}

.servicetrade-service-portal-asset-filter-component form {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.servicetrade-service-portal-asset-filter-component form input[type="text"] {
    flex: 1 1 auto;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9375rem;
    color: #333333;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.servicetrade-service-portal-asset-filter-component form input[type="text"]:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.servicetrade-service-portal-asset-filter-component form input[type="text"]::placeholder {
    color: #9ca3af;
}

.servicetrade-service-portal-asset-filter-component form button {
    flex: 0 0 auto;
    padding: 0.75rem 1.5rem;
    background-color: #2c5aa0;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.servicetrade-service-portal-asset-filter-component form button:hover {
    background-color: #1e3f73;
}

.servicetrade-service-portal-asset-filter-component form button:active {
    transform: translateY(1px);
}

.servicetrade-service-portal-asset-filter-component form button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.2);
}

.servicetrade-service-portal-asset-filter-component form button span {
    display: inline-block;
}

/* ============================================
   Filter Container
   ============================================ */

.servicetrade-portal-filter-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.servicetrade-portal-filter-item {
    flex: 1 1 0;
    min-width: 0;
}

.servicetrade-portal-filter-item:first-child {
    margin-left: 0;
}

.servicetrade-portal-filter-item:last-child {
    margin-right: 0;
}

/* ============================================
   Table Container
   ============================================ */

.servicetrade-portal-table-container-datatables {
    margin-bottom: 3rem;
}

/* ============================================
   Location Required Message (Deficiencies & Quotes Page)
   ============================================ */

.servicetrade-portal-table-container-location-required {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    text-align: center;
    color: #666666;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.servicetrade-portal-table-container-datatables h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 3rem 0 2rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e5e5;
}

.servicetrade-portal-table-container-datatables h3:first-child {
    margin-top: 0;
}

.servicetrade-portal-table-container-datatables h3 span {
    font-size: 0.875rem;
    font-weight: 400;
    color: #666666;
}

/* ============================================
   DataTables Styling
   ============================================ */

.dataTables_wrapper {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dataTables_length {
    margin-bottom: 1rem;
}

.dataTables_length label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666666;
}

.dataTables_length select {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 0.875rem;
    color: #333333;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.dataTables_length select:hover {
    border-color: #9ca3af;
}

.dataTables_length select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.dataTables_filter {
    margin-bottom: 1rem;
    text-align: right;
}

.dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666666;
}

.dataTables_filter input[type="search"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #333333;
    width: 200px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dataTables_filter input[type="search"]:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.dataTable {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
}

.dataTable thead {
    background-color: #f8f9fa;
}

.dataTable thead th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e5e5;
    white-space: nowrap;
}

.dataTable thead th.sorting,
.dataTable thead th.sorting_asc,
.dataTable thead th.sorting_desc {
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
}

.dataTable thead th.sorting:hover,
.dataTable thead th.sorting_asc:hover,
.dataTable thead th.sorting_desc:hover {
    background-color: #f0f0f0;
}

.dataTable tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.dataTable tbody tr:hover {
    background-color: #f8f9fa;
}

.dataTable tbody tr.odd {
    background-color: #ffffff;
}

.dataTable tbody tr.even {
    background-color: #fafafa;
}

.dataTable tbody tr.odd:hover,
.dataTable tbody tr.even:hover {
    background-color: #f0f4f8;
}

.dataTable tbody td {
    padding: 1rem;
    font-size: 0.875rem;
    color: #333333;
    vertical-align: middle;
}

.dataTable tbody td a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.dataTable tbody td a:hover {
    color: #1e3f73;
    text-decoration: underline;
}

.dataTable tbody td.dt-right {
    text-align: right;
}

.dataTable tbody td.dt-right a {
    color: #2c5aa0;
}

.dataTable tbody .dataTables_empty {
    text-align: center;
    padding: 2rem;
    color: #999999;
    font-style: italic;
}

.dataTables_info {
    font-size: 0.875rem;
    color: #666666;
    margin-top: 1rem;
}

.dataTables_paginate {
    margin-top: 1rem;
    text-align: right;
}

.dataTables_paginate .paginate_button {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333333;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #f8f9fa;
    border-color: #9ca3af;
    color: #2c5aa0;
}

.dataTables_paginate .paginate_button.current {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
    color: #ffffff;
    font-weight: 600;
}

.dataTables_paginate .paginate_button.current:hover {
    background-color: #1e3f73;
    border-color: #1e3f73;
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.dataTables_paginate .paginate_button.previous,
.dataTables_paginate .paginate_button.next {
    font-weight: 600;
}

/* ============================================
   React Select Component Overrides
   ============================================ */

.servicetrade-portal-filter-item .Select {
    width: 100%;
}

.servicetrade-portal-filter-item .Select-control {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #ffffff;
    min-height: 38px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.servicetrade-portal-filter-item .Select-control:hover {
    border-color: #9ca3af;
}

.servicetrade-portal-filter-item .Select.is-focused .Select-control {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.servicetrade-portal-filter-item .Select-value-label {
    color: #333333;
    font-size: 0.875rem;
}

.servicetrade-portal-filter-item .Select-arrow {
    border-top-color: #666666;
}

.servicetrade-portal-filter-item .Select-menu-outer {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.servicetrade-portal-filter-item .Select-option {
    color: #333333;
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
}

.servicetrade-portal-filter-item .Select-option:hover,
.servicetrade-portal-filter-item .Select-option.is-focused {
    background-color: #f0f4f8;
    color: #2c5aa0;
}

.servicetrade-portal-filter-item .Select-option.is-selected {
    background-color: #e8eff7;
    color: #2c5aa0;
    font-weight: 500;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .servicetrade-portal {
        padding: 1.5rem 1rem;
    }

    .servicetrade-portal-container::before {
        min-height: 80px;
        background-size: auto 60px;
        padding: 1.25rem 1.25rem 1.25rem 160px;
        font-size: 1.5rem;
    }

    .servicetrade-portal-filter-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .servicetrade-portal-filter-item {
        flex: 1 1 auto;
    }

    .dataTables_filter {
        text-align: left;
        margin-top: 1rem;
    }

    .dataTables_filter input[type="search"] {
        width: 100%;
    }
}

@media (max-width: 768px) {
    main .vulnixfire-logo {
        max-width: 200px;
        margin-bottom: 1.25rem;
    }

    main h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .servicetrade-portal {
        padding: 1rem 0.75rem;
    }

    .servicetrade-portal-container::before {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        background-size: auto 50px;
        padding: 1rem 1rem 0.75rem 1rem;
        background-position: left top;
        font-size: 1.25rem;
        text-align: left;
        padding-left: 140px;
        padding-top: 0.5rem;
    }

    ul.servicetrade-portal-router-tabs {
        flex-wrap: wrap;
        gap: 0;
    }

    li.servicetrade-portal-router-tab {
        flex: 1 1 auto;
        min-width: 120px;
    }

    li.servicetrade-portal-router-tab a {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .servicetrade-portal-content-page h3,
    .servicetrade-portal-table-container-datatables h3 {
        font-size: 1.25rem;
    }

    .servicetrade-portal-table-container-location-required {
        padding: 1.5rem;
        font-size: 0.875rem;
    }

    .servicetrade-service-portal-asset-filter-component {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }

    .servicetrade-service-portal-asset-filter-component form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .servicetrade-service-portal-asset-filter-component form input[type="text"] {
        width: 100%;
    }

    .servicetrade-service-portal-asset-filter-component form button {
        width: 100%;
    }

    .servicetrade-portal-content-page-location > div:first-child {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .servicetrade-portal-content-page-location > div:first-child button[type="button"] {
        width: 100%;
        align-self: flex-start;
    }

    .dataTables_wrapper {
        padding: 1rem;
        overflow-x: auto;
    }

    .dataTable {
        min-width: 600px;
    }

    .dataTables_length,
    .dataTables_filter {
        margin-bottom: 0.75rem;
    }

    .dataTables_paginate {
        text-align: center;
        margin-top: 0.75rem;
    }

    .dataTables_paginate .paginate_button {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    main .vulnixfire-logo {
        max-width: 160px;
        margin-bottom: 1rem;
    }

    main h1 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .servicetrade-portal {
        padding: 0.75rem 0.5rem;
    }

    .servicetrade-portal-container::before {
        background-size: auto 40px;
        padding: 0.75rem 0.75rem 0.5rem 0.75rem;
        font-size: 1.125rem;
        padding-left: 110px;
        padding-top: 0.25rem;
    }

    li.servicetrade-portal-router-tab a {
        padding: 0.75rem 0.75rem;
        font-size: 0.8125rem;
    }

    .servicetrade-portal-content-page h3,
    .servicetrade-portal-table-container-datatables h3 {
        font-size: 1.125rem;
    }

    .servicetrade-portal-content-page-location > div:first-child h3 {
        font-size: 1.25rem;
    }

    .servicetrade-portal-content-page-location h3 input[type="checkbox"] {
        margin-left: 0.75rem;
        margin-right: 0.375rem;
    }

    .servicetrade-portal-content-page-location > div:first-child {
        padding: 1rem;
    }

    .servicetrade-portal-table-container-location-required {
        padding: 1.25rem;
        font-size: 0.8125rem;
    }

    .servicetrade-service-portal-asset-filter-component {
        padding: 1rem;
    }

    .servicetrade-service-portal-asset-filter-component p {
        font-size: 0.875rem;
    }

    .servicetrade-service-portal-asset-filter-component form input[type="text"],
    .servicetrade-service-portal-asset-filter-component form button {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }

    .servicetrade-portal-filter-container {
        padding: 1rem;
    }

    .dataTables_wrapper {
        padding: 0.75rem;
    }

    .dataTable thead th,
    .dataTable tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.servicetrade-portal-content-page .dataTable tbody tr.canceled,
.servicetrade-portal-content-page .dataTable tbody tr.canceled * {
    color: #dc2626 !important;
}

/* ============================================
   Print Styles
   ============================================ */

/* ============================================
   Login Page Styling
   ============================================ */

.servicetrade-container.servicetrade-widget-login {
    max-width: 480px;
    margin: 3rem auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.servicetrade-container.servicetrade-widget-login::before {
    display: none;
}

.servicetrade-widget-login-form-login,
.servicetrade-widget-login-form-signup,
.servicetrade-widget-login-form-forgot-password {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
}

.servicetrade-inputcontainer {
    margin-bottom: 1.5rem;
}

.servicetrade-inputcontainer label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.servicetrade-inputcontainer input[type="text"],
.servicetrade-inputcontainer input[type="email"],
.servicetrade-inputcontainer input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
    box-sizing: border-box;
}

.servicetrade-inputcontainer input[type="text"]:focus,
.servicetrade-inputcontainer input[type="email"]:focus,
.servicetrade-inputcontainer input[type="password"]:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.servicetrade-inputcontainer input[type="text"]::placeholder,
.servicetrade-inputcontainer input[type="email"]::placeholder,
.servicetrade-inputcontainer input[type="password"]::placeholder {
    color: #9ca3af;
}

.servicetrade-form-actions {
    margin-top: 1.75rem;
    margin-bottom: 1.5rem;
}

.servicetrade-form-actions button[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #2c5aa0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    letter-spacing: 0.025em;
}

.servicetrade-form-actions button[type="submit"]:hover {
    background-color: #1e3f73;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.servicetrade-form-actions button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(44, 90, 160, 0.2);
}

.servicetrade-form-actions button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.2);
}

ul.servicetrade-form-links {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

ul.servicetrade-form-links li {
    margin: 0;
    padding: 0;
}

ul.servicetrade-form-links li a {
    display: inline-block;
    font-size: 0.875rem;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease-in-out;
    padding: 0.25rem 0;
}

ul.servicetrade-form-links li a:hover {
    color: #1e3f73;
    text-decoration: underline;
}

ul.servicetrade-form-links li a:focus {
    outline: none;
    text-decoration: underline;
}

.servicetrade-success-container,
.servicetrade-error-container {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.servicetrade-success-container {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.servicetrade-error-container {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.servicetrade-success-container:empty,
.servicetrade-error-container:empty {
    display: none;
}

/* Login Page Header with Logo */
.servicetrade-container.servicetrade-widget-login::after {
    content: '';
    display: block;
    width: 100%;
    height: 120px;
    background-image: url('https://www.vulnixfire.com/images/logo.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
}

/* Responsive Login Page */
@media (max-width: 768px) {
    .servicetrade-container.servicetrade-widget-login {
        margin: 2rem auto;
        max-width: 100%;
        padding: 0 1rem;
    }

    .servicetrade-widget-login-form-login,
    .servicetrade-widget-login-form-signup,
    .servicetrade-widget-login-form-forgot-password {
        padding: 2rem 1.5rem;
    }

    .servicetrade-container.servicetrade-widget-login::after {
        height: 100px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .servicetrade-container.servicetrade-widget-login {
        margin: 1.5rem auto;
        padding: 0 0.75rem;
    }

    .servicetrade-widget-login-form-login,
    .servicetrade-widget-login-form-signup,
    .servicetrade-widget-login-form-forgot-password {
        padding: 1.75rem 1.25rem;
        border-radius: 8px;
    }

    .servicetrade-inputcontainer {
        margin-bottom: 1.25rem;
    }

    .servicetrade-inputcontainer input[type="text"],
    .servicetrade-inputcontainer input[type="email"],
    .servicetrade-inputcontainer input[type="password"] {
        padding: 0.625rem 0.875rem;
        font-size: 1rem; /* Prevents zoom on iOS */
    }

    .servicetrade-form-actions button[type="submit"] {
        padding: 0.75rem 1.25rem;
    }

    .servicetrade-container.servicetrade-widget-login::after {
        height: 80px;
        margin-bottom: 1.25rem;
    }
}

@media print {
    .servicetrade-portal-router-tabs,
    .servicetrade-portal-filter-container,
    .dataTables_length,
    .dataTables_filter,
    .dataTables_paginate {
        display: none;
    }

    .dataTable {
        border: 1px solid #000;
    }

    .dataTable thead th,
    .dataTable tbody td {
        border: 1px solid #000;
        padding: 0.5rem;
    }
}

/* ============================================
   Request Service Page Styling
   ============================================ */

.servicetrade-portal-content-page-request-service {
    padding: 2rem 0;
}

.servicetrade-portal-content-page-request-service h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.servicetrade-portal-service-request-form {
    max-width: 800px;
    margin: 0 auto;
}

.servicetrade-portal-service-request-form > div {
    margin-bottom: 1.75rem;
}

.servicetrade-portal-service-request-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.625rem;
    letter-spacing: 0.025em;
}

/* React Select Styling for Request Service Form */
.servicetrade-portal-service-request-form .Select {
    width: 100%;
    margin-top: 0.25rem;
}

.servicetrade-portal-service-request-form .Select-control {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    min-height: 44px;
    padding: 0.25rem 0;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.servicetrade-portal-service-request-form .Select-control:hover {
    border-color: #9ca3af;
}

.servicetrade-portal-service-request-form .Select.is-focused .Select-control {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.servicetrade-portal-service-request-form .Select-value-label {
    color: #111827;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
}

.servicetrade-portal-service-request-form .Select-placeholder {
    color: #9ca3af;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
}

.servicetrade-portal-service-request-form .Select-arrow {
    border-top-color: #666666;
    margin-top: -4px;
}

.servicetrade-portal-service-request-form .Select-menu-outer {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 4px;
    z-index: 1000;
}

.servicetrade-portal-service-request-form .Select-option {
    color: #111827;
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.servicetrade-portal-service-request-form .Select-option:hover,
.servicetrade-portal-service-request-form .Select-option.is-focused {
    background-color: #f0f4f8;
    color: #2c5aa0;
}

.servicetrade-portal-service-request-form .Select-option.is-selected {
    background-color: #e8eff7;
    color: #2c5aa0;
    font-weight: 500;
}

/* Textarea Styling */
.servicetrade-portal-service-request-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    resize: vertical;
    margin-top: 0.25rem;
}

.servicetrade-portal-service-request-form textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.servicetrade-portal-service-request-form textarea::placeholder {
    color: #9ca3af;
}

/* Date Picker Styling */
.servicetrade-portal-service-request-form .react-datepicker-wrapper {
    width: 100%;
    margin-top: 0.25rem;
}

.servicetrade-portal-service-request-form .react-datepicker__input-container {
    width: 100%;
}

.servicetrade-portal-service-request-form .react-datepicker__input-container input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.servicetrade-portal-service-request-form .react-datepicker__input-container input:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.servicetrade-portal-service-request-form .react-datepicker__input-container input::placeholder {
    color: #9ca3af;
}

/* Submit Button Styling */
.servicetrade-portal-service-request-form .react-component-action-row {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.servicetrade-portal-service-request-form .react-component-action-row input[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #2c5aa0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    letter-spacing: 0.025em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.servicetrade-portal-service-request-form .react-component-action-row input[type="submit"]:hover:not(:disabled) {
    background-color: #1e3f73;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.servicetrade-portal-service-request-form .react-component-action-row input[type="submit"]:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(44, 90, 160, 0.2);
}

.servicetrade-portal-service-request-form .react-component-action-row input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.2);
}

.servicetrade-portal-service-request-form .react-component-action-row input[type="submit"]:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive Request Service Form */
@media (max-width: 768px) {
    .servicetrade-portal-content-page-request-service {
        padding: 1.5rem 0;
    }

    .servicetrade-portal-content-page-request-service h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .servicetrade-portal-service-request-form {
        max-width: 100%;
    }

    .servicetrade-portal-service-request-form > div {
        margin-bottom: 1.5rem;
    }

    .servicetrade-portal-service-request-form textarea {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .servicetrade-portal-content-page-request-service h2 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .servicetrade-portal-service-request-form > div {
        margin-bottom: 1.25rem;
    }

    .servicetrade-portal-service-request-form label {
        font-size: 0.8125rem;
    }

    .servicetrade-portal-service-request-form .Select-control,
    .servicetrade-portal-service-request-form textarea,
    .servicetrade-portal-service-request-form .react-datepicker__input-container input {
        font-size: 1rem; /* Prevents zoom on iOS */
        padding: 0.875rem 1rem;
    }

    .servicetrade-portal-service-request-form .react-component-action-row input[type="submit"] {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}
