/* NMPA Salesforce Template Styles */

.nmpa-salesforce-view {
    max-width: 100%;
    margin: 0 auto;
}

/* Header Section */
.nmpa-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.nmpa-header h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.nmpa-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: center;
}

.nmpa-results-info strong {
    color: #ecf0f1;
}

.nmpa-sync-info {
    text-align: right;
    font-size: 14px;
    opacity: 0.9;
}

/* Active Search Notification */
.nmpa-active-search {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nmpa-active-search .search-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nmpa-active-search .clear-search {
    background: #007cba;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.2s;
}

.nmpa-active-search .clear-search:hover {
    background: #005a87;
}

/* Search and Filter Controls */
.nmpa-search-controls {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 20px;
}

.nmpa-search-controls label {
    font-size: 18px;
    margin-bottom: 5px;
    display: block;
}

.nmpa-search-group {
    flex: 1;
    min-width: 265px;
}

.nmpa-search-group label {
    font-weight: 500;
    color: #495057;
}

.nmpa-search-group input[type="search"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.nmpa-search-group input[type="submit"] {
    padding: 8px 16px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 8px;
    transition: background-color 0.2s;
}

.nmpa-search-group input[type="submit"]:hover {
    background: #005a87;
}

.nmpa-field-selector {
    flex: 0 0 240px;
}

.nmpa-field-selector select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    height: 60px;
}

.nmpa-field-help {
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

/* Table Styles */
.nmpa-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nmpa-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    position: relative;
}

.nmpa-table th a {
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nmpa-table th a:hover {
    color: #007cba;
}

/* Sorting Indicators */
.sort-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.nmpa-table th:hover .sort-indicator {
    opacity: 0.6;
}

.nmpa-table th.sorted .sort-indicator {
    opacity: 1;
    color: #007cba;
}

.sort-indicator::before {
    content: "↕";
    font-size: 14px;
}

.nmpa-table th.sorted.asc .sort-indicator::before {
    content: "↑";
    color: #28a745;
}

.nmpa-table th.sorted.desc .sort-indicator::before {
    content: "↓";
    color: #dc3545;
}

.nmpa-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.nmpa-table tr:hover {
    background-color: #f8f9fa;
}

/* Pagination Styles */
.nmpa-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #dee2e6;
    margin-top: 20px;
}

.nmpa-pagination .displaying-num {
    color: #6c757d;
    font-size: 14px;
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-links a,
.pagination-links span {
    padding: 6px 10px;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1;
}

.pagination-links a {
    background: white;
    color: #007cba;
    transition: all 0.2s;
}

.pagination-links a:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.pagination-links .disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.pagination-links .current {
    background: #007cba;
    color: white;
    border-color: #007cba;
    font-weight: 500;
}

.paging-input {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 10px;
}

.paging-input input {
    width: 50px;
    padding: 4px 6px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 3px;
}

/* Validation Error */
.nmpa-validation-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.nmpa-validation-error strong {
    display: block;
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nmpa-search-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .nmpa-field-selector {
        flex: 1;
    }

    .nmpa-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .nmpa-sync-info {
        text-align: center;
    }

    .nmpa-active-search {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .nmpa-pagination {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nmpa-table {
        font-size: 12px;
    }

    .nmpa-table th,
    .nmpa-table td {
        padding: 8px 6px;
    }

    .pagination-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

#headerspot{
    position:absolute;
    height:71px;
    width:100%;
    background: transparent;
    z-index: 1;
}
#header-section h1 {
    color:#fff !important;
    font-family: 'Oswald', Helvetica, Arial, Lucida, sans-serif !important;
    font-size: 60px;
    line-height: 73px;
}
#main-header:not(.et-fixed-header) {
    background: transparent;
}
.gradientbg {
    background-image: linear-gradient(25deg,#2DABE2 0%,#48256F 100%)!important;
    padding-top: 155px;
}
.et_pb_row {
    margin: auto;
}
/* Header & Filter */
.nmpa-header {
    display: none;
}
.nmpa-salesforce-view .nmpa-search-controls {
    background: transparent;
    border: none;
    padding: 0;
}
.nmpa-salesforce-view .nmpa-search-controls form {
    width: 100%;
    display: flex;
    align-items: flex-start;
    vertical-align: middle;
    gap: 15px;
}
.nmpa-salesforce-view .nmpa-search-controls label,
.nmpa-salesforce-view .nmpa-search-controls .nmpa-field-help {
    color: white;
    line-height: normal;
}
.nmpa-salesforce-view .nmpa-search-group input[type="search"] {
    padding: 11px;
    border-radius: 0;
}
.nmpa-salesforce-view .nmpa-field-selector select {
    border-radius: 0;
}
.nmpa-salesforce-view .nmpa-search-group input[type="submit"] {
    padding: 12px;
    border-radius: 0;
}
/* Pager */
.nmpa-pagination {
    border: none !important;
    padding: 15px 20px;
}
.nmpa-pagination .displaying-num,
.nmpa-pagination .paging-input span {
    color: #fff !important;
}
.nmpa-pagination .pagination-links a,
.nmpa-pagination .pagination-links > span,
.nmpa-pagination .pagination-links .paging-input span {
    background: transparent !important;
    border: none;
    color: #fff !important;
}
/* Table */
.nmpa-table-wrapper {
    overflow-x: auto;
}
.nmpa-table {
    background: transparent !important;
    color: #fff;
    box-shadow: none !important;
}
.nmpa-table .sort-indicator {
    margin-left: 0;
    opacity: 1;
}
.nmpa-table .sort-indicator::before {
    content: "\35";
    font-family: ETmodules !important;
    color: #fff;
}
.nmpa-table-header {
    border-bottom: solid 3px #fff;
    padding: 10px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 25px;
    gap: 10px;
}
.nmpa-table-header a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
}
.nmpa-table-header a:hover .sort-indicator {
    transform: rotate(90deg);
}
.nmpa-table .nmpa-table-body-row {
    background: transparent;
    border-bottom: solid 1px #fff;
    color: #fff !important;
    padding: 20px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 25px;
    gap: 10px;
}
.nmpa-table .nmpa-table-body-row:hover {
    background: #0000003b !important;
}
.nmpa-table .nmpa-table-body-column {
    vertical-align: middle;
    position: relative;
    font-size: 16px;
    line-height: 25px;
}
.nmpa-table .nmpa-table-body-column span {
    word-break: break-word;
}
.nmpa-table .nmpa-table-body-column .mobiletitle {
    display: none;
}
.nmpa-table .t0 {
    width: 90px;
    text-align: center;
}
.nmpa-table .t1 {
    font-weight: 700;
    width: 250px;
    font-weight: 700;
}
.nmpa-table .t2 {
    width: 100%;
    max-width: 250px;
}
.nmpa-table .t3 {
    width: 250px;
    padding: 0 10px;
}
.nmpa-table .t4 {
    width: 165px;
}
.nmpa-table .t5 {
    width: 165px;
}
.nmpa-table .t1 span {
    line-height: 25px;
}
.nmpa-table .spinner {
    vertical-align: middle;
    text-align: center;
    position: relative;
    min-width: 70px;
}
.nmpa-table .spinner img {
    width: 60px;
    transition: all .6s ease;
    -webkit-transition: all .6s ease;
}
.nmpa-table .nmpa-table-body-row:hover .spinner:not(.hidespinner) img {
    -webkit-transform: rotate( 360deg );
    transform: rotate( 360deg );
}
.nmpa-table .xfactor {
    opacity: 0;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 100%;
    text-align: center;
}
.nmpa-table .nmpa-table-body-row:hover .spinner .xfactor {
    -webkit-animation: 0.5s ease 0s normal forwards 1 fadein;
    animation: 0.5s ease 0s normal forwards 1 fadein;
}
.nmpa-table .nmpa-table-body-row:hover .hidespinner img {
    -webkit-transform: rotate( 360deg ) scale(0.0);
    transform: rotate( 360deg ) scale(0.0);
}
.nmpa-no-results {
    color: #fff;
}
/* Animation */
@keyframes fadein {
    0% { opacity:0; }
    66% { opacity:0; }
    100% { opacity:1; }
}
@-webkit-keyframes fadein {
    0% { opacity:0; }
    66% { opacity:0; }
    100% { opacity:1; }
}
/* Responsive */
@media (max-width: 480px) {
    .nmpa-salesforce-view .nmpa-search-controls form {
        flex-direction: column;
    }
    .nmpa-table .mobiletitle {
        min-width: 120px !important;
    }
}
@media (max-width: 768px) {
    .gradientbg {
        padding-top: 80px;
    }
    .nmpa-active-search .search-info {
        flex-direction: column;
    }
    .nmpa-pagination {
        padding: 15px 0;
    }
}
@media (max-width: 991px) {
    .nmpa-table-header {
        display: none;
    }
    .nmpa-table .nmpa-table-body-row {
        flex-direction: column;
    }
    .nmpa-table .nmpa-table-body-column {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100% !important;
        gap: 10px;
        margin-bottom: 5px;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .nmpa-table .nmpa-table-body-column.t0 {
        align-items: center !important;
        text-align: left;
    }
    .nmpa-table .mobiletitle {
        display: block !important;
        min-width: 200px;
    }
}
@media (max-width: 1024px) {
    .nmpa-table .t0 {
        width: 120px;
    }
    .nmpa-table .t2 {
        max-width: 150px;
    }
}
@media (min-width: 992px) and (max-width: 1250px) {
    .nmpa-table .t0 {
        width: 140px;
    }
    .nmpa-table .t5 {
        width: 280px;
    }
    .nmpa-table .t2 {
        max-width: 100px;
    }
}

