/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 06/05/2016, 22:04:50
    Author     : Peteno
*/

.ng-invalid.form-control, .ui-select-bootstrap.ng-invalid > .ui-select-match > .btn {
    border-color: #a94442;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
}

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x- ng-cloak {
    display: none;
}

fieldset.scheduler-border:invalid {
    border-color: #a94442 !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
}

.btn.btn-default.form-control.ui-select-toggle {
    overflow: hidden;
}
input:not(.input-mix) {
    text-transform: uppercase;
}

.align-center {
    text-align: center;
}
.align-right {
    text-align: right;
}
.align-justify {
    text-align: justify;
}


.ul-menu li {
    list-style: none;
    float: left;
    width: 45%;
    background-color: #ffffff;
    margin: 0 60px 60px 0;
    text-decoration: none;
    border-radius: 15px;
    font-size: 20px;
    color: #0052A5;
    font-weight: bold;
    background-color: #FDFDFD;
    padding: 20px;
    margin: 10px;
    cursor: pointer;
    -webkit-box-shadow: inset 0px 0px 48px 7px rgba(115,108,115,0.33);
    -moz-box-shadow: inset 0px 0px 48px 7px rgba(115,108,115,0.33);
    box-shadow: inset 0px 0px 48px 7px rgba(115,108,115,0.33);
}

.active {
    font-weight: bold;
}

.img-thumbnail.campista {
    width: 160px;
    height: 213px;
}

fieldset.scheduler-border {
    border: 1px groove #ddd !important;
    padding: 0 1.4em 0.4em 0.4em !important;
    margin: 0 0 0.3em 0 !important;
    -webkit-box-shadow:  0px 0px 0px 0px #000;
    box-shadow:  0px 0px 0px 0px #000;
}

fieldset.scheduler-border-no-margin {
    border: 1px groove #ddd !important;
    margin: 0 0 -1px 0 !important;
    -webkit-box-shadow:  0px 0px 0px 0px #000;
    box-shadow:  0px 0px 0px 0px #000;
}

legend.scheduler-border {
    width:inherit; /* Or auto */
    padding:0 8px; /* To give a bit of padding on the left and right */
    border-bottom:none;
    margin-bottom: 0px;
    font-weight: 700;
    font-size: 14px;
}

.scheduler-border-no-margin > legend.scheduler-border {
    margin-left: 4px;
}

textarea {
    max-width: 100%;
    min-width: 100%;
    width: 100%;
}

.blockUI.blockOverlay {
    z-index: 2000 !important
}

.blockUI.blockMsg.blockPage {
    z-index: 2050 !important
}

.border-filters {
  -moz-border-bottom-colors: none;
  -moz-border-left-colors: none;
  -moz-border-right-colors: none;
  -moz-border-top-colors: none;
  border-color: #f7f7f9;
  border-image: none;
  border-style: solid;
  border-width: 0.2rem 0 0;
  margin: 1rem -1rem;
  padding: 1rem;
  position: relative;
}

.border-filters {
  border-width: 0.2rem;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 1.5rem;
}

span.glyphicon.glyphicon-asterisk {
    color: #a94442;
}

.navbar-default .navbar-nav {
    cursor: pointer;
}

.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:focus, .navbar-default .navbar-nav > .open > a:hover {
    background-color: #877b48;
}

.navbar-default .navbar-nav > li > a:focus, .navbar-default .navbar-nav > li > a:hover {
    background-color: #877b48;
}

.tr-blue-clear > td {
    background-color: #9acfea;
}

.tr-blue-clear:hover > td {
    background-color: #F97A1F;
}

.background {
    background: #0b211c url('../../assets/img/background-login.svg') center bottom fixed;
    background-size: cover;
}

.navbar-login
{
    width: 305px;
    padding: 10px;
    padding-bottom: 0px;
}

.navbar-login-session
{
    padding: 10px;
    padding-bottom: 0px;
    padding-top: 0px;
}

.icon-size
{
    font-size: 87px;
}

.input-group-addon-danger {
    background-color: #d9534f;
    color: #fff;
}

.input-group-addon-success {
    background-color: #5cb85c;
    color: #fff;
}

/* ===== Modal de relatório (PDF) em tela cheia ===== */
.modal-pdf-fullscreen {
    padding: 0 !important;
}

.modal-pdf-fullscreen .modal-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
}

.modal-pdf-fullscreen .modal-content {
    height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.modal-pdf-fullscreen .modal-header {
    flex: 0 0 auto;
}

.modal-pdf-fullscreen .pdf-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.modal-pdf-fullscreen .pdf-title {
    flex: 1 1 auto;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-pdf-fullscreen .pdf-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.modal-pdf-fullscreen .modal-body {
    flex: 1 1 auto;
    padding: 0;
    overflow: hidden;
}

.modal-pdf-fullscreen .pdf-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ===== Fundo do sistema (área logada) — claro e sóbrio, alinhado ao verde do sistema.
   Não afeta a tela de login, que usa a classe .background (maior especificidade). ===== */
body {
    background-color: #eef3f0;
    background-image: linear-gradient(180deg, #f6f9f8 0%, #e6efe9 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* ===================== Layout do sistema: menu lateral ===================== */

/* --- Sidebar --- */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #57b45b 0%, #3d8b48 100%);
    color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    flex: 0 0 auto;
}

.app-sidebar__logo {
    width: 28px;
    height: 28px;
}

.app-sidebar__title {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    flex: 1 1 auto;
}

.app-sidebar__close {
    display: none; /* visível apenas no mobile */
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.app-sidebar__nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px 0;
}

.app-sidebar__nav::-webkit-scrollbar {
    width: 8px;
}

.app-sidebar__nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.app-nav-group {
    margin-bottom: 2px;
}

.app-nav-group__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: transparent;
    border: 0;
    color: #fff;
    font-weight: 600;
    text-align: left;
    text-transform: none;
    cursor: pointer;
}

.app-nav-group__header:hover {
    background: rgba(255, 255, 255, 0.12);
}

.app-nav-group.is-open > .app-nav-group__header {
    background: rgba(255, 255, 255, 0.15);
}

.app-nav-group__header .fa {
    font-size: 11px;
    opacity: 0.8;
}

.app-nav-group__items {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.10);
}

.app-nav-group__items li a {
    display: block;
    padding: 9px 16px 9px 32px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    border-left: 3px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

.app-nav-group__items li a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-left-color: #fff;
}

/* --- Rodapé do usuário --- */
.app-sidebar__user {
    flex: 0 0 auto;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.10);
}

