@charset "UTF-8";
:root {
  --ui-primary: #232378;
  --ui-primary-700: #2f2fa0;
  --ui-primary-900: #184376;
  --ui-text: #1f1f1f;
  --ui-muted: #333;
  --ui-border: #dcdcdc;
  --ui-border-2: #e6e6e6;
  --ui-border-3: #ececec;
  --ui-bg: #fff;
  --ui-bg-alt: #fafafa;
  --ui-focus: rgba(35, 35, 120, 0.15);
  --ui-hover: rgba(35, 35, 120, 0.08);
  --ui-radius-sm: 8px;
  --ui-radius: 12px;
  --ui-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

html,
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

body {
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ui-row-filtro {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 0;
  margin-right: 0;
}

.ui-row-filtro > .ui-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 220px;
  max-width: 100%;
  box-sizing: border-box;
}

.ui-row-filtro .ui-col-lg {
  flex: 2 1 420px;
  min-width: 280px;
}

.ui-row-filtro .ui-col-md {
  flex: 0 1 250px;
  max-width: 250px;
}

.ui-row-filtro .ui-col-sm {
  flex: 0 1 120px;
  max-width: 120px;
}

.ui-row-filtro .ui-col-btn {
  flex: 0 1 160px;
  max-width: 160px;
  align-self: flex-end;
}

/*  Botoes padrao */
.btn-default {
  background-color: var(--ui-primary) !important;
  color: #fff !important;
  border-radius: var(--ui-radius);
  border: none;
  outline: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 14px;
}

.btn-default:hover,
.btn-default:focus {
  background-color: var(--ui-primary-700) !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px var(--ui-focus);
}

.btn-default:not([disabled]):not(.disabled).active,
.btn-default:not([disabled]):not(.disabled):active,
.show > .btn-default.dropdown-toggle {
  background-color: var(--ui-primary-900) !important;
  color: #fff !important;
}

/* Botoes-light do bootstrap-select */
.btn-light:not([disabled]):not(.disabled).active,
.btn-light:not([disabled]):not(.disabled):active,
.show > .btn-light.dropdown-toggle {
  background-color: #fff !important;
}

/* Dropdown */
.bootstrap-select,
.bootstrap-select > .dropdown-toggle {
  width: 100% !important;
  max-width: 100%;
}

.bootstrap-select .dropdown-toggle {
  position: relative;
  height: 40px;
  border-radius: var(--ui-radius);
  border: 1px solid var(--ui-border);
  background-color: var(--ui-bg) !important;
  padding: 10px 14px;
  padding-right: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ui-muted);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.bootstrap-select .dropdown-toggle:hover {
  border-color: var(--ui-primary);
  background-color: #f7f8ff !important;
}

.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select.show .dropdown-toggle {
  border-color: var(--ui-primary);
  background-color: var(--ui-bg) !important;
  outline: none !important;
}

.bootstrap-select .dropdown-toggle .filter-option {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ui-text);
  font-weight: 500;
}

.bootstrap-select .dropdown-toggle::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 0.4em solid var(--ui-primary);
  border-right: 0.4em solid transparent;
  border-left: 0.4em solid transparent;
  border-bottom: 0;
  pointer-events: none;
}

.bootstrap-select.show .dropdown-toggle::after {
  transform: translateY(-50%) rotate(180deg);
}

.bootstrap-select .dropdown-menu {
  margin-top: 6px;
  padding: 6px 0;
  border-radius: var(--ui-radius);
  border: 1px solid var(--ui-border-2);
  min-width: max-content !important;
  width: auto !important;
  overflow-x: hidden;
  box-shadow: var(--ui-shadow);
}

.bootstrap-select .dropdown-menu .inner {
  max-height: 160px;
  overflow-y: auto;
}

.bootstrap-select > .dropdown-menu {
  width: 100% !important;
}

