:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --bg: #f1f5f9;
    --card: #ffffff;
    --text: #0f172a;
    --border: #e2e8f0;
    --success: #22c55e;
    --whatsapp: #25d366;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
    min-height: 100vh;
}

nav {
    width: 260px;
    background: #0f172a;
    height: 100vh;
    position: fixed;
    padding: 2rem 1rem;
    color: white;
    z-index: 100;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

nav h2 {
    font-size: 1.2rem;
    color: #38bdf8;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

nav button {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    color: #94a3b8;
    transition: 0.3s;
}

nav button:hover,
nav button.active {
    background-color: var(--primary);
    color: white;
}

main {
    margin-left: 260px;
    padding: 2rem 3rem;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

section {
    display: none;
    animation: fadeIn 0.3s ease;
}

section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-global {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.progress-bar-bg {
    background: #e2e8f0;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
}

.progress-fill {
    background: var(--success);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

.mini-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.header-with-toggle,
.header-with-ws {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.checklist-item:last-child {
    border-bottom: none;
}

input[type="checkbox"].task-check {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--success);
}

input[type="checkbox"].task-check:checked+span {
    color: #94a3b8;
    text-decoration: line-through;
}

.phase-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-divider {
    margin: 1.5rem 0 0.8rem 0;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.9rem;
}

textarea {
    height: 140px;
    resize: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--secondary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(18px);
}

/* ÍCONOS DE WHATSAPP */
.ws-icon-btn {
    background: var(--whatsapp);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.ws-icon-btn:hover {
    transform: scale(1.1);
}

.ws-icon-btn svg {
    width: 18px;
    height: 18px;
}

.supplier-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

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

.supplier-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-delete {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: bold;
}

.result-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 12px;
    border-radius: 8px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.result-total {
    font-weight: bold;
    border-top: 1px solid #bfdbfe;
    padding-top: 8px;
    margin-top: 8px;
    color: var(--primary);
    font-size: 1rem;
}

.status-loading {
    font-size: 0.8rem;
    color: var(--primary);
    margin-top: 10px;
    font-weight: bold;
}

.link-list a {
    display: block;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.link-list a:hover {
    text-decoration: underline;
}

/* ESTILOS PARA CÁLCULOS GUARDADOS */
.saved-calc-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.saved-calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text);
}

.saved-calc-data {
    font-size: 0.8rem;
    color: #475569;
}

.saved-calc-data strong {
    color: var(--text);
}

/* FIX CELULAR FOLD 5 */
@media (max-width: 1024px) {
    body {
        flex-direction: column;
    }

    nav {
        width: 100%;
        height: auto;
        position: sticky;
        top: 0;
        padding: 0.8rem;
        flex-direction: row;
        overflow-x: auto;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav h2 {
        display: none;
    }

    nav button {
        width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        text-align: center;
        white-space: nowrap;
    }

    main {
        margin-left: 0;
        padding: 1rem;
        width: 100%;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .header-with-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===== ESTILOS EVALUADOR ===== */

.criteria-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.criteria-section h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.criteria-section h5 {
    margin: 0.8rem 0 0.5rem 0;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.criteria-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.criteria-row:last-child {
    border-bottom: none;
}

.criteria-row.badge-yellow {
    border-left: 4px solid #eab308;
    padding-left: 12px;
}

.criteria-row.badge-orange {
    border-left: 4px solid #f97316;
    padding-left: 12px;
}

.criteria-label {
    flex: 1;
    color: #475569;
    font-weight: 500;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #dbeafe;
    color: #0369a1;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: help;
    flex-shrink: 0;
}

.criteria-group-yellow,
.criteria-group-orange {
    margin-bottom: 1rem;
}

.criteria-group-orange {
    border-top: 2px solid #f97316;
    padding-top: 0.8rem;
}

/* Status Display */
.status-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    margin: 0;
    border: 1px solid var(--border);
    min-height: 48px;
}

.status-badge {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-valid {
    background: #dcfce7;
    color: #166534;
}

.status-invalid {
    background: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background: #f3f4f6;
    color: #374151;
}

.approval-percentage {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
    text-align: right;
}

.approval-detail {
    font-size: 0.78rem;
    color: #475569;
}

/* Button Group */
.button-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-top: 0;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Form Groups */
.form-group-readonly {
    margin-bottom: 1rem;
}

.form-group-readonly input {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

/* Evaluation List */
.search-box {
    margin-bottom: 1rem;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
}

.eval-list-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.eval-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.eval-item-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    font-weight: 600;
}

.eval-item-title strong {
    color: var(--text);
    font-size: 0.95rem;
}

.eval-item-percentage {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    min-width: 50px;
    text-align: right;
}

.eval-item-details {
    background: white;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #64748b;
}

.eval-item-details div {
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
}

.eval-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-link,
.btn-edit,
.btn-whatsapp,
.btn-delete {
    font-size: 0.75rem;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
}

.btn-link {
    background: #e0f2fe;
    color: #0369a1;
}

.btn-link:hover:not(:disabled) {
    background: #bae6fd;
}

.btn-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-edit {
    background: #fef08a;
    color: #854d0e;
}

.btn-edit:hover {
    background: #fde047;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    background: #1ead8a;
}

.btn-delete {
    background: #fee2e2;
    color: #991b1b;
}

.btn-delete:hover {
    background: #fecaca;
}

/* Pagination */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn-pagination {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-pagination:hover:not(:disabled) {
    background: var(--secondary);
    transform: scale(1.05);
}

.btn-pagination:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-info {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    color: var(--text);
}

.modal-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.modal-body .form-group,
.modal-body .form-group-readonly {
    margin-bottom: 1rem;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-whatsapp-modal,
.btn-delete-modal,
.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    flex: 1;
    min-width: 100px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-whatsapp-modal {
    background: var(--whatsapp);
    color: white;
}

.btn-whatsapp-modal:hover {
    background: #1ead8a;
}

.btn-delete-modal {
    background: #fee2e2;
    color: #991b1b;
}

.btn-delete-modal:hover {
    background: #fecaca;
}

.modal-footer .btn-primary {
    background: var(--primary);
    color: white;
}

.modal-footer .btn-primary:hover {
    background: var(--secondary);
}

.modal-footer .btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.modal-footer .btn-secondary:hover {
    background: #cbd5e1;
}

/* Mensajes inline */
.eval-inline-message {
    display: none;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

.eval-inline-message-success {
    color: #16a34a;
}

.eval-inline-message-error {
    color: #dc2626;
}

.eval-inline-message-info {
    color: #2563eb;
}

.delete-warning {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 8px;
}

.modal-confirm-delete .modal-body {
    padding-top: 12px;
}

/* WhatsApp dentro del modal */
.modal-footer .ws-icon-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    padding: 0;
}

.modal-footer .ws-icon-btn svg {
    width: 20px;
    height: 20px;
}

#modal-main-action-btn {
    min-width: 96px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .criteria-row {
        flex-wrap: wrap;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
    }

    .modal-footer .ws-icon-btn {
        width: 42px;
        max-width: 42px;
        align-self: flex-start;
    }
}

/* ===== EVALUADOR - LAYOUT HORIZONTAL + GAP REDUCIDO ===== */

#evaluador .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

#evaluador .grid-2 > .card:first-child {
    width: 100%;
}

#evaluador .grid-2 > .card:last-child,
#evaluador #eval-list-container {
    width: 100%;
}

#evaluador .card:first-child {
    max-width: none;
}

#evaluador .card:first-child > h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

#evaluador .card:first-child > .form-group,
#evaluador .card:first-child > .form-group-readonly {
    margin-bottom: 0;
}

#evaluador .criteria-section {
    margin: 0.25rem 0 0;
}

#evaluador .criteria-section h4 {
    margin-bottom: 0.5rem;
}

#evaluador .criteria-section h5 {
    margin-top: 0.35rem;
    margin-bottom: 0.45rem;
}

#evaluador .criteria-row {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

@media (min-width: 1025px) {
    #evaluador .card:first-child {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.85rem 1rem;
        align-items: start;
    }

    #evaluador .card:first-child h3 {
        grid-column: 1 / -1;
    }

    #evaluador .card:first-child .criteria-section {
        grid-column: 1 / -1;
    }

    #evaluador .card:first-child .status-display {
        grid-column: 1 / 3;
        align-self: stretch;
        margin-top: 0.15rem;
    }

    #evaluador .card:first-child .button-group {
        grid-column: 3 / 4;
        align-self: stretch;
        margin-top: 0.15rem;
        max-width: none;
        height: 100%;
    }

    #evaluador .card:first-child .button-group button {
        height: 100%;
        min-height: 50px;
    }

    #evaluador .card:first-child .eval-inline-message {
        grid-column: 1 / -1;
    }

    #evaluador .criteria-group-yellow {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem 1rem;
        margin-bottom: 0.6rem;
    }

    #evaluador .criteria-group-yellow h5 {
        grid-column: 1 / -1;
    }

    #evaluador .criteria-group-orange {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.35rem 1rem;
        margin-bottom: 0;
        padding-top: 0.65rem;
    }

    #evaluador .criteria-group-orange h5 {
        grid-column: 1 / -1;
    }

    #evaluador .criteria-row {
        border-bottom: 1px solid #e2e8f0;
        min-height: 36px;
    }

    #evaluador .status-display {
        max-width: none;
    }

    #evaluador .eval-list-item {
        display: grid;
        grid-template-columns: 1.2fr 1.4fr auto;
        gap: 1rem;
        align-items: center;
    }

    #evaluador .eval-item-header {
        margin-bottom: 0;
    }

    #evaluador .eval-item-details {
        margin-bottom: 0;
    }

    #evaluador .eval-item-actions {
        justify-content: flex-end;
        align-items: center;
        min-width: 280px;
    }
}

