/* FLUXUS_AGENDA_ACCESS_REFINO_V3 — MEDIDAS REAIS / CONFERÊNCIA DA FOLHA */

.fxaa-page {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 158px;
  gap: 10px;
  width: 100%;
  min-height: calc(100vh - 154px);
  padding: 8px 10px 10px;
  background: #f7fbfd;
  color: #0b326b;
}

.fxaa-page *,
.fxaa-page *::before,
.fxaa-page *::after {
  box-sizing: border-box;
}

.fxaa-main {
  min-width: 0;
  background: #fff;
  border: 1px solid #dbe8ee;
  border-radius: 8px;
  padding: 14px 16px 14px;
}

.fxaa-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fxaa-title-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: #eaf7f6;
  color: #078f8c;
}

.fxaa-title-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fxaa-heading h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #103b78;
}

.fxaa-heading p {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.3;
  color: #718eb7;
}

.fxaa-card {
  border: 0;
  border-top: 1px solid #dce8ed;
  border-radius: 0;
  padding: 12px 0 0;
  background: #fff;
}

.fxaa-filter-row {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 20px;
  margin: 0 6px 14px;
}

.fxaa-field {
  display: grid;
  gap: 5px;
}

.fxaa-field > span {
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 800;
  color: #16396b;
}

.fxaa-select-wrap,
.fxaa-search-wrap {
  position: relative;
}

.fxaa-field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: #315b91;
  pointer-events: none;
}

.fxaa-field-icon svg,
.fxaa-user-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fxaa-field select,
.fxaa-field input {
  width: 100%;
  height: 34px;
  border: 1px solid #ccdce7;
  border-radius: 5px;
  background: #fff;
  color: #193c70;
  font: inherit;
  font-size: 12.5px;
  outline: none;
  padding: 0 34px 0 36px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.fxaa-field input::placeholder {
  color: #9aafc8;
}

.fxaa-field select:focus,
.fxaa-field input:focus {
  border-color: #169895;
  box-shadow: 0 0 0 2px rgba(22, 152, 149, .08);
}

.fxaa-transfer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 0 6px;
}

.fxaa-list-panel {
  min-width: 0;
  height: 334px;
  overflow: hidden;
  border: 1px solid #d3e2e9;
  border-radius: 6px;
  background: #fff;
}

.fxaa-list-panel > header {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #fbfdfe;
  border-bottom: 1px solid #dfe9ee;
}

.fxaa-list-panel > header strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #15396d;
}

.fxaa-list-count {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #e6edf1;
  color: #7189ac;
  font-size: 11.5px;
}

.fxaa-list {
  height: calc(100% - 66px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.fxaa-user-row {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #e8eef2;
  padding: 0 12px;
  background: #fff;
  color: #173b70;
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease;
}

.fxaa-user-row:hover {
  background: #f4fbfa;
}

.fxaa-user-row.is-selected {
  background: #e9f7f6;
}

.fxaa-user-row.is-own {
  font-weight: 600;
}

.fxaa-user-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #244f83;
}

.fxaa-empty {
  padding: 14px 12px;
  color: #8195ae;
  font-size: 11.5px;
}

.fxaa-transfer-buttons {
  display: grid;
  align-content: center;
  justify-content: center;
  gap: 8px;
}

.fxaa-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid #74b8dc;
  border-radius: 5px;
  background: #fff;
  color: #174475;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: filter .12s ease, transform .12s ease;
}

.fxaa-arrow.is-primary {
  border-color: #0f918e;
  background: #0b9793;
  color: #fff;
}

.fxaa-arrow:hover {
  filter: brightness(.98);
}

.fxaa-arrow:active {
  transform: translateY(1px);
}

.fxaa-bottom-actions {
  display: none;
}

.fxaa-side-actions {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid #dce9ef;
  border-radius: 8px;
  background: #fff;
}

.fxaa-btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #7fbce0;
  border-radius: 5px;
  background: #fff;
  color: #123c73;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 12px;
  transition: filter .12s ease, border-color .12s ease, background .12s ease;
}

.fxaa-btn.is-primary {
  border-color: #0c918d;
  background: #0b9793;
  color: #fff;
}

.fxaa-btn:hover {
  filter: brightness(.985);
}

.fxaa-error {
  padding: 14px;
  border: 1px solid #efcaca;
  border-radius: 6px;
  background: #fff7f7;
  color: #9a2d2d;
  font-size: 12px;
}

