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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
}

.contable {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.location-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.location-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.header-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

h1 {
    color: #333;
    font-size: 2.5em;
    font-weight: 700;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    margin-top: 5px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-text-short {
    display: none;
}

.btn-text-full {
    display: inline;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #ff4757;
    color: white;
}

.btn-danger:hover {
    background: #ee5a6f;
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-info {
    background: #3498db;
    color: white;
}

.btn-info:hover {
    background: #2980b9;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-input {
    flex: 4;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.sort-select, .order-select {
    flex: 2;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    background: white;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85em;
    white-space: nowrap;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:hover {
    background: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons button {
    padding: 6px 12px;
    font-size: 0.9em;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

#pageInfo {
    font-weight: 600;
    color: #333;
}

.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);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

#modalTitle {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.8em;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

input.readonly-input,
input[readonly] {
    border-color: #667eea;
}

.readonly-input {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #666;
}

select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    background-color: white;
}

select:focus {
    outline: none;
    border-color: #667eea;
}

.config-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.zone-config-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.zone-config-item h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.close-config {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-config:hover {
    color: #000;
}

.close-competitor {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-competitor:hover {
    color: #000;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
}

.adjustment-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.adjustment-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.adjustment-item:last-child {
    margin-bottom: 0;
}

.adjustment-item > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
}

.adjustment-item .label {
    font-weight: 600;
    color: #333;
}

.adjustment-item .value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.2em;
}

.adjustment-item.reduction-info {
    background: #fff3cd;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 3px solid #ffc107;
}

.adjustment-item.reduction-info .value {
    color: #856404;
}

.adjustment-item .value.adjustment-amount {
    color: #dc3545;
}

.adjustment-item .formula-description {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-top: 5px;
    padding: 5px 10px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 4px;
    border-left: 2px solid #667eea;
}

.big-number.adjusted {
    color: #28a745;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9em;
}

h3 {
    margin: 25px 0 15px 0;
    color: #555;
    font-size: 1.3em;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.evaluation-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.section.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.6em;
}

.section-description {
    margin: -10px 0 20px 0;
    padding: 10px 15px;
    background: #f0f4ff;
    border-left: 3px solid #667eea;
    color: #555;
    font-size: 0.95em;
    font-style: italic;
    border-radius: 4px;
}

.section.highlight h2 {
    color: white;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    flex: 1 1 calc(50% - 8px);
    min-width: 200px;
}

.info-item .label {
    font-weight: 600;
    color: #555;
}

.info-item .value {
    color: #333;
}

.big-number {
    font-size: 3em;
    font-weight: 700;
    margin: 20px 0;
}

.big-number.total {
    color: #ffd700;
}

.section.highlight-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 40px 30px;
}

.section.highlight-primary h2 {
    color: white;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.big-number-primary {
    font-size: 3.5em;
    font-weight: 800;
    margin-top: 15px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.market-factor-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 0.9em;
}

.market-factor-info small {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.section.secondary-info {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #e0e0e0;
}

.info-item-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.label-small {
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
}

.value-small {
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
}

.nse-effective {
    font-weight: 500;
    font-size: 0.95em;
    margin-top: 5px;
}

.nse-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nse-card {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.nse-card h3 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 1.4em;
}

.nse-percent {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
}

.nse-homes {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.nse-income {
    font-size: 0.95em;
    opacity: 0.9;
}

.expenses-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.expense-item {
    flex: 1;
    min-width: 220px;
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.expense-item .label {
    font-weight: 600;
    color: #555;
}

.expense-item .value {
    color: #2ecc71;
    font-weight: 700;
    font-size: 1.1em;
}

.location-info-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.location-info-container > div {
    flex: 1;
    min-width: 300px;
}

.viability-section {
    padding: 0;
    background: transparent;
}

.viability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.viability-column {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background: white;
}

.viability-criteria {
    color: white;
    border: none;
}

.viability-criteria.viable-no {
    background-color: #dc3545;
}

.viability-criteria.viable-yes {
    background-color: #fd7e14;
}

.viability-criteria.viable-optimal {
    background-color: #28a745;
}

.viability-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

.viability-column h2 {
    margin-bottom: 20px;
    font-size: 1.3em;
}

.viability-criteria h2 {
    color: white;
}

.viability-box h2 {
    color: #333;
}

.viability-status {
    font-size: 3em;
    font-weight: 700;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.viability-details {
    margin-top: 20px;
    font-size: 0.95em;
    opacity: 0.95;
}

.viability-details p {
    margin: 6px 0;
    font-weight: 500;
}

.viability-value {
    font-size: 2.5em;
    font-weight: 700;
    margin: 20px 0;
    letter-spacing: 1px;
    color: #667eea;
}

.viability-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 10px;
    color: #555;
}

.adjustment-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.adjustment-tab-button {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.adjustment-tab-button:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.adjustment-tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: 600;
}

.adjustment-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.adjustment-tab-content.active {
    display: block;
}

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

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
}

.main-tabs {
    border-bottom: 3px solid #e0e0e0;
    margin-bottom: 25px;
}

.main-tabs .tab-button {
    font-size: 1.05em;
    padding: 12px 24px;
}

.config-section-container {
    display: none;
}

.config-section-container.active {
    display: block;
}

.config-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.config-table th {
    background-color: #f8f9fa;
    color: #333;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.config-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.config-table tbody tr:hover {
    background-color: #f8f9fa;
}

.config-table input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
}

.config-table input[type="number"]:focus {
    border-color: #667eea;
    outline: none;
}

.config-table .input-with-symbol {
    position: relative;
}

.config-table .input-with-symbol::after {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
    pointer-events: none;
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #667eea;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.config-section {
    margin-bottom: 20px;
}

.config-section-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

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

.weight-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weight-range-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weight-range-item label {
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-inputs .input-with-symbol {
    flex: 1;
}

.range-separator {
    font-weight: 600;
    color: #666;
    font-size: 1.1em;
}

.weight-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.weight-item label {
    font-size: 0.9em;
    margin-bottom: 8px;
    color: #555;
}

.weight-item input {
    font-weight: 600;
}

.weight-item.input-with-symbol::after {
    bottom: 27px;
}

.input-with-symbol {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-with-symbol input {
    padding-right: 35px;
}

.input-with-symbol.currency input {
    padding-left: 35px;
    padding-right: 12px;
}

.input-with-symbol::after {
    content: attr(data-symbol);
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: #666;
    font-weight: 600;
    pointer-events: none;
    line-height: 1;
}

.input-with-symbol.currency::after {
    content: attr(data-symbol);
    left: 12px;
    right: auto;
}

.zone-tab-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 20px -20px;
}

.zone-tab-header h4 {
    margin: 0;
    color: white;
    font-size: 1.3em;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.calculation-results {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    border: 2px solid #667eea;
}

.calculation-results h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3em;
    text-align: center;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.calc-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calc-item label {
    font-size: 0.85em;
    font-weight: 600;
    color: #555;
    margin: 0;
}

.calc-item span {
    font-size: 1.3em;
    font-weight: 700;
    color: #667eea;
}

.calc-item small {
    font-size: 0.75em;
    color: #888;
    font-style: italic;
    margin-top: 3px;
    line-height: 1.3;
}

.close-cannibalization {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-cannibalization:hover {
    color: #000;
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
    color: #666;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .header-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .header-buttons .btn {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        font-size: 0.85em;
        white-space: nowrap;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1em;
    }

    .controls {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.9em;
    }

    .action-buttons {
        flex-direction: column;
    }

    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tab-button {
        white-space: nowrap;
        font-size: 0.9em;
        padding: 10px 16px;
    }

    .weight-grid,
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
    }
    
    .viability-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Evaluation page specific - Flex se adapta automáticamente */
    .nse-card {
        min-width: 100%;
    }
    
    .expense-item {
        min-width: 100%;
    }
    
    .section {
        padding: 15px;
    }
    
    .section h2 {
        font-size: 1.3em;
    }
    
    .big-number {
        font-size: 2.5em;
    }
    
    .big-number-primary {
        font-size: 2.8em;
    }
    
    .viability-status {
        font-size: 2em;
    }
    
    .viability-value {
        font-size: 2em;
    }
    
    .adjustment-summary {
        padding: 12px;
    }
    
    .adjustment-item .value {
        font-size: 1.1em;
    }
    
    .section.highlight-primary {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    .header-buttons {
        flex-direction: column;
    }
    
    .header-buttons .btn {
        width: 100%;
        flex: none;
        font-size: 0.9em;
        padding: 10px 12px;
    }
    
    .btn-text-full {
        display: none;
    }
    
    .btn-text-short {
        display: inline;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    .section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .section h2 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    
    h3 {
        font-size: 1.1em;
        margin: 20px 0 12px 0;
    }
    
    .big-number {
        font-size: 2em;
    }
    
    .big-number-primary {
        font-size: 2.2em;
    }
    
    .viability-status {
        font-size: 1.5em;
        letter-spacing: 1px;
    }
    
    .viability-value {
        font-size: 1.8em;
    }
    
    .viability-column {
        padding: 20px 15px;
    }
    
    .location-info-container > div {
        min-width: 100%;
    }
    
    .info-item {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .nse-card {
        padding: 15px;
        min-width: 100%;
    }
    
    .nse-card h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .nse-percent {
        font-size: 1.6em;
    }
    
    .nse-homes {
        font-size: 1em;
    }
    
    .nse-income {
        font-size: 0.85em;
    }
    
    .info-item,
    .expense-item {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .adjustment-item .value {
        font-size: 1em;
    }
    
    .adjustment-item .formula-description {
        font-size: 0.8em;
        padding: 5px 8px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 5% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .tab-button {
        font-size: 0.85em;
        padding: 10px 12px;
    }
    
    .main-tabs .tab-button {
        font-size: 0.85em;
        padding: 10px 12px;
    }
    
    table {
        font-size: 0.85em;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    .section.highlight-primary {
        padding: 20px 15px;
    }
    
    .section-description {
        font-size: 0.85em;
        padding: 8px 12px;
    }
    
    .viability-grid {
        grid-template-columns: 1fr;
    }
}