.bootstrap-select .dropdown-item {
  padding: 10px 14px;
  font-size: 14px;
  border-radius: var(--ui-radius-sm);
  margin: 2px 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bootstrap-select .dropdown-item:hover {
  background-color: var(--ui-hover);
  color: var(--ui-primary);
}

.bootstrap-select .dropdown-item.selected {
  background-color: transparent !important;
  color: var(--ui-primary) !important;
  font-weight: 500;
}

.bootstrap-select .dropdown-item.selected:hover {
  background-color: var(--ui-hover) !important;
  color: var(--ui-primary-700) !important;
}

.bootstrap-select .dropdown-item .check-mark {
  display: none;
  color: var(--ui-primary);
  font-size: 14px;
}

.bootstrap-select .dropdown-item.selected .check-mark {
  display: inline-flex !important;
  align-items: center;
  color: var(--ui-primary);
  font-size: 14px;
  margin-right: 20px;
}

.bootstrap-select .dropdown-item span {
  flex: 1;
}

.bootstrap-select .bs-searchbox input {
  border-radius: var(--ui-radius-sm);
  border: 1px solid var(--ui-border);
  padding: 8px 12px;
  font-size: 14px;
}

.bootstrap-select .bs-searchbox input:focus {
  border-color: var(--ui-primary);
  outline: none;
}

.bootstrap-select .bs-actionsbox {
  padding: 6px 10px;
  border-top: 1px solid var(--ui-border-2);
  display: flex !important;
  gap: 6px !important;
}

.btn-group,
.btn-group-vertical {
  display: flex;
  gap: 8px;
}

.bootstrap-select .bs-actionsbox .btn {
  border-radius: var(--ui-radius) !important;
  font-size: 13px !important;
  padding: 6px 14px !important;
  font-weight: 400 !important;
  background-color: var(--ui-bg-alt) !important;
  color: var(--ui-primary) !important;
  border: 1px solid var(--ui-border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.bootstrap-select .bs-actionsbox .btn:hover {
  border-color: var(--ui-primary) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.bootstrap-select .bs-applybox {
  padding: 6px 10px;
  border-top: 1px solid var(--ui-border-2);
  display: flex;
  justify-content: flex-end;
}

.bootstrap-select .bs-applybox .btn-apply {
  border-radius: var(--ui-radius);
  font-size: 14px;
  padding: 8px 16px;
  font-weight: 600;
  background-color: var(--ui-primary);
  color: #fff;
  border: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.bootstrap-select .bs-applybox .btn-apply:hover {
  background-color: var(--ui-primary-700);
  box-shadow: 0 0 0 3px var(--ui-focus);
}

.bootstrap-select .bs-applybox .btn-apply:active {
  background-color: var(--ui-primary-900);
}

.bootstrap-select .dropdown-menu .inner::-webkit-scrollbar {
  width: 6px;
}

.bootstrap-select .dropdown-menu .inner::-webkit-scrollbar-track {
  background: var(--ui-border-2);
  border-radius: 10px;
}

.bootstrap-select .dropdown-menu .inner::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 10px;
}

.bootstrap-select .dropdown-menu .inner::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.content-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-control,
input[type=text],
input[type=number],
input[type=email],
input[type=password],
input[type=search],
input[type=tel],
input[type=url],
input[type=date],
input[type=time],
input[type=datetime-local],
textarea {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  border-radius: var(--ui-radius) !important;
  border: 1px solid var(--ui-border) !important;
  background-color: var(--ui-bg) !important;
  padding: 10px 0 10px 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--ui-muted) !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  height: 40px !important;
  line-height: 20px;
  box-sizing: border-box !important;
}

textarea {
  min-height: 80px;
  line-height: 1.4;
  resize: vertical;
}

.form-control:hover,
input[type=text]:hover,
input[type=number]:hover,
input[type=email]:hover,
input[type=password]:hover,
input[type=search]:hover,
input[type=tel]:hover,
input[type=url]:hover,
input[type=date]:hover,
input[type=time]:hover,
input[type=datetime-local]:hover,
textarea:hover {
  border-color: var(--ui-primary);
  background-color: transparent;
}

.form-control:focus,
input[type=text]:focus,
input[type=number]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=url]:focus,
input[type=date]:focus,
input[type=time]:focus,
input[type=datetime-local]:focus,
textarea:focus {
  border-color: var(--ui-primary);
  background-color: transparent;
  outline: none !important;
  color: var(--ui-text);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #666;
  font-weight: 400;
}

.form-control.is-invalid,
input.is-invalid,
textarea.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.form-control.is-valid,
input.is-valid,
textarea.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.form-control:disabled,
.form-control[readonly],
input:disabled,
input[readonly],
textarea:disabled,
textarea[readonly] {
  background-color: #f5f5f5;
  color: #888;
  cursor: not-allowed;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .form-control {
  padding-right: 0;
}

.input-with-icon .input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ui-primary);
  cursor: pointer;
  pointer-events: auto;
  font-size: 16px;
}

.row-filtro .form-control {
  width: 100%;
}

.datepicker-dropdown,
.bootstrap-datetimepicker-widget,
.bootstrap-datepicker {
  border: 1px solid var(--ui-border-2);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  background-color: var(--ui-bg);
  padding: 8px;
}

.datepicker-dropdown .datepicker-days .table-condensed thead tr th,
.bootstrap-datetimepicker-widget .datepicker .datepicker-days .table-condensed thead tr th {
  background: var(--ui-primary);
  color: #fff;
  border-radius: var(--ui-radius-sm);
  padding: 6px;
}

.datepicker-dropdown .day,
.bootstrap-datetimepicker-widget .datepicker .day {
  border-radius: var(--ui-radius-sm);
  padding: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.datepicker-dropdown .day:hover,
.bootstrap-datetimepicker-widget .datepicker .day:hover {
  background-color: var(--ui-hover);
  color: var(--ui-primary);
}

.datepicker-dropdown .day.active,
.datepicker-dropdown .day.selected,
.bootstrap-datetimepicker-widget .datepicker .day.active,
.bootstrap-datetimepicker-widget .datepicker .day.selected {
  background-color: var(--ui-primary);
  color: #fff;
}

.ui-datepicker {
  width: auto;
  border: 1px solid var(--ui-border-2);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  background-color: var(--ui-bg);
  padding: 8px;
}

.ui-datepicker .ui-datepicker-header {
  background: var(--ui-primary);
  color: #fff;
  border: none;
  border-radius: var(--ui-radius-sm);
}

.ui-datepicker .ui-state-default {
  border: none;
  background: transparent;
  color: var(--ui-text);
  border-radius: var(--ui-radius-sm);
  padding: 0.35em 0.5em;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ui-datepicker .ui-state-hover {
  background: var(--ui-hover);
  color: var(--ui-primary);
}

.ui-datepicker .ui-state-active {
  background: var(--ui-primary);
  color: #fff;
}

.xdsoft_datetimepicker,
.xdsoft_datepicker,
.xdsoft_timepicker {
  border: 1px solid var(--ui-border-2) !important;
  border-radius: var(--ui-radius) !important;
  box-shadow: var(--ui-shadow) !important;
  background: var(--ui-bg) !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td,
.xdsoft_datetimepicker .xdsoft_time_box .xdsoft_time {
  border-radius: var(--ui-radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.xdsoft_datetimepicker .xdsoft_calendar td:hover,
.xdsoft_datetimepicker .xdsoft_time_box .xdsoft_time:hover {
  background: var(--ui-hover) !important;
  color: var(--ui-primary) !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_time_box .xdsoft_time.xdsoft_current {
  background: var(--ui-primary) !important;
  color: #fff !important;
}

.datetimepicker.form-control {
  cursor: text;
  background-color: var(--ui-bg);
  border: 1px solid var(--ui-border);
}

.tooltip {
  font-size: 13px;
  line-height: 1.5;
  z-index: 99999;
}

.tooltip-inner {
  max-width: 320px;
  padding: 12px 14px;
  background-color: #1f2937;
  color: #f9fafb;
  text-align: left;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  font-size: 16px;
}

.bs-tooltip-top .arrow::before,
.bs-tooltip-auto[x-placement^=top] .arrow::before {
  border-top-color: #1f2937;
}

.tooltip-inner strong {
  color: #facc15;
}

.divider {
  border: 0;
  height: 1px;
  background: var(--ui-border);
}

.table-container,
.tabela-container {
  max-height: calc(100vh - 300px);
  height: auto;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: var(--ui-radius);
  border: 1px solid var(--ui-border);
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #999 var(--ui-border-2);
  margin-top: 12px;
  background: #fff;
}

.table-fixed,
.tabela-fixa {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ui-bg);
  border: none;
  table-layout: auto;
}

.table-fixed th, .table-fixed td,
.tabela-fixa th, .tabela-fixa td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--ui-border-3);
  text-align: center;
  font-size: 15px !important;
  line-height: 1.2;
}

.table-fixed thead th,
.tabela-fixa thead th {
  position: sticky;
  top: 0;
  background: var(--ui-primary);
  color: #fff;
  z-index: 2;
}

.table-fixed tbody tr:nth-child(odd),
.tabela-fixa tbody tr:nth-child(odd) {
  background: var(--ui-bg-alt);
}

.table-fixed tbody tr:last-child td,
.tabela-fixa tbody tr:last-child td {
  border-bottom: none;
}

.table-fixed thead tr:first-child th:first-child,
.tabela-fixa thead tr:first-child th:first-child {
  border-top-left-radius: var(--ui-radius);
}

.table-fixed thead tr:first-child th:last-child,
.tabela-fixa thead tr:first-child th:last-child {
  border-top-right-radius: var(--ui-radius);
}

.table-fixed tbody tr:last-child td:first-child,
.tabela-fixa tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--ui-radius);
}

.table-fixed tbody tr:last-child td:last-child,
.tabela-fixa tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--ui-radius);
}

