/*
 * 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: #f1f5f9;
    color: #475569;
    font-size: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    padding: 2px 6px;
    box-shadow: none;
}

/* =========================================
   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 */
.summary-attachment-group {
    margin-bottom: 24px;
}
.summary-attachment-group:last-child {
    margin-bottom: 0;
}
.attachment-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}
.attachment-preview-img {
    display: block;
    max-width: 100%;
    max-height: 220px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-top: 6px;
    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;
}
/* =========================================
   DOCUMENTACIÓN ADJUNTA (Foto y Adjunto)
   ========================================= */

/* Contenedor del uploader de fotos a ancho completo */
.photo-uploader-card {
    display: block !important;
    width: 100% !important;
    margin-bottom: 5px;
}

.photo-uploader-card .image-uploader-layout,
.photo-uploader-card .image-uploader-preview {
    width: 100% !important;
    display: block !important;
}

/* Dropzone elegante para subir foto al 100% de ancho */
.photo-uploader-card .photo-dropzone-box,
.photo-dropzone-box {
    width: 100% !important;
    box-sizing: border-box !important;
    border: 2px dashed #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: #f8fafc !important;
    padding: 28px 16px !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-bottom: 12px !important;
    box-shadow: none !important;
}
.fileinput-new .photo-dropzone-box {
    display: block !important;
}
.fileinput-exists .photo-dropzone-box {
    display: none !important;
}
.fileinput-new .photo-preview-box {
    display: none !important;
}
.fileinput-exists .photo-preview-box {
    display: flex !important;
}
.photo-dropzone-box:hover {
    border-color: #0284c7 !important;
    background-color: #f0f9ff !important;
}

.photo-dropzone-box.drag-over {
    border-color: #0284c7 !important;
    background-color: #e0f2fe !important;
    border-style: solid !important;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15) !important;
}

.dropzone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}
.dropzone-icon {
    font-size: 36px;
    color: #0284c7;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}
.photo-dropzone-box:hover .dropzone-icon,
.photo-dropzone-box.drag-over .dropzone-icon {
    transform: translateY(-2px) scale(1.08);
}
.dropzone-text {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}
.dropzone-hint {
    font-size: 12px;
    color: #64748b;
}

/* Vista previa de foto al 100% de ancho */
.photo-uploader-card .photo-preview-box,
div.fileinput-preview.photo-preview-box,
.photo-preview-box {
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    padding: 10px !important;
    margin-bottom: 12px !important;
    max-height: 260px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.photo-preview-box img {
    max-height: 240px;
    width: auto !important;
    max-width: 100%;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Controles de imagen */
.image-uploader-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.photo-select-btn {
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 7px 16px !important;
    border-radius: 5px !important;
    transition: all 0.2s ease;
}
.photo-select-btn:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}
.btn-photo-remove {
    border: 1px solid #fecaca !important;
    background-color: #fff1f2 !important;
    color: #e11d48 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 7px 16px !important;
    border-radius: 5px !important;
}
.btn-photo-remove:hover {
    background-color: #ffe4e6 !important;
    border-color: #fda4af !important;
}

/* Pie de foto al 100% del ancho */
.photo-caption-row {
    width: 100% !important;
    margin-top: 14px;
    margin-bottom: 0;
}
.photo-caption-row .form-group {
    width: 100% !important;
    margin-bottom: 0 !important;
}
.photo-caption-row .control-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}
.photo-caption-row input.form-control,
.photo-caption-row input[type="text"] {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 38px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    box-shadow: none !important;
    padding: 6px 12px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.photo-caption-row input.form-control:focus,
.photo-caption-row input[type="text"]:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

/* Vich File: Documento Adjunto */
.vich-file {
    margin-top: 4px;
}
.vich-file .input-group {
    width: 100%;
    display: table;
}
.vich-file .input-group-btn {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}
.vich-file .btn-doc-picker {
    border: 1px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 7px 16px !important;
    border-radius: 5px 0 0 5px !important;
    border-right: none !important;
    transition: all 0.2s ease;
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.vich-file .btn-doc-picker:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}
.vich-file .attachment-info {
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 5px 5px 0 !important;
    background-color: #ffffff !important;
    color: #334155 !important;
    font-size: 13px !important;
    height: 36px !important;
    box-shadow: none !important;
    cursor: pointer !important;
}
.vich-file .attachment-info::placeholder {
    color: #94a3b8;
    font-style: italic;
}

.doc-file-hint {
    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Resaltado de validación en componentes especiales */
.has-error .select2-container .select2-choice,
.has-error .select2-container--bootstrap .select2-selection {
    border-color: #a94442 !important;
}
.has-error .note-editor.note-frame {
    border-color: #a94442 !important;
}
.has-error .help-block {
    color: #a94442;
    font-size: 12px;
    margin-top: 4px;
}
