/**
 * Carbon Statement Public Styles
 */

.st-search-wrapper {
    max-width: 95%;
    margin: 30px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.st-search-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.st-search-form h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
}

.st-form-group {
    margin-bottom: 20px;
}

.st-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

#st-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#st-search-input:focus {
    outline: none;
    border-color: #0073aa;
}

.st-search-button {
    background: #0073aa;
    color: #fff;
    border: none;
    /*padding: 12px 30px;*/
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.st-search-button:hover {
    background: #005177;
}

/* Preloader */
#st-preloader {
    text-align: center;
    padding: 40px;
}

.st-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.st-results-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.st-results-header h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 22px;
}

.st-results-count {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.st-result-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.st-result-row {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.st-result-row:last-child {
    border-bottom: none;
}

.st-label {
    font-weight: 600;
    color: #555;
    display: inline-block;
    min-width: 150px;
}

.st-value {
    color: #333;
}

.st-highlight {
    color: #0073aa;
    font-weight: 700;
}

/* No Results */
#st-no-results {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .st-search-wrapper {
        padding: 10px;
    }
    
    .st-search-form {
        padding: 20px;
    }
    
    .st-label {
        display: block;
        margin-bottom: 5px;
    }
}
/**
 * AJAX Search Results - Full Table with All Fields
 */

/* Results Info */
.st-results-info {
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.st-results-count {
    font-size: 18px;
    color: #1e293b;
}

.st-results-count strong {
    color: #667eea;
    font-size: 24px;
    font-weight: 800;
}

/* Horizontal Scroll Wrapper */
.st-table-scroll {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

/* Table Wrapper */
.st-table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s ease;
    min-width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Full Results Table */
.st-full-table {
    width: 100%;
    min-width: 1600px; /* Minimum width to accommodate all columns */
    border-collapse: collapse;
}

.st-full-table thead {
    background: linear-gradient(135deg, #1e293b, #334155);
}

.st-full-table th {
    color: #ffffff;
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.st-full-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    /*cursor: pointer;*/
}

.st-full-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.st-full-table tbody tr:hover {
    background: #eff6ff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.st-full-table td {
    padding: 14px 15px;
    font-size: 14px;
    color: #374151;
    white-space: nowrap;
}

/* Client ID */
.st-client-id {
    /*color: #667eea;*/
    font-weight: 700;
    font-size: 15px;
}

/* Organization Name */
.st-org-name {
    font-weight: 600;
    color: #1e293b;
    /*max-width: 200px;*/
    white-space: normal;
    line-height: 1.4;
}

/* Organization Scope */
.st-scope {
    font-weight: 600;
    color: #1e293b;
    max-width: 200px;
    white-space: normal;
    line-height: 1.4;
}

/* Site Address */
.st-address {
    font-weight: 600;
    color: #1e293b;
    max-width: 250px;
    white-space: normal;
    line-height: 1.4;
}
.st-statement_type {
    font-weight: 600;
    color: #1e293b;
    max-width: 250px;
    white-space: normal;
    line-height: 1.4;
}
.st-standard{
    font-weight: 600;
    color: #1e293b;
    max-width: 250px;
    white-space: normal;
    line-height: 1.4;  
}
.st-category{
    font-weight: 600;
    color: #1e293b;
    max-width: 250px;
    white-space: normal;
    line-height: 1.4;  
}
/* Statement Code */
.st-code {
    color: #7c3aed;
    font-weight: 600;
    color: #1e293b;
    max-width: 250px;
    white-space: normal;
    line-height: 1.4;
}
.st-badge-type,
.cert-badge-type {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
/* Badges */
.st-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.st-badge-standard {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.st-badge-category {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 2px 6px rgba(240, 147, 251, 0.3);
}

/* Dates */
.st-date {
    color: #1e293b;
    font-weight: 600;
    max-width: 250px;
    white-space: normal;
    line-height: 1.4;
}
.st-period{
    color: #1e293b;
    font-weight: 600;
    max-width: 250px;
    white-space: normal;
    line-height: 1.4;
}
/* Expiration Date with Status */
.st-expire-date {
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.st-expire-active {
    background: #d1fae5;
    color: #065f46;
}

.st-expire-expiring {
    background: #fef3c7;
    color: #92400e;
}

.st-expire-expired {
    background: #fee2e2;
    color: #991b1b;
}

/* No Results */
.st-no-results-icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

#st-no-results {
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#st-no-results h3 {
    font-size: 24px;
    color: #1e293b;
    margin: 0 0 10px 0;
}

#st-no-results p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* Preloader */
#st-preloader {
    text-align: center;
    padding: 40px;
}

#st-preloader::after {
    content: '';
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.st-search-result-font {
    font-size: large;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar Styling */
.st-table-scroll::-webkit-scrollbar {
    height: 12px;
}

.st-table-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}

.st-table-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 6px;
}

.st-table-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3, #6a3f8f);
}

/* Responsive - Mobile Cards */
@media (max-width: 1024px) {
    .st-table-scroll {
        background: linear-gradient(to right, 
            rgba(102, 126, 234, 0.1) 0%, 
            transparent 50px, 
            transparent calc(100% - 50px), 
            rgba(102, 126, 234, 0.1) 100%);
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .st-full-table {
        min-width: 100%;
    }
    
    .st-full-table thead {
        display: none;
    }
    
    .st-full-table,
    .st-full-table tbody,
    .st-full-table tr,
    .st-full-table td {
        display: block;
        width: 100%;
    }
    
    .st-full-table tr {
        margin-bottom: 20px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .st-full-table td {
        text-align: right;
        padding: 12px 15px;
        position: relative;
        padding-left: 50%;
        border-bottom: 1px solid #f3f4f6;
        white-space: normal;
    }
    
    .st-full-table td:last-child {
        border-bottom: none;
    }
    
    .st-full-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 700;
        text-align: left;
        color: #1e293b;
        font-size: 12px;
    }
    
    .st-org-name,
    .st-scope,
    .st-address {
        max-width: 100%;
    }
    
    .st-results-count {
        font-size: 16px;
    }
    
    .st-results-count strong {
        font-size: 20px;
    }
}
