/* Bootstrap */
/* ========================================================================== */
.bootstrap-widget .search-form span.required {
    display: none;
}

    .bootstrap-widget-header .grid-view-loading {
        background-position: center;
    }
    
    .bootstrap-widget-content > :last-child,
    .bootstrap-widget-content > form > :last-child,
    .bootstrap-widget-tabs .bootstrap-widget:last-child {
        margin-bottom: 0;
    }
    
    .bootstrap-widget-content .grid-view {
        padding-top: 0;
    }
    
        .bootstrap-widget-content .grid-view td .control-group {
            margin-bottom: 0;
        }
        
        .bootstrap-widget-content .grid-view td .control-group {
            margin-bottom: 0;
        }
        
        .bootstrap-widget-content .grid-view td .control-group:nth-child(n+2) {
            margin-top: 5px;
        }
        
        .bootstrap-widget-content .grid-view td .controls {
            margin-left: 0;
        }
        
        .bootstrap-widget-content .grid-view td label {
            width: 100px;
        }
        
        .bootstrap-widget-content .grid-view td label + .controls {
            margin-left: 120px;
        }
        
        .bootstrap-widget-content .grid-view td .help-inline {
            display: block;
            padding-left: 0;
        }
    
    .bootstrap-widget-nopad .bootstrap-widget-content > .alert,
    .bootstrap-widget-nopad .bootstrap-widget-content > form > .alert {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .bootstrap-widget-nopad .bootstrap-widget-content > .alert:first-child,
    .bootstrap-widget-nopad .bootstrap-widget-content > form:first-child,
    form > .bootstrap-widget-nopad .bootstrap-widget-content > .control-group:first-child {
        margin-top: 20px;
    }
    
    .bootstrap-widget-nopad .bootstrap-widget-content > .form-actions {
        margin-top: 0;
        border-top: 0;
    }
    
    .bootstrap-widget-table .table,
    .bootstrap-widget-table .table > tbody:first-child > tr:first-child td,
    .bootstrap-widget-table .table > tbody:first-child > tr:first-child th {
        border-top: none !important;
    }
    
    .bootstrap-widget-table > .bootstrap-widget-content {
        overflow: auto;
    }
    
    .bootstrap-widget-nopad .bootstrap-widget-content > form > fieldset > h4 {
        margin-left: 15px;
        margin-right: 15px;
        border-bottom: 1px solid #E5E5E5;
        font-weight: normal;
    }

.nav-tabs .error, .nav-tabs .error a {
    color: #b94a48 !important;
}

.nav-tabs .error:hover, .nav-tabs .error:hover a {
    color: #953b39 !important;
}

/* Grid */
/* ========================================================================== */
.grid-view table td .pagination {
    margin: 0;
    overflow: hidden;
}

    .grid-view table td .pagination .yiiPager {
        display: block;
    }

.grid-view .summary {
    font-size: 0.7em;
    margin-left: 35px;
    position: absolute;
    top: 25px;
}

.grid-view .checkbox-column {
    text-align: center;
}

/* Global */
/* ========================================================================== */
.text-important {
    font-weight: bold;
}

.text-description {
    display: inline-block;
    height: 20px;
    max-width: 92%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.icon-gray {
    opacity: 0.4;
}

/* Content */
/* ========================================================================== */
#content .hero-unit {
    text-align: center;
}

/* Footer */
/* ========================================================================== */
#footer {
    color: gray;
    text-align: center;
    font-size: 0.8em;
    line-height: normal;
}

/* Печать */
/* ========================================================================== */
.preview.bootstrap-widget .bootstrap-widget-content form,
.preview.bootstrap-widget .bootstrap-widget-content form .form-actions {
    margin-top: 0;
}

.preview {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Emergencies */
/* ========================================================================== */
.emergency .emergency-requests tr.emergency-requests-request.active.even td {
    background-color: #f2dede;
}

.emergency .emergency-requests tr.emergency-requests-request.active.odd td {
    background-color: #f9f0f0;
}

/* Reports */
/* ========================================================================== */
.reports .report {
    overflow: auto;
}
    
    .reports .report > .summary {
        font-size: 0.7em;
        margin-left: 35px;
        position: absolute;
        top: 25px;
    }

.reports-report {
    overflow: hidden;
}

    .reports-report .vtext {
        white-space: nowrap;
    }
    
        .reports-report .vtext span {
            display: block;
            white-space:nowrap;
            
            width: 10px;
            height: 12px;
            line-height: 12px;
            
            -webkit-transform: rotate(270deg);
            -moz-transform: rotate(270deg);
            -o-transform: rotate(270deg);
            -ms-transform: rotate(270deg);
            transform: rotate(270deg);
        }
        
    .reports-report .group {
        border-left-width: 3px;
    }
    
    .reports-report .reports-report-head {
        /* empty */
    }
        
        .reports-report .reports-report-head th {
            font-weight: normal;
            white-space: nowrap; 
        }
        
        .reports-report .reports-report-head th.group {
            font-weight: bold;
        }
        
        .reports-report .reports-report-head th.group.normal {
            font-weight: normal;
        }
        
    .reports-report .reports-report-total {
        /* empty */
    }
        
        .reports-report .reports-report-total th,
        .reports-report .reports-report-total td {
            border-top-width: 3px;
            background: transparent !important;
        }
        
        .reports-report .reports-report-total td {
            text-align: right;
        }
        
    .reports-report .reports-report-data {
        /* empty */
    }
        
        .reports-report .reports-report-data th {
            font-weight: normal;
            white-space: nowrap;
        }
        
        .reports-report .reports-report-data tr:first-child th,
        .reports-report .reports-report-data tr:first-child td {
            border-top-width: 3px;
        }
        
        .reports-report .reports-report-data td {
            text-align: right;
        }
        
/* RescuePlans */
.reports-rescueplans {
    /* empty */
}

    .reports-rescueplans .reports-rescueplans-head th {
        height: 325px;
    }
        
    .reports-rescueplans .reports-rescueplans-data .level-0 + tr th,
    .reports-rescueplans .reports-rescueplans-data .level-0 + tr td {
        border-top-width: 2px;
    }
    
/* UnfoundVictims */
.reports-unfoundvictims {
    /* empty */
}

    .reports-unfoundvictims .reports-unfoundvictims-head th {
        height: 175px;
        font-weight: bold;
    }
        
    .reports-unfoundvictims .reports-unfoundvictims-data td:nth-child(-n+5) {
        text-align: left;
    }
    
    .reports-unfoundvictims .reports-unfoundvictims-data .name {
        min-width: 25%;
    }

/* RescuePlanTimesheet */
.reports-rescueplantimesheet {
    /* empty */
}

    .reports-rescueplantimesheet .reports-rescueplantimesheet-head th {
        font-weight: bold;
        white-space: normal;
    }
    
    .reports-rescueplantimesheet .reports-rescueplantimesheet-data td:nth-child(1) {
        text-align: center;
    }
    
    .reports-rescueplantimesheet .reports-rescueplantimesheet-data td:nth-child(2) {
        min-width: 25%;
        text-align: left;
    }

/* maps */
.google_map_wrapper {
    display: inline-block;
    position: relative;
    width: 100%;
}

.google_map_wrapper:before {
    content: '';
    display: block;
    padding-top: 59%; /* 4:3 aspect ratio */
}

    .google_map {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }