﻿@media (max-width: 480px) {
    .ghlm-content {
        padding: 1rem;
        z-index: auto;
    }

    .help-button {
        border-radius: 50%;
        padding: 0.625rem;
    }

        .help-button i {
            margin: 0;
        }

        .help-button span {
            display: none;
        }
}

.force-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .ghlm-container {
        align-items: flex-start;
        padding: 1rem;
        z-index: auto;
    }

    .ghlm-content {
        padding: 1.5rem;
        z-index: auto;
    }

    .ghlm-header h2 {
        font-size: 1.25rem;
    }

    .help-button {
        padding: 0.625rem 1rem;
        right: 1rem;
        top: 1rem;
    }
}

.ghlm-container {
    align-items: center;
    display: flex;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    transition: var(--transition);
    z-index: auto;
}

.ghlm-content {
    animation: slideDown 0.35s ease;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    max-width: 900px;
    min-height: auto;
    overflow: visible;
    padding: 2rem;
    width: 100%;
    z-index: 1;
}

.request-btn-crm {
    position: absolute;
    right: 24px;
    display: none !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 62, 197, 0.15);
    white-space: nowrap;
    z-index: 10;
    width: 238px;
}

    .request-btn-crm.integration {
        top: 24px;
    }

    .request-btn-crm.filter {
        top: 68px;
    }

    .request-btn-crm i {
        font-size: 13px;
        width: 16px;
        text-align: center;
        flex-shrink: 0;
    }

    .request-btn-crm:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
        box-shadow: 0 3px 10px rgba(0, 62, 197, 0.25);
        transform: translateY(-1px);
    }

    .request-btn-crm:active {
        transform: translateY(0);
    }
.back-button {
    position: fixed;
    right: 24px;
    top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 62, 197, 0.15);
    white-space: nowrap;
    z-index: 1000;
    width: 238px;
    cursor: pointer;
    height: 44px;
    line-height: 1;
}

    .back-button i {
        font-size: 16px;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: white;
    }

    .back-button span {
        color: white;
        display: flex;
        align-items: center;
    }

    .back-button:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
        box-shadow: 0 3px 10px rgba(0, 62, 197, 0.25);
        transform: translateY(-1px);
        color: white;
    }

    .back-button:active {
        transform: translateY(0);
        color: white;
    }
.free-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.ghlm-header {
    margin-bottom: 2rem;
    text-align: center;
}

    .ghlm-header h2 {
        animation: slideDown 0.35s ease;
        color: var(--text-dark);
        font-size: 1.5rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

.ghlm-quickbookslogin-button {
    background: url('/img/C2QB_green_btn_med_default.svg') no-repeat center center;
    background-size: cover;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    height: 36px;
    width: 223px;
}

    .ghlm-quickbookslogin-button:hover {
        background: url('/img/C2QB_green_btn_med_hover.svg') no-repeat center center;
        background-size: cover;
    }

.ghlm-subheader {
    animation: slideDown 0.35s ease;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 0.75rem;
}

.help-button {
    align-items: center;
    background: var(--background);
    border-radius: 50px;
    border: 1.5px solid var(--primary);
    box-shadow: var(--card-shadow);
    color: var(--primary);
    display: flex;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    position: fixed;
    right: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    z-index: 1000;
}

    .help-button:hover {
        background: var(--primary);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        color: white;
        transform: translateY(-2px);
    }

    .help-button i {
        font-size: 1.125rem;
    }

    .help-button:nth-of-type(1) {
        top: 1.5rem;
    }

    .help-button:nth-of-type(2) {
        top: 4.5rem;
    }

.main {
    background-color: #f9fafc !important;
    z-index: 1 !important;
}

/* Sub-Account Filter Dropdown Styling - Matches System Dropdown (.dropdown-trigger) */
.status-filter-select {
    background-color: var(--input-bg) !important;
    border-radius: 6px !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-dark) !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
    transition: var(--transition) !important;
    width: 100%;
    min-width: 240px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

    .status-filter-select:hover {
        border-color: var(--primary) !important;
    }

    .status-filter-select:focus {
        outline: none !important;
        border-color: var(--primary) !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    }

    /* Clean option styling - let browser handle it natively */
    .status-filter-select option {
        padding: 0.625rem 1rem;
        background: white;
        color: var(--text-dark);
        font-size: 0.875rem;
    }

        .status-filter-select option:hover {
            background-color: rgba(0, 56, 255, 0.05);
        }

        .status-filter-select option:checked {
            background-color: rgba(0, 56, 255, 0.1);
            color: var(--primary);
            font-weight: 500;
        }

/* Responsive adjustments for sub-account filter */
@media (max-width: 768px) {
    .status-filter-select {
        min-width: 180px;
        font-size: 0.8125rem;
        padding: 0.625rem 0.875rem;
    }
}

@media (max-width: 480px) {
    .status-filter-select {
        min-width: 160px;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Custom Field Expandable Header Only */
.custom-field-section {
    margin-top: 1.5rem;
}

.custom-field-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    user-select: none;
}

    .custom-field-header:hover {
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        border-color: #cbd5e1;
    }

.filter-subheading {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.025em;
}

#customFieldChevron {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

/* Warning Box Styling */
.reverse-sync-warning {
    margin-bottom: 1rem;
}

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #fef3cd 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
}

    .warning-box i {
        color: #f59e0b;
        font-size: 18px;
        margin-top: 2px;
        flex-shrink: 0;
    }

.warning-content h6 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.warning-content p {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: #92400e;
    line-height: 1.4;
}

    .warning-content p:last-child {
        margin-bottom: 0;
    }

/* Field Instructions Styling */
.field-instructions {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

    .field-instructions p {
        margin: 0 0 8px 0;
        font-size: 13px;
        color: #374151;
        font-weight: 600;
    }

    .field-instructions ul {
        margin: 0 0 12px 16px;
        padding: 0;
        list-style-type: disc;
    }

    .field-instructions li {
        margin-bottom: 4px;
        font-size: 13px;
        color: #6b7280;
        line-height: 1.4;
    }

.sync-direction-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #dbeafe;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    font-size: 13px;
    color: #1e40af;
    font-weight: 600;
}

    .sync-direction-note i {
        color: #3b82f6;
    }

.ghlm-submit-btn {
    position: relative;
}

    .ghlm-submit-btn .btn-content {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .ghlm-submit-btn .btn-loading {
        display: none;
        align-items: center;
        gap: 8px;
    }

    .ghlm-submit-btn:disabled .btn-content {
        display: none;
    }

    .ghlm-submit-btn:disabled .btn-loading {
        display: inline-flex;
    }

.btn-loading .fa-spinner {
    animation: spin 1s linear infinite;
}

.btn-loading .dot {
    animation: dotPulse 1.5s infinite;
}

    .btn-loading .dot:nth-child(2) {
        animation-delay: 0.5s;
    }

    .btn-loading .dot:nth-child(3) {
        animation-delay: 1s;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

