html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", sans-serif;
}

body {
  background-color: #f8f9fa;
  flex: 1;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
  min-height: 100vh;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.fade-in {
  opacity: 1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
  padding: 0.5rem 2rem;
  height: 60px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-right {
  display: flex;
  align-items: center;
}

.table-hover tbody tr {
  transition: background-color 0.3s ease !important;
  transform: none !important;
  background-color: transparent !important;
}

.table-hover tbody tr:hover {
  background-color: rgba(79, 146, 145, 0.05) !important;
  transform: none !important;
}

.table-hover tbody tr.row-with-menu-open {
  transform: translateY(-4px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  background-color: rgba(79, 146, 145, 0.08) !important;
}

.badge-success {
  background-color: #3cb371;
}

.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover:after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.btn .icon {
  transition:
    fill 0.3s ease,
    filter 0.3s ease;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.table thead th {
  background-color: #4f9291;
  color: #ffffff;
  padding: 15px 10px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  white-space: normal;
  word-wrap: break-word;
  hyphens: auto;
  max-width: none;
  vertical-align: top;
  font-size: 0.9em;
  line-height: 1.2;
}

.table tbody tr {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.table th,
.table td {
  padding: 15px 10px;
  vertical-align: middle;
  text-align: left;
  border: none;
}

.table td {
  height: 60px;
  vertical-align: middle;
  padding: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

input[type="checkbox"] {
  margin-top: 0.3rem;
}

.navbar-brand img {
  width: 150px;
  margin-bottom: 10px;
}

.navbar-text {
  font-size: 25px;
  margin-right: 10px;
}

footer {
  padding: 0;
  text-align: center;
  color: #9d9f9f;
  flex-shrink: 0;
  width: 100%;
  position: relative;
  margin-top: 75px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-svg {
  height: 40px;
  margin-left: 20px;
  width: auto;
}

.footer-text {
  flex-grow: 1;
  text-align: right;
  display: inline-block;
  margin: 0 20px 0 auto;
  font-size: 14px;
}

.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  filter: invert(34%) sepia(20%) saturate(1000%) hue-rotate(120deg)
    brightness(90%) contrast(90%);
}

.btn-outline-primary:hover .icon,
.btn-outline-danger:hover .icon {
  filter: invert(100%) sepia(100%) saturate(100%) hue-rotate(0deg)
    brightness(100%) contrast(100%);
}

.btn-outline-primary,
.btn-outline-danger {
  border-color: #237776;
  background-color: #ffffff;
  color: #237776;
  border-width: 2px;
}

.btn-outline-primary:hover,
.btn-outline-danger:hover {
  border-color: #237776;
  background-color: #237776;
  color: #ffffff;
}

.btn-primary {
  background-color: #237776;
  border-color: #237776;
}

.btn-primary:hover {
  background-color: #1a5958;
  border-color: #237776;
}

.badge {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 120px;
  max-width: 200px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  gap: 6px;
}

.badge .status-text {
  font-size: 16px;
  text-transform: uppercase;
  margin-top: 2px;
}

.bg-pendente {
  background-color: #fff9d8;
  color: #777023;
  font-size: 16px;
}

.bg-pendente i,
.bg-pendente .fa-clock,
.bg-pendente i.fa-clock {
  color: #d97706 !important;
}

.bg-encerrado {
  background-color: #eceff1;
  color: #263238;
  font-size: 16px;
}

.bg-cancelado {
  background-color: #eceff1;
  color: #c62828;
  font-size: 16px;
}

.bg-edicao {
  background-color: #d8dfff;
  color: #233477;
  font-size: 16px;
}

.bg-edicao i {
  color: #dc2626 !important;
}

.bg-pedido {
  background-color: #dfffd8;
  color: #387723;
  font-size: 16px;
}

.bg-vencido {
  background-color: #ffebee;
  color: #c62828;
  font-size: 16px;
}

.bg-virou-pedido {
  background-color: #d4edda;
  color: #155724;
  font-size: 16px;
}

.form-check-input:checked {
  background-color: #237776;
  border-color: #237776;
}

td .btn {
  display: inline-block;
}

.button-group {
  display: flex;
  gap: 10px;
}

h2 {
  color: #4f9291;
}

h1 {
  font-size: 22px;
  margin-top: 50px;
  margin-bottom: 30px;
  color: #212529;
}

.table-outline-yellow thead th,
.table-outline-gray thead th {
  padding: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.table-outline-yellow thead th {
  background-color: #fff9a1;
}

.table-outline-yellow thead,
.table-outline-gray thead {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
}

.table-outline-yellow thead tr,
.table-outline-gray thead tr {
  height: 50px;
}

.tooltip {
  font-family: Arial, sans-serif;
}

.tooltip .tooltip-inner {
  background-color: #f8f9fa;
  color: #212529;
  border: 1px solid #dee2e6;
  padding: 10px;
  font-size: 14px;
  max-width: 300px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tooltip .tooltip-arrow::before {
  border-top-color: #dee2e6;
}

.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #dee2e6;
}

.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #dee2e6;
}

.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before,
.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #dee2e6;
}

.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before,
.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #dee2e6;
}

.table-margin-bottom {
  margin-bottom: 100px;
}

.navbar-animated:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hover-effect {
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

.hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.animate-table {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease-in-out,
    transform 0.5s ease-in-out;
}

.animate-table.show {
  opacity: 1;
  transform: translateY(0);
}

.input-group-text {
  background-color: #237776;
  color: white;
  border: none;
  border-radius: 6px;
  margin-top: 8px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.input-group-text:hover {
  background-color: #e9ecef;
}

.input-group-text:active {
  background-color: #dde0e3;
}

.input-group-text i {
  font-size: 1.2rem;
}

.table th {
  position: relative;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.table th::after {
  content: "\f0dc";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 8px;
  color: #ffffff;
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
}

.navbar-right .user-info,
.navbar-center h2 {
  color: #4f9291;
  font-weight: bold;
  transition: color 0.3s ease;
  font-size: 20px;
  height: 100%;
}

.user-info {
  cursor: default;
  margin-top: 8px;
}

.navbar-right .user-info:hover {
  color: #8fb435;
}

.navbar-right .dropdown-item i {
  margin-right: 0.5rem;
  color: #4f9291;
}

.navbar-animated {
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out;
  opacity: 0;
}

.animate-fade-in-up.show {
  opacity: 1;
}

.container {
  flex: 1 0 auto;
  max-width: 1600px !important;
  width: 95%;
}

.form-control:focus,
.form-select:focus {
  border-color: #4f9291;
  box-shadow: 0 0 0 0.2rem rgba(79, 146, 145, 0.25);
  outline: none;
  transition: all 0.3s ease-in-out;
}

.form-control,
.form-select {
  transition: all 0.3s ease-in-out;
}

.tabelas-propostas-container {
  margin-top: 30px;
  animation: slideIn 0.5s ease-out;
  transition: margin-top 0.3s ease;
  will-change: margin-top;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tabelas-propostas-container table {
  margin-bottom: 20px;
}

.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #4f9291;
  box-shadow: 0 0 0 0.2rem rgba(79, 146, 145, 0.25);
}

.table thead th:first-child {
  border-top-left-radius: 10px;
}

.table thead th:last-child {
  border-top-right-radius: 10px;
}

.table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

.table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-in {
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.region-select-container {
  display: flex;
  align-items: center;
}

#tabelasPropostas .table th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

#tabelasPropostas .table td {
  white-space: normal;
  word-wrap: break-word;
}

#tabelasPropostas .table {
  table-layout: fixed;
  width: 100%;
}

#tabelasPropostas .table .col-numero {
  width: 8%;
}
#tabelasPropostas .table .col-valor {
  width: 10%;
}
#tabelasPropostas .table .col-data {
  width: 11%;
}
#tabelasPropostas .table .col-status {
  width: 15%;
}
#tabelasPropostas .table .col-regiao {
  width: 8%;
}
#tabelasPropostas .table .col-codigo {
  width: 12%;
}
#tabelasPropostas .table .col-razao {
  width: 26%;
}
#tabelasPropostas .table .col-acoes {
  width: 90px;
}

