/*
 * Core css
 */

.no-pad {
  padding-left: 0;
  padding-right: 0;
}

.no-margin {
  margin-left: 0;
  margin-right: 0;
}

.text-truncate {
  overflow: auto;
  text-overflow: ellipsis;
}

.pan-alert {
  padding: 4px;
  margin-bottom: 10px;
}

/*
 * webkit scrollbar rules
 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
}

::-webkit-scrollbar-track {
  /*border: 1px gray solid;*/
}

/*
 * Rules to hide arrow in input[date] & input[number]
 */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/*
 * Angular Slider overwrite
 */
.rzslider .rz-bar {
  background-color: #CACACA !important;
}

.rzslider .rz-bar.rz-selection {
  background-color: #7A7A7A !important;
}

.rzslider .rz-pointer {
  border-radius: 2px !important;
  moz-border-radius: 2px !important;
  webkit-border-radius: 2px !important;
  height: 24px !important;
  width: 12px !important;
  top: -11px !important;
  background-color:#7A7A7A !important;
}

.rzslider .rz-pointer:after {
  display:none !important;
}

.rzslider .rz-bubble {
  font-size:12px !important;
}

/*
 * Popover
 */
.popover {
  width: auto;
  height: auto;
  max-width: none;
}

.popover-content {
  width: auto;
  max-width:460px;
  height: auto;
  padding:5px 5px 5px 5px;
}

/*
 * Core general
 */
.rw-legend  {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
}

.rw-pagination {
  margin-top: 6px;
  margin-bottom: 0px;
}

.rw-pagination-info {
  text-align: right;
  margin-top: 6px;
  font-size: 12px;
}

.rw-centerVertically
{
  display: flex;
  justify-content: center;
  align-items: center;
}

/*
 * Login
 */
.form-login {
  max-width: 360px;
  padding: 30px;
  margin: 0 auto;
}

/*
 * Modal
 */
.modaless {
  top: 80px;
  left: 40px;
  right: auto;
  bottom: auto;
}

.modal-tlb-btn {
  float: right;
  line-height: 1;
}

.modal-body-scroll {
  max-height: 520px;
  overflow-y: auto;
}

/*
 * Collection view
 */
.cv-item {
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
  margin-left: 0;
  margin-right: 0;
  border-bottom: 1px solid #ccc;

  /* Row roles to fixs cols with same height */
  width: 100%;
  height: 100%;
  display: table;
  table-layout: fixed;
}

.cv-item:hover {
  background-color: #e4e4e4;
}

.cv-item-col {
  padding-left: 0;
  padding-right: 0;

  /* Roles to have cols with same height */
  float: none;
  height: 100%;
  display: table-cell;
  vertical-align: middle;
}

.cv-item-sel {
  background-color: #e4e4e4;
}

/*
 * Form
 */
.noresize {
  resize: none;
}

.resize-verticaly {
  resize: verticaly !important;
  pointer-events: all !important;
}

.rw-btn-checkbox {
  border: 1px solid #ccc;
  background-color: white;
}

.rw-row {
  float: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
}

.rw-row-measure {
  float: none;
  margin-right: auto;
  margin-bottom: 10px;
}

.rw-control-font-size,.ui-select-match-text,.ui-select-search {
  font-size: 12px;
}

.rw-only-label {
  margin-top: 26px;
  font-size: 14px;
}

.rw-messages {
  font-size: 12px;
  color: red;
}

.rw-button-no-margin {
  margin-top: 0px;
}

.rw-button-with-margin {
  margin-top: 5px;
}

.uppercase{
  text-transform: uppercase;
}

.rw-label
{
  font-weight:400 !important;
  margin-bottom: 0 !important;
}

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

legend.fieldset-border
{
  font-size: 12px !important;
  text-align: left !important;
  width:auto;
  padding: 0 10px;
  margin: 5px 6px !important;
  border-bottom:none;
}

.padding .input-sm{
  padding:5px;
}

/* Reimplemented style summernote */
@media only screen and (max-height: 767px)
{
  .note-editor.note-frame .note-editing-area .note-editable
  {
    height: 40vh !important;
  }
}
@media only screen and (min-height: 768px)
{
  .note-editor.note-frame .note-editing-area .note-editable
  {
    height: 45vh !important;
  }
}
/*
 * Search
 */
select .input-sm {
  padding-left: 10px;
}

.rw-search-popover {
  min-width: 450px;
  max-height: 250px;
  overflow-y: auto;
}

.rw-search-popover-no-overflow {
  min-width: 450px;
}

.rw-search-group {
  background-color: #f5f5f5;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.rw-search-condition {
  margin-top: 5px;
}