.table-container::-webkit-scrollbar,
.tabela-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.table-container::-webkit-scrollbar-track,
.tabela-container::-webkit-scrollbar-track {
  background: var(--ui-border-2);
  border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb,
.tabela-container::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb:hover,
.tabela-container::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.table.table-striped.table-bordered {
  border: none;
  background: #fff;
}

.table.table-striped.table-bordered thead th {
  position: sticky;
  top: 0;
  background: var(--ui-primary) !important;
  color: #fff !important;
  z-index: 2;
}

.table.table-striped.table-bordered tbody tr:nth-child(odd) {
  background: var(--ui-bg-alt);
}

.table.table-striped.table-bordered th,
.table.table-striped.table-bordered td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--ui-border-3);
  text-align: center;
  font-size: 15px;
  line-height: 1.4;
  word-break: break-word;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: none;
  outline: 0;
}

.modal-horizontal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  z-index: 9999;
  display: none;
  outline: 0;
  align-items: flex-start;
  padding-top: 18vh;
}

/* Estilo para o modal */
.modal-dialog {
  max-height: calc(100vh - 30px);
  margin: 15px auto;
  display: flex;
  z-index: 9999;
}

.modal-dialog-horizontal {
  max-height: calc(100vh - 30px);
  margin: 15px auto;
  display: flex;
  z-index: 9999;
  width: 100%;
  max-width: calc(100vw - 300px);
  overflow-y: hidden;
}