#tabelasPropostas .table td {
  height: 60px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tabelasPropostas .table th {
  height: auto;
}

#tabelasPropostas .table-outline-yellow th::after {
  color: #000000;
}

#tabelasPropostas .table-outline-yellow thead th {
  color: #000000;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-content {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #4f9291;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-content p {
  font-size: 18px;
  color: #4f9291;
  font-weight: 500;
}

.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 20px;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1000;
  transition:
    transform 0.3s ease,
    padding 0.3s ease;
}

.filter-container.compact {
  transform: scale(0.9);
}

.filter-item select:focus {
  outline: none;
  border-color: #4f9291;
  box-shadow: 0 0 0 2px rgba(79, 146, 145, 0.2);
}

.bg-prazo-vencido {
  background-color: #ffcccc;
  color: #ff0000;
  font-size: 16px;
}

.fixed-header {
  position: fixed;
  top: 70px;
  z-index: 999;
  transition: opacity 0.3s ease;
  opacity: 1;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem 0 0;
}

.fixed-header.compact {
  width: 100%;
  max-width: 100%;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  top: 0;
  left: 0;
}

.fixed-header.compact .dropdown-regioes {
  max-width: 200px;
  font-size: 0.85rem;
}

.fixed-header.compact .filter-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fixed-header.compact .filter-search {
  flex: 1;
  margin: 0;
  max-width: 300px;
}

.fixed-header.compact .header-content {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
  padding: 0 10px 0 20px;
}

.fixed-header.compact .filter-item select {
  width: 100%;
  min-width: 200px;
}

.fixed-header.compact .total-propostas {
  white-space: nowrap;
  margin: 0;
}

.modal-lg {
  max-width: 900px;
}

.modal-body {
  overflow-y: auto;
}

.table-responsive {
  margin-top: 1rem;
}

