.branchThird {
  margin-top: 15px
}

.officialPrice {
  font: 400 1.2em/1 "Open Sans", "Helvetica Neue", Helvetica, sans-serif;
  margin: 0 .3em 0 0;
}

.venta-de-mostrador {
  text-align: right;
  margin-right: 3em;
  line-height: 2.5em;
}
.venta-de-mostrador > span{
  margin-right: 3em;
}

.venta-de-mostrador label{
  margin: 0 1.5em 0 0.5em;
}

.venta-de-mostrador label:last-child{
  margin: 0 0 0 0.5em;
}

.venta-de-mostrador md-radio-button {
  display: inline-block;
  margin :  0  1em !important;
}

.tabbable-panel .nav-tabs.nav-justified>.active>a, .nav-tabs.nav-justified>.active>a:focus {
  border-bottom: none !important;
}

.tabbable-panel .nav-tabs.nav-justified>.active>a, .nav-tabs.nav-justified>.active>a:focus{
  border-bottom: none !important;
}

.tabbable-panel .nav-tabs.nav-justified>.active>a, .nav-tabs.nav-justified>.active>a:focus, .nav-tabs.nav-justified>.active>a:hover{
  border : none !important;
}

/*#lossPass{*/
  /*width: 2%;*/
/*}*/

.tabbable-panel .alert{
  margin-top : 10px;
}

.btnLogout{
  background: transparent;
  border: none;
}

.custom-quantity-input .quantity-btn:hover {
  border-color: #565656;
  background: #565656;
}

.input-desc-box {
  width: 100%;
  color: #797878;
  padding: 12px 15px;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  background: #f2f2f2;
  margin-bottom: 25px;
  line-height: 21px;
}

input.ng-pristine + ul#strength {
  display:none;
}

ul#strength {
  display:inline;
  list-style:none;
  margin:0;
  margin-left:0px;
  padding:0;
  vertical-align:2px;
}

.point:last {
  margin:0 !important;
}

.point {
  background:#DDD;
  border-radius:2px;
  display:inline-block;
  height:5px;
  margin-right:1px;
  width:20px;
}

.go-right{
  float:right;
}


.list-icon{
  color: white
}

.list-icon:hover{
  color: white
}

.pointer{
  cursor: pointer;
}
.series {
  list-style-type: square;
  font-size: 2em;
  margin-bottom: -15px;
}

.series .text {
  color: black;
  font-size: .6em;
}

.global-chart-filter select{
  width: 50%;
  display : inline-block;
}
.global-chart-filter span{
  width: 48%;
  font-size: 1.1em;
  display : inline-block;
}

/*.global-char canvas{*/
  /*height: 30em !important;*/
/*}*/

.charts-pie-flex {
  /*display: flex;*/
  margin-bottom: 60px;
}

.chart-pie-co {
  height: 27.5em;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.chart-pie-co h2{
  margin-top: 0;
  align-self: start;
  position: absolute;
}

ul.centro-series {
  display: initial;
  position: relative;
  left: -80px;
}

.margin-bottom-pie{
  margin-bottom: 5%;
}

.hr-home{
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

/**/
/*.chart-pie-co {*/
  /*!*display: flex;*!*/
  /*!*align-items: center;*!*/
  /*!*justify-content: space-around;*!*/
  /*text-align: center;*/
/*}*/

/*.chart-pie-co h2{*/
  /*margin-top: 0;*/
  /*!*align-self: start;*!*/
  /*!*position: absolute;*!*/
/*}*/

/*ul.centro-series {*/
  /*!*display: initial;*!*/
  /*position: absolute;*/
  /*width:10%;*/
  /*top:0;*/
  /*bottom: 0;*/
  /*right: 0;*/
  /*margin-left:4em*/
  /*!*left: -80px;*!*/
/*}*/

/*.margin-bottom-pie{*/
  /*margin-bottom: 5%;*/
/*}*/


.notification {
  background-color: #555;
  color: white;
  text-decoration: none;
  padding: 15px 26px;
  position: relative;
  display: inline-block;
  border-radius: 2px;
}

.notification:hover {
  background: red;
}

.notification .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  padding: 5px 10px;
  background: red;
  color: white;
}

/* Contenedor principal del seguimiento masivo */
.seguimiento-masivo-container {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Contenedor de la tabla con scroll horizontal */
.batch-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Tabla principal */
.batch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
    min-width: 1400px; /* Ancho mínimo para que aparezca scroll horizontal */
}

/* Durante el resize, deshabilitar transiciones */
.batch-table.resizing {
    user-select: none;
}

/* Encabezados de la tabla */
.batch-table thead th {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 12px 8px;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: sticky;
    top: 0;
    z-index: 10;
}

.batch-table thead th:last-child {
    border-right: none;
}

/* Manejador de resize en las columnas */
.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    cursor: col-resize;
    user-select: none;
    background: transparent;
    transition: background 0.2s;
}