.modal-content {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  border-radius: 12px !important;
  background-color: #f8f9fa !important;
}

.modal-content-horizontal {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  border-radius: 12px !important;
  background-color: #f8f9fa !important;
  width: 100%;
  max-width: calc(100vw - 300px);
}

.modal-header {
  background-color: #232378 !important;
  color: #fff !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.modal-header .close {
  color: #fff !important;
  opacity: 1;
  font-size: 1.3rem;
  text-shadow: none;
}

.modal-header .close:hover {
  color: #ddd !important;
  opacity: 1;
  text-decoration: none;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header,
.modal-footer {
  flex-shrink: 0;
}

.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
}

.modal {
  overflow: hidden;
}

.modal-body {
  -webkit-overflow-scrolling: touch;
}

.sweet-overlay {
  background: rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: saturate(120%) blur(1.5px);
}

.sweet-alert {
  border-radius: var(--ui-radius) !important;
  background: var(--ui-bg) !important;
  box-shadow: var(--ui-shadow) !important;
  border: 1px solid var(--ui-border-2) !important;
  padding: 20px 22px !important;
  width: 480px !important;
  max-width: calc(100% - 40px) !important;
}

.sweet-alert h2 {
  color: var(--ui-text) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  line-height: 1.2 !important;
  margin: 0 0 8px 0 !important;
}