.modal-body h6 {
  color: #237776 !important;
  margin-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.modal-xl {
  max-width: 1600px !important;
  margin: 1.75rem auto;
}

.modal-dialog {
  width: 95%;
  max-width: 1600px;
}

.row.g-4 {
  margin: 0 -1rem;
}

.col-md-6 {
  padding: 0 1rem;
}

.table-responsive {
  margin: 2rem -1rem 0;
  padding: 0 1rem;
}

.info-grid p {
  margin: 0;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.info-grid p:hover {
  background-color: #e9ecef;
}

.card {
  transition: transform 0.2s;
  background-color: #ffffff;
}

.card:hover {
  transform: translateY(-2px);
}

.table-responsive {
  border-radius: 0.5rem;
  background-color: #ffffff;
}

.table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.modal-header {
  border: none;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.info-grid p i {
  color: #237776 !important;
}

.modal-header {
  background-color: #dfe3e3;
  border: none;
}

.modal-header .modal-title i {
  color: #237776;
}

.card-title i {
  color: #237776;
}

.modal-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 1.5rem;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.modal-footer .btn-secondary {
  background-color: #d33;
  border: none;
}

.modal-footer .btn-secondary:hover {
  background-color: rgb(155, 37, 37);
}

.table th {
  height: 50px;
  vertical-align: middle;
  padding: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tabelasPropostas .table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

#tabelasPropostas .table td {
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tabelasPropostas .table td {
  position: relative;
  height: 60px;
  max-height: 60px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 15px;
  background-color: #ffffff;
  transition: all 0.3s ease-in-out;
}

#tabelasPropostas .table td:hover {
  max-height: 500px;
  height: auto;
  white-space: normal;
  word-break: break-word;
  background-color: #f8f9fa;
  z-index: 1000;
}

#tabelasPropostas .table td > * {
  transition: all 0.3s ease-in-out;
}

.fixed-header-container {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.fixed-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-actions .btn-primary {
  background-color: #4f9291;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-actions .btn-primary:hover {
  background-color: #3b7d7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.total-propostas p {
  font-size: 1.1rem;
  color: #4f9291;
  margin: 0;
}

.filter-search {
  flex: 0 1 auto;
  min-width: 300px;
  order: 1;
  margin-bottom: 1rem;
}

.filter-search label {
  font-weight: 500;
  color: #4f9291;
  display: block;
}

.filter-search .input-group {
  min-width: 600px;
  display: flex;
  align-items: center;
  width: 100%;
}

.filter-item label {
  font-weight: 500;
  color: #495057;
}

.filter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-top .btn-primary {
  background-color: #4f9291;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-top .btn-primary:hover {
  background-color: #3b7d7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.total-propostas {
  font-size: 1.1rem;
  color: #4f9291;
  margin: 0;
  font-weight: 500;
}

.filter-item select {
  height: 42px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  transition: all 0.3s ease;
  width: 170px;
  min-width: 350px;
}

.filter-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

#tabelasPropostas {
  padding-top: var(--header-height, 316px);
  transition: padding-top 0.3s ease;
}

#tabelasPropostas.compact {
  padding-top: var(--header-height-compact, 196px);
}

.fixed-header.compact .filter-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 0 20px;
  gap: 15px;
}

.fixed-header.compact .form-control,
.fixed-header.compact .form-select {
  height: 35px;
  padding: 5px 10px;
}

.status-checkboxes {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 8px 0;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.status-checkboxes::-webkit-scrollbar {
  display: none;
}

.status-checkboxes .form-check {
  margin: 0;
  min-width: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.status-checkboxes .form-check-input {
  cursor: pointer;
  margin-top: -0.4rem;
}

.status-checkboxes .form-check-input:checked {
  background-color: #4f9291;
  border-color: #4f9291;
}

.status-checkboxes .form-check-label {
  cursor: pointer;
  font-size: 0.9rem;
  color: #000000;
  margin-top: 0;
  line-height: 1;
}

.fixed-header.compact .status-checkboxes {
  flex-direction: row;
  align-items: center;
  padding: 0;
}

.fixed-header.compact .form-check {
  min-width: auto;
  white-space: nowrap;
}

.filter-item {
  flex: 0 0 auto;
  min-width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 8px;
  order: 2;
}

.fixed-header.compact .status-checkboxes {
  flex-direction: row;
  flex-wrap: nowrap;
  padding: 0;
  gap: 10px;
}

.fixed-header.compact .form-check {
  min-width: auto;
  white-space: nowrap;
}

#regiaoVendedor {
  height: auto;
  min-height: 38px;
}

#regiaoVendedor option {
  padding: 8px;
}

.dropdown-regioes {
  position: relative;
  width: 350px;
}

.dropdown-regioes .dropdown-menu {
  display: none;
  position: absolute;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  padding: 8px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  min-width: 100%;
}

.dropdown-regioes .dropdown-menu.show {
  display: block;
}

.dropdown-regioes .dropdown-item {
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-regioes .dropdown-item input[type="checkbox"] {
  margin: 0;
}

.dropdown-regioes .dropdown-item label {
  margin: 0;
  cursor: pointer;
}

.dropdown-regioes .dropdown-item:hover {
  background-color: #f8f9fa;
}

.regioes-selecionadas {
  margin-top: 5px;
  font-size: 0.875rem;
}

.regioes-selecionadas span {
  display: inline-block;
  background: #e9ecef;
  padding: 2px 8px;
  margin: 2px;
  border-radius: 3px;
}

.col-regiao {
  width: 80px;
  text-align: center;
}

.dropdown-regioes .dropdown-toggle {
  height: 42px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}

.fixed-header.compact .btn-primary {
  height: 35px;
}

.fixed-header.compact .filter-search .input-group {
  min-width: 300px;
  width: 400px;
}

.fixed-header.compact .filter-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.fixed-header.compact .filter-item label {
  margin-bottom: 2px;
  font-size: 0.9rem;
  text-align: left;
}

.fixed-header.compact .filter-options {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}

.filter-item label {
  font-weight: 500;
  color: #4f9291;
  margin-bottom: 0.5rem;
  display: block;
}

.tabelas-propostas-container .alert {
  margin: 20px auto;
  max-width: 400px;
  font-size: 1.1em;
}

.loading-toast {
  background-color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border-radius: 8px !important;
  padding: 15px 20px !important;
  color: #333 !important;
  opacity: 1 !important;
}

.loading-toast .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
  margin-right: 8px;
  color: #0d6efd;
}

