/* ========================================
   kSimpleServiceSegment - LAYOUT PRINCIPAL
   ======================================== */
.kSimpleServiceSegment {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-top: 1%;
    height: 100%;
}

/* ========================================
   HEADERS DE COLUMNAS
   ======================================== */

.kSimpleServiceSegment-left-header,
.kSimpleServiceSegment-center-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 140%;
}

    .kSimpleServiceSegment-left-header a,
    .kSimpleServiceSegment-center-header a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        font-size: 90%;
        font-weight: bold;
        color: #4b5563;
        background-color: #e5e7eb;
        border-radius: 6px;
        margin-right: 1.5%;
    }

/* ========================================
   BLOQUES DE CONTENIDO
   ======================================== */

.kSimpleServiceSegment-left-block {
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 1%;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

.fabricaItems {
    height: 32vh;
}

.kSimpleServiceSegment-center-block {
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 1%;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
    max-height: 53vh;
    overflow-y: auto;
    height: 100%;
}

/* ========================================
   kServiceSegment - FÁBRICAS
   ======================================== */

.kSS-fabricas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 28vh;
    overflow-y: auto;
}

/* Card de Fábrica */
.kSS-fabrica-card {
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all .15s ease;
    overflow: hidden;
    min-height: 70px;
    flex-shrink: 0;
}

    .kSS-fabrica-card:hover {
        background: #f6f8fb;
        border-color: #b8c7e0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .kSS-fabrica-card.selected {
        border-color: #3b82f6;
        background: #eef4ff;
        border-left: 4px solid #3b82f6;
    }

/* Header de Fábrica */
.kSS-fabrica-header {
    /*background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);*/
    padding: 8px 12px;
    min-height: 36px;
    background: #6393c3;
}

