:root {
  --dom-primary-color:  #2073e6;
  --dom-gray: rgb(94, 92, 92);
  --dom-light-gray: #f5f5f5;
  --dom-dark-primary-color: rgb(7, 79, 151);
}

@import './forms.css';

.dom {
  font-family: arial, sans-serif;
}
.dom#form-dom-search {
  background: #FFF4CC;
  padding: 20px;
  @media (min-width: 768px) {
    padding: 10px 20px 5px 20px;
  }
  margin-bottom: 50px;
  border-radius: 6px;
}
@media (max-width: 768px) {
  .dom#form-dom-search .date-range p {
    margin-top: 0;
  }
  .dom#form-dom-search #range-picker {
    margin-bottom: 8px;
  }
  .dom#form-dom-search .control.divider {
    display: inline-block;
    margin-left: 4px;
    margin-right: 4px;
  }
  .dom#form-dom-search .datepicker-input {
    width: 140px !important;
  }
  .dom#form-dom-search .form-fields .fields input,
  .dom#form-dom-search .form-fields .fields button,
  .dom#form-dom-search .form-fields .fields .datepicker {
    box-sizing: border-box;
    margin-bottom: 10px;
    width: 100%;
  }
  .dom#form-dom-search .form-fields .fields .datepicker {
    margin-bottom: 0;
  }
}

@media (min-width: 768px) {
  .dom#form-dom-search .form-fields {
    display: flex;
    justify-content: end;
    align-items: center;
  }
  .dom#form-dom-search .form-fields .fields {
    display: flex;
  }
  .dom#form-dom-search #dom-search-button {
    margin-left: 8px;
  }
  .dom#form-dom-search #range-picker {
    gap: 8px;
  }
  .dom#form-dom-search .datepicker-input {
    width: 120px;
  }
}
.dom#form-dom-search .date-range p {
  margin-right: 8px;
  opacity: .6;
}
.dom#form-dom-search .search-field {
  width: 270px;
}
.dom .align-left { text-align: left; }
.dom .align-center { text-align: center; }
.dom .align-right { text-align: right; }
.dom .flex {
  display: flex;
  align-items: center;
}
.dom .flex-end {
  justify-content: end;
}
.dom .card,
.dom .card a {
  transition: all .5s ease;
}
.dom .card {
  border-radius: 12px;
  padding-left: 20px;
  padding-right: 20px;
  box-shadow: 0 0 10px rgba(227, 228, 229, .4);
}
.dom .card:hover {
  box-shadow: 0 0 12px rgba(184, 185, 187, .6);
  cursor: pointer;
}
.dom .card a {
  color: var(--dom-primary-color);
  text-decoration: none;
}
.dom .card a:hover {
  text-decoration: underline;
}
.dom .card .dom-date {
  color: var(--dom-gray);
  font-size: 16px;
  margin-top: -10px;
}
.dom .flex-justify-between {
  display: flex;
  justify-content: space-between;
}
.dom-view-button {
  background: url('./images/view_icon.png') center right no-repeat;
  background-size: 36px, auto;
  font-size: 0;
  margin-left: 10px;
  height: 36px;
  width: 36px;
}
.dom-view-button:hover {
  transform: scale(1.09);
  opacity: .7;
}
.dom-view .header {
  display: block;
  margin: 50px 0 30px 0;
}
.dom-view .header a {
  text-decoration: none;
}
.dom-view .header h1{
  margin-bottom: 0;
}
.dom-view .header h2 {
}
.dom-view .btn-download {
  display: block;
  margin-bottom: 30px;
}
.dom-view .btn-download a {
  border-radius: 100px;
  transtion: all 1s ease;
}
.dom-view .btn-download a:hover {
  opacity: .8;
}

/* Paginação */
.dom .pagination {
  margin-top: 55px;
  text-align: center;
}

.dom .pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dom .pagination li {
  display: inline-block;
}

.dom .pagination li a {
  padding: 6px 12px;
  font-size: 12px;
  margin: 0 4px;
  background-color: var(--dom-primary-color);
  color: white;
  text-decoration: none;
  border-radius: 3px;
}

.dom .pagination a:hover {
  background-color: var(--dom-dark-primary-color);
}

.dom .pagination .current {
  padding: 6px 12px;
  margin: 0 4px;
  background-color: #ddd;
  color: black;
  border-radius: 3px;
}

.dom .grid-container {
  display: grid;
  grid-template-columns: 1fr;
  @media (min-width: 768px) {
    grid-template-columns: repeat(4, 1fr);
  }
  gap: 20px;
}

#dom-view-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
}
#dom-view-modal .modal-content {
  background: white;
  padding: 20px;
  width: 80%;
  border-radius: 8px;
  position: relative;
  text-align: center;
}
#dom-view-modal .close {
  border-radius: 100px;
  background: rgba(0,0,0,.1);
  padding: 6px 12px;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
}
#dom-view-modal iframe {
  width: 100%;
  margin-top: 20px;
  height: 70vh;
  max-height: 90vh;
  border: none;
}