#toast-container {
  z-index: 9999;
}

.toast-bottom-right {
  bottom: 15px !important;
  right: 15px !important;
}

.fixed-header .header-content {
  transition: opacity 0.3s ease;
}

.fixed-header .filter-top,
.fixed-header .filter-search,
.fixed-header .filter-options,
.fixed-header .filter-item,
.fixed-header .status-checkboxes,
.fixed-header .form-check,
.fixed-header .dropdown-regioes,
.fixed-header input,
.fixed-header select {
  transition: opacity 0.3s ease;
}

.fixed-header.compact .filter-search .input-group {
  min-width: 300px;
  width: 400px;
}

.fixed-header.compact .filter-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.fixed-header.compact .status-checkboxes {
  flex-direction: row;
  flex-wrap: nowrap;
  padding: 0;
  gap: 10px;
}

.fixed-header.compact .form-check {
  min-width: auto;
  white-space: nowrap;
}

.bg-secondary {
  background-color: #e9ecef !important;
  color: #495057 !important;
}

.bg-secondary .motivo-perda {
  border-top: 1px solid rgba(73, 80, 87, 0.2);
  padding-top: 4px;
  margin-top: 4px;
  width: 100%;
  text-align: center;
  line-height: 1.2;
  font-weight: normal;
}

.badge.bg-secondary {
  min-height: 50px;
}

.toast-info {
  background-color: #17a2b8;
}

.toast-success {
  background-color: #28a745;
}

.toast-error {
  background-color: #dc3545;
}

.toast {
  opacity: 1 !important;
}

.toast-message {
  color: white;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.tooltip-trigger[data-bs-original-title^="Ação em andamento"] .btn {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
}

.actions-button {
  background: none;
  border: none;
  color: #4f9291;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.actions-button:hover {
  background-color: rgba(79, 146, 145, 0.1);
  color: #3b7d7a;
}

.actions-button i {
  font-size: 20px;
}

.tippy-box[data-theme~="actions"] {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 15px;
  z-index: 9999;
}

.actions-menu {
  min-width: 250px;
  padding: 8px 0;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s;
}

.action-item:hover {
  background-color: #f8f9fa;
}

.action-item i {
  width: 24px;
  font-size: 16px;
  width: 26px;
  font-size: 16px;
  text-align: center;
  color: #4f9291;
}

.action-item.danger {
  color: #dc3545;
}

.action-item.danger i {
  color: #dc3545;
}

.action-item.disabled {
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

.action-item.disabled:hover {
  background-color: transparent;
}

.action-item.disabled i {
  color: #6c757d;
}

.action-separator {
  height: 1px;
  background-color: #dee2e6;
  margin: 10px 0;
}

#tabelasPropostas .table .col-acoes {
  width: 90px;
  text-align: center;
}

.action-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.actions-button {
  background: none;
  border: none;
  color: #4f9291;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

#motivoEncerramento option[value="divider"] {
  border-bottom: 1px solid #dee2e6;
  margin: 8px 0;
}

.filter-options {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.badge .info-icon {
  margin-left: 4px;
  font-size: 0.9em;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.badge .info-icon:hover {
  opacity: 1;
}

.tooltip.custom-tooltip .tooltip-inner {
  background-color: #495057;
  color: #ffffff;
  padding: 8px 12px;
  max-width: 250px;
  text-align: center;
  border-radius: 4px;
}

.tooltip.custom-tooltip .tooltip-arrow::before {
  border-top-color: #495057;
}

.actions-button-active {
  background-color: #237776;
  color: #ffffff;
}

.actions-button-active:hover {
  background-color: #4f9291;
  color: #ffffff;
}

#tabelasPropostas .table tbody tr:nth-child(even) {
  background-color: rgba(79, 146, 145, 0.03);
}

#tabelasPropostas .table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

#tabelasPropostas .table tbody tr {
  transition: background-color 0.3s ease;
}

#tabelasPropostas .table tbody tr:hover {
  background-color: rgba(79, 146, 145, 0.08);
}

#tabelasPropostas .table tbody tr.row-with-menu-open {
  background-color: rgba(79, 146, 145, 0.12) !important;
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#tabelasPropostas .table {
  border-collapse: separate;
  border-spacing: 0;
}

#tabelasPropostas .table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(222, 226, 230, 0.6);
}

#tabelasPropostas .table tbody tr,
.table-hover tbody tr {
  background-color: transparent;
  transition: all 0.3s ease;
  transform: none;
}

#tabelasPropostas .table tbody tr:nth-child(even) {
  background-color: rgba(79, 146, 145, 0.02) !important;
}