.kSS-fabrica-nombre {
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kSS-fabrica-codigo {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.kSS-fabrica-cif {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

/* Body de Fábrica */
.kSS-fabrica-body {
    padding: 8px 12px;
}

.kSS-fabrica-location {
    font-weight: 600;
    font-size: 12px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kSS-fabrica-address {
    font-size: 11px;
    color: #4b5563;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tags (Booking, Muelle) */
.kSS-fabrica-tags {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.kSS-fabrica-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

    .kSS-fabrica-tag.booking {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .kSS-fabrica-tag.muelle {
        background: #d1fae5;
        color: #047857;
    }

/* Observaciones */
.kSS-fabrica-obs {
    font-size: 10px;
    color: #6b7280;
    font-style: italic;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e5e7eb;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   kServiceSegment - SERVICIOS CON LINEAS (Columna 2)
   ======================================== */

.kSS-servicios-lineas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 58vh;
    padding-right: 5px;
}

/* Grupo de Servicio */
.kSS-servicio-grupo {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.kSS-servicio-info {
    /*background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);*/
    padding: 8px 12px;
    background: #6393c3;
}

.kSS-servicio-nombre {
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
}
.kss-servicio-usercreation {
    float: right;
}

.kSS-servicio-cliente {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.kSS-servicio-ref {
    color: rgba(255, 255, 255, 0.7);
}

/* Grupo CyD */
.kSS-cyd-grupo {
    border-top: 1px solid #e5e7eb;
}

.kSS-cyd-info {
    background: #f3f4f6;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kSS-cyd-hora {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

/* Líneas dentro del CyD */
.kSS-cyd-grupo .kSS-lineas {
    padding: 8px;
}

/* ========================================
   kServiceSegment - LINEAS CyD (Columna 3)
   ======================================== */

.kSS-lineas {
    max-height: 54vh;
    overflow-y: auto;
}


.kSS-linea {
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    transition: all .1s ease;
    margin-bottom: 1%;
}

    .kSS-linea:hover {
        background: #f9fafb;
        border-color: #c5c5c5;
    }

    .kSS-linea.disabled {
        opacity: 0.5;
        pointer-events: none;
    }

    .kSS-linea.selected {
        border-color: #3b82f6;
        background: #eff6ff;
        border-left: 3px solid #3b82f6;
    }

    .kSS-linea.no-stock .kSS-linea-bultos-disponibles {
        color: #dc2626;
    }

/* Contenido de línea */
.kSS-linea-content {
    width: 100%;
    display: flex;
}

.kSS-linea-material {
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
    margin-bottom: 2px;
}

.kSS-linea-code {
    font-weight: 400;
    color: #6b7280;
    font-size: 12px;
}

.kSS-linea-palet {
    color: #4b5563;
    display: grid;
    grid-template-columns: auto auto;
    gap: 10% 5%;
}
.kSS-linea-bultos-disponibles {
    font-weight: 600;
    color: #059669;
}

.kSS-linea-separator {
    color: #d1d5db;
    margin: 0 4px;
}

.kSS-linea-dimensions {
    font-size: 11px;
    color: #9ca3af;
}

.kSS-linea-obs {
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed #e5e7eb;
}

/* Acciones de línea */
.kSS-linea-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    flex-shrink: 0;
}

.kSS-linea-input {
    width: 60px;
    padding: 6px 8px;
    font-size: 13px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
}

    .kSS-linea-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
    }

    .kSS-linea-input:disabled {
        background: #f3f4f6;
        cursor: not-allowed;
    }

.kSS-linea-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

    .kSS-linea-check:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

.kSS-resumen-container1 {
    width: 70%;
    border-right: 1px dashed #dcdcdc;
    padding: 2%;
}
.kSS-resumen-container2 {
    width: 25%;
    align-content: center;
    border-right: 1px dashed #dcdcdc;
    padding-right: 1%;
}
.kSS-resumen-container3 {
    width: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.kSS-resumen-container1-lineas {
    width: 65%;
    border-right: 1px dashed #dcdcdc;
    padding: 2%;
}
.kSS-resumen-container2-lineas {
    width: 20%;
    align-content: center;
    border-right: 1px dashed #dcdcdc;
    padding-right: 1%;
}
.kSS-resumen-container3-lineas {
    width: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4%;
}

/* ========================================
   BOTONES Y CONTROLES
   ======================================== */

.kSS-btn-search {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

    .kSS-btn-search:hover {
        background: #f5f5f5;
    }

/* ========================================
   LOADING OVERLAY
   ======================================== */

.kSS-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.kSS-loading-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.kSS-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #555;
    border-radius: 50%;
    animation: kss-spin 0.8s linear infinite;
}

@keyframes kss-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   ESTADOS VACÍOS Y ERRORES
   ======================================== */

.kSS-empty,
.kSS-error {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.kSS-error {
    color: #dc2626;
}

/* ========================================
   HEADER Y BLOQUE COLUMNA DERECHA
   ======================================== */

.kSimpleServiceSegment-right-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 140%;
}

    .kSimpleServiceSegment-right-header a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        font-size: 90%;
        font-weight: bold;
        color: #4b5563;
        background-color: #e5e7eb;
        border-radius: 6px;
        margin-right: 1.5%;
    }

.kSimpleServiceSegment-right-block {
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 1%;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

    .kSimpleServiceSegment-right-block.resumenViaje {
        max-height: 53vh;
        overflow-y: auto;
        height: 100%;
    }

/* ========================================
   kServiceSegment - RESUMEN VIAJE GRUPOS
   ======================================== */

.kSS-resumen-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Grupo (Fábrica + Fecha) */
.kSS-resumen-grupo {
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.kSS-resumen-grupo-header {
    /*background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);*/
    padding: 10px 12px;
    background: #6393c3;
}

.kSS-resumen-fabrica-nombre {
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kSS-resumen-fabrica-ubicacion {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.kSS-resumen-fabrica-direccion {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kSS-resumen-fecha {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

/* Líneas dentro del grupo */
.kSS-resumen-grupo-lineas {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f9fafb;
}

/* Ajustes para items dentro de grupos */
.kSS-resumen-grupo .kSS-resumen-item {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0;
    background: #fff;
    min-height: auto;
}

.kSS-resumen-grupo .kSS-resumen-material {
    font-size: 12px;
}

.kSS-resumen-grupo .kSS-resumen-cantidad {
    font-size: 11px;
}

/* ========================================
   kServiceSegment - RESUMEN ITEM DETALLADO
   ======================================== */

.kSS-resumen-material {
    font-weight: 600;
    font-size: 12px;
    color: #1f2937;
    margin-bottom: 2px;
}

.kSS-resumen-code {
    font-weight: 400;
    color: #6b7280;
    font-size: 11px;
}

.kSS-resumen-palet {
    color: #4b5563;
    display: grid;
    grid-template-columns: auto auto;
    gap: 7% 5%;
}

.kSS-resumen-bultos {
    font-weight: bold;
    text-align: center;
}


.kSS-resumen-dimensions {
    font-size: 10px;
    color: #9ca3af;
}

.kSS-resumen-remove {
    width: 100%;
    height: 100%;
    font-size: 150%;
    background: none;
    border: 0;
}

.labelResumen {
    display: block;
    font-size: 80%;
    color: #c1c1c1;
}

/* ========================================
   kSimpleServiceSegment - LAYOUT CON TIMELINE
   ======================================== */
.kSimpleServiceSegment-top {
    display: flex;
    width: 100%;
    min-height: 60vh;
    flex-shrink: 0;
}

.kSimpleServiceSegment-left {
    width: 25%;
    margin-right: 0.5%;
}

.kSimpleServiceSegment-center {
    width: 35%;
    margin-right: 0.5%;
}

.kSimpleServiceSegment-right {
    width: 40%;
}

.kSimpleServiceSegment-bottom {
    margin-top: 1%;
    margin-bottom: 1%;
}

/* ========================================
   kServiceSegment - TIMELINE
   ======================================== */

.kSimpleServiceSegment-timeline {
    padding: 10px 15px;
    background: #f9fafb;
    border-radius: 8px;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

.kSS-timeline-header {
    margin-bottom: 15px;
}

.kSS-timeline-title {
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
}

.kSS-timeline-content {
    min-height: 80px;
}

.kSS-timeline-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
    padding: 20px;
}

/* Track horizontal */
.kSS-timeline-track {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
}

/* Punto de la timeline */
.kSS-timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    position: relative;
    flex-shrink: 0;
}

/* Conector horizontal */
.kSS-timeline-connector {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #d1d5db;
    z-index: 1;
}

.kSS-timeline-point.last .kSS-timeline-connector {
    display: none;
}

.kSS-timeline-point.first .kSS-timeline-connector {
    left: 50%;
}

/* Nodo circular */
.kSS-timeline-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(30, 58, 95, 0.3);
}

.kSS-timeline-node-number {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

/* Info del punto */
.kSS-timeline-info {
    margin-top: 10px;
    text-align: center;
    padding: 0 5px;
}

.kSS-timeline-fabrica {
    font-weight: 600;
    font-size: 12px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.kSS-timeline-fecha {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.kSS-timeline-cargas {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

/* Responsive: scroll horizontal si hay muchos puntos */
.kSS-timeline-track::-webkit-scrollbar {
    height: 6px;
}

.kSS-timeline-track::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 3px;
}

.kSS-timeline-track::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 3px;
}

    .kSS-timeline-track::-webkit-scrollbar-thumb:hover {
        background: #6b7280;
    }
.kSS-timeline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    float: right;
}

.kSS-timeline-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all .15s ease;
}

    .kSS-timeline-btn:hover:not(:disabled) {
        background: #f3f4f6;
        border-color: #9ca3af;
    }

    .kSS-timeline-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: #f9fafb;
    }

.kSS-btn-icon {
    font-weight: 700;
    font-size: 14px;
}

/* Colores específicos para cada botón */
.kSS-btn-descarga:not(:disabled) {
    border-color: #3b82f6;
    color: #1d4ed8;
}

.kSS-btn-descarga:hover:not(:disabled) {
    background: #eff6ff;
}

.kSS-btn-consolidacion:not(:disabled) {
    border-color: #f59e0b;
    color: #d97706;
}

.kSS-btn-consolidacion:hover:not(:disabled) {
    background: #fffbeb;
}

.kSS-btn-parada:not(:disabled) {
    border-color: #6b7280;
    color: #4b5563;
}

.kSS-btn-parada:hover:not(:disabled) {
    background: #f9fafb;
}

/* Estilos para descargas en Timeline */
.kSS-timeline-node.descarga {
    background: #ff9800;
    border-color: #e65100;
}

    .kSS-timeline-node.descarga .kSS-timeline-node-number {
        color: #fff;
    }

.kSS-timeline-connector.descarga {
    background-color: #ff9800;
}

.kSS-timeline-point.descarga .kSS-timeline-info {
    border-left-color: #ff9800;
}

.kSS-resumen-grupo-header.descarga {
    background-color: #eab466;
}

.kSS-tipo-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 8px;
}

    .kSS-tipo-badge.carga {
        background-color: #e3f2fd;
        color: #1565c0;
    }

    .kSS-tipo-badge.descarga {
        background-color: #fff3e0;
        color: #e65100;
    }

/* ========================================
   kServiceSegment - TIMELINE TOOLTIP
   ======================================== */

.kSS-tooltip-content {
    padding: 5px 0;
    max-width: 280px;
}

.kSS-tooltip-linea {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

    .kSS-tooltip-linea:last-child {
        border-bottom: none;
    }

.kSS-tooltip-material {
    font-weight: 600;
    font-size: 12px;
    color: #fff;
}

.kSS-tooltip-detalle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

/* Ajustar el tooltip de Bootstrap si es necesario */
.tooltip-inner {
    max-width: 300px;
    text-align: left;
}

/* ================================
   DIALOG DESCARGAS - CONTENT
   ================================ */
.kSS-dialog-descargas {
    padding: 15px;
    max-height: 500px;
}

.kSS-linea-descarga {
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.kSS-resumen-item.kSS-linea.kSS-linea-descarga:hover {
    border-color: #ff9800;
    background-color: #fff8e1;
}


.kSS-resumen-item.kSS-linea.kSS-linea-descarga.selected {
    border-color: #ff9800;
    background-color: #fff3e0;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.kSS-linea-check-descarga {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff9800;
}

/* ========================================
   FABRICA EXPANDIDA (Selección única)
   ======================================== */

.kSS-fabricas.kSS-fabricas-expanded {
    max-height: none;
}

.kSS-fabrica-card.kSS-fabrica-expanded {
    min-height: auto;
}

    /* Header expandido */
    .kSS-fabrica-card.kSS-fabrica-expanded .kSS-fabrica-header {
        padding: 12px 15px;
        min-height: 50px;
    }

    .kSS-fabrica-card.kSS-fabrica-expanded .kSS-fabrica-nombre {
        font-size: 18px;
        white-space: normal;
    }

    .kSS-fabrica-card.kSS-fabrica-expanded .kSS-fabrica-codigo {
        font-size: 14px;
        margin-top: 4px;
    }

    /* Body expandido */
    .kSS-fabrica-card.kSS-fabrica-expanded .kSS-fabrica-body {
        padding: 15px;
    }

    .kSS-fabrica-card.kSS-fabrica-expanded .kSS-fabrica-location {
        font-size: 15px;
    }

    .kSS-fabrica-card.kSS-fabrica-expanded .kSS-fabrica-address {
        font-size: 14px;
        white-space: normal;
        margin-top: 6px;
    }

    .kSS-fabrica-card.kSS-fabrica-expanded .kSS-fabrica-tags {
        margin-top: 10px;
    }

    .kSS-fabrica-card.kSS-fabrica-expanded .kSS-fabrica-tag {
        font-size: 12px;
        padding: 3px 10px;
    }

    .kSS-fabrica-card.kSS-fabrica-expanded .kSS-fabrica-obs {
        font-size: 13px;
        -webkit-line-clamp: unset;
        margin-top: 10px;
    }

/* ========================================
   RESUMEN CABECERA COLUMNA 2
   ======================================== */

.kSS-header-resumen {
    display: flex;
    align-items: center;
    font-size: 15px;
    margin-top: 2%;
}

.kSS-resumen-item {
    display: flex;
    align-items: baseline;
    gap: 3px;
    padding: 4px;
    background: aliceblue;
    border-radius: 5px;
    border: 1px solid #6393c3
}

    .kSS-resumen-item.kSS-linea.kSS-linea-descarga {
        background: white;
        border: 1px solid #fdac57;
    }

.kSS-resumen-value {
    font-weight: 600;
    color: #2c5282;
    font-size: 15px;
}

.kSS-resumen-label {
    color: #718096;
    font-size: 11px;
}

.kSS-resumen-separator {
    color: #cbd5e0;
    font-weight: 300;
}

/* Ajustar el header de la columna 2 para flex */
.kSimpleServiceSegment-center-header {
    display: block;
}

    .kSimpleServiceSegment-center-header > a {
        flex-shrink: 0;
    }
.kSS-resumen-content {
    width: 100%;
    display: flex;
}

/* ========================================
   BOTÓN AÑADIR TODA LA CARGA
   ======================================== */
.kSS-btn-delete-all-load,
.kSS-btn-add-all-load {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    color: #ffffff;
    background: #3b82f6;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    margin-right: 1%;
}
    .kSS-btn-delete-all-load:hover
    .kSS-btn-add-all-load:hover {
        background: #2c5282;
    }

    .kSS-btn-delete-all-load:disabled,
    .kSS-btn-add-all-load:disabled {
        background: #cbd5e0;
        cursor: not-allowed;
        opacity: 0.6;
    }


.kSS-btn-save-auction:hover {
    background: #089d45;
}

.kSS-btn-save-auction {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    background: #10b981;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    border: none;
    margin-right: 1%;
}

/* ========================================
   FORMULARIO CREAR SUBASTA (Columna 4)
   ======================================== */

.kSimpleServiceSegmentContainerForm {
    display: none;
    width: 65%;
    flex-direction: column;
}

.kSimpleServiceSegment.form-mode .kSimpleServiceSegmentContainerForm {
    display: block;
    padding-left: 10%;
    padding-right: 10%;
}

.kSimpleServiceSegment.form-mode .kSimpleServiceSegment-left,
.kSimpleServiceSegment.form-mode .kSimpleServiceSegment-center {
    display: none;
}

.kSimpleServiceSegment-form-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 140%;
}

    .kSimpleServiceSegment-form-header a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        font-size: 90%;
        font-weight: bold;
        color: #4b5563;
        background-color: #e5e7eb;
        border-radius: 6px;
        margin-right: 1.5%;
    }

.kSimpleServiceSegment-form-block {
    overflow-y: auto;
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    background: #f9f9f9;
    height: 52.5vh;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

.kSimpleServiceSegment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

    .kSimpleServiceSegment-form-actions button {
        padding: 8px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
    }

.kSS-btn-cancel {
    background: #e2e8f0;
    color: #475569;
}

    .kSS-btn-cancel:hover {
        background: #cbd5e1;
    }

.kSS-btn-save {
    background: #3b82f6;
    color: white;
}

    .kSS-btn-save:hover {
        background: #2563eb;
    }

.kSS-btn-save-notify {
    background: #10b981;
    color: white;
}

    .kSS-btn-save-notify:hover {
        background: #059669;
    }

/* ===== Resumen Card ===== */
.kSS-resumen-card {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 3px;
    margin-top: 10px;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
    width: 100%;
    border: 1px solid #959393;
}

.kSS-resumen-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    border-right: 1px solid #959393;
    flex: 1;
}

    .kSS-resumen-card-item:last-child {
        border-right: none;
    }

.kSS-resumen-card-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #959393;
}

.kSS-resumen-card-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.errorField {
    border: 2px solid #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}