@media screen and (max-width: 991px) {
  .nav__menu {
    position: fixed;
    background-color: var(--body-color, #fff);
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    padding: 5rem 2rem 3rem;
    transition: right 0.4s ease-in-out;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
  }

  html.dark-mode .nav__menu {
    background-color: var(--container-color, #242526);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav__link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    width: 100%;
  }

  .nav__link.button {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .nav__toggle,
  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--title-color);
    z-index: 1001;
  }

  .nav__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .pricing__container {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .use-cases__container {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .content-wrapper {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .col-main,
  .col-side {
    flex-basis: 100% !important;
    width: 100% !important;
  }

  .row {
    flex-direction: column;
  }
}

@media screen and (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .page-wrapper,
  .content-wrapper {
    padding-top: 70px !important;
    padding-bottom: 40px !important;
  }

  .nav {
    height: 60px;
    padding: 0 1rem;
  }

  .nav__logo img {
    height: 32px;
    width: auto;
  }

  .header {
    padding: 0;
  }

  .page-title {
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }

  .page-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .section__title {
    font-size: 1.5rem !important;
  }

  .section__subtitle {
    font-size: 0.9rem !important;
    padding: 0 1rem;
  }

  .home__container {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 2rem;
    padding-top: 1.5rem;
  }

  .home__data {
    text-align: center;
    order: 2;
  }

  .home__image {
    order: 1;
  }

  .home__title {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }

  .home__subtitle {
    font-size: 0.8rem;
  }

  .home__description {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .home__buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .home__buttons .button {
    width: 100%;
    justify-content: center;
  }

  .home__image-blob {
    width: 180px !important;
    height: 180px !important;
    font-size: 4rem !important;
  }

  .home__rating {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .process__container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 0 1rem;
  }

  .process__step {
    padding: 1.5rem;
    background: var(--container-color, #fff);
    border-radius: 12px;
    border: 1px solid var(--border-color);
  }

  .process__icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .process__title {
    font-size: 1.1rem;
  }

  .process__description {
    font-size: 0.9rem;
  }

  .pricing__container {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    padding: 0 0.5rem;
  }

  .pricing__card {
    padding: 1.5rem 1.25rem;
  }

  .pricing__icon {
    font-size: 2rem;
  }

  .pricing__title {
    font-size: 1.15rem;
  }

  .pricing__price {
    font-size: 1.5rem;
  }

  .use-cases__container {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    padding: 0 0.5rem;
  }

  .use-case__card {
    padding: 1.5rem 1.25rem;
  }

  .faq__container {
    padding: 0 0.5rem;
  }

  .faq__header {
    padding: 1rem 1.25rem;
  }

  .faq__item-title {
    font-size: 0.95rem;
  }

  .faq__content p {
    padding: 0 1.25rem 1.25rem 2.5rem;
    font-size: 0.9rem;
  }

  .footer__container {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 2rem;
    display: grid !important;
    padding: 2rem 1rem;
  }

  .footer__content {
    margin-bottom: 1rem;
  }

  .footer__links {
    justify-content: center;
  }

  .footer__copy {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .footer__logo img {
    margin: 0 auto 1rem;
  }

  .footer__description {
    margin: 0 auto 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .query-card {
    padding: 1.5rem 1rem !important;
  }

  .query-card h3 {
    font-size: 1.1rem;
  }

  .card-icon {
    font-size: 2rem !important;
  }

  .dashboard-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
    padding: 1.5rem 0 !important;
  }

  .dashboard-user h1 {
    font-size: 1.5rem !important;
  }

  .dashboard-user p {
    font-size: 0.95rem !important;
  }

  .dashboard-header .button {
    width: 100%;
    justify-content: center;
  }

  .panel {
    padding: 1.25rem !important;
    margin-bottom: 1rem;
  }

  .panel h3 {
    font-size: 1.1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .panel hr {
    margin-bottom: 1rem;
  }

  .form-row {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .coolinput {
    width: 100% !important;
    min-width: unset !important;
  }

  .w-25,
  .w-33,
  .w-50,
  .w-full {
    width: 100% !important;
  }

  .search-box-page {
    flex-direction: column !important;
    border-radius: 12px;
  }

  .search-box-page input {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem !important;
    font-size: 1rem !important;
  }

  .search-box-page button {
    border-radius: 0 0 12px 12px !important;
    padding: 1rem !important;
    width: 100%;
  }

  .search-box-page--name select {
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    padding: 1rem 1.25rem !important;
  }

  .plan-selection-container {
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 0 0.5rem;
  }

  .plan-card {
    max-width: 100% !important;
    width: 100% !important;
    padding: 1.25rem !important;
  }

  .plan-card h4 {
    font-size: 1.2rem;
  }

  .plan-price {
    font-size: 1.2rem;
  }

  .history-section {
    margin-top: 3rem !important;
  }

  .history-section h2 {
    font-size: 1.4rem !important;
    margin-bottom: 1.5rem;
  }

  .history-search-box {
    margin-bottom: 1.5rem;
  }

  .history-search-input {
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    font-size: 0.95rem;
  }

  .table-container {
    overflow-x: auto;
    margin: 0 -1rem;
    padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .history-table,
  .result-table {
    min-width: 600px;
    font-size: 0.85rem;
  }

  .history-table th,
  .history-table td,
  .result-table th,
  .result-table td {
    padding: 0.75rem 0.5rem !important;
    white-space: nowrap;
  }

  .status {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .plan-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
  }

  .page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .page-header h1 {
    font-size: 1.4rem !important;
    line-height: 1.3;
  }

  .page-header p {
    font-size: 0.9rem;
  }

  .page-header .btn,
  .page-header .button,
  .btn-export {
    width: 100% !important;
    justify-content: center !important;
  }

  .modal-content {
    margin: 5% auto !important;
    padding: 1.5rem !important;
    width: calc(100% - 2rem) !important;
    max-width: 100% !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-content h2,
  .modal-content h3 {
    font-size: 1.25rem;
  }

  .cnpj-search-modal {
    width: calc(100% - 1rem) !important;
  }

  .cnpj-search-results {
    max-height: 300px;
  }

  .cnpj-search-result {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  .cnpj-search-result__actions {
    width: 100%;
  }

  .cnpj-search-result__actions button {
    width: 100%;
  }

  .ai-explanation-modal__panel {
    padding: 2rem 1.5rem 1.5rem !important;
    max-height: 85vh;
  }

  .ai-explanation-modal__title {
    font-size: 1.25rem;
    padding-right: 2.5rem;
  }

  .ai-explanation-modal__content {
    font-size: 0.95rem;
  }

  .ai-explanation-modal__close {
    top: 1rem;
    right: 1rem;
  }

  .button,
  .btn {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }

  .button--lg {
    padding: 1rem 1.5rem;
  }

  #map {
    height: 250px !important;
    margin-top: 1rem !important;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }

  .summary-item {
    padding: 1rem;
  }

  .summary-item .label {
    font-size: 0.8rem;
  }

  .summary-item .value {
    font-size: 1.5rem;
  }

  .stores-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .store-card {
    padding: 1.25rem;
  }

  .result-grid {
    grid-template-columns: 1fr !important;
  }

  .panel-item,
  .party-card,
  .decision-content {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }

  .decision-timeline {
    padding-left: 25px;
  }

  .decision-date::before {
    left: -25px;
    width: 12px;
    height: 12px;
  }

  .theme-switcher {
    padding: 1rem;
  }

  .theme-switcher label {
    font-size: 0.9rem;
  }

  .switch {
    width: 52px;
    height: 28px;
  }

  .slider:before {
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
  }

  input:checked + .slider:before {
    transform: translateX(22px);
  }

  .status-card {
    padding: 1.5rem;
  }

  .status-card .icon {
    font-size: 2.5rem;
  }

  .status-card h4 {
    font-size: 1.25rem;
  }

  .signup__container {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    text-align: center;
  }

  .signup__data {
    text-align: center;
  }

  .signup__form {
    padding: 1.5rem;
  }

  .signup__group {
    margin-bottom: 1.25rem;
  }

  .signup__input {
    padding: 0.85rem 1rem;
  }

  .scrollup {
    right: 1rem;
    bottom: 4rem;
    padding: 0.5rem;
  }

  .show-scroll {
    bottom: 4rem !important;
  }

  .alert {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .actions-cell {
    gap: 0.5rem !important;
    flex-wrap: wrap;
  }

  .btn-action {
    padding: 8px;
    font-size: 1.1rem;
  }

  .result-list li {
    padding: 0.875rem;
    font-size: 0.9rem;
  }

  .plan-options-container {
    flex-direction: column !important;
    gap: 0.75rem;
  }

  .plan-option-label {
    max-width: 100% !important;
    min-width: unset !important;
  }

  .plan-option-card {
    padding: 1rem;
  }

  .plan-option-card .plan-icon {
    font-size: 1.5rem;
  }

  .plan-option-card h4 {
    font-size: 1rem;
  }

  .pagination-controls {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .pagination-controls .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 575px) {
  html {
    font-size: 14px;
  }

  .container {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .content-wrapper {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .page-wrapper,
  .content-wrapper {
    padding-top: 60px !important;
  }

  .nav {
    height: 56px;
  }

  .nav__logo img {
    height: 28px;
  }

  .nav__menu {
    width: 85%;
    padding: 4rem 1.5rem 2rem;
  }

  .nav__list {
    gap: 1.25rem;
  }

  .nav__link {
    font-size: 1rem;
  }

  .home__title {
    font-size: 1.5rem !important;
  }

  .home__description {
    font-size: 0.9rem;
  }

  .home__image-blob {
    width: 150px !important;
    height: 150px !important;
    font-size: 3.5rem !important;
  }

  .page-title {
    font-size: 1.5rem !important;
  }

  .page-subtitle {
    font-size: 0.875rem !important;
  }

  .section__title {
    font-size: 1.3rem !important;
  }

  .query-card {
    padding: 1.25rem 0.875rem !important;
  }

  .query-card h3 {
    font-size: 1rem;
  }

  .query-card p {
    font-size: 0.85rem;
  }

  .card-icon {
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem;
  }

  .dashboard-user h1 {
    font-size: 1.3rem !important;
  }

  .dashboard-user p {
    font-size: 0.9rem !important;
  }

  .panel {
    padding: 1rem !important;
  }

  .panel h3 {
    font-size: 1rem;
  }

  .title-icon {
    font-size: 1rem;
  }

  .coolinput .input {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  .coolinput .text {
    font-size: 0.7rem;
  }

  .button,
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .table-container {
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
  }

  .history-table th,
  .history-table td,
  .result-table th,
  .result-table td {
    padding: 0.5rem 0.4rem !important;
    font-size: 0.8rem;
  }

  .history-section {
    margin-top: 2.5rem !important;
  }

  .history-section h2 {
    font-size: 1.25rem !important;
  }

  .plan-card {
    padding: 1rem !important;
  }

  .plan-card i {
    font-size: 2rem;
  }

  .plan-card h4 {
    font-size: 1.1rem;
  }

  .plan-description {
    font-size: 0.85rem;
    min-height: 36px;
  }

  .plan-price {
    font-size: 1.1rem;
  }

  .pricing__card {
    padding: 1.25rem 1rem;
  }

  .pricing__list-item {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }

  .modal-content {
    padding: 1.25rem !important;
  }

  .modal-content h2,
  .modal-content h3 {
    font-size: 1.15rem;
  }

  #map {
    height: 200px !important;
  }

  .summary-grid {
    grid-template-columns: 1fr !important;
  }

  .summary-item .value {
    font-size: 1.3rem;
  }

  .status-card {
    padding: 1.25rem;
  }

  .status-card .icon {
    font-size: 2rem;
  }

  .status-card h4 {
    font-size: 1.1rem;
  }

  .footer__copy {
    padding: 1.25rem 0.75rem;
    font-size: 0.8rem;
  }

  .signup__form {
    padding: 1.25rem;
  }

  .signup__input {
    padding: 0.75rem;
  }

  .info-tooltip .tooltip-text {
    width: 180px;
    margin-left: -90px;
    font-size: 0.75rem;
    padding: 6px;
  }

  .page-header h1 {
    font-size: 1.25rem !important;
  }

  .result-section h4 {
    font-size: 1rem;
  }

  .loader {
    width: 40px;
    height: 40px;
    border-width: 4px;
  }
}

@media screen and (max-width: 374px) {
  html {
    font-size: 13px;
  }

  .container {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .content-wrapper {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .nav__menu {
    width: 90%;
    padding: 3.5rem 1rem 1.5rem;
  }

  .home__title {
    font-size: 1.35rem !important;
  }

  .home__image-blob {
    width: 130px !important;
    height: 130px !important;
    font-size: 3rem !important;
  }

  .page-title {
    font-size: 1.35rem !important;
  }

  .section__title {
    font-size: 1.2rem !important;
  }

  .panel {
    padding: 0.875rem !important;
  }

  .button,
  .btn {
    padding: 0.7rem 0.875rem;
    font-size: 0.85rem;
  }

  .history-table th,
  .history-table td,
  .result-table th,
  .result-table td {
    padding: 0.4rem 0.35rem !important;
    font-size: 0.75rem;
  }

  .query-card {
    padding: 1rem 0.75rem !important;
  }

  .card-icon {
    font-size: 1.5rem !important;
  }

  .modal-content {
    padding: 1rem !important;
    margin: 3% auto !important;
  }

  .footer__copy {
    font-size: 0.75rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn-action {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .query-card:hover,
  .pricing__card:hover,
  .use-case__card:hover,
  .plan-card:hover,
  .store-card:hover {
    transform: none;
  }

  .button,
  .btn,
  .nav__link,
  .query-card,
  .plan-card {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .page-wrapper,
  .content-wrapper {
    padding-top: 56px !important;
  }

  .nav {
    height: 50px;
  }

  .home__container {
    grid-template-columns: 1fr 1fr !important;
    padding-top: 0.5rem !important;
    gap: 1rem;
  }

  .home__data {
    text-align: left;
    order: 1;
  }

  .home__image {
    order: 2;
  }

  .home__title {
    font-size: 1.5rem !important;
  }

  .home__image-blob {
    width: 120px !important;
    height: 120px !important;
    font-size: 2.5rem !important;
  }

  .home__buttons {
    flex-direction: row;
    gap: 0.75rem;
  }

  .home__buttons .button {
    width: auto;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .section {
    padding: 2rem 0 1rem;
  }

  .modal-content {
    max-height: 80vh;
    margin: 2% auto !important;
  }
}

@supports (padding: max(0px)) {
  @media screen and (max-width: 767px) {
    .header {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }

    .content-wrapper,
    .container {
      padding-left: max(0.75rem, env(safe-area-inset-left));
      padding-right: max(0.75rem, env(safe-area-inset-right));
    }

    .footer__copy {
      padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .nav__menu {
      padding-top: max(5rem, calc(env(safe-area-inset-top) + 3rem));
    }
  }
}

@media print {
  .nav__toggle,
  .nav__close,
  .scrollup,
  .modal {
    display: none !important;
  }

  .nav__menu {
    position: static;
    width: 100%;
    height: auto;
    padding: 0;
    box-shadow: none;
  }

  .nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .nav__menu {
    transition: none;
  }

  .query-card,
  .pricing__card,
  .use-case__card,
  .plan-card {
    transition: none;
  }
}

@media screen and (max-width: 767px) {
  .dashboard-header[style*="padding"] {
    padding: 1.5rem 0 !important;
  }

  .dashboard-cards[style*="margin-bottom"] {
    margin-bottom: 0 !important;
  }

  .signup__group[style*="margin-bottom"] {
    margin-bottom: 1rem !important;
  }

  #pix-qrcode-img[style*="max-width"] {
    max-width: 200px !important;
    margin: 0.75rem auto !important;
  }

  .content-wrapper[style*="padding-top: 60px"] {
    padding-top: 80px !important;
  }

  .coolinput[style*="margin-bottom: 1.25rem"] {
    margin-bottom: 1rem !important;
  }

  .coolinput[style*="margin-bottom: 1.5rem"] {
    margin-bottom: 1rem !important;
  }

  .btn[style*="margin-top: 1.5rem"],
  .button[style*="margin-top: 1.5rem"] {
    margin-top: 1.25rem !important;
  }

  .theme-switcher[style*="margin-top: 1rem"] {
    margin-top: 0.75rem !important;
  }

  .panel[style*="border: 2px solid"] {
    border-width: 2px !important;
  }

  .history-section[style*="margin-top: 5rem"] {
    margin-top: 2.5rem !important;
  }

  #delete-account-step-1 ul,
  #delete-account-step-2 ul {
    padding-left: 1.25rem !important;
    font-size: 0.9rem;
  }

  #delete-account-step-1 ul li,
  #delete-account-step-2 ul li {
    margin-bottom: 0.5rem;
  }

  div[style*="display: flex"][style*="gap: 1rem"] {
    gap: 0.75rem !important;
  }

  textarea.input[style*="height: 100px"] {
    height: 80px !important;
  }

  textarea.input[style*="height: 150px"] {
    height: 100px !important;
  }

  .form-row[style*="margin-top: 20px"] {
    margin-top: 1rem !important;
  }

  #map[style*="height: 300px"] {
    height: 220px !important;
  }

  .lawsuit-explanation-block[style*="margin-top: 20px"] {
    margin-top: 1rem !important;
  }

  .lawsuit-explanation-block p {
    font-size: 0.9rem !important;
  }

  pre[style*="white-space: pre-wrap"] {
    font-size: 0.75rem !important;
    padding: 0.5rem !important;
    overflow-x: auto;
  }

  .party-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
  }

  .party-section:first-child h4 {
    margin-top: 0;
  }

  .decision-item {
    margin-bottom: 1.25rem !important;
  }

  .decision-content {
    padding: 0.875rem !important;
  }

  .decision-text {
    font-size: 0.9rem !important;
    line-height: 1.5;
  }

  .placeholder-box[style*="background-color"] {
    padding: 1rem !important;
  }

  .placeholder-box p {
    font-size: 0.9rem !important;
  }

  .stores-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .store-card {
    padding: 1rem !important;
  }

  .store-name {
    font-size: 1rem !important;
  }

  .store-price {
    font-size: 1.1rem !important;
  }

  .store-info {
    font-size: 0.8rem !important;
  }

  .result-list li {
    padding: 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }

  .result-list li strong {
    display: block;
    margin-bottom: 0.25rem;
  }

  .result-list pre {
    font-size: 0.7rem !important;
    background: var(--light-color, #f8f9fa);
    padding: 0.5rem !important;
    border-radius: 4px;
    overflow-x: auto;
  }

  #cnaeContainer .panel-item,
  #qsaContainer .panel-item,
  #governmentDebtsContainer .panel-item,
  #occupationContainer .panel-item,
  #relatedPeopleContainer .panel-item,
  #processesContainer .panel-item {
    padding: 0.875rem !important;
    margin-bottom: 0.75rem !important;
  }

  #cnaeContainer .panel-item p,
  #qsaContainer .panel-item p,
  #governmentDebtsContainer .panel-item p,
  #occupationContainer .panel-item p,
  #relatedPeopleContainer .panel-item p,
  #processesContainer .panel-item p {
    font-size: 0.875rem !important;
    margin: 0.35rem 0 !important;
  }

  .panel-item h4 {
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
    word-break: break-all;
  }

  .panel-item .button--link,
  .party-card .button--link {
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
  }

  .lawsuit-details {
    margin-top: 0.75rem !important;
  }

  .lawsuit-details h5 {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
  }

  .lawsuit-details p {
    font-size: 0.85rem !important;
    margin: 0.25rem 0 !important;
  }

  .btn-toggle-details {
    font-size: 0.85rem !important;
    margin-top: 0.75rem !important;
  }

  .info-tooltip {
    margin-left: 0.5rem !important;
  }

  .info-tooltip .tooltip-text {
    width: 160px !important;
    margin-left: -80px !important;
    font-size: 0.7rem !important;
    padding: 0.5rem !important;
  }

  #quodReasonsContainer {
    margin-top: 0.75rem !important;
  }

  #quodReasonsContainer h5 {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
  }

  #quodReasonsContainer ul {
    padding-left: 1.25rem !important;
    font-size: 0.85rem !important;
  }

  #quodReasonsContainer li {
    margin-bottom: 0.35rem !important;
  }
}

@media screen and (max-width: 575px) {
  .dashboard-header[style*="padding"] {
    padding: 1rem 0 !important;
  }

  #pix-qrcode-img[style*="max-width"] {
    max-width: 180px !important;
  }

  textarea.input[style*="height: 100px"] {
    height: 70px !important;
  }

  textarea.input[style*="height: 150px"] {
    height: 90px !important;
  }

  #map[style*="height: 300px"] {
    height: 180px !important;
  }

  #map-container[style*="height: 300px"] {
    height: 180px !important;
    margin-top: 0.75rem !important;
  }

  .history-section[style*="margin-top: 5rem"] {
    margin-top: 2rem !important;
  }

  pre[style*="white-space: pre-wrap"] {
    font-size: 0.65rem !important;
  }

  .result-list pre {
    font-size: 0.6rem !important;
  }
}

@media screen and (max-width: 767px) {
  .content-wrapper[style*="padding-top: 150px"] {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }

  .loader[style*="width: 50px"] {
    width: 40px !important;
    height: 40px !important;
    margin: 25px auto !important;
  }

  .btn[style*="margin-top: 20px"] {
    margin-top: 15px !important;
    width: 100%;
    max-width: 280px;
  }
}

@media screen and (max-width: 767px) {
  #results-container[style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .query-card[style*="display: flex"] {
    flex-direction: column !important;
    padding: 0.75rem !important;
  }

  .panel[style*="padding"] {
    padding: 0.75rem !important;
  }

  .info-box[style*="margin-top"] {
    margin-top: 0.75rem !important;
  }

  .alert[style*="margin"] {
    margin: 0.5rem 0 !important;
  }

  .plan-badge[style*="margin"] {
    margin: 0 !important;
  }
}

@media screen and (max-width: 374px) {
  .content-wrapper[style*="padding-top: 150px"] {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  .loader[style*="width: 50px"] {
    width: 30px !important;
    height: 30px !important;
  }

  #map[style*="height: 300px"],
  #map-container[style*="height: 300px"] {
    height: 150px !important;
  }

  .history-section[style*="margin-top"] {
    margin-top: 1rem !important;
  }
}

@media screen and (max-width: 991px) and (orientation: landscape) {
  .content-wrapper[style*="padding-top: 150px"] {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  #map[style*="height: 300px"],
  #map-container[style*="height: 300px"] {
    height: 200px !important;
  }
}