#tabelasPropostas .table tbody tr:nth-child(odd) {
  background-color: #ffffff !important;
}

#tabelasPropostas .table tbody tr:hover {
  background-color: rgba(79, 146, 145, 0.05) !important;
}

#tabelasPropostas .table tbody tr.row-with-menu-open {
  background-color: rgba(79, 146, 145, 0.08) !important;
  transform: translateY(-4px) !important;
  box-shadow: 4px 4px 8px 8px rgba(0, 0, 0, 0.1) !important;
  position: relative;
  z-index: 1;
}

#tabelasPropostas .table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(222, 226, 230, 0.6);
  vertical-align: middle;
  transition: all 0.3s ease;
}

.table-hover tbody tr:hover td,
.table tbody tr:hover td {
  background-color: transparent !important;
}

#tabelasPropostas .table {
  margin-bottom: 2rem;
}

.table-section-title {
  font-size: 1.2rem;
  color: #4f9291;
  font-weight: 500;
  padding: 1rem 0;
  margin: 1rem 0;
  border-bottom: 2px solid rgba(79, 146, 145, 0.1);
}

.table-divider {
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(79, 146, 145, 0.1),
    rgba(79, 146, 145, 0.05),
    rgba(79, 146, 145, 0)
  );
  margin: 2rem 0;
}

.status-cards {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.status-card {
  cursor: pointer;
  background: white;
  border-radius: 12px;
  padding: 15px;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.status-card.selected {
  background-color: #ebffec;
  border-color: #4f9291;
}

.status-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5;
}

.status-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.status-info {
  display: flex;
  flex-direction: column;
}

.status-count {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}

.status-label {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-card[data-status="em_edicao"] .status-icon {
  background-color: #d8dfff;
  color: #233477;
}

.status-card[data-status="cotacao"] .status-icon {
  background-color: #fff9d8;
  color: #777023;
}

.status-card[data-status="virou_pedido"] .status-icon {
  background-color: #dfffd8;
  color: #387723;
}

.status-card[data-status="perdeu"] .status-icon {
  background-color: #eceff1;
  color: #263238;
}

.status-card[data-status="cancelado"] .status-icon {
  background-color: #eceff1;
  color: #c6332f;
}

.vencidas-indicator {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 1rem;
  z-index: 1;
}

.vencidas-indicator i {
  filter: drop-shadow(0 0 2px white);
  cursor: help;
}

.status-info {
  position: relative;
}

.tooltip.custom-tooltip .tooltip-inner {
  background-color: #ffc107;
  color: #000;
  padding: 8px 12px;
  font-weight: 500;
}

.tooltip.custom-tooltip .tooltip-arrow::before {
  border-top-color: #ffc107;
}

.fixed-header.compact .status-cards {
  display: flex;
  gap: 12px;
  margin: 0;
  transform: scale(0.9);
  transform-origin: left center;
}

.fixed-header.compact .status-card {
  padding: 6px 10px;
  min-width: auto;
  flex: 0 0 auto;
}

.fixed-header.compact .status-card .status-icon {
  font-size: 0.9rem;
  width: 28px;
  height: 28px;
}

.fixed-header.compact .status-card .status-info {
  gap: 2px;
}

.fixed-header.compact .status-card .status-count {
  font-size: 1.2rem;
  line-height: 1;
}

.fixed-header.compact .status-card .status-label {
  font-size: 0.75rem;
  white-space: nowrap;
}

.fixed-header.compact #criarNovaProposta {
  font-size: 0.85rem;
  white-space: nowrap;
  margin-top: 28px;
}

.fixed-header.compact .filter-search .input-group {
  max-width: 200px;
}

.fixed-header.compact .filter-search label {
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.fixed-header.compact .status-checkboxes {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0;
  margin: 0;
}

.fixed-header.compact .form-check {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 4px;
  white-space: nowrap;
}

.fixed-header.compact .form-check-label {
  font-size: 0.85rem;
  margin: 0;
}

.fixed-header.compact .form-check-input {
  margin: 0;
}

.fixed-header.compact .filter-item {
  margin: 0;
}

.fixed-header.compact .filter-item label {
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.fixed-header.compact .filter-item select {
  height: 32px;
  padding: 4px 8px;
  font-size: 0.85rem;
  min-width: 140px;
}

.fixed-header.compact .vencidas-indicator {
  top: -4px;
  right: -4px;
  transform: scale(0.85);
}

.compact-status-counter {
  display: none;
}

.fixed-header.compact .status-cards {
  display: none;
}

.fixed-header.compact .compact-status-counter {
  display: block;
  position: relative;
}

.compact-counter-button {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compact-counter-button:hover {
  background: #f8f9fa;
  border-color: #4f9291;
}

.compact-counter-button i {
  color: #4f9291;
}

.compact-counter-button .total-count {
  font-weight: 600;
  color: #333;
}

.compact-counter-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 12px;
  min-width: 200px;
  z-index: 1000;
  border: 1px solid #e0e0e0;
}

.compact-status-counter:hover .compact-counter-dropdown {
  display: block;
}

.compact-counter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compact-counter-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  border: 1px solid transparent;
}

.compact-counter-item:hover {
  background-color: #f8f9fa;
}

.compact-counter-item.selected {
  background-color: #ebffec;
  border: 1px solid #4f9291;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compact-counter-item.selected .counter-label {
  color: #4f9291;
  font-weight: 500;
}

.compact-counter-item.selected .compact-counter-icon {
  transform: scale(1.1);
}

.compact-counter-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 12px;
}

.compact-counter-info {
  display: flex;
  flex-direction: column;
}

.counter-count {
  font-weight: 600;
  font-size: 14px;
}

.counter-label {
  font-size: 12px;
  color: #6c757d;
}

.compact-counter-item[data-status="em_edicao"] .compact-counter-icon {
  background-color: #d8dfff;
  color: #233477;
}

.compact-counter-item[data-status="cotacao"] .compact-counter-icon {
  background-color: #fff9d8;
  color: #777023;
}

.compact-counter-item[data-status="virou_pedido"] .compact-counter-icon {
  background-color: #dfffd8;
  color: #387723;
}

.compact-counter-item[data-status="perdeu"] .compact-counter-icon {
  background-color: #eceff1;
  color: #263238;
}

.compact-counter-item[data-status="cancelado"] .compact-counter-icon {
  background-color: #eceff1;
  color: #c6332f;
}

.fixed-header.compact .status-checkboxes {
  margin-right: 40px;
}

.fixed-header.compact .compact-status-counter {
  margin-right: 40px;
}

.counter-arrow {
  font-size: 0.8rem;
  color: #666;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.compact-counter-button:hover .counter-arrow {
  transform: translateY(2px);
}

.compact-counter-button:hover {
  background: #f8f9fa;
  border-color: #4f9291;
}

.status-checkbox-divider {
  width: 1px;
  height: 20px;
  background-color: #ced4da;
  margin: 0 8px;
}

#tabelasPropostas .table tbody tr {
  position: relative;
  z-index: 1;
}

