/* Prevenir zoom en dispositivos móviles */
html, body {
    touch-action: manipulation;
}

.right-calendar {
    padding: 0px 10px 10px 10px;
    text-align: center;
}

.sidebar-menu {
    padding: 0px 10px 10px 10px;
}

.navbar-brand {
    float: none;
}

.total-sale-detail {
    text-align: right;
    margin-right: 20px;
}

.search-input{
    margin-bottom: 20px;
}

.col-md-3.no-float, .col-md-9.no-float {
    float: none; /* thanks baxabbit */
}
.col-md-3
{
    display: table-cell;
    width: 25%;
}
.col-md-9
{
    display: table-cell;
    width: 75%;
}

#content {
    box-shadow: 0 0 1px grey;
}

.form-group.required .control-label:after {
   content:"*";
   color:#a94442;
}

#estado_servicio {
    font-weight: bold;
}

#user_menu {
    font-weight: bold;
    color: #428BCA;
}

.footer {
    padding: 15px;
    margin-top: 30px;
    color: #666666;
    z-index: 3;
    position: relative;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1rem;
    background-color: #1A1A1A;
}

.action-buttons{
    margin-bottom: 15px;
}

/*
body {
    margin-bottom: 60px;
}*/

.logo {
    width: 200px;
}

#tab_calendario a {
    color: #333;
}

.success td a {
    color: #3c763d !important;
}

.table-events-week:after {
  content: "";
  display: table;
  clear: both;
}

.column-event-day {
    float: left;
    width: 14.28571428571429%;
    padding: 0px 2px 0px 2px;
}

 .panel-heading-nav {
  border-bottom: 0;
  padding: 10px 0 0;
}

.panel-heading-nav .nav {
  padding-left: 10px;
  padding-right: 10px;
}

.page-header {
    margin-top: 0px;
}

/**
 * Estilos personalizados para compatibilidad con clases de Bootstrap 4
 * Estos estilos emulan las clases bg-* de Bootstrap 4 en Bootstrap 3
 * SOLO para badges
 */

/* Estilos para badges con fondos de colores */
.badge.bg-primary {
    background-color: #337ab7 !important;
    color: #fff !important;
}

.badge.bg-success {
    background-color: #5cb85c !important;
    color: #fff !important;
}

.badge.bg-info {
    background-color: #5bc0de !important;
    color: #fff !important;
}

.badge.bg-warning {
    background-color: #f0ad4e !important;
    color: #fff !important;
}

.badge.bg-danger {
    background-color: #d9534f !important;
    color: #fff !important;
}

.badge.bg-secondary {
    background-color: #777777 !important;
    color: #fff !important;
}

/* Clases de tabla con fondos de colores para filas */
.table-success {
    background-color: #dff0d8 !important;
}

.table-primary {
    background-color: #d9edf7 !important;
}

.table-danger {
    background-color: #f2dede !important;
}

.table-secondary {
    background-color: #f5f5f5 !important;
}

/* Clases para textos con colores */
.text-primary {
    color: #337ab7 !important;
}

.text-success {
    color: #5cb85c !important;
}

.text-info {
    color: #5bc0de !important;
}

.text-warning {
    color: #f0ad4e !important;
}

.text-danger {
    color: #d9534f !important;
}

.text-secondary {
    color: #777777 !important;
}

/* Estilos responsive para tablas en tablets (iPad) */
@media (max-width: 1024px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        width: 100%;
        position: relative;
        z-index: 1;
    }

    .table-responsive > .table {
        margin-bottom: 0;
        width: 100%;
        min-width: 600px;
    }

    .panel-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Estilos específicos para resoluciones de tablet en portrait */
@media (min-width: 768px) and (max-width: 1024px) {
    .col-md-3,
    .col-md-9 {
        display: block;
        width: 100%;
        float: none;
    }

    .table-responsive {
        border: 0;
        overflow-x: auto;
        margin-bottom: 15px;
    }

    .table-responsive > .table {
        table-layout: auto;
    }

    .table-responsive > .table > thead > tr > th,
    .table-responsive > .table > tbody > tr > td {
        white-space: nowrap;
    }
}

/* ==============================================
   SECCION DE AYUDA - Portal del Cliente
   ============================================== */

.help-container {
    max-width: 680px;
    margin: 0 auto;
}

.help-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 20px;
    border: 2px solid #f0f0f0;
}

.help-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 15px;
}

.help-header .glyphicon {
    font-size: 24px;
    color: #667eea;
    margin-right: 10px;
}

.help-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.help-section > p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.contact-methods {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.contact-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    margin-bottom: 12px;
}

.contact-item:hover {
    background: #e9ecef;
    border-color: #667eea;
    -webkit-transform: translateX(5px);
    transform: translateX(5px);
    text-decoration: none;
}

.contact-item .glyphicon {
    font-size: 24px;
    color: #667eea;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 15px;
}

.contact-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

/* Responsive para seccion de ayuda */
@media (min-width: 768px) {
    .contact-methods {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }

    .contact-item {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin-right: 12px;
        margin-bottom: 0;
    }

    .contact-item:last-child {
        margin-right: 0;
    }

    .contact-item:hover {
        -webkit-transform: translateY(-5px);
        transform: translateY(-5px);
    }

    .contact-item .glyphicon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .contact-info {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
}