.rw-search-buttonbar {
  margin-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
}
.rw-search-form-footer {
  margin-top: 5px;
  margin-bottom: 5px;
}
/* Reimplemented in app.css
.nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover {
  color: #fff;
  background-color: #131313;
}
*/

a:link, a:visited {
  color: #404040;
}

.rw-search-input-error {
  border-color: #b94a48;
}

.rw-search-control {
  font-size:12px;
  margin-bottom:5px;
  height:30px;
  max-width:110px;
  border-radius:3px;
}

.uib-daypicker thead th
{
  padding: 0px 0px;
  text-align: center;
  border-right: 1.5px double #ffffff;
}
/*
 * Spinner
 */
.modal-loader {
  position:absolute;
  left:0;
  right:0;
  top:0;
  bottom:0;
  margin:auto;
  z-index: 10;
  background-color: rgba(255,255,255,0.4);
}

.spinner {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  top: 40%;
  font-size: 10px;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(8, 8, 8, 0.5);
  border-right: 1.1em solid rgba(255, 255, 255, 0.5);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.5);
  border-left: 1.1em solid rgba(255,255,255,0.5);
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
}

.spinner,
.spinner:after {
  border-radius: 50%;
  width: 6em;
  height: 6em;
}
@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/*
 * Attachment
 */
.rw-attach-row {
  margin-top: 0px;
  margin-left: 5px;
  margin-right: 5px;
}

.rw-attach-container {
  background-color: #f5f5f5;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-top: 5px;
}

.rw-attach-image {
  width:100%;
  margin-bottom:0px;
}

/*
 * Geo Data Management
 */
.rw-geodata-container {
  background-color: #f5f5f5;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-top: 5px;
}

/*
 * DataTable custom
 */
.dataTables_wrapper {
  padding: 0px;
  position: relative;
  font-size: 12px;
}

.dataTables_length {
  position: absolute;
  bottom: 0px;
}

.dataTables_info {
  position: absolute;
  right: 8px;
}

.dataTables_paginate {
  text-align: center;
}

.dataTables_paginate a {
  border-style: solid;
  border-width: 1px;
  border-color: #DDDDDD;
}

/* Table header */
thead tr {
  color: #ffffff;
  height: 30px;
  background-color: #33429d;
}

thead th {
  padding: 0px 12px;
  text-align: center;
  border-right: 1.5px double #ffffff;
}

thead .sorting {
  background-image: url("../image/table/sort.png");
  background-repeat: no-repeat;
  background-position: center right;
}

thead .sorting_asc {
  background-image: url("../image/table/sort-asc.png");
  background-repeat: no-repeat;
  background-position: center right;
}

thead .sorting_desc {
  background-image: url("../image/table/sort-desc.png");
  background-repeat: no-repeat;
  background-position: center right;
}

/* Table row */
.dataTable tbody td {
  padding: 6px 10px !important;
}

.dataTable tr.even {
  background-color: #ffffff;
}

.dataTable tr.odd {
  background-color: #f2f2f2;
}

.dataTable.hover tbody tr:hover {
  background-color: #e4e4e4;
}

.row-selected {
  background-color: #ccdcec !important;
}

/* Columns separator */
.row-border tbody th, table.dataTable.row-border tbody td,
table.dataTable.display tbody th, table.dataTable.display tbody td
{
  border-right: 1.5px double #ffffff;
}

/* Datetime-picker */

.dropdown-menu table {
  font-size: 12px;
}

.dropdown-menu table th{
  min-width: 35px;
  max-width: 40px;
}

.dropdown-menu table th .uib-left{
  min-width: 35px;
  max-width: 40px;
}

.dropdown-menu table th .uib-right{
  min-width: 35px;
  max-width: 40px;
}

.uib-day .btn-sm {
  font-size: 12px;
}

.uib-weeks .uib-day {
  min-width: 35px;
  max-width: 40px;
}
.uib-weeks .uib-day .btn-sm {
  min-width: 35px;
  max-width: 40px;
}

/* ui-select rules */
.ui-select-bootstrap > .ui-select-match > .btn
{
  background-color: none;
}

.ui-select-bootstrap > .ui-select-match > .btn-default
{
  background-image: none;
}

/* Set ui-select-toggle height according to the specifies input-{sm | lg} */
.ui-select-bootstrap > .input-sm > .ui-select-toggle
{
  height: 30px;
}

.ui-select-bootstrap > .input-lg > .ui-select-toggle
{
  height: 45px;
}

.ui-select-container > .dropdown-menu
{
  min-width:60px;
}

/*
 * @media rules.
 */

/* Screen height > 768px */
@media only screen and (min-height: 768px)
{
  .modal-body-scroll {
    max-height: 700px;
  }

  .modal-xxl .modal-body-scroll {
    max-height: 900px !important;
  }
}
