/*
 * Copyright (c) 2016. Fernando Arroyo <farroyo@gmail.com>
 */

/* altura suficiente para meter el logo de unileon */
.page-header .page-header-top {
    height: 105px;
}
/* subir el logo al tope superior de la página */
.page-header .page-header-top .page-logo .logo-default {
    margin: 1px 0 0;
    height: 100px;
}

/* ajustar la altura del username logado respecto del logo de unileon */
.page-header .page-header-top .top-menu {
    margin: 27px 0 0;
}

/* ajustar el icono de logout respecto a la altura del username */
.page-header .page-header-top .top-menu .navbar-nav > li.quick-sidebar-toggler {
    padding: 1px 0px;
}

/* icono "user" al lado del username un poco más grande que el tipo de letra del username */
.page-header .page-header-top .top-menu .navbar-nav > li.dropdown > .dropdown-toggle > i {
    font-size: 25px;
}

/* en los forms las etiquetas "required" aparecen más pequeñas de la cuenta en Metronic */
.control-label .required, .form-group .required {
    font-size: unset;
}

/* force datepicker to 100% width of its container */
.datepicker-inline {
    width: 100%;
}
.datepicker table {
    width: 100%;
}

ul.attachments,
ul.photos,
ul.categories {
    list-style-type: none;
    padding-left: 0px;
}
ul.attachments li.attachment,
ul.photos li.photo,
ul.categories li.category,
li.new-item {
    padding: 15px;
    background-color: white;
    border-radius: 3px !important;
    border: 1px solid #ccc;
    margin: 10px;
}

/*
li.new-item .fileinput {
    margin-bottom: 15px;
}
*/

.control-label .required, .form-group .required {
    padding-left: 0px !important;
}

/* fontawesome icon label for suggestion form */
div.social-media {
    display: flex;
}
div.social-media div.checkbox {
    margin-left: 25px;
    font-size: small;
    line-height:24px;
}
div.social-media i {
    margin: 15px 0px 0px 0px;
}

span.help-block {
    color: #e73d4a !important;
}

/* jquery validation errors */
label.error {
    color: #e73d4a;
    padding:3px;
    background-color: #FFcccc;
}

.form-control.error {
    border: 1px solid #e73d4a;
}

.note-editor.error {
    border: 1px solid #e73d4a;
}

/* select2 width issue when resizing */
.select2-container--bootstrap {
    display: block;
    width: 100% !important;
}

kbd {
    background-color:#ddd;
    color:#777;
    font-size:small;
    float:left;
    margin-top:10px;
}

/* =========================================
   INPUTS: ancho completo dentro de paneles
   ========================================= */
.panel-body input[type="text"],
.panel-body input[type="email"],
.panel-body input[type="tel"],
.panel-body .form-control {
    width: 100%;
    box-sizing: border-box;
}

/* =========================================
   PANELES: estilo consistente y limpio
   ========================================= */
.panel.panel-default {
    border: 1px solid #d9d9d9 !important;
    border-radius: 4px !important;
    margin-bottom: 20px;
    box-shadow: none !important;
    overflow: hidden;
}
.panel.panel-default > .panel-heading.bg-grey-silver {
    background-color: #eef1f5 !important;
    border-bottom: 1px solid #d9d9d9 !important;
    padding: 8px 12px !important;
    height: auto !important;
    min-height: 0 !important;
}
.panel.panel-default > .panel-heading.bg-grey-silver .panel-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    line-height: 1.2 !important;
}

