/* Fontes ITC Avant Garde Gothic */
@font-face {
    font-family: 'ITC Avant Garde Gothic';
    src: url('Fontes/ITC Avant Garde Gothic/ITC Avant Garde Gothic CE Book/ITC Avant Garde Gothic CE Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ITC Avant Garde Gothic';
    src: url('Fontes/ITC Avant Garde Gothic/ITC Avant Garde Gothic CE Demi/ITC Avant Garde Gothic CE Demi.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ITC Avant Garde Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: normal;
    background: #ffffff;
    min-height: 100vh;
    width: 100vw;
    color: #1e293b;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Títulos e subtítulos usam peso Demi */
h1, h2, h3, h4, h5, h6 {
    font-family: 'ITC Avant Garde Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
}

.container {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

header {
    background: url('Imagens/header-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    min-height: 350px;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-qulture {
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.logo-rocks {
    font-size: 1.3em;
    font-weight: 400;
    color: #ffffff;
    margin-top: -2px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 12px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.step {
    display: none;
    padding: 60px;
    animation: fadeIn 0.4s ease-out;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.step.active {
    display: block;
}

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

.step h2 {
    color: #764ba2;
    margin-bottom: 8px;
    font-size: 1.875em;
    font-weight: 600;
    font-family: 'ITC Avant Garde Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.02em;
}

.step > p {
    color: #64748b;
    margin-bottom: 48px;
    font-size: 1em;
    font-weight: 400;
}

#suppliers-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
    max-width: 600px;
}

.supplier-input-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.supplier-input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.875em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.supplier-input-group input,
.supplier-input-group select {
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    font-size: 1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #1e293b;
    width: 100%;
    font-family: inherit;
}

.supplier-input-group input:hover,
.supplier-input-group select:hover {
    border-color: #94a3b8;
}

.supplier-input-group input:focus,
.supplier-input-group select:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.supplier-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23764ba2' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.supplier-select option {
    padding: 10px;
}

.custom-supplier-input {
    margin-top: 10px;
}

.supplier-input-group input::placeholder {
    color: #94a3b8;
}

.supplier-input-group textarea {
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    font-size: 1em;
    transition: all 0.3s;
    color: #1e293b;
    background: #f8fafc;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    width: 100%;
}

.supplier-input-group textarea:focus {
    outline: none;
    border-color: #9c27b0;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.15);
    background: #ffffff;
}

.supplier-input-group textarea::placeholder {
    color: #94a3b8;
}


.supplier-input-group .remove-btn {
    position: absolute;
    right: 12px;
    top: 38px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.5em;
    padding: 4px 8px;
    transition: color 0.2s;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.supplier-input-group .remove-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    font-size: 0.9375em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 12px;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #764ba2 0%, #e91e63 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6a3d8f 0%, #d81b60 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #334155;
}

.btn-outline {
    background: #ffffff;
    color: #764ba2;
    border: 1px solid #cbd5e1;
    padding: 10px 20px;
    margin-bottom: 30px;
}

.btn-outline:hover {
    background: #f3e5f5;
    border-color: #764ba2;
    color: #6a3d8f;
}

.btn-outline:disabled,
.btn-outline[style*="display: none"] {
    display: none !important;
}

.step-actions {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.step-section {
    margin-bottom: 48px;
    padding: 32px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.step-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.step-section h3 {
    color: #764ba2;
    font-size: 1.25em;
    font-weight: 600;
    font-family: 'ITC Avant Garde Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: #64748b;
    font-size: 0.875em;
    margin-bottom: 24px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.product-item:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
}

.product-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #764ba2;
    flex-shrink: 0;
}

.product-item label {
    cursor: pointer;
    font-size: 0.9375em;
    color: #334155;
    flex: 1;
    margin: 0;
    font-weight: 500;
}

.product-item input[type="checkbox"]:checked + label {
    font-weight: 600;
    color: #1e293b;
}

.product-item.checked {
    background: #f3e5f5;
    border-color: #764ba2;
    border-width: 1px;
}

.product-deliveries-section {
    margin-bottom: 40px;
    padding: 32px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.product-deliveries-section.section-collapsed {
    padding-bottom: 16px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.product-title {
    color: #764ba2;
    margin: 0;
    font-size: 1.375em;
    font-weight: 600;
    flex: 1;
}

.toggle-section-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 16px;
    color: #94a3b8;
}

.toggle-section-btn:hover {
    background: #f1f5f9;
    color: #64748b;
}

.toggle-section-btn .arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: currentColor;
}

.toggle-section-btn.is-collapsed .arrow-icon {
    transform: rotate(180deg);
}

.product-content {
    transition: all 0.3s ease;
}

.deliveries-list {
    margin-bottom: 20px;
}

.delivery-item {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.delivery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.delivery-title-section {
    flex: 1;
}

.delivery-item h4 {
    color: #1e293b;
    margin: 0 0 16px 0;
    font-size: 1.0625em;
    font-weight: 600;
}

.importance-selector-general {
    margin-top: 16px;
    max-width: 300px;
}

.importance-selector-general label {
    display: block;
    font-size: 0.8125em;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 600;
}

.remove-delivery-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.5em;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: all 0.2s;
}

.remove-delivery-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

.delivery-suppliers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.supplier-delivery-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.supplier-name-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.9375em;
    margin-bottom: 16px;
    text-align: center;
}

.delivery-toggle-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.toggle-btn {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 90px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toggle-btn.toggle-yes {
    border-color: #cbd5e1;
}

.toggle-btn.toggle-yes:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}

.toggle-btn.toggle-yes.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.toggle-btn.toggle-yes.active:hover {
    background: #16a34a;
    border-color: #16a34a;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.toggle-btn.toggle-no {
    border-color: #cbd5e1;
}

.toggle-btn.toggle-no:hover {
    border-color: #ef4444;
    background: #fef2f2;
}

.toggle-btn.toggle-no.active {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.toggle-btn.toggle-no.active:hover {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.toggle-icon {
    font-size: 28px;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #64748b;
}

.toggle-btn.toggle-yes.active .toggle-icon {
    color: #ffffff;
}

.toggle-btn.toggle-no.active .toggle-icon {
    color: #ffffff;
}

.toggle-label {
    font-size: 0.875em;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
}

.toggle-btn.toggle-yes.active .toggle-label,
.toggle-btn.toggle-no.active .toggle-label {
    color: #ffffff;
}

.importance-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.9375em;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.importance-select:hover {
    border-color: #94a3b8;
}

.importance-select:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.btn-add-delivery {
    margin-top: 20px;
    width: auto;
}

#report-container {
    margin-top: 32px;
}

.summary-card {
    background: linear-gradient(135deg, #764ba2 0%, #e91e63 100%);
    color: #ffffff;
    padding: 56px;
    border-radius: 20px;
    margin-bottom: 48px;
    border: none;
    box-shadow: 0 20px 60px rgba(118, 75, 162, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.summary-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.summary-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.winner-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.trophy-icon {
    font-size: 80px;
    line-height: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.winner-logo-placeholder {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.winner-name-large {
    font-size: 1.8em;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    padding: 20px;
    word-break: break-word;
}

.summary-right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.score-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
    justify-content: flex-start;
}

.score-value {
    font-size: 5em;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.score-label {
    font-size: 2em;
    font-weight: 600;
    opacity: 0.9;
    color: #ffffff;
}

.score-percentage {
    font-size: 1.5em;
    font-weight: 600;
    opacity: 0.95;
    color: #ffffff;
}

.brief-explanation {
    font-size: 1.125em;
    line-height: 1.6;
    opacity: 0.95;
    color: #ffffff;
    padding-top: 16px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.summary-card h3 {
    font-size: 1.25em;
    margin-bottom: 16px;
    font-weight: 600;
}

.summary-card .winner {
    font-size: 2em;
    font-weight: 700;
    margin: 12px 0;
}

.summary-card .score {
    font-size: 1.125em;
    opacity: 0.9;
    margin-top: 8px;
}

.winner-explanation-card {
    background: #ffffff;
    border: 2px solid #9c27b0;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(156, 39, 176, 0.15);
}

.winner-explanation-card h3 {
    color: #764ba2;
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'ITC Avant Garde Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border-bottom: 2px solid #f3e5f5;
    padding-bottom: 12px;
}

.winner-explanation-card .explanation-content {
    color: #1e293b;
    line-height: 1.8;
}

.winner-explanation-card .explanation-content p {
    margin-bottom: 16px;
    font-size: 1.05em;
    padding-left: 24px;
    position: relative;
}

.winner-explanation-card .explanation-content p:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #9c27b0;
    font-weight: bold;
    font-size: 1.2em;
}

.winner-explanation-card .explanation-content p:last-child {
    margin-bottom: 0;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.chart-container {
    background: #ffffff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chart-container h3 {
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'ITC Avant Garde Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5em;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.chart-container canvas {
    flex: 1;
    max-height: calc(100% - 60px);
}

.chart-container-full-width {
    grid-column: 1 / -1;
    height: 500px !important;
    min-height: 500px;
    width: 100%;
}

.chart-container-full-width canvas {
    width: 100% !important;
    height: 420px !important;
    max-width: 100% !important;
    max-height: 420px !important;
    min-width: 100% !important;
}

/* Modal de Explicação do Cálculo */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-close {
    color: #64748b;
    float: right;
    font-size: 32px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #764ba2;
}

.modal-content h2 {
    color: #764ba2;
    margin-bottom: 24px;
    font-size: 2em;
}

#scoring-explanation-content {
    color: #475569;
    line-height: 1.8;
}

#scoring-explanation-content h3 {
    color: #764ba2;
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.375em;
}

#scoring-explanation-content ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

#scoring-explanation-content li {
    margin-bottom: 8px;
}

#scoring-explanation-content .highlight {
    background: #f8fafc;
    padding: 16px;
    border-left: 3px solid #764ba2;
    border-radius: 6px;
    margin: 16px 0;
}

#scoring-explanation-content .weight-info {
    background: #fef3c7;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0;
    border-left: 3px solid #f59e0b;
}

.score-explanation-link {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.score-explanation-link .link-text,
.summary-card .score-explanation-link .link-text,
.summary-card a.link-text {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-size: 0.9375em;
    font-weight: 600;
    transition: opacity 0.2s;
    display: inline-block;
}

.score-explanation-link .link-text:hover,
.summary-card .score-explanation-link .link-text:hover,
.summary-card a.link-text:hover {
    opacity: 0.8;
    text-decoration: underline !important;
    color: #ffffff !important;
}

/* Relatório de Soluções - Tabela Comparativa */
.solutions-report-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 48px;
    border: 1px solid #e2e8f0;
}

.solutions-report-card h3 {
    color: #764ba2;
    margin-bottom: 12px;
    font-weight: 600;
    font-family: 'ITC Avant Garde Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5em;
}

.report-description {
    color: #64748b;
    font-size: 0.9375em;
    margin-bottom: 32px;
    line-height: 1.6;
}

.solution-table-container {
    margin-bottom: 48px;
}

.solution-table-container:last-child {
    margin-bottom: 0;
}

.solution-table-title {
    color: #764ba2;
    font-size: 1.375em;
    font-weight: 600;
    font-family: 'ITC Avant Garde Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.solution-winner-text {
    color: #475569;
    font-size: 0.9375em;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8fafc;
    border-left: 3px solid #764ba2;
    border-radius: 6px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.solutions-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.9375em;
}

.solutions-comparison-table thead {
    background: linear-gradient(135deg, #764ba2 0%, #e91e63 100%);
    color: #ffffff;
}

.solutions-comparison-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.875em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.solutions-comparison-table th:last-child {
    border-right: none;
}

.solutions-comparison-table th.metric-col {
    min-width: 150px;
    text-align: left;
}

.solutions-comparison-table th.supplier-header {
    text-align: center;
    min-width: 180px;
    vertical-align: middle;
}

.solutions-comparison-table th.winner-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.solutions-comparison-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.solutions-comparison-table tbody tr:hover {
    background-color: #f8fafc;
}

.solutions-comparison-table td {
    padding: 16px 20px;
    color: #1e293b;
    border-right: 1px solid #e2e8f0;
}

.solutions-comparison-table td:last-child {
    border-right: none;
}

.solutions-comparison-table .metric-label {
    font-weight: 600;
    color: #1e293b;
    padding-left: 20px;
}

.solutions-comparison-table .metric-label.importance-label {
    padding-left: 40px;
}

.solutions-comparison-table .metric-label.fundamental {
    color: #10b981;
}

.solutions-comparison-table .metric-label.importante {
    color: #fbbf24;
}

.solutions-comparison-table .metric-label.desejavel {
    color: #f59e0b;
}

.solutions-comparison-table .score-value-cell {
    text-align: center;
    font-size: 1.25em;
    font-weight: 700;
    color: #764ba2;
    padding: 16px 20px;
}

.solutions-comparison-table .importance-value {
    text-align: center;
    font-weight: 600;
    font-size: 1.125em;
    padding: 16px 20px;
}

.solutions-comparison-table .importance-value.fundamental {
    color: #10b981;
}

.solutions-comparison-table .importance-value.importante {
    color: #fbbf24;
}

.solutions-comparison-table .importance-value.desejavel {
    color: #f59e0b;
}

.solutions-comparison-table .total-value {
    text-align: center;
    font-weight: 700;
    font-size: 1.125em;
    color: #1e293b;
    padding: 16px 20px;
}

.solutions-comparison-table .score-row {
    background-color: #f8fafc;
    border-top: 2px solid #e2e8f0;
}

.solutions-comparison-table .total-row {
    background-color: #f8fafc;
    border-top: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
}

@media (max-width: 768px) {
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .solutions-comparison-table {
        font-size: 0.8125em;
    }
    
    .solutions-comparison-table th,
    .solutions-comparison-table td {
        padding: 10px 8px;
    }
    
    .solutions-comparison-table th.supplier-header,
    .solutions-comparison-table th.winner-header {
        min-width: 72px;
    }
}

.analysis-section {
    background: #ffffff;
    padding: 32px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.analysis-section h3 {
    color: #764ba2;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'ITC Avant Garde Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.25em;
}

.analysis-section p {
    line-height: 1.8;
    color: #475569;
    margin-bottom: 12px;
}

.pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.pros, .cons {
    padding: 20px;
    border-radius: 8px;
}

.pros {
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
}

.cons {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
}

.pros h4, .cons h4 {
    margin-bottom: 12px;
    font-weight: 600;
    color: #0f172a;
}

.pros ul, .cons ul {
    list-style: none;
    padding-left: 0;
}

.pros li, .cons li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: #475569;
    font-size: 0.9375em;
}

.pros li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.cons li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

/* Histórico */
#history-container {
    margin-top: 32px;
}

.empty-history {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-history p {
    margin-bottom: 12px;
    font-size: 1.1em;
}

.history-item {
    background: #ffffff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.history-info {
    flex: 1;
}

.history-info h3 {
    color: #764ba2;
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 12px;
}

.history-date {
    color: #64748b;
    font-size: 0.875em;
    margin-bottom: 8px;
}

.history-suppliers,
.history-products,
.history-winner,
.history-score {
    color: #475569;
    font-size: 0.9375em;
    margin-bottom: 6px;
}

.history-winner {
    font-weight: 600;
    color: #764ba2;
    margin-top: 12px;
}

.history-score {
    font-weight: 600;
    color: #1e293b;
}

.history-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.history-actions .btn {
    min-width: 120px;
    margin-right: 0;
}

@media (max-width: 768px) {
    .logo-qulture {
        font-size: 1.5em;
    }
    
    .logo-rocks {
        font-size: 1.1em;
    }
    
    header {
        padding: 28px 20px;
        min-height: 220px;
        background-image: url('Imagens/header-bg-mobile.png');
        background-size: cover;
        background-position: center;
    }
    
    header h1 {
        font-size: 1.65em;
    }
    
    .subtitle {
        font-size: 0.95em;
    }
    
    .step {
        padding: 28px 20px;
    }
    
    .step h2 {
        font-size: 1.5em;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 320px;
        padding: 20px;
    }
    
    .chart-container-full-width {
        min-height: 380px;
    }
    
    .chart-container-full-width canvas {
        height: 320px !important;
        max-height: 320px !important;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .step-section {
        padding: 20px;
    }
    
    .delivery-toggle-group {
        flex-direction: column;
    }
    
    .toggle-btn {
        min-height: 70px;
    }
    
    .delivery-suppliers {
        grid-template-columns: 1fr;
    }
    
    .delivery-item {
        padding: 20px;
    }
    
    .product-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .product-title {
        font-size: 1.15em;
    }
    
    /* Relatório: card do vencedor em coluna no mobile */
    .summary-card {
        padding: 32px 24px;
    }
    
    .summary-card-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .score-value {
        font-size: 3em;
    }
    
    .score-label,
    .winner-name-large {
        font-size: 1.35em;
    }
    
    .winner-logo-placeholder {
        width: 140px;
        height: 140px;
    }
    
    .trophy-icon {
        font-size: 56px;
    }
    
    .winner-explanation-card {
        padding: 24px;
    }
    
    .analysis-section {
        padding: 24px;
    }
    
    .solutions-report-card {
        padding: 20px;
    }
    
    .history-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .history-actions {
        width: 100%;
    }
    
    .history-actions .btn {
        width: 100%;
    }
    
    /* Modal mais confortável no mobile */
    .modal-content {
        margin: 10px auto;
        padding: 24px;
        width: calc(100% - 24px);
        max-height: 90vh;
    }
    
    .modal-content h2 {
        font-size: 1.4em;
    }
}

/* Tela muito pequena (ex.: smartphones em retrato) */
@media (max-width: 480px) {
    header {
        min-height: 180px;
        padding: 20px 16px;
    }
    
    header h1 {
        font-size: 1.4em;
    }
    
    .step {
        padding: 20px 16px;
    }
    
    .step h2 {
        font-size: 1.35em;
    }
    
    .summary-card {
        padding: 24px 20px;
    }
    
    .score-value {
        font-size: 2.5em;
    }
}