.sweet-alert p {
  color: var(--ui-muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.sweet-alert .sa-icon {
  margin: 10px auto 12px auto !important;
  border-width: 2px !important;
  box-shadow: none !important;
}

.sweet-alert .sa-icon.sa-success,
.sweet-alert .sa-icon.sa-success::before,
.sweet-alert .sa-icon.sa-success::after,
.sweet-alert .sa-icon.sa-success .sa-fix {
  border-color: rgba(40, 167, 69, 0.5) !important;
}

.sweet-alert .sa-icon.sa-warning {
  border-color: rgba(255, 206, 86, 0.8) !important;
}

.sweet-alert .sa-icon.sa-error {
  border-color: rgba(255, 99, 132, 0.75) !important;
}

.sweet-alert .sa-icon.sa-info {
  border-color: rgba(54, 162, 235, 0.75) !important;
}

.sweet-alert .sa-button-container {
  margin-top: 16px !important;
}

.sweet-alert button.confirm {
  background-color: var(--ui-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--ui-radius) !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  min-width: 110px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.sweet-alert button.confirm:hover,
.sweet-alert button.confirm:focus {
  background-color: var(--ui-primary-700) !important;
  box-shadow: 0 0 0 3px var(--ui-focus) !important;
}

.sweet-alert button.confirm:active {
  background-color: var(--ui-primary-900) !important;
}

.sweet-alert button.cancel {
  background-color: #f1f3f5 !important;
  color: var(--ui-text) !important;
  border: none !important;
  border-radius: var(--ui-radius) !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  min-width: 110px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.sweet-alert button.cancel:hover,
.sweet-alert button.cancel:focus {
  background-color: #e9ecef !important;
  box-shadow: 0 0 0 3px var(--ui-focus) !important;
}

.sweet-alert button.cancel:active {
  background-color: #dee2e6 !important;
}

.sweet-alert .close {
  color: var(--ui-muted) !important;
  opacity: 1 !important;
  border-radius: var(--ui-radius-sm) !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.sweet-alert .close:hover {
  background: var(--ui-hover) !important;
  color: var(--ui-text) !important;
}

/* swal alert v2 */
body .swal2-container {
  background: rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: saturate(120%) blur(1.5px);
}

body .swal2-popup {
  border-radius: var(--ui-radius) !important;
  background: var(--ui-bg) !important;
  box-shadow: var(--ui-shadow) !important;
  border: 1px solid var(--ui-border-2) !important;
  padding: 20px 22px !important;
  width: 500px !important;
  max-width: calc(100% - 40px) !important;
  color: var(--ui-text) !important;
}

body .swal2-title {
  color: var(--ui-text) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  line-height: 1.2 !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
}

body .swal2-html-container {
  color: var(--ui-muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

body .swal2-icon {
  width: 60px !important;
  height: 60px !important;
  font-size: 15px !important;
  margin: 10px auto 12px auto !important;
  border-width: 2px !important;
  box-shadow: none !important;
}

body .swal-sair-sistema .swal2-icon-content {
  font-size: 2.2rem !important;
}

body .swal2-icon.swal2-success {
  border-color: rgba(40, 167, 69, 0.5) !important;
  color: rgba(40, 167, 69, 0.5) !important;
}
body .swal2-icon.swal2-success [class^=swal2-success-line] {
  height: 4px !important;
  background-color: rgba(40, 167, 69, 0.85) !important;
}
body .swal2-icon.swal2-success .swal2-success-line-tip {
  top: 32px !important;
  left: 11px !important;
  width: 18px !important;
  -webkit-transform: rotate(45deg) !important;
  transform: rotate(45deg) !important;
}
body .swal2-icon.swal2-success .swal2-success-line-long {
  top: 27px !important;
  right: 6px !important;
  width: 33px !important;
  -webkit-transform: rotate(-45deg) !important;
  transform: rotate(-45deg) !important;
}
body .swal2-icon.swal2-success .swal2-success-ring {
  display: none !important;
}
body .swal2-icon.swal2-success [class^=swal2-success-circular-line],
body .swal2-icon.swal2-success .swal2-success-fix {
  display: none !important;
}

body .swal2-icon.swal2-warning {
  border-color: rgba(255, 206, 86, 0.8) !important;
  color: rgba(255, 206, 86, 0.8) !important;
  font-size: 45px !important;
  line-height: 60px !important;
}

body .swal2-icon.swal2-error {
  border-color: rgba(255, 99, 132, 0.75) !important;
  color: rgba(255, 99, 132, 0.75) !important;
  position: relative !important;
}
body .swal2-icon.swal2-error .swal2-x-mark {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: block !important;
}
body .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 60% !important;
  height: 5px !important;
  background-color: rgba(255, 99, 132, 0.75) !important;
  display: block !important;
  border-radius: 2px !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .swal2-icon.swal2-error .swal2-x-mark-line-left {
  -webkit-transform: translate(-50%, -50%) rotate(45deg) !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}
body .swal2-icon.swal2-error .swal2-x-mark-line-right {
  -webkit-transform: translate(-50%, -50%) rotate(-45deg) !important;
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

body .swal2-icon.swal2-info {
  border-color: rgba(54, 162, 235, 0.75) !important;
  color: rgba(54, 162, 235, 0.75) !important;
  font-size: 45px !important;
  line-height: 60px !important;
}

body .swal2-icon.swal2-question {
  border-color: rgba(135, 173, 189, 0.8) !important;
  color: rgba(135, 173, 189, 0.8) !important;
  font-size: 45px !important;
  line-height: 60px !important;
}

body .swal2-actions {
  margin-top: 16px !important;
  gap: 12px;
}

body .swal2-confirm {
  background-color: var(--ui-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--ui-radius) !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  min-width: 110px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

body .swal2-confirm:hover,
body .swal2-confirm:focus {
  background-color: var(--ui-primary-700) !important;
  box-shadow: 0 0 0 3px var(--ui-focus) !important;
}

body .swal2-confirm:active {
  background-color: var(--ui-primary-900) !important;
}

body .swal2-cancel {
  background-color: #f1f3f5 !important;
  color: var(--ui-text) !important;
  border: none !important;
  border-radius: var(--ui-radius) !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  min-width: 110px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

body .swal2-cancel:hover,
body .swal2-cancel:focus {
  background-color: #e9ecef !important;
  box-shadow: 0 0 0 3px var(--ui-focus) !important;
}

body .swal2-cancel:active {
  background-color: #dee2e6 !important;
}

body .swal2-close {
  color: var(--ui-muted) !important;
  opacity: 1 !important;
  border-radius: var(--ui-radius-sm) !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

body .swal2-close:hover {
  background: var(--ui-hover) !important;
  color: var(--ui-text) !important;
}

/* toggle */
.switch {
  display: inline-flex;
  gap: 8px;
}

.switch .control-label {
  color: var(--ui-text);
  font-weight: 500;
  line-height: 1.2;
}

.switch input.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 24px;
  border: 1px solid var(--ui-border);
  background: var(--ui-border-2);
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.switch input.switch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: left 0.2s ease;
}

.switch input.switch:checked {
  background: var(--ui-primary);
  border-color: var(--ui-primary);
}

.switch input.switch:checked::after {
  left: 21px;
}

.switch input.switch:focus {
  box-shadow: 0 0 0 3px var(--ui-focus);
}

.switch input.switch:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.switch input.switch:disabled + .control-label {
  color: #888;
}

.switch.switch-sm input.switch {
  width: 36px;
  height: 20px;
  border-radius: 20px;
}

.switch.switch-sm input.switch::after {
  width: 14px;
  height: 14px;
  left: 3px;
}

.switch.switch-sm input.switch:checked::after {
  left: 19px;
}

/* Tabs */
.abas-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 6px 0;
  border-bottom: 1px solid var(--ui-border-2);
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  overflow: hidden;
}

.aba-btn {
  appearance: none;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ui-muted);
  font-weight: 600;
  font-size: 18px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.aba-btn:hover {
  color: var(--ui-primary);
}

.aba-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--ui-focus);
  border-radius: 8px;
}

.aba-btn.active {
  color: var(--ui-primary);
}

.aba-btn.active::after,
.aba-btn:hover::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -7px;
  height: 3px;
  background-color: var(--ui-primary);
  border-radius: 3px;
}

.abas-nav .aba-btn {
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

#modal-autorizacao-pecuarista.modal-dialog {
  width: 100%;
  max-width: 1200px;
  margin: 15px auto;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

#modal-autorizacao-pecuarista.modal-dialog .modal-content {
  width: 100%;
  max-height: calc(100vh - 30px);
  overflow: hidden;
}

#modal-autorizacao-pecuarista.modal-dialog .modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#modalAlertaPPT .modal-header {
  display: none !important;
}

#modalAlertaPPT .modal-content {
  background: #fff !important;
  border-radius: var(--ui-radius) !important;
  padding: 20px !important;
  overflow: hidden;
}

#modalAlertaPPT .modal-body {
  padding: 0 !important;
}

#modalSaibaMaisPPT .modal-header {
  display: none !important;
}

#modalSaibaMaisPPT .modal-content {
  background: #fff !important;
  border-radius: var(--ui-radius) !important;
  padding: 0 !important;
  overflow: hidden;
}

#modalSaibaMaisPPT .modal-body {
  padding: 0 !important;
}