/* Aviso legal premium */
.panel.panel-primary {
    border: 1px solid #bae6fd !important;
    border-radius: 6px !important;
    background-color: #f0f9ff !important;
    box-shadow: none !important;
    margin-bottom: 20px;
}
.panel.panel-primary > .panel-heading {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border-bottom: 1px solid #bae6fd !important;
    font-weight: 600 !important;
    padding: 10px 15px !important;
}
.panel.panel-primary > .panel-heading .panel-title {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
.panel.panel-primary > .panel-body {
    color: #0c4a6e !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    padding: 15px !important;
}
.panel.panel-primary > .panel-body p {
    margin-bottom: 10px;
}
.panel.panel-primary > .panel-body p:last-child {
    margin-bottom: 0;
}

/* Redes Sociales Grid */
.social-media-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}
@media (max-width: 480px) {
    .social-media-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
.social-card {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 6px;
    text-align: center;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.social-card:hover {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
}
.social-card i {
    font-size: 22px;
    margin-bottom: 6px;
}
.social-card .social-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}
.social-card .social-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-card .social-checkbox .checkbox {
    margin: 0 !important;
    padding: 0 !important;
}
.social-card .social-checkbox .checkbox label {
    font-size: 0 !important;
    color: transparent !important;
    padding-left: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.social-card .social-checkbox .checkbox label input[type="checkbox"] {
    margin: 0 !important;
    position: static !important;
    transform: scale(1.2);
    cursor: pointer;
}

.social-icon-facebook { color: #3b5998 !important; }
.social-icon-x {
    font-style: normal;
    font-weight: bold;
    color: #000000 !important;
    font-size: 22px;
    margin-bottom: 6px;
    height: 22px;
    line-height: 22px;
}
.social-icon-instagram { color: #c13584 !important; }
.separator-15 { margin: 15px 0 !important; }

/* Botones y acciones */
.form-actions-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 10px;
}
.form-actions-bar .btn {
    min-width: 150px;
    padding: 7px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-transform: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.form-actions-bar .btn-warning {
    background-color: #f1c40f !important;
    border-color: #f1c40f !important;
    color: #ffffff !important;
}
.form-actions-bar .btn-warning:hover {
    background-color: #d4ac0d !important;
    border-color: #d4ac0d !important;
    color: #ffffff !important;
}

.form-actions-bar .btn-success {
    background-color: #26c281 !important;
    border-color: #26c281 !important;
    color: #ffffff !important;
}
.form-actions-bar .btn-success:hover {
    background-color: #1e9d65 !important;
    border-color: #1e9d65 !important;
    color: #ffffff !important;
}

/* Estilos del resumen de sugerencia */
.summary-card {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important;
    overflow: hidden;
    margin-bottom: 20px;
}
.summary-card .panel-heading {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 12px 18px !important;
}
.summary-card .panel-title label {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.summary-card .panel-body {
    padding: 20px !important;
}

/* Contenido de la sugerencia */
.suggestion-body-preview {
    background-color: #f8fafc;
    border-left: 4px solid #0284c7;
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #334155;
}

/* Grid de Datos Personales */
.data-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.data-item {
    display: flex;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
}
.data-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.data-label {
    width: 100px;
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
}
.data-value {
    flex: 1;
    color: #1e293b;
    font-size: 13px;
}

/* Badges de Medios */
.media-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.media-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}
.media-badge i {
    font-size: 14px;
}

/* Adjuntos */
.attachment-preview-img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.attachment-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 10px 16px;
    color: #166534;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}
.attachment-file-btn:hover {
    background-color: #dcfce7;
    border-color: #86efac;
    color: #14532d;
}

.summary-alert-success {
    padding: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.summary-alert-icon {
    font-size: 36px;
    color: #26c281;
}
.summary-alert-title {
    margin: 0 0 5px 0;
    font-weight: bold;
    color: #1e293b;
}
.summary-alert-desc {
    margin: 0;
    color: #64748b;
}
.summary-item-title {
    margin-top: 0;
    font-weight: 700;
    color: #1e293b;
}
.summary-item-category {
    color: #64748b;
    font-weight: 600;
    margin-bottom: 15px;
}
.summary-item-content-label {
    font-weight: 600;
    color: #475569;
    margin-top: 15px;
}
.attachment-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}




/*
.dataTables_wrapper .dataTables_processing {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 30%;
    height: 75px;
    margin-left: -20%;
    margin-top: -25px;
    padding-top: 20px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    background-color: #aaa;
    border: 2px solid #aaa;
}
*/
