

.tmu-ga-widget {
    position: relative;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    background-color: var(--e-global-color-54a86eb);
    border-radius: 10px;
}

.tmu-ga-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.tmu-ga-title {
    margin: 0;
    font-size: 1.4em;
    color: #222;
}

.tmu-ga-live-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tmu-ga-date-range {
    padding: 8px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    appearance: auto;
}

.tmu-ga-date-range:hover {
    border-color: #1e73be;
}

.tmu-ga-date-range:focus {
    outline: none;
    border-color: #1e73be;
    box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.15);
}

.tmu-ga-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background-color: #EABB43 !important;
    color: #fff !important;
    border: 2px solid #EABB43;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tmu-ga-refresh-btn:hover {
    background-color: #20636C;
    color: #F4F5F5 !important;
}

.tmu-ga-refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tmu-ga-identities {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.tmu-ga-identities-label {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tmu-ga-identity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tmu-ga-identity-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.tmu-ga-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.tmu-ga-summary-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.tmu-ga-summary-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.tmu-ga-summary-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #1e73be;
    line-height: 1.2;
    margin-bottom: 4px;
}

.tmu-ga-summary-label {
    font-size: 0.78em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 500;
}

.tmu-ga-table-wrapper {
    
    margin-bottom: 16px;
}

.tmu-ga-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    display: flex;
    z-index: 998;
}
.tmu-ga-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 800px;
    background: #fff;
}

.tmu-ga-table thead th {
    background: #298389 !important;
    color: #fff;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.tmu-ga-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.15s ease;
}

.tmu-ga-table tbody tr:hover {
    background-color: #f0f7ff !important;
}

.tmu-ga-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tmu-ga-table td {
    padding: 10px;
    vertical-align: middle;
}

.tmu-ga-cell-title {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.tmu-ga-cell-path {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
    font-family: monospace;
    font-size: 12px;
}

.tmu-ga-cell-identity {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #555;
    font-size: 12px;
}

.tmu-ga-source-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2px;
    flex-direction: row;
    justify-content: center;
    z-index: 999;
}

.tmu-ga-source-tab {
    padding: 10px 28px;
    background: #EABB43 !important;
    border: 1px solid #333;

    border-radius: 6px 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #333 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 5px;
    position: relative;
    margin-bottom: -2px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tmu-ga-source-tab:hover {
    background: #20636C !important;
    color: #F4F5F5 !important;
    border: 1px solid #EABB43 !important;
}

.tmu-ga-source-tab.active {
    background: #20636C !important;
    color: #F4F5F5 !important;
    border: 1px solid #EABB43 !important;
    font-weight: 700;
    z-index: 1;
}

.tmu-ga-source-tab .tmu-ga-tab-count {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    padding: 0 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    color: var(--e-global-color-text);
}

.tmu-ga-source-tab.active .tmu-ga-tab-count {
    background: rgba(255,255,255,0.3);
    color: var(--e-global-color-a5c61e1);
}

.tmu-ga-datasource-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.tmu-ga-datasource-tabs {
    display: flex;
    gap: 8px;
}

.tmu-ga-datasource-tab {
    padding: 8px 22px;
    background: #EABB43 !important;
    border: 2px solid #EABB43;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tmu-ga-datasource-tab:hover {
    background-color: #20636C !important;
    color: #F4F5F5 !important;
    border: 1px solid #EABB43 !important;
}

.tmu-ga-datasource-tab.active {
    background-color: #20636C !important;
    color: #F4F5F5 !important;
    border: 1px solid #EABB43 !important;
}

.tmu-ga-datasource-tab.active:hover {
    background-color: #20636C !important;
    color: #F4F5F5 !important;
    border: 1px solid #EABB43 !important;
}

.tmu-ga-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0 8px;
    border-top: 1px solid #eee;
}

.tmu-ga-pagination-info {
    font-size: 13px;
    color: #666;
}

.tmu-ga-pagination-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tmu-ga-page-btn {
    padding: 6px 12px;
    border: 1px solid #EABB43;
    background: #EABB43;
    color: #333;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tmu-ga-page-btn:hover {
    background-color: #20636C;
    color: #F4F5F5;
    border-style: none;
}

.tmu-ga-page-btn.active {
    background: #20636C;
    color: #F4F5F5;
    border-color: #20636C;
    font-weight: 600;
}

.tmu-ga-page-dots {
    padding: 6px 8px;
    color: #999;
}

.tmu-ga-live-info {
    padding: 10px 0;
    font-size: 13px;
    color: #f7f7f7;
    font-style: italic;
    display: none;
}

.tmu-ga-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
}

.tmu-ga-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e9ecef;
    border-top-color: #1e73be;
    border-radius: 50%;
    animation: tmu-ga-spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes tmu-ga-spin {
    to { transform: rotate(360deg); }
}

.tmu-ga-no-data,
.tmu-ga-error {
    padding: 30px 20px;
    text-align: center;
    color: #666;
}

.tmu-ga-error {
    color: #c62828;
}

.tmu-ga-error p,
.tmu-ga-no-data p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .tmu-ga-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tmu-ga-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tmu-ga-datasource-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .tmu-ga-pagination {
        flex-direction: column;
        align-items: flex-start;
    }

    .tmu-ga-table {
        font-size: 12px;
    }

    .tmu-ga-table thead th,
    .tmu-ga-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .tmu-ga-summary-grid {
        grid-template-columns: 1fr;
    }

    .tmu-ga-widget {
        padding: 12px;
    }
}