.ppt-dialog {
  max-width: 760px;
  width: min(760px, 100vw - 32px);
  margin: 15px auto;
}

.ppt-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px;
  background: #fff;
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.ppt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ui-muted);
  padding: 6px;
  border-radius: var(--ui-radius-sm);
  cursor: pointer;
  line-height: 0;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ppt-close:hover {
  color: var(--ui-primary-700);
  background: var(--ui-hover);
}

.ppt-close:focus-visible {
  box-shadow: 0 0 0 3px var(--ui-focus);
}

.ppt-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.ppt-title {
  margin: 4px 0 0;
  color: var(--ui-primary);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
}

.ppt-desc {
  margin: 6px 0;
  color: var(--ui-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.ppt-desc strong {
  color: var(--ui-text);
  font-weight: 700;
}

.ppt-link-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ui-primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--ui-radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ppt-link-btn:hover {
  background: var(--ui-hover);
  color: var(--ui-primary-700);
}

.ppt-link-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--ui-focus);
}

.ppt-loader {
  display: none;
  width: 20px;
  height: 20px;
}

.ppt-terms {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  color: var(--ui-muted);
  font-size: 13px;
  margin: 0;
}

.ppt-terms a {
  color: var(--ui-primary);
  text-decoration: underline;
}

.ppt-terms a:hover {
  color: var(--ui-primary-700);
}

