
/* DecisioQ  Razor bindings layered on top of uploaded VINquery CSS */
.service_f textarea.form-control,
.service_f textarea.jsonbox {
    min-height: 320px;
    width: 100%;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.45;
}

textarea.raw-json {
    width: 100%;
    min-height: 320px;
    border: none;
    background: transparent;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
}

.service_alert {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.service_alert.success { background:#dff0d8; border-color:#d6e9c6; color:#3c763d; }
.service_alert.info { background:#d9edf7; border-color:#bce8f1; color:#31708f; }
.service_alert.warning { background:#fcf8e3; border-color:#faebcc; color:#8a6d3b; }
.service_alert.error { background:#f2dede; border-color:#ebccd1; color:#a94442; }

.template-description {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 12px;
    min-height: 76px;
    border-radius: 4px;
}

.template-description strong {
    color: #1d6aab;
    font-size: 16px;
}

.template-description p {
    margin: 6px 0;
    line-height: 1.45;
}

.template-description span {
    color: #777;
}

.criteria-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.criterion-pill {
    display: inline-block;
    background: #fff;
    border: 1px solid #479fe9;
    color: #333;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 13px;
}

.renderer-badge {
    display: inline-block;
    background: #479fe9;
    color: #fff;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.empty-response {
    padding: 18px;
    background: #fff;
    border: 1px dashed #bbb;
    color: #777;
    text-align: center;
}

.friendly-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 14px;
}

.friendly-card h4 {
    color: #1d6aab;
    margin-top: 0;
}

.winner {
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.winner-label {
    font-size: 12px;
    text-transform: uppercase;
}

.winner h2 {
    margin: 4px 0 0;
    font-size: 24px;
}

.confidence {
    background: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.friendly-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 8px;
}

.friendly-table th {
    background: #479fe9;
    color: #fff;
    text-align: left;
    padding: 9px;
    border: 1px solid #479fe9;
}

.friendly-table td {
    border: 1px solid #ddd;
    padding: 9px;
    vertical-align: top;
}

.score-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.score-bar {
    width: 170px;
    height: 16px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ccc;
}

.score-fill {
    height: 100%;
    background: #479fe9;
}

.status-inline {
    margin-top: 25px;
}

.demo-actions {
    margin-top: 10px;
}

.api-title-note {
    color: #777;
    display: block;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .status-inline { margin-top: 0; }
    .demo-actions { text-align: left !important; }
}

.api-catalog-note{color:#777;font-size:13px;margin-top:6px;}

.actual-json {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 12px;
    max-height: 520px;
    overflow: auto;
    white-space: pre-wrap;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.45;
}

.raw-details { margin-top: 12px; }
.raw-details summary { cursor: pointer; font-weight: bold; color: #1d6aab; margin-bottom: 8px; }
.actual-json { background: #fff; border: 1px solid #ddd; color: #333; padding: 12px; max-height: 520px; overflow: auto; white-space: pre-wrap; font-family: Consolas, Monaco, monospace; font-size: 13px; line-height: 1.45; }

.breakdown-table {
    margin: 0;
    font-size: 12px;
}
.breakdown-table td {
    padding: 4px 6px;
}


/* Recommended option panel height/word-wrap fix */
.winner.hero-winner,
.hero-winner,
.winner {
    min-height: auto !important;
    height: auto !important;
    line-height: 1.35 !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    padding: 16px 18px !important;
    box-sizing: border-box !important;
}

.winner.hero-winner h2,
.hero-winner h2,
.winner h2 {
    display: block !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}


/* Final recommended option panel fix: target renderer-specific classes */
.recommended-option-box {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 18px 20px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
}

.recommended-option-box .recommended-option-text {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Final Decision Result presentation */
.decision-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
    margin: 12px 0 16px;
}

.decision-summary > div {
    padding: 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    color: #333;
}

.recommended-option-box {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 18px 20px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
}

.recommended-option-box .recommended-option-text {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin: 0 !important;
    padding: 0 !important;
}

.breakdown-table {
    margin: 0;
    font-size: 12px;
}

.breakdown-table td {
    padding: 4px 6px;
}


/* WebForms conversion helpers */
textarea.form-control {
    height: auto;
}
.request-json {
    min-height: 360px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.45;
}
.raw-json {
    width: 100%;
    min-height: 320px;
    border: none;
    background: transparent;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
}
.service_alert {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.service_alert.success { background:#dff0d8; border-color:#d6e9c6; color:#3c763d; }
.service_alert.info { background:#d9edf7; border-color:#bce8f1; color:#31708f; }
.service_alert.warning { background:#fcf8e3; border-color:#faebcc; color:#8a6d3b; }
.service_alert.error { background:#f2dede; border-color:#ebccd1; color:#a94442; }
.empty-response {
    padding: 18px;
    background: #fff;
    border: 1px dashed #bbb;
    color: #777;
    text-align: center;
}
.renderer-badge {
    display: inline-block;
    background: #479fe9;
    color: #fff;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.friendly-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 14px;
}
.friendly-card h4 {
    color: #1d6aab;
    margin-top: 0;
}
.friendly-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 8px;
}
.friendly-table th {
    background: #479fe9;
    color: #fff;
    text-align: left;
    padding: 9px;
    border: 1px solid #479fe9;
}
.friendly-table td {
    border: 1px solid #ddd;
    padding: 9px;
    vertical-align: top;
}
.score-cell { display:flex; align-items:center; gap:10px; min-width:220px; }
.score-bar { width:170px; height:16px; background:#eee; border-radius:8px; overflow:hidden; border:1px solid #ccc; }
.score-fill { height:100%; background:#479fe9; }
.winner {
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.decision-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
    margin: 12px 0 16px;
}
.decision-summary > div {
    padding: 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    color: #333;
}
.recommended-option-box {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 18px 20px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
}
.recommended-option-box .recommended-option-text {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin: 0 !important;
    padding: 0 !important;
}
.breakdown-table { margin: 0; font-size: 12px; }
.breakdown-table td { padding: 4px 6px; }
.api-catalog-note { color:#777; font-size:13px; margin: 6px 0 10px; }
@media (max-width: 767px) {
    .decision-summary { grid-template-columns: 1fr; }
}

.summary-strip {
    margin-top: 12px;
    background: #fcf8e3;
    border: 1px solid #faebcc;
    color: #8a6d3b;
    padding: 10px;
    border-radius: 4px;
}


/* Static DecisioQ  HTML/JS helpers */
textarea.form-control {
    height: auto;
}
.request-json {
    min-height: 360px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.45;
}
.raw-json, .code-panel {
    width: 100%;
    min-height: 320px;
    border: none;
    background: transparent;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
    white-space: pre-wrap;
}
.service_alert {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.service_alert.success { background:#dff0d8; border-color:#d6e9c6; color:#3c763d; }
.service_alert.info { background:#d9edf7; border-color:#bce8f1; color:#31708f; }
.service_alert.warning { background:#fcf8e3; border-color:#faebcc; color:#8a6d3b; }
.service_alert.error { background:#f2dede; border-color:#ebccd1; color:#a94442; }
.empty-response {
    padding: 18px;
    background: #fff;
    border: 1px dashed #bbb;
    color: #777;
    text-align: center;
}
.renderer-badge {
    display: inline-block;
    background: #479fe9;
    color: #fff;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.friendly-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 14px;
}
.friendly-card h4 {
    color: #1d6aab;
    margin-top: 0;
}
.friendly-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 8px;
}
.friendly-table th {
    background: #479fe9;
    color: #fff;
    text-align: left;
    padding: 9px;
    border: 1px solid #479fe9;
}
.friendly-table td {
    border: 1px solid #ddd;
    padding: 9px;
    vertical-align: top;
}
.score-cell { display:flex; align-items:center; gap:10px; min-width:220px; }
.score-bar { width:170px; height:16px; background:#eee; border-radius:8px; overflow:hidden; border:1px solid #ccc; }
.score-fill { height:100%; background:#479fe9; }
.winner {
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.decision-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
    margin: 12px 0 16px;
}
.decision-summary > div {
    padding: 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    color: #333;
}
.recommended-option-box {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 18px 20px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
}
.recommended-option-box .recommended-option-text {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin: 0 !important;
    padding: 0 !important;
}
.breakdown-table { margin: 0; font-size: 12px; }
.breakdown-table td { padding: 4px 6px; }
.summary-strip {
    margin-top: 12px;
    background: #fcf8e3;
    border: 1px solid #faebcc;
    color: #8a6d3b;
    padding: 10px;
    border-radius: 4px;
}
.api-catalog-note { color:#777; font-size:13px; margin: 6px 0 10px; }
.template-description {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 12px;
    min-height: 76px;
    border-radius: 4px;
}
.template-description strong {
    color: #1d6aab;
    font-size: 16px;
}
@media (max-width: 767px) {
    .decision-summary { grid-template-columns: 1fr; }
}
.ai-interpretation-card {
    border-left: 5px solid #479fe9;
    background: #ffffff;
}

    .ai-interpretation-card h4 {
        color: #1d6aab;
    }