.app-sidebar__user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
}

.app-sidebar__user .btn {
    margin-bottom: 6px;
    text-transform: none;
}

.app-sidebar__user .btn:last-child {
    margin-bottom: 0;
}

/* --- Barra superior (contexto) --- */
.app-topbar {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    height: 52px;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1px solid #dfe6e2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.app-topbar__toggle {
    display: none; /* visível apenas no mobile */
    background: transparent;
    border: 0;
    font-size: 20px;
    color: #43964a;
    cursor: pointer;
}

.app-topbar__acampamento {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #eef7ef;
    border: 1px solid #cfe8d3;
    border-radius: 20px;
    color: #2f6b36;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.app-topbar__acampamento:hover {
    background: #e0f0e2;
    color: #24522a;
}

/* --- Área de conteúdo --- */
.app-content-wrapper--logged {
    margin-left: 250px;
    padding-top: 52px;
    min-height: 100vh;
}

.app-content-wrapper--logged .container-fluid {
    padding: 18px 20px;
}

/* --- Overlay (mobile) --- */
.app-overlay {
    display: none;
}

/* ===================== Responsivo ===================== */
@media (max-width: 991px) {
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .app-sidebar__close {
        display: block;
    }

    .app-topbar {
        left: 0;
    }

    .app-topbar__toggle {
        display: inline-block;
    }

    .app-content-wrapper--logged {
        margin-left: 0;
    }

    .app-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1025;
    }
}

/* ===================== Padrão de telas de listagem ===================== */

/* Aproveita melhor a largura da tela: o container das telas deixa de ter a
   largura fixa do Bootstrap e passa a ocupar o espaço útil (centralizado). */
.container.bs-docs-container {
    width: 100%;
    max-width: 1440px;
}

/* Barra superior da listagem: título à esquerda, ações (busca + botões) à direita */
.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px;
}

.list-toolbar__title {
    margin: 0;
    flex: 1 1 auto;
    font-size: 22px;
    font-weight: 600;
    color: #2f6b36;
}

.list-toolbar__title small {
    color: #7a8a80;
    font-weight: 400;
}

.list-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.list-toolbar__actions .btn {
    text-transform: none;
}

/* Campo de busca com ícone */
.list-search {
    position: relative;
}

.list-search .glyphicon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #9aa5a0;
    font-size: 13px;
    pointer-events: none;
}

.list-search .form-control {
    padding-left: 34px;
    min-width: 260px;
}

/* Barra de filtros (quando há vários filtros) — substitui o antigo .border-filters */
.filters-bar {
    background: #f7faf8;
    border: 1px solid #e6efe9;
    border-radius: 8px;
    padding: 14px 16px 4px;
    margin-bottom: 16px;
}

.filters-bar label {
    color: #55635b;
    font-weight: 600;
    font-size: 12px;
}

/* Cartão que envolve a tabela de listagem */
.list-card {
    background: #fff;
    border: 1px solid #e2e9e5;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.list-card > .table-responsive {
    margin: 0;
    border: 0;
}

.list-card .table {
    margin: 0;
}

.list-card .table > thead > tr > th {
    background: #f4f8f5;
    border-bottom: 2px solid #dbe7df;
    color: #33413a;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

.list-card .table > tbody > tr > td {
    vertical-align: middle;
}

/* Cabeçalho de coluna clicável para ordenação */
.list-card .table > thead > tr > th.th-sortable {
    cursor: pointer;
    user-select: none;
}

.list-card .table > thead > tr > th.th-sortable:hover {
    background: #e9f1ec;
}

.list-card .table > thead > tr > th.th-sortable .glyphicon {
    font-size: 10px;
    margin-left: 4px;
    color: #9aa5a0;
}

.list-card .table > thead > tr > th.th-sortable .glyphicon-sort-by-attributes,
.list-card .table > thead > tr > th.th-sortable .glyphicon-sort-by-attributes-alt {
    color: #33413a;
}

/* Linha exibida quando o filtro não retorna resultados */
.list-empty td {
    text-align: center !important;
    color: #9aa5a0;
    font-style: italic;
    padding: 28px 12px !important;
}

/* Rodapé do cartão (paginação, totais) */
.list-card__footer {
    padding: 10px 14px;
    border-top: 1px solid #eef3f0;
    background: #fafcfb;
}

.list-card__footer .pagination {
    margin: 0;
}

/* Em telas estreitas a busca ocupa a largura toda */
@media (max-width: 767px) {
    .list-toolbar__actions {
        width: 100%;
    }

    .list-toolbar__actions .list-search,
    .list-toolbar__actions .list-search .form-control {
        width: 100%;
        min-width: 0;
    }
}