.ppt-check {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--ui-border);
  border-radius: 4px;
  background: var(--ui-bg);
  position: relative;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ppt-check:hover {
  border-color: var(--ui-primary);
}

.ppt-check:focus-visible {
  box-shadow: 0 0 0 3px var(--ui-focus);
}

.ppt-check:checked {
  background: var(--ui-primary);
  border-color: var(--ui-primary);
}

.ppt-check:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: 2px solid #fff;
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg);
}

.ppt-hero {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.ppt-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ppt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.ppt-hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 85%);
}

.ppt-close-hero {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  padding: 6px;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ppt-close-hero:hover {
  background: rgba(0, 0, 0, 0.4);
}

.ppt-close-hero:focus-visible {
  box-shadow: 0 0 0 3px var(--ui-focus);
}

.ppt-content {
  padding: 18px 24px 0 24px;
  text-align: center;
}

.ppt-actions {
  padding: 16px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================= */
/* IZI TOAST - DESIGN SYSTEM */
/* ============================= */
.iziToast {
  border-radius: var(--ui-radius) !important;
  box-shadow: var(--ui-shadow) !important;
  font-family: inherit !important;
}

.iziToast-title {
  font-weight: 600 !important;
}

.iziToast-message {
  font-size: 14px !important;
}

.iziToast.iziToast-success {
  border-left: 4px solid var(--ui-success) !important;
}

.iziToast.iziToast-warning {
  border-left: 4px solid var(--ui-warning) !important;
}

.iziToast.iziToast-error {
  border-left: 4px solid var(--ui-danger) !important;
}

/* =========================
    Responsividade
   ========================= */
@media (max-width: 1200px) {
  .table-container,
  .tabela-container {
    height: auto;
  }
  #modal-autorizacao-pecuarista.modal-dialog {
    max-width: calc(100vw - 24px);
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 1024px) {
  .ui-row-filtro > .ui-col {
    flex: 1 1 200px;
  }
  .ui-row-filtro .ui-col-lg {
    flex: 1 1 360px;
    min-width: 240px;
  }
  .ui-row-filtro .ui-col-md {
    flex: 1 1 220px;
    max-width: 100%;
  }
  .ui-row-filtro .ui-col-sm {
    flex: 0 1 140px;
    max-width: 100%;
  }
  .ui-row-filtro .ui-col-btn {
    flex: 0 1 180px;
    max-width: 100%;
  }
  .table-fixed th,
  .table-fixed td,
  .tabela-fixa th,
  .tabela-fixa td {
    font-size: 14px !important;
    padding: 9px 7px;
  }
  .tooltip-inner {
    font-size: 14px;
    max-width: 280px;
  }
}
@media (max-width: 768px) {
  .ui-row-filtro {
    gap: 10px;
  }
  .ui-row-filtro > .ui-col,
  .ui-row-filtro .ui-col-lg,
  .ui-row-filtro .ui-col-md,
  .ui-row-filtro .ui-col-sm,
  .ui-row-filtro .ui-col-btn {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }
  .btn-default {
    width: 100%;
  }
  .bootstrap-select .dropdown-toggle {
    height: 44px;
    font-size: 13px !important;
    padding: 10px 14px;
  }
  .bootstrap-select .dropdown-menu {
    min-width: 100% !important;
    width: 100% !important;
  }
  .bootstrap-select .dropdown-item {
    padding: 12px 14px;
    font-size: 13px !important;
  }
  .bootstrap-select .bs-actionsbox {
    flex-wrap: wrap !important;
  }
  .bootstrap-select .bs-actionsbox .btn {
    flex: 1 1 140px;
    width: 100%;
  }
  .bootstrap-select .bs-applybox .btn-apply {
    width: 100%;
  }
  .form-control,
  input[type=text],
  input[type=number],
  input[type=email],
  input[type=password],
  input[type=search],
  input[type=tel],
  input[type=url],
  input[type=date],
  input[type=time],
  input[type=datetime-local],
  textarea {
    height: 44px !important;
    font-size: 13px !important;
  }
  textarea {
    min-height: 96px;
  }
  .input-with-icon .input-icon {
    right: 10px;
    font-size: 16px;
  }
  .abas-nav {
    overflow-x: auto;
    gap: 6px;
  }
  .aba-btn {
    font-size: 16px;
    padding: 10px 10px;
    white-space: nowrap;
  }
  .table-container,
  .tabela-container {
    max-height: calc(100vh - 260px);
  }
  .table-fixed th,
  .table-fixed td,
  .tabela-fixa th,
  .tabela-fixa td {
    font-size: 12px !important;
    padding: 8px 6px;
    white-space: nowrap;
  }
  .modal-dialog-horizontal,
  .modal-content-horizontal {
    max-width: calc(100vw - 24px);
  }
  .modal-horizontal {
    padding-top: 10vh;
  }
  .tooltip-inner {
    font-size: 13px;
    max-width: 260px;
  }
  #modal-autorizacao-pecuarista.modal-dialog {
    margin: 10px auto;
    max-width: calc(100vw - 16px);
    padding-left: 8px;
    padding-right: 8px;
  }
  #modal-autorizacao-pecuarista.modal-dialog .modal-content {
    max-height: calc(100vh - 20px);
  }
}
@media (max-width: 576px) {
  .ui-row-filtro {
    gap: 12px;
  }
  .sweet-alert {
    width: auto !important;
    padding: 18px !important;
  }
  .sweet-alert h2 {
    font-size: 1.1rem !important;
  }
  .sweet-alert button.confirm,
  .sweet-alert button.cancel {
    width: 100%;
  }
  body .swal2-popup {
    width: auto !important;
    padding: 18px !important;
  }
  body .swal2-title {
    font-size: 1.1rem !important;
  }
  body .swal2-actions {
    flex-direction: column;
    align-items: stretch;
  }
  body .swal2-confirm,
  body .swal2-cancel {
    width: 100%;
  }
  .tooltip-inner {
    max-width: 240px;
  }
  .switch .control-label {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .table-container,
  .tabela-container {
    border-radius: 10px;
  }
  .table-fixed,
  .tabela-fixa {
    min-width: 520px;
  }
  .bootstrap-select .dropdown-toggle {
    height: 44px;
    font-size: 12px !important;
  }
  .bootstrap-select .dropdown-item {
    font-size: 12px !important;
  }
  .aba-btn {
    font-size: 15px;
  }
  .tooltip-inner {
    max-width: 220px;
  }
  .ppt-modal {
    padding: 16px 12px;
  }
  .ppt-title {
    font-size: 1.15rem;
  }
  .ppt-desc {
    font-size: 0.93rem;
  }
}
@media (hover: none) and (pointer: coarse) {
  .btn-default,
  .bootstrap-select .dropdown-item,
  .aba-btn,
  .switch input.switch {
    min-height: 44px;
  }
  .bootstrap-select .dropdown-item {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .input-with-icon .input-icon {
    padding: 6px;
  }
}
/* =========================
   Utilitarios
   ========================= */
.text-muted-ui {
  color: var(--ui-muted);
}

.w-100-ui {
  width: 100% !important;
}