.fxaa-menu-holder {
  display: block;
  width: 100%;
}

.fxaa-menu-access {
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 4px 12px 4px 38px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.fxaa-menu-access:hover {
  background: rgba(16, 145, 143, .08);
}

.fxaa-menu-access-icon {
  width: 12px;
  opacity: .68;
}

@media (max-width: 980px) {
  .fxaa-page {
    grid-template-columns: 1fr;
  }

  .fxaa-side-actions {
    display: none;
  }

  .fxaa-bottom-actions {
    display: flex;
    gap: 10px;
    margin: 16px 6px 0;
    padding-top: 12px;
    border-top: 1px solid #dce9ee;
  }

  .fxaa-bottom-actions .fxaa-btn {
    min-width: 128px;
  }
}

@media (max-width: 760px) {
  .fxaa-main {
    padding: 14px;
  }

  .fxaa-filter-row,
  .fxaa-transfer {
    grid-template-columns: 1fr;
  }

  .fxaa-filter-row,
  .fxaa-transfer {
    margin-left: 0;
    margin-right: 0;
  }

  .fxaa-transfer-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .fxaa-arrow {
    width: 100%;
  }
}

/* FLUXUS_AGENDA_ACCESS_BUTTONS_V4 — PADRÃO FLUXUS / CONFERÊNCIA DA FOLHA */
.fxaa-side-actions .fxaa-btn,
.fxaa-bottom-actions .fxaa-btn{
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  border:1px solid #a8cfca!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#146c67!important;
  font-size:11px!important;
  font-weight:650!important;
  box-shadow:0 2px 5px rgba(6,91,87,.08)!important;
}
.fxaa-side-actions .fxaa-action-icon,
.fxaa-bottom-actions .fxaa-action-icon{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  stroke:#146c67!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.fxaa-side-actions .fxaa-btn.is-primary,
.fxaa-bottom-actions .fxaa-btn.is-primary{
  border-color:#087c75!important;
  background:linear-gradient(180deg,#15958d 0%,#087c75 100%)!important;
  color:#fff!important;
  box-shadow:0 4px 9px rgba(8,124,117,.20)!important;
}
.fxaa-side-actions .fxaa-btn.is-primary .fxaa-action-icon,
.fxaa-bottom-actions .fxaa-btn.is-primary .fxaa-action-icon{stroke:#fff!important;}
.fxaa-side-actions .fxaa-btn:hover:not(:disabled),
.fxaa-bottom-actions .fxaa-btn:hover:not(:disabled){border-color:#178b84!important;background:#f2faf9!important;}
.fxaa-side-actions .fxaa-btn.is-primary:hover:not(:disabled),
.fxaa-bottom-actions .fxaa-btn.is-primary:hover:not(:disabled){background:linear-gradient(180deg,#18a097 0%,#087c75 100%)!important;color:#fff!important;}
.fxaa-side-actions .fxaa-btn.is-primary:hover:not(:disabled) .fxaa-action-icon,
.fxaa-bottom-actions .fxaa-btn.is-primary:hover:not(:disabled) .fxaa-action-icon{stroke:#fff!important;}

/* FLUXUS_AGENDA_ACCESS_ACTIONS_STANDARD_V5
   Replica o padrão visual da barra lateral oficial do Fluxus. */

.fxaa-page {
  grid-template-columns: minmax(0, 1fr) 112px !important;
}

.fxaa-side-actions {
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 8px 10px !important;
  border: 1px solid #d2e3e5 !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.fxaa-side-actions .fxaa-btn,
.fxaa-bottom-actions .fxaa-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 41px !important;
  min-height: 41px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0,1fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid #bfd4df !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  color: #173b59 !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-align: left !important;
  box-shadow: 0 1px 3px rgba(20,49,70,.05) !important;
}

.fxaa-side-actions .fxaa-btn .fxaa-action-icon-cell,
.fxaa-bottom-actions .fxaa-btn .fxaa-action-icon-cell {
  width: 30px !important;
  min-width: 30px !important;
  height: 100% !important;
  display: grid !important;
  place-items: center !important;
  border-right: 1px solid #d9e5eb !important;
  color: #1c77a8 !important;
}

.fxaa-side-actions .fxaa-btn .fxaa-action-icon,
.fxaa-bottom-actions .fxaa-btn .fxaa-action-icon {
  width: 13px !important;
  height: 13px !important;
  stroke: currentColor !important;
  stroke-width: 1.65 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.fxaa-side-actions .fxaa-btn .fxaa-action-label,
.fxaa-bottom-actions .fxaa-btn .fxaa-action-label {
  min-width: 0 !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 8px !important;
  white-space: nowrap !important;
}

/* Primeiro botão segue exatamente a lógica do Fluxus: ação principal destacada. */
.fxaa-side-actions .fxaa-btn.is-primary,
.fxaa-bottom-actions .fxaa-btn.is-primary {
  border-color: #0d847f !important;
  background: linear-gradient(180deg,#14968f 0%,#087b76 100%) !important;
  color: #062f35 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 5px rgba(8,124,117,.15) !important;
}

.fxaa-side-actions .fxaa-btn.is-primary .fxaa-action-icon-cell,
.fxaa-bottom-actions .fxaa-btn.is-primary .fxaa-action-icon-cell {
  color: #ffffff !important;
  border-right-color: rgba(255,255,255,.28) !important;
}

.fxaa-side-actions .fxaa-btn.is-primary .fxaa-action-label,
.fxaa-bottom-actions .fxaa-btn.is-primary .fxaa-action-label {
  color: #06363a !important;
}

.fxaa-side-actions .fxaa-btn:hover:not(:disabled),
.fxaa-bottom-actions .fxaa-btn:hover:not(:disabled) {
  border-color: #6da9c5 !important;
  background: #f2f8fb !important;
}

.fxaa-side-actions .fxaa-btn.is-primary:hover:not(:disabled),
.fxaa-bottom-actions .fxaa-btn.is-primary:hover:not(:disabled) {
  border-color: #0d847f !important;
  background: linear-gradient(180deg,#17a199 0%,#087b76 100%) !important;
}

.fxaa-side-actions .fxaa-btn:active:not(:disabled),
.fxaa-bottom-actions .fxaa-btn:active:not(:disabled) {
  transform: translateY(1px) !important;
}

@media (max-width: 980px) {
  .fxaa-page {
    grid-template-columns: 1fr !important;
  }

  .fxaa-side-actions {
    display: none !important;
  }
}

/* FLUXUS_AGENDA_ACCESS_COMPACT_V5
   Fonte 11px + alturas verticais proporcionais */

.fxaa-heading h1 {
  font-size: 17px !important;
}

.fxaa-heading p {
  font-size: 11px !important;
}

.fxaa-field > span {
  font-size: 11px !important;
}

.fxaa-field select,
.fxaa-field input {
  height: 31px !important;
  min-height: 31px !important;
  font-size: 11px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.fxaa-field-icon {
  width: 15px !important;
  height: 15px !important;
  left: 11px !important;
}

.fxaa-field-icon svg {
  width: 15px !important;
  height: 15px !important;
}

.fxaa-filter-row {
  gap: 18px !important;
  margin-bottom: 12px !important;
}

.fxaa-list-panel {
  height: 286px !important;
}

.fxaa-list-panel > header {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 11px !important;
}

.fxaa-list-panel > header strong {
  font-size: 11px !important;
}

.fxaa-list-count {
  height: 27px !important;
  min-height: 27px !important;
  padding: 0 11px !important;
  font-size: 11px !important;
}

.fxaa-list {
  height: calc(100% - 59px) !important;
}

.fxaa-user-row {
  min-height: 34px !important;
  height: 34px !important;
  gap: 8px !important;
  padding: 0 11px !important;
  font-size: 11px !important;
}

.fxaa-user-icon {
  width: 16px !important;
  height: 16px !important;
}

.fxaa-user-icon svg {
  width: 15px !important;
  height: 15px !important;
}

.fxaa-empty {
  padding: 12px 11px !important;
  font-size: 11px !important;
}

.fxaa-transfer {
  grid-template-columns:
    minmax(0, 1fr)
    36px
    minmax(0, 1fr) !important;
  gap: 10px !important;
}

.fxaa-transfer-buttons {
  gap: 7px !important;
}

.fxaa-arrow {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  font-size: 18px !important;
}

.fxaa-side-actions {
  gap: 6px !important;
}

.fxaa-side-actions .fxaa-btn,
.fxaa-bottom-actions .fxaa-btn {
  height: 34px !important;
  min-height: 34px !important;
  font-size: 11px !important;
}

.fxaa-side-actions .fxaa-btn .fxaa-action-icon,
.fxaa-bottom-actions .fxaa-btn .fxaa-action-icon {
  width: 14px !important;
  height: 14px !important;
  flex-basis: 14px !important;
}
