/* G2 Comparison Table Styles */
.g2-comparison {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #000823;
    box-sizing: border-box;
}
.g2-comparison *, .g2-comparison *:before, .g2-comparison *:after {
    box-sizing: inherit;
}
.g2-dashboard {
    max-width: 1000px;
    width: 100%;
    margin: 20px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}
.g2-header {
    background: #000823;
    color: white;
    padding: 25px 15px;
    position: relative;
    text-align: center;
}
.g2-title {
    margin: 0;
    font-weight: 700;
    font-size: 22px;
	color:white;
}
.g2-subtitle {
    margin: 5px 0 0;
    font-weight: 300;
    opacity: 0.8;
color:white;
    font-size: 14px;
}
.g2-content {
    padding: 15px;
}
.g2-intro-text {
    margin-bottom: 25px;
    line-height: 140%!important;
    color: #000823;
}
.g2-intro-text p {
    margin-bottom: 25px;
    line-height: 140%!important;
    color: #000823;
}   
.g2-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
    gap: 20px;
}
.g2-legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}
.g2-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-right: 8px;
    flex-shrink: 0;
}
.g2-allego-color {
    background-color: #28CCC1;
}
.g2-mindtickle-color {
    background-color: #ed3a3a;
}
.g2-difference-color {
    background-color: #28CCC1;
}
.g2-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.g2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 650px;
}
.g2-table th {
    background-color: rgba(0, 8, 35, 0.05);
    color: #000823;
    font-weight: 700;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #000823;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.g2-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    color: #000823;
    line-height: 100%;
}
.g2-metric-name {
    font-weight: 500;
    color: #000823;
}
.g2-score {
    font-weight: 600;
    text-align: center;
    min-width: 50px;
}
.g2-allego-score {
    color: #28CCC1!important;
}
.g2-mindtickle-score {
    color: #ed3a3a!important;

}
.g2-highspot-score {
    color: #ed3a3a!important;
}
.g2-highspot-color {
    background-color: #ed3a3a;
}
.g2-seismic-score {
    color: #ed3a3a!important;
}
.g2-difference {
    font-weight: 600;
    color: #000823;

    text-align: center;
}

/* Star rating styles */
.g2-stars {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}
.g2-star {
    color: #FFD700;
    font-size: 16px;
}
.allego-highspot-g2-star {
    font-size: 22px;
    line-height: 1;
    display: inline-block;
    font-weight: 300;
}
.g2-star-allego {
    color: #28CCC1 !important;
    font-size:22px!important;
}
.g2-star-competitor {
    color: #ed3a3a !important;
    font-size:22px!important;
}
.g2-star-empty {
    color: #e3e8ef;
    font-size:22px!important;
}

/* Ensure competitor empty stars use same red stroke/appearance */
.g2-star-competitor.g2-star-empty {
    color: #ed3a3a !important;
}

/* Highspot-specific: ensure empty stars within Highspot cells are red */
.g2-highspot-score .g2-star-empty {
    color: #ed3a3a !important;
}

/* Scoped overrides for Highspot shortcode - using a dedicated class */
.allego-highspot-g2-star.g2-star-competitor,
.allego-highspot-g2-star.g2-star-competitor.g2-star-empty {
    color: #ed3a3a !important;
    font-size:22px!important;
}
.g2-comparison-bar {
    height: 6px;
    background-color: #ecf0f1;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
    min-width: 100px;
}
.g2-bar-allego {
    background-color:  #28CCC1!important;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 3px;
}
.g2-bar-mindtickle {
    background-color: #ed3a3a;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 3px;
}
.g2-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 8, 35, 0.05);
    border-radius: 5px;
    font-size: 14px;
    border-left: 4px solid #000823;
    line-height: 100%;
}
.g2-summary-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #000823;
}
.g2-summary-metrics {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.g2-summary-metric {
    flex: 1 0 calc(50% - 20px);
    min-width: 120px;
    padding: 10px;
    text-align: center;
    margin-bottom: 10px;
}
.g2-summary-value {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}
.g2-summary-label {
    font-size: 11px;
    color: #000823;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.g2-allego-value {
    color: #28CCC1!important;
}
.g2-mindtickle-value {
    color: #ed3a3a;
}

/* Highlight points (used above table) */
.g2-highlight-points {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 30px;
}
.g2-highlight-point {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    line-height: 1.6;
    text-align: left;
    font-size: 18px;
    padding-bottom: 6px;
}
.g2-highlight-icon {
    color: #28CCC1 !important;
    font-weight: bold;
    font-size: 18px;
    margin-right: 12px;
    margin-top: 0px;
    flex-shrink: 0;
}
.g2-highlight-text {
    font-weight: bold;
    margin: 0 3px;
    display: inline-block;
}

/* Capability Comparison Table Styles */
.g2-capability-comparison .g2-dashboard {
    max-width: 1200px; /* Wider for capability comparison */
}
.g2-capability-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.g2-capability-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 900px;
    table-layout: fixed; /* Force fixed table layout */
}
.g2-capability-table th {
    background-color: rgba(0, 8, 35, 0.05);
    color: #000823;
    font-weight: 700;
    text-align: center;
    padding: 15px 10px;
    border-bottom: 2px solid #000823;
    font-size: 14px;
    white-space: nowrap;
}
.g2-capability-table th:first-child {
    text-align: left;
}
.g2-capability-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    color: #000823;
    line-height: 1.4;
    text-align: center;
}
.g2-capability-table td.g2-metric-name {
    text-align: left;
    font-weight: 600;
}
.g2-capability-table td.g2-feature {
    position: relative;
    vertical-align: middle;
}
.g2-star {
    color: #FFD700;
    font-size: 16px;
}
.g2-feature {
    font-size: 13px;
    font-weight: 500;
    min-height: 60px;
}
.g2-feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
}
.g2-feature-text {
    text-align: center;
    line-height: 1.3;
}
/* Custom check icon */
.g2-icon-check {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}
.g2-icon-check::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #28ccc1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.g2-icon-check::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 6px;
    height: 10px;
    border: solid #28ccc1;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}
/* Custom cross icon */
.g2-icon-cross {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}
.g2-icon-cross::before,
.g2-icon-cross::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    background-color: #cc2929;
}
.g2-icon-cross::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.g2-icon-cross::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.g2-capability-comparison .g2-allego-score {
    color: #28CCC1!important;
    font-weight: 700;
}
.g2-capability-comparison .g2-score {
    font-weight: 600;
    text-align: center;
}
.g2-feature-yes {
    color: #000823;
}
.g2-feature-no {
    color: #000823;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .g2-dashboard {
        margin: 10px auto;
        width: 100%;
    }
    .g2-title {
        font-size: 20px;
    }
    .g2-content {
        padding: 10px;
    }
    .g2-summary-metric {
        flex: 1 0 100%;
    }
    .g2-intro-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .g2-header {
        padding: 15px 10px;
    }
    .g2-title {
        font-size: 18px;
    }
    .g2-subtitle {
        font-size: 12px;
    }
    .g2-table th, .g2-table td {
        padding: 8px;
    }
    .g2-legend {
        justify-content: space-between;
        gap: 10px;
    }
    .g2-legend-item {
        font-size: 12px;
    }
}

/* Force proper table cell display */
.g2-capability-table tbody tr {
    display: table-row !important;
}
.g2-capability-table tbody td {
    display: table-cell !important;
    width: auto !important;
}
.g2-capability-table tbody td.g2-metric-name {
    width: 20% !important;
}
.g2-capability-table tbody td:not(.g2-metric-name) {
    width: 16% !important;
}