#tabelasPropostas .table tbody tr.row-with-menu-open {
  z-index: 2;
}

.badge .warning-icon {
  color: #ff9800;
  font-size: 0.9em;
  margin-left: 4px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

.tooltip[data-bs-title*="processo de autorização"] .tooltip-inner {
  background-color: #ff9800;
  color: white;
}

.tooltip[data-bs-title*="processo de autorização"] .tooltip-arrow::before {
  border-top-color: #ff9800;
}

.empty-state-message {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 2rem 0;
}

.empty-state-icon {
  font-size: 3rem;
  color: #4f9291;
  margin-bottom: 1rem;
}

.empty-state-message h3 {
  color: #495057;
  font-weight: 500;
}

.filter-item.disabled,
.filter-item.disabled label,
.filter-item.disabled select,
.filter-item.disabled input {
  cursor: not-allowed;
}

.filter-item.disabled label {
  color: #6c757d;
}

.disabled {
  opacity: 0.6;
  pointer-events: none;
}

#confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.session-error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  overflow-y: hidden;
}

.session-error-content {
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
}

.session-error-content i {
  color: #ffffff;
}

.session-error-content i.fa-exclamation-circle {
  color: #dc3545;
}

.session-error-content h3 {
  color: #343a40;
  margin-bottom: 1rem;
}

.session-error-content p {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.session-error-content .btn {
  background-color: #4f9291;
  border-color: #4f9291;
}

.session-error-content .btn:hover {
  background-color: #3d7372;
  border-color: #3d7372;
}

.session-error-content .btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

.session-error-content .btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

.session-error-content .btn-secondary.btn-cache {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
}

.session-error-content .btn-secondary.btn-cache:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.body-no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

.filter-item label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4f9291;
  height: 20px;
  line-height: 20px;
}

.filter-search .input-group,
.filter-item .dropdown-regioes,
.filter-item select {
  height: 42px;
}

.filter-search .form-control,
.filter-item .form-select,
.filter-item .dropdown-toggle {
  height: 42px;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
}

.dropdown-regioes .dropdown-toggle {
  width: 100%;
  text-align: left;
  background-color: white;
  position: relative;
}

.filter-item.items-per-page {
  flex: 1;
}

.filter-label {
  padding-bottom: 10px;
}

#propostas {
  margin-top: 8px;
}

