:root {
  --anaf-efactura-primary-color: #c00;
	--anaf-efactura-secondary-color: #333;
	--anaf-efactura-secondary-color-hover: #515151;
  --anaf-efactura-border-radius: .2rem;
  --anaf-efactura-initial-width: 2rem;
  --anaf-efactura-width: 3rem;
  --anaf-efactura-modal-padding: .6rem 1rem;
  --anaf-efactura-control-font-size: 1.1rem;
  --anaf-efactura-tooltip-font-size: 1rem;
}

.anaf-efactura-table {
  width: 100%;
  border: .1px solid rgba(0, 0, 0, .1);
  table-layout: auto;
  border-collapse: collapse;
  border-radius: var(--anaf-efactura-border-radius); 
}

.anaf-efactura-table th {
  width: auto;
  font-size: 1rem;
  padding: .35rem .1rem;
}

.anaf-efactura-table td {
  font-size: .9rem;
  word-wrap: break-word;
  padding: .2rem .1rem;
}

.anaf-efactura-table-header {
  background-color: var(--anaf-efactura-secondary-color) !important;
  color: #fff;
  border-bottom: .1px solid rgba(0, 0, 0, .1) !important;
}

.anaf-efactura-table-row {
  border-bottom: .1px solid rgba(0, 0, 0, .1) !important;
}

.anaf-efactura-table-row:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.anaf-efactura-text-primary {
  color: var(--anaf-efactura-primary-color);
}

.anaf-efactura-text-secondary {
  color: var(--anaf-efactura-secondary-color) !;
}

.anaf-efactura-button-table {
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
}

.anaf-efactura-controls-nav {
  display: none;
  width: var(--anaf-efactura-initial-width);
  position: fixed;
  right: 0;
  bottom: 5rem;
  text-align: center !important;
  background: var(--anaf-efactura-primary-color);
  z-index: 998;
  transition: 50ms all ease-in-out;
  box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: none;
  border-bottom-left-radius: var(--anaf-efactura-border-radius);
  border-top-left-radius: var(--anaf-efactura-border-radius);
}

.anaf-efactura-controls-nav .brand {
  color: #fff;
  width: 100%;
  letter-spacing: .05rem;
  padding: 1rem 0;
  font-weight: 600;
  font-size: var(--anaf-efactura-control-font-size);
  text-align: center !important;
  transition: 50ms all ease-in-out;
}

.anaf-efactura-controls-nav .controls {
  position: relative;
  max-width: var(--anaf-efactura-width);
  width: 100%;
  display: none;
  transition: 25ms all ease-in-out;
}

.anaf-efactura-controls-nav .control {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--anaf-efactura-secondary-color);
  width: 100%;
  border: none;
  outline: none;
  padding: 1rem 0;
  margin: 0;
  cursor: pointer;
  border-bottom: .1px solid var(--anaf-efactura-primary-color);
  border-left: .1px solid var(--anaf-efactura-primary-color);
  font-size: var(--anaf-efactura-control-font-size);
}

.anaf-efactura-controls-nav .control:first-child {
  border-top: .1px solid var(--anaf-efactura-primary-color);
  border-top-left-radius: var(--anaf-efactura-border-radius);
}

.anaf-efactura-controls-nav .anaf-efactura-tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translate(-10px, -50%);
  background: var(--anaf-efactura-secondary-color);
  color: white;
  padding: .3rem .7rem;
  border-radius: var(--anaf-efactura-border-radius);
  font-size: var(--anaf-efactura-tooltip-font-size);
  transition: 100ms all ease-in-out;
  display: none;
  border: none;
  word-break: keep-all;
  white-space: nowrap;
} 

.anaf-efactura-controls-nav .anaf-efactura-tooltip .right-arrow {
  position: absolute;
  right: 0%;
  top: 50%;
  transform: translate(50%, -50%);
  color: var(--anaf-efactura-secondary-color);
  border: none;
}

.anaf-efactura-controls-nav:hover {
  width: var(--anaf-efactura-width);
}

.anaf-efactura-controls-nav:hover .controls {
  display: block;
}

.anaf-efactura-controls-nav .control:hover {
  /* background: #222529 !important; */
  background: var(--anaf-efactura-primary-color) !important;
  color: white;
}

