@charset "utf-8";

iframe {
    padding: 0px;
    margin: 0px;
    border: 0px;
    outline: none;
}

#fset {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    padding: 0px;
    margin: none;
}

#ftop {
    position: absolute;
    top: 0;
    left: 0;
    height: 50px;
    width: 100%;
    overflow: hidden;
}

#ftopleft {
    position: absolute;
    top: 0;
    left: 0; 
    width: 163px;
    height: 100%;
}

#ftopright {
    position: absolute;
    top: 0;
    left: 164px;
    width: calc(100% - 165px);
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 15px;
    z-index: 1000; /* Asegurar que esté por encima */
    border: none;
    outline: none;
    background: transparent;
}

#topright {
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
}

/* Alerta de embarques críticos */
#shipping-alerts {
    position: relative;
    cursor: pointer;
    background: #ff4444;
    color: white;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    display: none;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    animation: alertPulse 2s infinite;
}

#shipping-alerts:hover {
    background: #ff2222;
    transform: scale(1.05);
}

#shipping-alerts .fa {
    margin-right: 5px;
    font-size: 16px;
}

@keyframes alertPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Modal para detalles de alertas */
#shipping-alerts-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

/* Modal para calendario de estadísticas */
#shipping-calendar-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

#shipping-alerts-modal .modal-content,
#shipping-calendar-modal .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: none;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 70vh;
    overflow-y: auto;
}

#shipping-calendar-modal .modal-content {
    max-width: 1000px;
    max-height: 80vh;
}

#shipping-alerts-modal .modal-header,
#shipping-calendar-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#shipping-alerts-modal .close,
#shipping-calendar-modal .close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#shipping-alerts-modal .close:hover,
#shipping-calendar-modal .close:hover {
    color: #000;
}

.alerts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.alerts-table th,
.alerts-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.alerts-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.alerts-table .priority-red {
    background-color: #ffebee;
}

.alerts-table .priority-orange {
    background-color: #fff3e0;
}

.alerts-table .priority-yellow {
    background-color: #fffde7;
}

/* Estilos para el calendario de estadísticas */
.calendar-container {
    width: 100%;
    max-width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.calendar-header button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.calendar-header button:hover {
    background: #0056b3;
}

.current-week {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.calendar-day {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-height: 120px;
}

.calendar-day:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.calendar-day.today {
    border-color: #28a745;
    background: #f8fff9;
}

.calendar-day.past {
    background: #f8f9fa;
}

.calendar-day.future {
    background: #fff8e1;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.day-name {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.day-number {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.day-stats {
    font-size: 11px;
}

.total-shipments {
    text-align: center;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 13px;
}

.no-shipments {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-top: 20px;
}

.stats-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
}

.stat-number {
    font-weight: bold;
    min-width: 15px;
    text-align: center;
}

.stat-label {
    flex: 1;
    text-align: right;
    opacity: 0.8;
}

/* Colores para estadísticas de cumplimiento (fechas pasadas) */
.stat-item.success {
    background: #d4edda;
    color: #155724;
}

.stat-item.warning {
    background: #fff3cd;
    color: #856404;
}

.stat-item.danger {
    background: #f8d7da;
    color: #721c24;
}

/* Colores para estadísticas de status (fechas futuras) */
.stat-item.status-1 {
    background: #e7f3ff;
    color: #004085;
}

.stat-item.status-2 {
    background: #fff3cd;
    color: #856404;
}

.stat-item.status-3 {
    background: #e2e3e5;
    color: #383d41;
}

.stat-item.status-4 {
    background: #d1ecf1;
    color: #0c5460;
}

.calendar-legend {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.calendar-legend h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

#fmid {
    position: absolute;
    top: 1px;
    left: 0;
    height: calc(100% - 2px);
    width: 100%;
    overflow: hidden;
}

/* #fbot { position:absolute; top: calc( 100% - 1px ); left:0; height: 1px; width:100%;  overflow:hidden;} */

#fmenu {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 1px;
}

#fmain {
    position: absolute;
    top: 0;
    left: 1px;
    height: 100%;
    width: calc(100% - 1px);
}

#barra {
    height: 100%;
    width: 100%;
}

#menu {
    height: 100%;
    width: 100%;
}

#main {
    height: 100%;
    width: 100%;
}

/* #bottom {  height:100%; width:100%; } */




/*html { background: url(../tema/pic/framefill.png) top left repeat;	background-position: top left; }
frameset {  background: url(../tema/pic/framefill.png) top left repeat;	background-position: top left; }*/