html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

form div.required label.control-label:after {
    content:" * ";
    color:red;
}

.traffic {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 auto;
}
.red { background-color: red; }
.yellow { background-color: orange; }
.green { background-color: green; }

.help-page {
    display: flex;
    align-items: stretch;
}

.help-sidebar-column {
    display: flex;
}

/* ── Sidebar panel ── */
.help-sidebar {
    width: 100%;
    background: #2F6B2F;
    color: #FFF;
    border-radius: 15px;
    padding: 30px 20px;
    min-height: 100%;
    border: none;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.help-sidebar h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.help-sidebar hr {
    border-color: rgba(255,255,255,.25);
    width: 75%;
    margin: 20px 0;
}

.help-sidebar .description {
    font-size: 13px;
    line-height: 1.7;
}

/* ── Imagen centrada en sidebar ── */
.book-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    margin-top: 20px;
}

.book-icon img {
    max-width: 150px;
    width: 100%;
    display: block;
}

.help-list {
    padding-left: 20px;
}

/* ── Cards como panel Bootstrap 3 ── */
.help-card.panel {
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: all .2s ease;
    border: 1px solid #E6E6E6;
}

.help-card.panel:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

.help-card .panel-body {
    display: flex;
    align-items: center;
    padding: 20px;
}

.help-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: #EEF5EE;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.help-icon i {
    color: #2F6B2F;
    font-size: 26px;
}

.help-info {
    flex: 1;
}

.help-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.help-description {
    font-size: 13px;
    color: #777;
    margin: 0;
}

/* ── Botones de acción ── */
.help-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-help {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid #C8DFC8;
    background: #F6FBF6;
    color: #2F6B2F;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s ease;
    white-space: nowrap;
    min-width: 88px;
}

.btn-help i {
    font-size: 18px;
    color: #2F6B2F;
}

.btn-help:hover,
.btn-help:focus {
    background: #E4F2E4;
    border-color: #2F6B2F;
    color: #245724;
    text-decoration: none;
}

/* ── Responsive ── */
@media (min-width: 992px) {
    .help-sidebar {
        position: sticky;
        top: 20px;
    }
}

@media (max-width: 991px) {

    .help-page {
        display: block;
    }

    .help-list {
        padding-left: 0;
        margin-top: 10px;
    }

    .help-sidebar {
        margin-bottom: 10px;

        /* Mucho más compacto */
        padding: 8px 12px;

        border-radius: 8px;
    }

    /* Oculta completamente la imagen */
    .book-icon {
        display: none;
    }

    .help-sidebar h2 {
        font-size: 14px;
        margin: 0;
        line-height: 1.1;
        font-weight: 700;
    }

    .help-sidebar hr {
        margin: 4px 0;
        width: 40%;
    }

    .help-sidebar .description {
        font-size: 10px;
        line-height: 1.2;
        margin: 0;
    }

    .help-card .panel-body {
        flex-wrap: wrap;
    }

    .help-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }

    .btn-help {
        min-width: 75px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .btn-help i {
        font-size: 16px;
    }
}

.custom-radio {
    transform: scale(1.5);
    margin-right: 5px;
}

.radio-inline {
    font-size: 18px;
    cursor: pointer;
    margin-right: 20px;
}

.errorMessage {
    color: #a94442;
    font-size: 14px;
    margin-top: 5px;
}