.anaf-efactura-controls-nav .control:hover .anaf-efactura-tooltip {
  display: block;
}

.anaf-efactura-modal-container {
  position: fixed;
  background: rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
}

.anaf-efactura-modal-container .anaf-efactura-modal {
  position: relative;
  background-color: white;
  max-width: 35rem;
  width: 100%;
  border-radius: var(--anaf-efactura-border-radius);
}

.anaf-efactura-modal-large {
  max-width: 90vw !important;
}

.anaf-efactura-modal-container .anaf-efactura-modal-header {
  background: var(--anaf-efactura-primary-color);
  padding: var(--anaf-efactura-modal-padding);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: var(--anaf-efactura-border-radius);
  border-top-right-radius: var(--anaf-efactura-border-radius);
}

.anaf-efactura-modal-container .anaf-efactura-modal-title {
  margin: 0;
  padding: 0;
}

.anaf-efactura-form {
  display: flex;
  flex-direction: column;
  row-gap: .4rem;
}

.anaf-efactura-control-container {
  display: flex;
  flex-direction: column;
  row-gap: .1rem;
}

.anaf-efactura-control-checkbox-container {
  flex-direction: row;
  align-items: center;
}

.anaf-efactura-control-label {
  font-size: .9rem;
  margin-bottom: .1rem !important;
}
.anaf-efactura-control-checkbox-label {
  margin-bottom: 0rem !important;
}

.anaf-efactura-control-input, .anaf-efactura-table-search-input {
  border-radius: var(--anaf-efactura-border-radius);
  padding: .4rem .3rem;
  border: .1px solid var(--anaf-efactura-secondary-color);
}

.anaf-efactura-control-input:focus, .anaf-efactura-table-search-input:focus {
  outline-color: var(--anaf-efactura-secondary-color) !important;
}

.anaf-efactura-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
  margin: 0;
  transition: 100ms all ease-in-out;
  border-radius: var(--anaf-efactura-border-radius);
  padding: .5rem 1.5rem;
  box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .1);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
}

.anaf-efactura-button:disabled, .anaf-efactura-button:disabled:hover {
  background: gray;
  color: rgb(199, 199, 199);
}

.anaf-efactura-button-danger {
  background: red;
  color: white;
}

.anaf-efactura-button-primary {
  background: var(--anaf-efactura-secondary-color);
  color: white;
}

.anaf-efactura-button-primary:hover {
  background: var(--anaf-efactura-secondary-color-hover);
}

.anaf-efactura-modal-container .anaf-efactura-modal-close-button {
  background: transparent;
  color: white;
  border: none;
  padding: 0;
  box-shadow: none;
  font-size: 1.3rem;
}

.anaf-efactura-modal-container .anaf-efactura-modal-close-button:hover {
  color: rgb(238, 238, 238);
}

.anaf-efactura-modal-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.anaf-efactura-modal-body::-webkit-scrollbar-track {
  box-shadow: inset 0 0 3px rgba(33, 37, 41, 0.1);
  border-radius: 1px;
}

.anaf-efactura-modal-body::-webkit-scrollbar-thumb {
  border-radius: 1px;
  background-color: rgba(33, 37, 41, 0.9);
  outline: 1px solid grey;
}

.anaf-efactura-modal-container .anaf-efactura-modal-body {
  padding: var(--anaf-efactura-modal-padding);
  max-height: 75vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.anaf-efactura-modal-container .anaf-efactura-modal-footer {
  padding: var(--anaf-efactura-modal-padding);
  display: flex;
  align-items: center;
  border-top: .1px solid rgba(0, 0, 0, .1);
  border-bottom-left-radius: .3rem;
  border-bottom-right-radius: .3rem;
}

.anaf-efactura-margin-right {
  margin-right: .3rem;
}

.anaf-efactura-spinner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 6px solid #ccc;
  border-top-color: var(--anaf-efactura-primary-color);
  animation: anaf-efactura-spin 1s infinite linear;
  display: none;
}

.anaf-efactura-button-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgb(202, 202, 202);
  border-top-color: white;
  margin-right: .3rem;
}

@keyframes anaf-efactura-spin {
  to {
    transform: rotate(360deg);
  }
}