.filter-search .form-control {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.filter-search .input-group-text {
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-top: 8px;
  border-left: none;
  margin-right: -50px;
}

.fixed-header.compact .filter-search label,
.fixed-header.compact .filter-item label {
  height: 20px;
  line-height: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.fixed-header.compact .filter-search .input-group,
.fixed-header.compact .filter-item select,
.fixed-header.compact .dropdown-regioes .dropdown-toggle {
  height: 35px;
}

.fixed-header.compact .filter-search .form-control,
.fixed-header.compact .filter-item .form-select,
.fixed-header.compact .dropdown-regioes .dropdown-toggle {
  height: 35px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.fixed-header.compact .filter-search .input-group-text {
  height: 35px;
  padding: 0 12px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1px;
}

.fixed-header.compact .compact-status-counter {
  margin-top: 28px;
}

.fixed-header.compact .filter-search .input-group {
  display: flex;
  align-items: stretch;
}

@media (max-width: 1800px) {
  .filter-options {
    flex-wrap: wrap;
    gap: 15px;
  }

  .filter-search .input-group {
    width: 100%;
    min-width: 200px;
  }

  .filter-item.items-per-page {
    flex: 0 0 auto;
    width: auto;
    min-width: 120px;
  }

  .fixed-header {
    position: fixed;
    top: 70px;
    z-index: 999;
    transition: opacity 0.3s ease;
    opacity: 1;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 95% !important;
    margin: 0 auto;
    padding: 0 1.5rem 0 0;
  }

  .fixed-header.compact {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    top: 0;
    left: 0;
  }

  .fixed-header.compact input {
    max-width: 200px;
  }

  .fixed-header.compact .filter-item select {
    max-width: 200px;
  }

  .logo-header {
    display: none;
  }
}

@media (max-width: 1210px) {
  .filter-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .filter-item.items-per-page {
    grid-column: 1 / -1;
    width: 100%;
  }

  .status-cards {
    display: none;
  }

  .compact-status-counter {
    display: block !important;
    width: 250px;
    order: 2;
    margin-bottom: 15px;
    position: relative;
    max-width: calc(100% - 200px);
  }

  .compact-counter-button {
    width: 100%;
    justify-content: space-between;
    padding: 12px;
    font-size: 14px;
    margin-right: 200px;
  }

  .compact-counter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    z-index: 1000;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
  }

  .compact-counter-item {
    padding: 10px;
  }

  .fixed-header {
    position: fixed;
    top: 70px;
    width: 95%;
    max-width: 1600px;
    margin-top: 0;
    margin-top: 20px;
    transition: all 0.3s ease;
  }

  .fixed-header.compact {
    width: 100%;
    max-width: 100%;
    padding: 15px calc((100% - 95%) / 2);
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    top: 0;
    left: 0;
    margin-top: 0;
  }

  .fixed-header.compact .filter-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
  }

  .fixed-header.compact #criarNovaProposta {
    width: auto;
    margin-top: 0;
    height: 35px;
    order: 1;
  }

  .fixed-header.compact .compact-status-counter {
    margin-top: 0;
    margin-left: auto;
    margin-right: 0;
    order: 3;
  }

  .fixed-header.compact .filter-item {
    flex: 1;
  }

  .fixed-header.compact .filter-options {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
  }

  .filter-search .input-group,
  .filter-item .dropdown-regioes {
    width: 100%;
  }

  .filter-search,
  .filter-item {
    margin: 0;
  }

  .filter-label {
    margin-bottom: 5px;
  }

  #tabelasPropostas {
    padding-top: 300px;
  }

  .dropdown-regioes .dropdown-menu {
    position: fixed;
    top: auto;
    left: 15px;
    right: 15px;
    width: calc(100% - 30px);
    max-height: 50vh;
  }

  #criarNovaProposta {
    order: 1;
    margin-bottom: 15px;
  }

  .container {
    width: 95%;
    max-width: 1600px !important;
  }

  .fixed-header.compact .header-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  #tabelasPropostas .table .col-valor,
  #tabelasPropostas .table .col-data[data-content="criado"],
  #tabelasPropostas .table .col-regiao,
  #tabelasPropostas .table td:nth-child(2),
  #tabelasPropostas .table td:nth-child(3),
  #tabelasPropostas .table td:nth-child(6) {
    display: none;
  }

  #tabelasPropostas .table .col-acoes {
    width: 9%;
  }
  #tabelasPropostas .table .col-codigo {
    width: 11%;
  }

  .logo-header {
    display: none;
  }
}

@media (max-width: 768px) {
  #userName {
    display: none;
  }

  #currentPage {
    display: none;
  }

  .compact-status-counter {
    display: block !important;
    width: auto;
    max-width: 100px;
    order: 2;
    margin-bottom: 15px;
    position: relative;
  }

  .compact-counter-dropdown {
    position: fixed;
    top: auto;
    bottom: auto;
    left: 15px;
    right: 15px;
    width: calc(100% - 30px);
    max-height: 50vh;
    overflow-y: auto;
    z-index: 1050;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
  }

  #criarNovaProposta {
    order: 1;
    margin-bottom: 15px;
  }

  #tabelasPropostas .table .col-valor,
  #tabelasPropostas .table .col-data[data-content="criado"],
  #tabelasPropostas .table .col-data[data-content="validade"],
  #tabelasPropostas .table .col-regiao,
  #tabelasPropostas .table .col-codigo,
  #tabelasPropostas .table .col-razao,
  #tabelasPropostas .table td:nth-child(2),
  #tabelasPropostas .table td:nth-child(3),
  #tabelasPropostas .table td:nth-child(4),
  #tabelasPropostas .table td:nth-child(6),
  #tabelasPropostas .table td:nth-child(7),
  #tabelasPropostas .table td:nth-child(8) {
    display: none;
  }

  .fixed-header input {
    max-width: 120px;
  }

  .fixed-header.compact .filter-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    margin-top: -40px;
  }

  .fixed-header.compact .filter-search {
    grid-column: 1;
    grid-row: 1;
  }

  .fixed-header.compact .filter-item:not(.items-per-page) {
    grid-column: 2;
    grid-row: 1;
  }

  .fixed-header.compact .filter-item.items-per-page {
    display: none;
  }

  .fixed-header.compact .filter-search,
  .fixed-header.compact .filter-item {
    width: 100%;
    margin: 0;
  }

  .fixed-header.compact .filter-search .input-group {
    width: 100%;
  }

  .fixed-header.compact .filter-search .form-control {
    width: 100%;
  }

  .fixed-header.compact input {
    max-width: 120px;
  }

  .modal-body {
    padding: 1rem !important;
  }

  .row.g-4 {
    margin: 0;
  }

  .col-md-6 {
    padding: 0;
    margin-bottom: 1rem;
  }

  .filter-checkbox {
    order: 3;
  }

  .filter-search {
    order: 1;
  }

  .filter-item {
    order: 2;
    margin-left: -100px;
  }

  .logo-header {
    display: none;
  }
}