@media (max-width: 1024px) {
    #evaluador .grid-2 {
        grid-template-columns: 1fr;
    }

    #evaluador .criteria-group-yellow,
    #evaluador .criteria-group-orange {
        display: block;
    }

    #evaluador .eval-list-item {
        display: block;
    }

    #evaluador .status-display {
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }

    #evaluador .button-group {
        margin-top: 0.75rem;
    }
}
/* ===== EVALUADOR - ALINEACIÓN FINAL LISTADO GUARDADO ===== */

#evaluador .eval-list-item-rearranged {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
        "title status"
        "details actions" !important;
    gap: 12px 16px !important;
    align-items: center !important;
    padding: 18px 20px !important;
}

/* La fila superior deja de comportarse como contenedor visual */
#evaluador .eval-list-item-rearranged .eval-item-top-row {
    display: contents !important;
}

/* Título alineado izquierda */
#evaluador .eval-list-item-rearranged .eval-product-name {
    grid-area: title !important;
    justify-self: start !important;
    align-self: center !important;
    max-width: 100% !important;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
}

/* Badge alineado derecha, a la altura del título */
#evaluador .eval-list-item-rearranged .eval-item-top-row .status-badge {
    grid-area: status !important;
    justify-self: end !important;
    align-self: center !important;
    white-space: nowrap !important;
    margin-left: 0 !important;
}