.resize-handle:hover {
    background: #1A67EA;
}

/* Filas de la tabla */
.batch-row {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.15s;
}

.batch-row:hover {
    background-color: #f8f9fa;
}

.batch-table tbody td {
    padding: 10px 8px;
    border-right: 1px solid #e9ecef;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-table tbody td:last-child {
    border-right: none;
}

/* Celda de ID con tooltip */
.id-cell {
    font-family: "Siesa BT";
    font-size: 12px;
    color: #000000;
    max-width: 150px;
}

/* Botón de expandir errores */
.expand-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    transition: transform 0.2s;
}

.expand-btn:hover {
    transform: scale(1.1);
}

/* Badges de estado */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cfe2ff; color: #084298; }
.status-completed { background: #d1e7dd; color: #0f5132; }
.status-failed { background: #f8d7da; color: #842029; }
.status-partial { background: #fff3cd; color: #664d03; }

/* Columnas de contadores */
.col-counter {
    text-align: center !important;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.counter-success { color: #198754; }
.counter-warning { color: #fd7e14; }
.counter-error { color: #dc3545; }
.counter-pdf { color: #0dcaf0; }
.counter-email-success { color: #20c997; }
.counter-email-error { color: #d63384; }

/* Fila de errores expandida */
.error-row {
    background-color: #fff5f5;
}

.error-details {
    padding: 15px 20px;
    border-left: 4px solid #dc3545;
}

.error-details h4 {
    margin: 0 0 10px 0;
    color: #dc3545;
    font-size: 14px;
}

.error-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-details li {
    padding: 8px 0;
    border-bottom: 1px solid #ffe0e0;
    font-size: 12px;
    line-height: 1.5;
}

.error-details li:last-child {
    border-bottom: none;
}

.error-time {
    float: right;
    color: #6c757d;
    font-size: 11px;
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 4px 4px;
}

.btn-pagination {
    padding: 8px 16px;
    background: #1A67EA;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-pagination:hover:not(:disabled) {
    background: #1557d0;
}

.btn-pagination:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.5;
}

.page-info {
    font-size: 14px;
    color: #495057;
}

.total-count {
    color: #6c757d;
    font-size: 13px;
    margin-left: 5px;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}

.nav-tabs .nav-item {
    margin-bottom: -2px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: #1A67EA;
    background: #f8f9fa;
}

.nav-tabs .nav-link.active {
    border-bottom-color: #1A67EA;
    color: #1A67EA !important;
    font-weight: 600;
}

/* Alertas */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.alert-info {
    background: #cfe2ff;
    border: 1px solid #b6d4fe;
    color: #084298;
}

/* Responsive */
@media (max-width: 768px) {
    .seguimiento-masivo-container {
        padding: 10px;
    }
    
    .batch-table {
        font-size: 12px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== DASHBOARD STATS ===== */
.charts-container {
    padding: 20px;
}

.loading-container {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.loading-container .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 15px;
}

/* Stats Cards Grid */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #dee2e6;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

/* Colores específicos para cada tipo de card */
.stat-card.accepted {
    border-left-color: #198754;
}
.stat-card.accepted .stat-value {
    color: #198754;
}

.stat-card.rejected {
    border-left-color: #fd7e14;
}
.stat-card.rejected .stat-value {
    color: #fd7e14;
}

.stat-card.failed {
    border-left-color: #dc3545;
}
.stat-card.failed .stat-value {
    color: #dc3545;
}

.stat-card.pdf {
    border-left-color: #0dcaf0;
}
.stat-card.pdf .stat-value {
    color: #0dcaf0;
}

.stat-card.email-sent {
    border-left-color: #20c997;
}
.stat-card.email-sent .stat-value {
    color: #20c997;
}

.stat-card.email-failed {
    border-left-color: #d63384;
}
.stat-card.email-failed .stat-value {
    color: #d63384;
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.chart-panel {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chart-panel h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* ===== BAR CHART ===== */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-label {
    min-width: 100px;
    font-size: 13px;
    color: #495057;
    font-weight: 500;
}

.bar-track {
    flex: 1;
    height: 28px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* Colores de las barras */
.bar-fill.accepted { background: #198754; }
.bar-fill.rejected { background: #fd7e14; }
.bar-fill.failed { background: #dc3545; }
.bar-fill.pending { background: #6c757d; }
.bar-fill.pdf { background: #0dcaf0; }
.bar-fill.email-sent { background: #20c997; }
.bar-fill.email-failed { background: #d63384; }

.bar-value {
    min-width: 50px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

/* ===== PIE CHART ===== */
.pie-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pie-chart {
    width: 200px;
    height: 200px;
}

.pie-segment {
    fill: none;
    stroke-width: 20;
    transition: stroke-width 0.3s;
}

.pie-segment:hover {
    stroke-width: 22;
}

/* Colores de segmentos del pie */
.pie-segment.accepted { stroke: #198754; }
.pie-segment.rejected { stroke: #fd7e14; }
.pie-segment.failed { stroke: #dc3545; }
.pie-segment.pending { stroke: #6c757d; }

.pie-center-text {
    font-size: 16px;
    font-weight: 700;
    fill: #495057;
}

/* Legend */
.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #495057;
}

.legend-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-item .dot.accepted { background: #198754; }
.legend-item .dot.rejected { background: #fd7e14; }
.legend-item .dot.failed { background: #dc3545; }
.legend-item .dot.pending { background: #6c757d; }

/* ===== BATCH PROGRESS BAR ===== */
.batch-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-container {
    flex: 1;
    height: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.progress-bar-fill {
    display: flex;
    height: 100%;
}

.progress-segment {
    transition: width 0.3s ease;
}

.progress-segment.accepted { background: #198754; }
.progress-segment.rejected { background: #fd7e14; }
.progress-segment.failed { background: #dc3545; }

.batch-progress .progress-text {
    min-width: 45px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

/* ===== PROGRESS INDICATOR ===== */
.progress-indicator {
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1A67EA;
    margin: 20px 0;
}

.progress-text {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.progress {
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #1A67EA;
    transition: width 0.3s ease;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Controles de tabla */
.table-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-size-selector label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.page-size-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background-color: white;
    transition: border-color 0.2s;
}

.page-size-select:hover {
    border-color: #999;
}

.page-size-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* Paginación mejorada */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px 0;
}

.btn-pagination {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-pagination:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: #999;
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Números de página */
.page-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-number-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number-btn:hover:not(:disabled):not(.active) {
    background-color: #f8f9fa;
    border-color: #999;
}

.page-number-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    cursor: default;
}

.page-number-btn.ellipsis {
    border: none;
    background: transparent;
    cursor: default;
    pointer-events: none;
}

.page-number-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Información de paginación */
.pagination-info {
    text-align: center;
    margin-top: 10px;
    padding: 10px 0;
}

.total-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .table-controls {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .page-number-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .btn-pagination {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* Timeline Cell */
.timeline-cell {
    text-align: center;
    padding: 5px !important;
}

.timeline-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    color: #007bff;
    font-size: 16px;
    transition: all 0.2s;
    border-radius: 4px;
}

.timeline-btn:hover:not(:disabled) {
    background-color: #e7f3ff;
    color: #0056b3;
}

.timeline-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.timeline-btn i {
    transition: transform 0.2s;
}

/* Timeline Row */
.timeline-row {
    background-color: #f8f9fa;
}

.timeline-row td {
    padding: 0 !important;
}

.timeline-details-container {
    padding: 20px;
    border-top: 2px solid #007bff;
}

.timeline-details-container h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-details-container h4 i {
    color: #007bff;
}

/* Batch Timeline */
.batch-timeline {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    position: relative;
}

/* Línea conectora horizontal */
.batch-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: linear-gradient(to right, 
        #28a745 0%, 
        #28a745 33%, 
        #ffc107 33%, 
        #ffc107 66%, 
        #17a2b8 66%, 
        #17a2b8 100%
    );
    z-index: 0;
}

/* Timeline Event */
.timeline-event {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.timeline-event-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    border: 4px solid white;
}

.marker-registration {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.marker-processing {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.marker-completion {
    background: linear-gradient(135deg, #17a2b8, #007bff);
}

.timeline-event-content {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    width: 100%;
    min-height: 120px;
}

.timeline-event-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.timeline-event-stage {
    font-size: 14px;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-event-time {
    font-size: 11px;
    color: #6c757d;
    font-family: 'Courier New', monospace;
}

.timeline-event-title {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
}

.timeline-event-details {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 992px) {
    .batch-timeline {
        flex-direction: column;
        gap: 30px;
    }
    
    .batch-timeline::before {
        display: none;
    }
    
    .timeline-event {
        flex-direction: row;
        text-align: left;
    }
    
    .timeline-event-marker {
        margin-bottom: 0;
        margin-right: 15px;
        min-width: 50px;
    }
    
    .timeline-event-content {
        text-align: left;
    }
    
    .timeline-event-header {
        align-items: flex-start;
    }
}

/* Animation for expanding */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.timeline-row td > div {
    animation: slideDown 0.3s ease-out;
}

/* Loading state */
.timeline-btn .fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}