.filter-checkbox {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-top: 25px;
  order: 3;
}

.filter-checkbox .form-check {
  margin: 0;
}

.filter-checkbox .form-check-label {
  color: #4f9291;
  font-weight: 500;
}

.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header.bg-gradient {
  background: #dfe3e3 !important;
  padding: 1.5rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: black !important;
}

.modal-body .card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
}

.modal-body .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-body .card-body {
  padding: 1.5rem;
}

.modal-body .card-title {
  color: #237776;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-grid {
  display: grid;
  gap: 1rem;
}

.form-label {
  color: #237776;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-select,
.form-control {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.625rem;
  transition: all 0.2s;
}

.form-select:focus,
.form-control:focus {
  border-color: #4f9291;
  box-shadow: 0 0 0 0.2rem rgba(79, 146, 145, 0.25);
}

.quantity-input {
  width: 100px !important;
  text-align: center;
  padding: 0.375rem 0.75rem;
}

.btn-danger {
  background-color: #dc3545;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-danger:hover {
  background-color: #c82333;
  transform: translateY(-1px);
}

.modal-footer .btn {
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-footer .btn-primary {
  background-color: #237776;
  border: none;
}

.modal-footer .btn-primary:hover {
  background-color: #1a5958;
  transform: translateY(-1px);
}

.table img {
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
}

.status-card.disabled,
.compact-counter-item.disabled {
  filter: grayscale(100%);
}

input.disabled::placeholder {
  color: #999;
}

.permission-modal {
  text-align: center;
  padding: 20px;
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: transform 0.2s;
}

.benefit-item:hover {
  transform: translateX(5px);
}

.popup-instruction {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 15px;
}

.instruction-gif {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-highlight {
  background-color: #ffeb3b;
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: bold;
  display: inline-block;
  animation: highlight-pulse 1.5s infinite;
}

@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 235, 59, 0.7);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(255, 235, 59, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 235, 59, 0);
  }
}

.search-counter {
  display: none;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 8px;
  background-color: #4f9291;
  color: white;
  border-radius: 4px;
  font-size: 14px;
  z-index: 5;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .search-counter {
    right: 35px;
    font-size: 12px;
    padding: 1px 5px;
  }
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  cursor: pointer;
  z-index: 10;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  padding: 5px;
}

.search-clear-btn:hover {
  color: #e74c3c;
}

.filter-search .form-control {
  padding-right: 35px;
  border-radius: 6px !important;
  width: 100%;
}

.filter-search .input-group {
  position: relative;
  display: block;
}

.search-result-row {
  animation: flash-highlight 2s ease-in-out;
}

@keyframes flash-highlight {
  0% {
    background-color: rgba(79, 146, 145, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

@media (max-width: 768px) {
  .search-clear-btn {
    right: 8px;
    font-size: 14px;
  }

  .filter-search .form-control {
    padding-right: 30px;
  }

  .search-counter {
    right: 35px;
    font-size: 12px;
    padding: 1px 5px;
  }
}

.badge .fas,
.badge .fa-solid,
.badge i[class^="fa-"] {
  display: inline-block !important;
  margin-left: 5px;
  vertical-align: middle;
  font-family: "Font Awesome 6 Free", "FontAwesome" !important;
  font-weight: 900 !important;
}

.badge .status-text {
  display: inline-block !important;
  font-size: 16px;
  text-transform: uppercase;
  margin-top: 2px;
}

.badge .fa-circle-exclamation,
.badge i.fa-circle-exclamation {
  color: #ffaaaa;
}

.badge .fa-exclamation-circle,
.badge i.fa-exclamation-circle {
  color: #ffaaaa;
}

.badge .fa-info-circle,
.badge i.fa-info-circle {
  color: #ffffff;
  opacity: 0.7;
}

.badge.bg-encerrado .info-icon,
.badge.bg-encerrado .fa-info-circle,
.badge.bg-encerrado .fa-solid.fa-info-circle,
.badge.bg-encerrado i[class*="fa-info"] {
  color: #546e7a !important;
  opacity: 0.9 !important;
}

.badge.bg-encerrado .info-icon:hover,
.badge.bg-encerrado .fa-info-circle:hover {
  color: #263238 !important;
  opacity: 1 !important;
}

.badge.bg-cancelado .info-icon,
.badge.bg-cancelado .fa-info-circle,
.badge.bg-cancelado .fa-solid.fa-info-circle,
.badge.bg-cancelado i[class*="fa-info"] {
  color: #b71c1c !important;
  opacity: 0.9 !important;
}

.badge.bg-cancelado .info-icon:hover,
.badge.bg-cancelado .fa-info-circle:hover {
  color: #c62828 !important;
  opacity: 1 !important;
}

.badge .fa-clock,
.badge i.fa-clock {
  color: #d97706;
}