/* La fila inferior deja de comportarse como contenedor visual */
#evaluador .eval-list-item-rearranged .eval-item-bottom-row {
    display: contents !important;
}

/* Montos debajo del título, alineados izquierda */
#evaluador .eval-list-item-rearranged .eval-item-details-inline {
    grid-area: details !important;
    justify-self: start !important;
    align-self: center !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 28px !important;

    background: #ffffff;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 0 !important;
    max-width: none !important;
    width: auto !important;
}

#evaluador .eval-list-item-rearranged .eval-item-details-inline div {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

#evaluador .eval-list-item-rearranged .eval-item-details-inline strong {
    color: #475569;
}

#evaluador .eval-list-item-rearranged .eval-item-details-inline span {
    color: #334155;
}

/* Botones alineados derecha, debajo del badge */
#evaluador .eval-list-item-rearranged .eval-item-actions {
    grid-area: actions !important;
    justify-self: end !important;
    align-self: center !important;

    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;

    min-width: fit-content !important;
}

#evaluador .eval-list-item-rearranged .ws-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
}

/* Responsive */
@media (max-width: 900px) {
    #evaluador .eval-list-item-rearranged {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "title"
            "status"
            "details"
            "actions" !important;
        align-items: stretch !important;
    }

    #evaluador .eval-list-item-rearranged .eval-product-name,
    #evaluador .eval-list-item-rearranged .eval-item-top-row .status-badge,
    #evaluador .eval-list-item-rearranged .eval-item-details-inline,
    #evaluador .eval-list-item-rearranged .eval-item-actions {
        justify-self: stretch !important;
    }

    #evaluador .eval-list-item-rearranged .eval-item-details-inline {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    #evaluador .eval-list-item-rearranged .eval-item-details-inline div {
        justify-content: space-between !important;
    }

    #evaluador .eval-list-item-rearranged .eval-item-actions {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }
}