/*creaciones mias para mejorar*/
.content-wrapper {
    background-image: url(../img/fondo.png);
}

.login-page {
    background-image: url(../img/inicio.png);
    background-repeat: no-repeat;
  background-position: bottom right;
  background-attachment: fixed;
  background-size: cover;
}

input[data-readonly] {
  pointer-events: none;
  background-color: transparent;
}

textarea {
    font-size: .76rem;
}

.campo {
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    background-color: transparent;
    font-weight: bolder;
    pointer-events: none;
    width: 100%;
}

textarea.campo {
    overflow: hidden; /* Evita barras de desplazamiento */
    resize: none; /* Evita el redimensionamiento manual */
}

.bg-buscador{
  background-color: #d2f7f7 !important;
  font-size: 0.78rem;
}

.bg-buscador a:focus {
  background: #95e6e6 !important;
  color: #353c3c;
}

.panel-sidebar{
  padding: 5px;
  display: block;
}

.panel-sidebar.active{
  background-color: #6f8888
}

.form-control:focus {
    border:2px solid #17a2b8;
}

.btn {
    border-radius: 0.6rem;
}

.table-responsive {
  max-height: 550px;
  overflow-y: auto;
}

.table-responsive thead {
  position: sticky;
  top: 0;
  color: #fff;
  z-index: 1;
}

@media screen and (max-width: 565px) {
  .priority{
    display:none;
  }

}

.badge-precio
{
    position: absolute;
    top: 5%;
    right: -20%;
    background-color: #FF5733;
    color: #FFFFFF;
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 0.65rem;
    transform: translateY(-65%);
}

.migaja {
    font-size: 1.2rem;
}

.highlight {
    background-color: #b2c5f1ba;
    outline: 2px solid #658cfbe8;
}

/*              modificacion miguel            */
.login-card-body, .register-card-body {
    background-color: rgba(0, 20, 81, 1.0);
    border-top: 5; 
    color: #fff; 
    padding: 20px; 
    box-shadow: 0 0 30px #3C69FC;
    border-radius: 15px;
}
[class*=sidebar-dark-] {
    background-color: #00134E;
}
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active, .sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active {
    background-color: #0000FF;
    box-shadow: 0 0 20px #3C69FC;
    color: #fff;
}

[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active, [class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:focus, [class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:hover {
    background-color: rgba(255,255,255,.9);
    color: #343a40;
    box-shadow: 0 0 30px #3C69FC;
}
[class*=sidebar-dark-] .sidebar a {
    color: #CCCCFF;
}
.form-control {
    border: 2px solid #CCCCFF;
    border-radius: 0.7rem;
    box-shadow: 0 0 10px #CCCCFF;
}

.card {
    box-shadow: 0 0 20px #82ACD4;
}

body {
    color:#000078;
}

label:not(.form-check-label):not(.custom-file-label) {
    font-weight: 400;
}

.pl-1, .px-1 {
    padding-left: 0.25rem!important;
    font-weight: 600;
}

.text-sm .card-title {
    font-size: 1rem;
    font-weight: 600;
}

a {
    color: #0462d1;
}

/* CSS para ocultar los botones de subir y bajar en diferentes navegadores */
input[type="number"].no-spinners {
  -moz-appearance: textfield; /* Firefox */
}

input[type="number"].no-spinners::-webkit-inner-spin-button,
input[type="number"].no-spinners::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0; /* Chrome, Safari, Edge, Opera */
}

/*******************estilo de smile****************/
#viewport {
    width: calc(100% - 30px); /* Restar el margen (20px a cada lado) */
    height: 400px;
    margin: 15px; /* Margen superior, derecho, inferior, e izquierdo */
    position: relative;
    background-color: black;
    border: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* Incluye el padding y el border en el width y height */
}
#legend {
position: absolute;
top: 10px;
left: 10px;
background-color: rgba(0, 0, 0, 0.7);
padding: 10px;
font-size: 12px;
color: yellow;
z-index: 10;
max-width: 280px;
word-wrap: break-word;
border-radius: 5px;
}

.data-row {
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between; /* Alinear etiquetas y valores a los extremos */
  margin-top: 5px; /* Espaciado entre filas */
}

.data-label {
  color: #333;
  width: 50%; /* Opcional: ancho de la etiqueta */
}

.data-value {
  color: #555;
  width: 50%; /* Opcional: ancho del valor */
  text-align: right; /* Alinear el texto del valor a la derecha */
}

/* Modern sidebar navigation */
:root {
  --fp-sidebar-bg: #18181b;
  --fp-sidebar-panel: #ffffff;
  --fp-sidebar-line: rgba(212, 212, 216, .14);
  --fp-sidebar-text: #e7e5e4;
  --fp-sidebar-muted: #a8a29e;
  --fp-sidebar-active: #14b8a6;
  --fp-sidebar-active-strong: #0f766e;
}

.fp-sidebar {
  background: var(--fp-sidebar-bg) !important;
  box-shadow: 8px 0 24px rgba(24, 24, 27, .18) !important;
}

.fp-sidebar .sidebar {
  padding: .65rem .65rem 1rem;
}

.fp-brand-link {
  min-height: 58px;
  display: flex !important;
  align-items: center;
  gap: .65rem;
  padding: .75rem .9rem !important;
  background: var(--fp-sidebar-bg) !important;
  border-bottom: 1px solid var(--fp-sidebar-line) !important;
  color: #fff !important;
}

.fp-brand-link .brand-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin: 0 !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

.fp-brand-link .brand-text {
  font-size: .95rem;
  font-weight: 700 !important;
  letter-spacing: 0;
}

.fp-menu-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .35rem 0 .85rem;
  padding: .7rem;
  background: var(--fp-sidebar-panel);
  border: 1px solid var(--fp-sidebar-line);
  border-radius: 8px;
}

.fp-menu-logo {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.fp-menu-logo img {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

.fp-menu-title {
  min-width: 0;
  line-height: 1.1;
}

.fp-menu-title span,
.fp-menu-title small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-menu-title span {
  color: #f8fafc;
  font-weight: 700;
  font-size: .9rem;
}

.fp-menu-title small {
  margin-top: .2rem;
  color: var(--fp-sidebar-muted);
  font-size: .72rem;
}

.fp-sidebar-nav .nav-sidebar > .nav-item {
  margin-bottom: .18rem;
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: var(--fp-sidebar-text) !important;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link:hover {
  background: rgba(255, 255, 255, .07) !important;
  color: #fff !important;
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link.active,
.fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link.active {
  background: linear-gradient(90deg, var(--fp-sidebar-active-strong), var(--fp-sidebar-active)) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(14, 165, 164, .2) !important;
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link .nav-icon {
  width: 1.65rem;
  margin-right: .45rem;
  font-size: .95rem;
  text-align: center;
  color: inherit;
  opacity: .95;
}

.fp-sidebar-nav .nav-sidebar .nav-link p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.fp-sidebar-nav .nav-sidebar .right {
  top: .78rem;
  right: .8rem;
  color: rgba(255, 255, 255, .58);
}

.fp-sidebar-nav .nav-treeview {
  margin: .25rem 0 .45rem 1.08rem;
  padding-left: .55rem;
  border-left: 1px solid var(--fp-sidebar-line);
}

.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link {
  min-height: 32px;
  margin: .08rem 0;
  padding-left: .55rem;
  border-radius: 7px;
  color: #b9c4d6 !important;
}

.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link:hover {
  background: rgba(255, 255, 255, .06) !important;
  color: #fff !important;
}

.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link.active {
  background: rgba(14, 165, 164, .14) !important;
  color: #ecfeff !important;
  box-shadow: inset 3px 0 0 var(--fp-sidebar-active) !important;
}

.fp-sidebar-nav .nav-treeview .nav-icon {
  width: .8rem;
  margin-right: .45rem;
  font-size: .45rem;
  color: var(--fp-sidebar-active);
}

.fp-support-panel {
  margin: .75rem 0 0;
  padding-top: .75rem;
  border-top: 1px solid var(--fp-sidebar-line);
}

.fp-support-panel a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem;
  border-radius: 8px;
  background: rgba(14, 165, 164, .1);
  color: #dffafa !important;
}

.fp-support-panel a:hover {
  background: rgba(14, 165, 164, .16);
  color: #fff !important;
}

.fp-support-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  background: rgba(255, 255, 255, .12);
  border-radius: 8px;
}

.fp-support-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.fp-support-panel strong,
.fp-support-panel small {
  display: block;
  line-height: 1.15;
}

.fp-support-panel strong {
  font-size: .82rem;
}

.fp-support-panel small {
  margin-top: .18rem;
  color: var(--fp-sidebar-muted);
  font-size: .7rem;
}

.sidebar-collapse .fp-menu-head,
.sidebar-collapse .fp-support-panel small,
.sidebar-collapse .fp-support-panel strong {
  display: none;
}

.sidebar-collapse .fp-support-panel a {
  justify-content: center;
  padding: .55rem .2rem;
}

.sidebar-collapse .fp-sidebar .sidebar {
  padding-left: .45rem;
  padding-right: .45rem;
}


/* Sidebar hover readability fixes */
.fp-sidebar-nav .nav-sidebar .nav-link:hover p,
.fp-sidebar-nav .nav-sidebar .nav-link:hover .nav-icon,
.fp-sidebar-nav .nav-sidebar .nav-link:hover .right {
  color: #fff !important;
  opacity: 1 !important;
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link:hover {
  background: rgba(255, 255, 255, .12) !important;
}

.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link:hover {
  background: rgba(20, 184, 166, .16) !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .fp-menu-head,
.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-menu-head {
  display: flex !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .fp-menu-title,
.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-menu-title {
  display: block !important;
  min-width: 0;
}

.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .fp-sidebar-nav .nav-sidebar .nav-link p,
.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .nav-link p {
  display: inline-block !important;
  width: auto !important;
  margin-left: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: inherit !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .fp-sidebar-nav .nav-sidebar .right,
.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .right {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .fp-support-panel a,
.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-support-panel a {
  justify-content: flex-start;
  padding: .65rem;
}

.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .fp-support-panel strong,
.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .fp-support-panel small,
.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-support-panel strong,
.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-support-panel small {
  display: block !important;
}

/* Panel logo refinement */
.fp-menu-head.fp-menu-head-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  margin: .35rem 0 .95rem;
  padding: .85rem .75rem .75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
}

.fp-menu-logo-full {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .45rem;
  background: #fff;
  border-radius: 8px;
}

.fp-menu-logo-full img {
  max-width: 168px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.fp-menu-badge {
  max-width: 100%;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, .12);
  color: #ccfbf1;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .fp-menu-head.fp-menu-head-logo,
.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-menu-head.fp-menu-head-logo {
  display: flex !important;
}

/* Collapsed sidebar hover: restore menu labels */
@media (min-width: 768px) {
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused {
    width: 250px !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .sidebar {
    overflow-x: hidden !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .fp-sidebar-nav .nav-sidebar .nav-link p,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .nav-link p {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 165px !important;
    margin-left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: inherit !important;
    animation-name: fadeIn !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .fp-sidebar-nav .nav-sidebar .nav-link .right,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .nav-link .right {
    display: block !important;
    flex: 0 0 auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link .nav-icon,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link .nav-icon {
    flex: 0 0 1.65rem !important;
  }
}

/* Panel logo fit */
.fp-menu-head.fp-menu-head-logo {
  padding: .55rem .35rem .7rem !important;
  background: transparent !important;
  border: 0 !important;
}

.fp-menu-logo-full {
  width: 100% !important;
  min-height: 72px !important;
  padding: .55rem .65rem !important;
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: inset 0 0 0 1px rgba(24, 24, 27, .08), 0 8px 18px rgba(0, 0, 0, .12);
}

.fp-menu-logo-full img {
  display: block;
  max-width: 190px !important;
  max-height: 58px !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.fp-menu-badge {
  margin-top: .1rem;
}

body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):not(:hover):not(.sidebar-focused) .fp-menu-head-logo {
  display: none !important;
}

/* Company and user identity below menu logo */
.fp-menu-context {
  width: 100%;
  padding: .5rem .55rem .15rem;
  text-align: center;
  line-height: 1.2;
}

.fp-menu-context strong,
.fp-menu-context span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-menu-context strong {
  color: #f8fafc;
  font-size: .82rem;
  font-weight: 800;
}

.fp-menu-context span {
  margin-top: .22rem;
  color: #cbd5e1;
  font-size: .72rem;
  font-weight: 600;
}

.fp-menu-context i {
  margin-right: .25rem;
  color: #5eead4;
}

body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):not(:hover):not(.sidebar-focused) .fp-menu-context {
  display: none !important;
}

body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(.sidebar-no-expand):hover .fp-menu-context,
body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-menu-context {
  display: block !important;
}

/* Logo containers size to image */
.fp-menu-head.fp-menu-head-logo {
  gap: .42rem !important;
  margin: .2rem 0 .75rem !important;
  padding: .35rem .35rem .55rem !important;
}

.fp-menu-logo-full {
  width: auto !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: .35rem .45rem !important;
  display: inline-flex !important;
  line-height: 0 !important;
}

.fp-menu-logo-full img {
  width: auto !important;
  max-width: 184px !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
}

.fp-menu-badge {
  margin-top: 0 !important;
}

.fp-menu-context {
  padding-top: .35rem !important;
}

.fp-brand-link {
  min-height: 0 !important;
  height: auto !important;
  padding-top: .55rem !important;
  padding-bottom: .55rem !important;
}

.fp-brand-link .brand-image {
  width: auto !important;
  height: 30px !important;
  max-width: 34px !important;
  object-fit: contain !important;
}

/* Final fix: show sidebar labels on hover */
.main-sidebar.fp-sidebar:hover,
.main-sidebar.fp-sidebar.sidebar-focused {
  width: 250px !important;
}

.main-sidebar.fp-sidebar:hover .brand-link,
.main-sidebar.fp-sidebar.sidebar-focused .brand-link {
  width: 250px !important;
}

.main-sidebar.fp-sidebar:hover .fp-menu-head-logo,
.main-sidebar.fp-sidebar.sidebar-focused .fp-menu-head-logo,
.main-sidebar.fp-sidebar:hover .fp-menu-context,
.main-sidebar.fp-sidebar.sidebar-focused .fp-menu-context {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.main-sidebar.fp-sidebar:hover .fp-menu-context,
.main-sidebar.fp-sidebar.sidebar-focused .fp-menu-context {
  display: block !important;
}

.main-sidebar.fp-sidebar:hover .fp-sidebar-nav .nav-sidebar .nav-link,
.main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .nav-link {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.main-sidebar.fp-sidebar:hover .fp-sidebar-nav .nav-sidebar .nav-link p,
.main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .nav-link p,
body.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-sidebar-nav .nav-sidebar .nav-link p,
body.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .nav-link p,
.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-sidebar-nav .nav-sidebar .nav-link p,
.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .nav-link p {
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 168px !important;
  height: auto !important;
  margin: 0 !important;
  margin-left: 0 !important;
  padding-right: 1.35rem !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #f8fafc !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  transform: none !important;
  animation-name: none !important;
}

.main-sidebar.fp-sidebar:hover .fp-sidebar-nav .nav-sidebar .nav-link .nav-icon,
.main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .nav-link .nav-icon {
  flex: 0 0 1.65rem !important;
  color: #f8fafc !important;
}

.main-sidebar.fp-sidebar:hover .fp-sidebar-nav .nav-sidebar .nav-link .right,
.main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .nav-link .right {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #cbd5e1 !important;
}

body.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-sidebar-nav .nav-sidebar .nav-link p {
  width: 0 !important;
  max-width: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Universal collapsed sidebar label fallback */
body.sidebar-collapse .main-sidebar:hover .sidebar .nav-sidebar .nav-link p,
body.sidebar-collapse .main-sidebar.sidebar-focused .sidebar .nav-sidebar .nav-link p {
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 170px !important;
  margin-left: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #f8fafc !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  animation-name: none !important;
}

body.sidebar-collapse .main-sidebar:hover .sidebar .nav-sidebar .nav-link,
body.sidebar-collapse .main-sidebar.sidebar-focused .sidebar .nav-sidebar .nav-link {
  display: flex !important;
  align-items: center !important;
}

body.sidebar-collapse .main-sidebar:hover .sidebar .nav-sidebar .nav-link .right,
body.sidebar-collapse .main-sidebar.sidebar-focused .sidebar .nav-sidebar .nav-link .right {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Minimal sidebar theme reset */
:root {
  --fp-sidebar-bg: #111827;
  --fp-sidebar-panel: #182131;
  --fp-sidebar-hover: #1f2937;
  --fp-sidebar-active-bg: #263244;
  --fp-sidebar-border: rgba(255, 255, 255, .08);
  --fp-sidebar-text: #e5e7eb;
  --fp-sidebar-soft: #aeb7c4;
  --fp-sidebar-muted: #7f8a9a;
  --fp-sidebar-accent: #38bdf8;
}

.fp-sidebar,
[class*=sidebar-dark-].fp-sidebar {
  background: var(--fp-sidebar-bg) !important;
  color: var(--fp-sidebar-text) !important;
  box-shadow: 6px 0 18px rgba(15, 23, 42, .16) !important;
}

.fp-brand-link,
.fp-sidebar .brand-link {
  background: var(--fp-sidebar-bg) !important;
  border-bottom: 1px solid var(--fp-sidebar-border) !important;
  color: var(--fp-sidebar-text) !important;
  box-shadow: none !important;
}

.fp-brand-link .brand-text,
.fp-sidebar .brand-link .brand-text {
  color: var(--fp-sidebar-text) !important;
  font-weight: 700 !important;
}

.fp-sidebar .sidebar {
  padding: .55rem .6rem 1rem !important;
}

.fp-menu-head.fp-menu-head-logo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.fp-menu-logo-full {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  box-shadow: none !important;
}

.fp-menu-context strong {
  color: var(--fp-sidebar-text) !important;
  font-weight: 700 !important;
}

.fp-menu-context span,
.fp-menu-context i {
  color: var(--fp-sidebar-soft) !important;
}

.fp-menu-badge {
  background: transparent !important;
  color: var(--fp-sidebar-muted) !important;
  border: 1px solid var(--fp-sidebar-border) !important;
  font-weight: 600 !important;
}

.fp-sidebar-nav .nav-sidebar > .nav-item {
  margin-bottom: .12rem !important;
}

.fp-sidebar-nav .nav-sidebar .nav-link,
.fp-sidebar-nav .nav-sidebar .nav-link p,
.fp-sidebar-nav .nav-sidebar .nav-link .nav-icon,
.fp-sidebar-nav .nav-sidebar .nav-link .right,
[class*=sidebar-dark-].fp-sidebar .sidebar a {
  color: var(--fp-sidebar-soft) !important;
  text-shadow: none !important;
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link {
  min-height: 36px !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link:hover,
.fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link {
  background: var(--fp-sidebar-hover) !important;
  color: var(--fp-sidebar-text) !important;
  box-shadow: none !important;
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link:hover p,
.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link:hover .nav-icon,
.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link:hover .right,
.fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link p,
.fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link .nav-icon,
.fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link .right {
  color: var(--fp-sidebar-text) !important;
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link.active,
.fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link.active,
.sidebar-dark-primary .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link.active {
  background: var(--fp-sidebar-active-bg) !important;
  color: var(--fp-sidebar-text) !important;
  box-shadow: inset 3px 0 0 var(--fp-sidebar-accent) !important;
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link.active p,
.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link.active .nav-icon,
.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link.active .right {
  color: var(--fp-sidebar-text) !important;
}

.fp-sidebar-nav .nav-treeview {
  border-left: 1px solid var(--fp-sidebar-border) !important;
  margin-left: 1rem !important;
}

.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link {
  min-height: 30px !important;
  background: transparent !important;
  color: var(--fp-sidebar-muted) !important;
  box-shadow: none !important;
}

.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link p,
.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link .nav-icon {
  color: var(--fp-sidebar-muted) !important;
}

.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link:hover,
.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link.active {
  background: rgba(255, 255, 255, .045) !important;
  color: var(--fp-sidebar-text) !important;
  box-shadow: none !important;
}

.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link:hover p,
.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link:hover .nav-icon,
.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link.active p,
.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link.active .nav-icon {
  color: var(--fp-sidebar-text) !important;
}

.fp-support-panel {
  border-top: 1px solid var(--fp-sidebar-border) !important;
}

.fp-support-panel a {
  background: var(--fp-sidebar-panel) !important;
  color: var(--fp-sidebar-soft) !important;
  box-shadow: none !important;
}

.fp-support-panel a:hover,
.fp-support-panel a:hover strong,
.fp-support-panel a:hover small {
  background: var(--fp-sidebar-hover) !important;
  color: var(--fp-sidebar-text) !important;
}

.fp-support-icon {
  background: rgba(255, 255, 255, .08) !important;
}

/* Modern minimal modal system */
:root {
  --fp-modal-bg: #ffffff;
  --fp-modal-surface: #f8fafc;
  --fp-modal-border: #e5e7eb;
  --fp-modal-title: #111827;
  --fp-modal-text: #374151;
  --fp-modal-muted: #6b7280;
  --fp-modal-accent: #0f766e;
  --fp-modal-accent-soft: rgba(15, 118, 110, .1);
}

.modal-backdrop.show {
  opacity: .42;
}

.modal-dialog {
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.modal-content {
  overflow: hidden;
  color: var(--fp-modal-text);
  background: var(--fp-modal-bg);
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.modal-header {
  min-height: 50px;
  align-items: center;
  padding: .72rem 1rem !important;
  background: var(--fp-modal-bg);
  border-bottom: 1px solid var(--fp-modal-border);
}

.modal-title {
  color: var(--fp-modal-title);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.modal-header .close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -.2rem -.25rem -.2rem auto !important;
  padding: 0 !important;
  color: var(--fp-modal-muted);
  background: transparent;
  border-radius: 7px;
  opacity: 1;
  text-shadow: none;
  transition: background-color .15s ease, color .15s ease;
}

.modal-header .close:hover,
.modal-header .close:focus {
  color: var(--fp-modal-title);
  background: #f3f4f6;
  outline: 0;
}

.modal-body {
  padding: 1rem !important;
  background: var(--fp-modal-bg);
}

.modal-footer {
  padding: .75rem 1rem;
  background: var(--fp-modal-surface);
  border-top: 1px solid var(--fp-modal-border);
}

.modal .form-group {
  margin-bottom: .7rem;
}

.modal label,
.modal .col-form-label {
  margin-bottom: .22rem;
  color: var(--fp-modal-muted);
  font-size: .78rem;
  font-weight: 700 !important;
  letter-spacing: 0;
}

.modal .form-control,
.modal .custom-select,
.modal .select2-container--default .select2-selection--single,
.modal .select2-container--default .select2-selection--multiple {
  min-height: 32px;
  color: var(--fp-modal-title);
  background-color: #fff;
  border: 1px solid #d1d5db !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.modal .form-control:focus,
.modal .custom-select:focus,
.modal .select2-container--default.select2-container--focus .select2-selection--single,
.modal .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--fp-modal-accent) !important;
  box-shadow: 0 0 0 .16rem var(--fp-modal-accent-soft) !important;
}

.modal textarea.form-control {
  min-height: 68px;
}

.modal .input-group-text {
  color: var(--fp-modal-muted);
  background: var(--fp-modal-surface);
  border-color: #d1d5db;
  border-radius: 7px;
  box-shadow: none;
}

.modal .card {
  margin-bottom: .85rem;
  border: 1px solid var(--fp-modal-border);
  border-radius: 8px;
  box-shadow: none !important;
}

.modal .card-header {
  padding: .55rem .75rem;
  background: var(--fp-modal-surface);
  border-bottom: 1px solid var(--fp-modal-border);
}

.modal .card-title,
.modal .card-header h5,
.modal h6 {
  color: var(--fp-modal-title) !important;
  font-size: .86rem !important;
  font-weight: 700 !important;
  letter-spacing: 0;
}

.modal .border-bottom {
  border-bottom-color: var(--fp-modal-border) !important;
}

.modal .text-muted {
  color: var(--fp-modal-muted) !important;
}

.modal .badge {
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0;
}

.modal .custom-control-label {
  color: var(--fp-modal-text);
  font-size: .8rem;
  font-weight: 600 !important;
}

.modal .btn {
  min-height: 31px;
  padding: .28rem .7rem;
  border-radius: 7px;
  font-weight: 700;
  box-shadow: none !important;
}

.modal .btn-primary {
  color: #fff;
  background: #0f766e;
  border-color: #0f766e;
}

.modal .btn-primary:hover,
.modal .btn-primary:focus {
  background: #115e59;
  border-color: #115e59;
}

.modal .btn-info {
  color: #fff;
  background: #0369a1;
  border-color: #0369a1;
}

.modal .btn-warning {
  color: #111827;
  background: #facc15;
  border-color: #facc15;
}

.modal .btn-outline-secondary,
.modal .btn-outline-danger,
.modal button.close.btn-outline-danger {
  color: #4b5563;
  background: #fff;
  border-color: #d1d5db;
}

.modal .btn-outline-secondary:hover,
.modal .btn-outline-danger:hover,
.modal button.close.btn-outline-danger:hover {
  color: #111827;
  background: #f3f4f6;
  border-color: #cbd5e1;
}

.modal .table {
  color: var(--fp-modal-text);
}

.modal .table thead th {
  color: var(--fp-modal-muted);
  background: var(--fp-modal-surface);
  border-bottom-color: var(--fp-modal-border);
  font-size: .76rem;
  font-weight: 800;
}

.modal .alert {
  border-radius: 8px;
  border-width: 1px;
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .modal-dialog {
    margin: .6rem;
  }

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

/* Modal UX refinement across the project */
.fp-modal .modal-dialog,
.modal.show .modal-dialog {
  transform: none;
}

@media (min-width: 768px) {
  .modal-dialog.modal-lg {
    max-width: 820px;
  }

  .modal-dialog.modal-xl {
    max-width: min(1140px, calc(100vw - 48px));
  }
}

.modal-content {
  max-height: calc(100vh - 56px);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
}

.modal-body {
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.modal .text-right.pt-2.border-top,
.modal .form-group.row.mb-0:last-child,
.modal form > .pb-3:last-child {
  position: sticky;
  bottom: -1rem;
  z-index: 2;
  margin: .85rem -1rem -1rem;
  padding: .75rem 1rem !important;
  background: var(--fp-modal-surface);
  border-top: 1px solid var(--fp-modal-border) !important;
}

.modal .form-row {
  margin-right: -5px;
  margin-left: -5px;
}

.modal .form-row > [class*=col-] {
  padding-right: 5px;
  padding-left: 5px;
}

.modal .form-horizontal .form-group.row {
  align-items: center;
  margin-right: 0;
  margin-left: 0;
}

.modal .form-horizontal .form-group.row > label {
  margin-bottom: 0;
}

.modal input[readonly],
.modal .form-control[readonly] {
  color: #475569;
  background: #f8fafc;
}

.fp-modal-loader,
.fp-modal-error {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 96px;
  padding: 1rem;
  color: var(--fp-modal-text);
  background: var(--fp-modal-surface);
  border: 1px solid var(--fp-modal-border);
  border-radius: 8px;
}

.fp-modal-loader strong,
.fp-modal-error strong,
.fp-modal-loader small,
.fp-modal-error small {
  display: block;
  line-height: 1.25;
}

.fp-modal-loader strong,
.fp-modal-error strong {
  color: var(--fp-modal-title);
  font-size: .9rem;
}

.fp-modal-loader small,
.fp-modal-error small {
  margin-top: .15rem;
  color: var(--fp-modal-muted);
  font-size: .78rem;
}

.fp-modal-spinner {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 3px solid #dbeafe;
  border-top-color: var(--fp-modal-accent);
  border-radius: 50%;
  animation: fpSpin .75s linear infinite;
}

.fp-modal-error i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  color: #b91c1c;
  background: #fee2e2;
  border-radius: 50%;
}

@keyframes fpSpin {
  to { transform: rotate(360deg); }
}

.modal .btn-group .btn {
  min-width: 30px;
}

.modal .btn i + span,
.modal .btn i + strong {
  margin-left: .35rem;
}

@media (max-width: 767.98px) {
  .modal-content {
    max-height: calc(100vh - 20px);
  }

  .modal-body {
    max-height: calc(100vh - 104px);
  }

  .modal .text-right.pt-2.border-top,
  .modal .form-group.row.mb-0:last-child,
  .modal form > .pb-3:last-child {
    margin-right: -.85rem;
    margin-left: -.85rem;
    margin-bottom: -.85rem;
    text-align: right !important;
  }
}

/* Modern dashboard reports */
.fp-dashboard {
  --fp-dash-ink: #111827;
  --fp-dash-muted: #64748b;
  --fp-dash-line: #e5e7eb;
  --fp-dash-surface: #f8fafc;
  --fp-dash-sidebar: #18181b;
  --fp-dash-teal: #14b8a6;
  --fp-dash-teal-dark: #0f766e;
  --fp-dash-blue: #0369a1;
  --fp-dash-amber: #f59e0b;
  --fp-dash-red: #dc2626;
}

.fp-dashboard .content-header h4,
.content-header + .fp-dashboard h4 {
  color: var(--fp-dash-ink) !important;
  font-weight: 800;
  letter-spacing: 0;
}

.fp-dashboard a:hover {
  text-decoration: none;
}

.fp-dashboard .fp-quick-card {
  min-height: 82px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.fp-dashboard a .fp-quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, .38);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.fp-dashboard .fp-quick-card .widget-user-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem !important;
  color: #fff;
  border-radius: 8px;
}

.fp-dashboard .fp-quick-card .widget-user-image {
  float: none;
  margin: 0;
}

.fp-dashboard .fp-quick-card .widget-user-image img {
  width: 44px !important;
  height: 44px;
  padding: .38rem;
  object-fit: contain;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .36);
  box-shadow: none !important;
}

.fp-dashboard .fp-quick-card .widget-user-desc {
  margin: 0;
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.2;
}

.fp-dashboard .fp-quick-card .bg-success {
  background: #0f766e !important;
}

.fp-dashboard .fp-quick-card .bg-info,
.fp-dashboard .fp-quick-card .bg-lightblue {
  background: #0369a1 !important;
}

.fp-dashboard .fp-quick-card .bg-danger {
  background: #18181b !important;
}

.fp-dashboard .fp-report-card {
  overflow: hidden;
  border: 1px solid var(--fp-dash-line) !important;
  border-top: 0 !important;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
}

.fp-dashboard .fp-report-card .card-header {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: .72rem .9rem;
  color: #ecfeff;
  background: var(--fp-dash-sidebar);
  border-bottom: 0;
}

.fp-dashboard .fp-report-card .card-title {
  margin: 0;
  color: #ecfeff;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: 0;
}

.fp-dashboard .fp-report-card .card-body {
  background: #fff;
}

.fp-dashboard .chart {
  padding: .25rem;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.fp-dashboard #textoVentas,
.fp-dashboard #textoCompras,
.fp-dashboard #textoNventa,
.fp-dashboard #textoComprobante {
  margin-top: .55rem;
  color: var(--fp-dash-muted);
  font-size: .78rem;
}

.fp-dashboard .fp-report-table {
  margin-bottom: 0;
  color: var(--fp-dash-ink);
  background: #fff !important;
  border-color: var(--fp-dash-line) !important;
  font-size: .72rem !important;
}

.fp-dashboard .fp-report-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #e6fffb;
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, .12) !important;
  font-weight: 800;
  text-align: center;
}

.fp-dashboard .fp-report-table tbody td {
  vertical-align: middle;
  border-color: #e5e7eb !important;
  background: #fff;
}

.fp-dashboard .fp-report-table tbody tr:hover td {
  background: #f8fafc;
}

.fp-dashboard .fp-report-table tbody tr:last-child td,
.fp-dashboard .fp-report-table tbody tr[style*="dashed"] td {
  color: #0f172a !important;
  background: #ecfeff;
  border-top: 1px solid rgba(20, 184, 166, .45) !important;
  border-bottom: 1px solid rgba(20, 184, 166, .45) !important;
}

.fp-dashboard .fp-report-table .table-danger,
.fp-dashboard .fp-report-table th.table-danger,
.fp-dashboard .fp-report-table td.table-danger {
  color: #7f1d1d !important;
  background: #fee2e2 !important;
}

.fp-dashboard .card-body:has(.fp-report-table) {
  overflow-x: auto;
}

.fp-dashboard .form-control-sm {
  border-color: #dbe3ea;
  border-radius: 7px;
  box-shadow: none;
}

.fp-dashboard .form-control-sm:focus {
  border-color: var(--fp-dash-teal);
  box-shadow: 0 0 0 .12rem rgba(20, 184, 166, .14);
}

.fp-dashboard .fp-interaction-result {
  min-height: 118px;
  max-height: 260px;
  overflow-y: auto;
  padding: .8rem;
  color: #e5e7eb;
  background: #111827;
  border: 1px solid rgba(20, 184, 166, .35);
  border-radius: 8px;
  font-size: .75rem;
  line-height: 1.35;
}

.fp-dashboard #modalWindow {
  min-height: 300px;
  margin-top: .75rem;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
}

.fp-dashboard #viewport {
  min-height: 300px;
  position: relative;
}

.fp-dashboard #legend {
  position: absolute;
  top: .75rem;
  right: .75rem;
  max-width: 240px;
  padding: .65rem .75rem;
  color: #e5e7eb;
  background: rgba(15, 23, 42, .86);
  border: 1px solid rgba(20, 184, 166, .28);
  border-radius: 8px;
  font-size: .72rem;
}

@media (max-width: 767.98px) {
  .fp-dashboard .fp-report-card .card-header {
    min-height: 42px;
    padding: .65rem .75rem;
  }

  .fp-dashboard .fp-quick-card .widget-user-header {
    min-height: 76px;
  }
}

.fp-dashboard .fp-report-card .card-body.p-0 {
  overflow-x: auto;
}

.fp-dashboard .fp-report-table tbody tr.fp-total-row td {
  color: #0f172a !important;
  background: #ecfeff !important;
  border-top: 1px solid rgba(20, 184, 166, .55) !important;
  border-bottom: 1px solid rgba(20, 184, 166, .55) !important;
  font-weight: 800;
}

/* Dashboard color refresh: clearer modern palette */
.fp-dashboard {
  --fp-dash-ink: #0f172a;
  --fp-dash-muted: #475569;
  --fp-dash-line: #dbe4ee;
  --fp-dash-surface: #f6f8fb;
  --fp-dash-sidebar: #07192f;
  --fp-dash-teal: #0ea5a4;
  --fp-dash-teal-dark: #0f766e;
  --fp-dash-blue: #2563eb;
  --fp-dash-amber: #f59e0b;
  --fp-dash-red: #ef4444;
}

.fp-dashboard .container-fluid {
  background: transparent;
}

.fp-dashboard .fp-quick-card {
  border-color: rgba(15, 23, 42, .08);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.fp-dashboard .fp-quick-card .widget-user-header.bg-success {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%) !important;
}

.fp-dashboard .fp-quick-card .widget-user-header.bg-info {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
}

.fp-dashboard .fp-quick-card .widget-user-header.bg-lightblue {
  background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%) !important;
}

.fp-dashboard .fp-quick-card .widget-user-header.bg-danger {
  background: linear-gradient(135deg, #07192f 0%, #334155 100%) !important;
}

.fp-dashboard .fp-quick-card .widget-user-desc {
  text-shadow: 0 1px 1px rgba(15, 23, 42, .18);
}

.fp-dashboard .fp-quick-card .widget-user-image img {
  background: #ffffff;
  border-color: rgba(255, 255, 255, .72);
}

.fp-dashboard .fp-report-card {
  background: #ffffff;
  border-color: #dbe4ee !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .075);
}

.fp-dashboard .fp-report-card .card-header {
  color: #ffffff;
  background: linear-gradient(90deg, #07192f 0%, #0f2f57 72%, #0f766e 100%) !important;
}

.fp-dashboard .fp-report-card .card-title {
  color: #ffffff;
}

.fp-dashboard .chart {
  background: #ffffff;
  border-color: #dbe4ee;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.fp-dashboard .fp-report-table {
  color: #0f172a;
  background: #ffffff !important;
  border-color: #dbe4ee !important;
}

.fp-dashboard .fp-report-table thead th {
  color: #ffffff;
  background: #07192f !important;
  border-color: rgba(255, 255, 255, .16) !important;
}

.fp-dashboard .fp-report-table tbody td {
  color: #1e293b;
  background: #ffffff;
  border-color: #e2e8f0 !important;
}

.fp-dashboard .fp-report-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.fp-dashboard .fp-report-table tbody tr:hover td {
  color: #0f172a;
  background: #eef6ff;
}

.fp-dashboard .fp-report-table .text-primary {
  color: #1d4ed8 !important;
  font-weight: 700;
}

.fp-dashboard .fp-report-table .text-muted {
  color: #0f172a !important;
}

.fp-dashboard .fp-report-table tbody tr.fp-total-row td,
.fp-dashboard .fp-report-table tbody tr:last-child td,
.fp-dashboard .fp-report-table tbody tr[style*="dashed"] td {
  color: #064e3b !important;
  background: #dffaf5 !important;
  border-top: 1px solid #5eead4 !important;
  border-bottom: 1px solid #5eead4 !important;
}

.fp-dashboard .fp-report-table .table-danger,
.fp-dashboard .fp-report-table th.table-danger,
.fp-dashboard .fp-report-table td.table-danger {
  color: #7f1d1d !important;
  background: #fecaca !important;
}

.fp-dashboard .fp-interaction-result,
.fp-dashboard #modalWindow {
  color: #e2e8f0;
  background: #07192f;
  border-color: rgba(20, 184, 166, .45);
}

.fp-dashboard #legend {
  color: #e2e8f0;
  background: rgba(7, 25, 47, .9);
  border-color: rgba(20, 184, 166, .45);
}

/* Dashboard header readability */
.fp-dashboard-header {
  margin: .35rem .5rem .6rem;
  padding: .75rem 1rem !important;
  background: linear-gradient(90deg, #07192f 0%, #0f2f57 72%, #0f766e 100%);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
}

.fp-dashboard-header h4,
.fp-dashboard-header h4.text-dark,
.fp-dashboard-header .breadcrumb,
.fp-dashboard-header .breadcrumb-item,
.fp-dashboard-header .breadcrumb-item.active {
  color: #ffffff !important;
}

.fp-dashboard-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, .7) !important;
}

.fp-dashboard-header .migaja,
.fp-dashboard-header .text-danger {
  color: #ccfbf1 !important;
}

/* Modern login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(7, 25, 47, .94), rgba(15, 47, 87, .9)),
    url(../img/inicio.png) center / cover no-repeat fixed !important;
}

.fp-login-shell {
  width: min(960px, 100%);
  margin: 0 auto;
}

.fp-login-card {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .86fr);
  overflow: hidden;
  min-height: 520px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, .36);
}

.fp-login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  color: #ffffff;
  background: linear-gradient(145deg, #07192f 0%, #0f2f57 58%, #0f766e 100%);
}

.fp-login-logo {
  width: 170px;
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 8px;
}

.fp-login-logo img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.fp-login-kicker {
  display: inline-block;
  margin-bottom: .8rem;
  color: #99f6e4;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fp-login-brand h1 {
  max-width: 440px;
  margin: 0 0 .75rem;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.fp-login-brand p {
  max-width: 390px;
  margin: 0;
  color: #dbeafe;
  font-size: .98rem;
  line-height: 1.55;
}

.fp-login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: #ffffff;
}

.fp-login-form-head {
  margin-bottom: 1.25rem;
}

.fp-login-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .75rem;
  padding: .32rem .55rem;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 7px;
  font-size: .76rem;
  font-weight: 800;
}

.fp-login-form-head h2 {
  margin: 0 0 .3rem;
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0;
}

.fp-login-form-head p {
  margin: 0;
  color: #64748b;
  font-size: .9rem;
}

.fp-login-card .login-card-body,
.fp-login-form-panel .login-card-body {
  background: transparent !important;
  color: #0f172a !important;
  padding: 0 !important;
}

.fp-login-alert {
  border-radius: 8px;
  border-width: 1px;
  box-shadow: none;
  font-size: .86rem;
}

.fp-login-field {
  margin-bottom: .95rem;
}

.fp-login-field label {
  margin-bottom: .32rem;
  color: #334155;
  font-size: .78rem;
  font-weight: 800 !important;
}

.fp-login-field .form-control {
  height: 43px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  font-size: .9rem;
  box-shadow: none;
}

.fp-login-field select.form-control {
  cursor: pointer;
}

.fp-login-field .form-control:focus {
  background: #ffffff;
  border-color: #14b8a6;
  box-shadow: 0 0 0 .12rem rgba(20, 184, 166, .16);
}

.fp-login-field .input-group-text {
  min-width: 44px;
  justify-content: center;
  color: #0f766e;
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.fp-login-submit {
  min-height: 44px;
  margin-top: .25rem;
  color: #ffffff;
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 12px 24px rgba(15, 118, 110, .24);
}

.fp-login-submit:hover,
.fp-login-submit:focus {
  color: #ffffff;
  background: linear-gradient(90deg, #115e59 0%, #0f766e 100%);
  box-shadow: 0 14px 28px rgba(15, 118, 110, .3);
}

.fp-login-help {
  margin-top: .9rem;
  text-align: center;
}

.fp-login-help a {
  color: #0369a1;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}

.fp-login-help a:hover {
  color: #0f766e;
}

.fp-login-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  color: #64748b;
  border-top: 1px solid #e5edf5;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-login-trust img {
  max-width: 118px;
  max-height: 42px;
  object-fit: contain;
}

@media (max-width: 860px) {
  .fp-login-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .fp-login-brand {
    padding: 1.35rem;
  }

  .fp-login-brand h1 {
    font-size: 1.55rem;
  }

  .fp-login-form-panel {
    padding: 1.35rem;
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: .75rem;
  }

  .fp-login-logo {
    width: 145px;
  }

  .fp-login-trust {
    align-items: flex-start;
    flex-direction: column;
  }
}

.fp-login-submit i {
  margin-right: .42rem;
}

/* Login logo refinement */
.fp-login-logo {
  width: 100%;
  min-height: 88px;
  justify-content: center;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
}

.fp-login-logo img {
  max-width: min(260px, 82%);
  max-height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(2, 6, 23, .18));
}

/* Login logo soft framed style */
.fp-login-logo {
  width: min(310px, 86%);
  min-height: 104px;
  align-self: center;
  padding: .9rem 1.1rem;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 38px rgba(2, 6, 23, .24), inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
}

.fp-login-logo img {
  max-width: 100%;
  max-height: 82px;
  filter: drop-shadow(0 8px 14px rgba(2, 6, 23, .22));
}

/* Login logo white frosted background */
.fp-login-logo {
  background: rgba(255, 255, 255, .86) !important;
  border-color: rgba(255, 255, 255, .62) !important;
  box-shadow: 0 18px 38px rgba(2, 6, 23, .22), inset 0 1px 0 rgba(255, 255, 255, .75);
  backdrop-filter: blur(14px);
}

/* Global responsive application layer */
:root {
  --fp-app-bg: #f4f7fb;
  --fp-app-surface: #ffffff;
  --fp-app-border: #e2e8f0;
  --fp-app-text: #0f172a;
  --fp-app-muted: #64748b;
  --fp-app-accent: #0f766e;
  --fp-app-accent-soft: rgba(15, 118, 110, .12);
  --fp-app-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.fp-responsive-app {
  color: var(--fp-app-text);
  background: var(--fp-app-bg);
  overflow-x: hidden;
}

.fp-responsive-app .content-wrapper {
  min-height: calc(100vh - 57px);
  background-color: var(--fp-app-bg);
  background-size: cover;
  overflow-x: hidden;
}

.fp-responsive-app .content {
  padding-bottom: 1rem;
}

.fp-responsive-app .container-fluid {
  width: 100%;
  max-width: 100%;
}

.fp-responsive-app .content-header {
  padding: .85rem .5rem .35rem;
}

.fp-responsive-app .content-header h1,
.fp-responsive-app .content-header h2,
.fp-responsive-app .content-header h3,
.fp-responsive-app .content-header h4 {
  color: var(--fp-app-text) !important;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0;
}

.fp-responsive-app .breadcrumb {
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  margin-bottom: 0;
  color: var(--fp-app-muted);
  font-size: .78rem;
}

.fp-responsive-app .migaja {
  font-size: .9rem;
}

.fp-responsive-app .card {
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  box-shadow: var(--fp-app-shadow);
}

.fp-responsive-app .card-header {
  min-height: 44px;
  padding: .65rem .85rem;
  background: var(--fp-app-surface);
  border-bottom: 1px solid var(--fp-app-border);
}

.fp-responsive-app .card-body {
  padding: .9rem;
}

.fp-responsive-app .card-title {
  color: var(--fp-app-text);
  font-weight: 800;
  letter-spacing: 0;
}

.fp-responsive-app .nav-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: .35rem;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: .12rem;
  scrollbar-width: thin;
}

.fp-responsive-app .nav-pills .nav-link {
  white-space: nowrap;
  border-radius: 7px;
  box-shadow: none !important;
}

.fp-responsive-app .btn {
  min-height: 31px;
  border-radius: 7px;
  font-weight: 700;
  box-shadow: none !important;
}

.fp-responsive-app .btn-sm {
  min-height: 28px;
  padding-right: .52rem;
  padding-left: .52rem;
}

.fp-responsive-app .form-control,
.fp-responsive-app .custom-select,
.fp-responsive-app .select2-container--default .select2-selection--single,
.fp-responsive-app .select2-container--default .select2-selection--multiple {
  min-height: 32px;
  color: var(--fp-app-text);
  border: 1px solid #cbd5e1 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.fp-responsive-app .form-control:focus,
.fp-responsive-app .custom-select:focus,
.fp-responsive-app .select2-container--default.select2-container--focus .select2-selection--single,
.fp-responsive-app .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--fp-app-accent) !important;
  box-shadow: 0 0 0 .15rem var(--fp-app-accent-soft) !important;
}

.fp-responsive-app label,
.fp-responsive-app .col-form-label {
  color: #334155;
  font-size: .8rem;
  font-weight: 700 !important;
}

.fp-responsive-app .input-group-text {
  color: var(--fp-app-muted);
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: none;
}

.fp-responsive-app img,
.fp-responsive-app canvas,
.fp-responsive-app video {
  max-width: 100%;
}

.fp-responsive-app .table-responsive {
  width: 100%;
  max-height: min(62vh, 560px);
  overflow: auto;
  border-radius: 8px;
  scrollbar-width: thin;
}

.fp-responsive-app .table {
  width: 100%;
  margin-bottom: 0;
  color: var(--fp-app-text);
}

.fp-responsive-app .table th {
  vertical-align: middle;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.fp-responsive-app .table td {
  vertical-align: middle;
  font-size: .8rem;
}

.fp-responsive-app .table-responsive > .table,
.fp-responsive-app .dataTables_wrapper table.dataTable {
  min-width: 680px;
}

.fp-responsive-app table.dataTable.dtr-inline.collapsed {
  min-width: 100%;
}

.fp-responsive-app table.dataTable > tbody > tr.child ul.dtr-details {
  width: 100%;
}

.fp-responsive-app table.dataTable > tbody > tr.child span.dtr-title {
  min-width: 96px;
  color: var(--fp-app-muted);
}

.fp-responsive-app .dataTables_wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.fp-responsive-app .dataTables_wrapper .row {
  align-items: center;
  row-gap: .55rem;
}

.fp-responsive-app .dataTables_wrapper .dataTables_length,
.fp-responsive-app .dataTables_wrapper .dataTables_filter,
.fp-responsive-app .dataTables_wrapper .dataTables_info,
.fp-responsive-app .dataTables_wrapper .dataTables_paginate {
  font-size: .8rem;
}

.fp-responsive-app .dataTables_wrapper .dataTables_filter input {
  width: min(260px, 100%);
  margin-left: .35rem;
}

.fp-responsive-app .dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.fp-responsive-app .pagination {
  flex-wrap: wrap;
  gap: .18rem;
  margin-bottom: 0;
}

.fp-responsive-app .page-link {
  border-radius: 6px;
}

.fp-topbar {
  min-height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
}

.fp-topbar .nav-link {
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fp-topbar-actions {
  align-items: center;
  gap: .12rem;
  min-width: 0;
}

.fp-topbar-logo img {
  max-height: 30px;
  width: auto !important;
  object-fit: contain;
}

.fp-topbar-logo-wide img {
  max-width: 88px;
}

.fp-topbar .btn-group {
  min-width: 0;
}

.fp-topbar .dropdown-toggle {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-responsive-app .main-footer {
  color: var(--fp-app-muted);
  background: #fff;
  border-top: 1px solid var(--fp-app-border);
  font-size: .78rem;
}

@media (max-width: 991.98px) {
  .fp-responsive-app .content-header .row > [class*=col-] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .fp-responsive-app .breadcrumb {
    justify-content: flex-start !important;
    float: none !important;
    margin-top: .35rem;
  }

  .fp-responsive-app .card-header {
    overflow-x: auto;
  }

  .fp-responsive-app .table-responsive {
    max-height: min(58vh, 500px);
  }
}

@media (max-width: 767.98px) {
  .fp-responsive-app .content-wrapper,
  .fp-responsive-app .main-footer,
  .fp-responsive-app .main-header {
    margin-left: 0 !important;
  }

  .fp-responsive-app .content-header {
    padding: .75rem .25rem .25rem;
  }

  .fp-responsive-app .content {
    padding-right: .25rem;
    padding-left: .25rem;
  }

  .fp-responsive-app .card {
    margin-bottom: .85rem;
    border-radius: 8px;
  }

  .fp-responsive-app .card-body {
    padding: .75rem;
  }

  .fp-responsive-app .row {
    margin-right: -6px;
    margin-left: -6px;
  }

  .fp-responsive-app .row > [class*=col-] {
    padding-right: 6px;
    padding-left: 6px;
  }

  .fp-responsive-app .form-group.row {
    margin-right: 0;
    margin-left: 0;
  }

  .fp-responsive-app .form-group.row > label,
  .fp-responsive-app .form-group.row > [class*=col-] {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .fp-responsive-app .form-group.row > label {
    padding-bottom: .15rem;
  }

  .fp-responsive-app .input-group,
  .fp-responsive-app .btn-group {
    max-width: 100%;
  }

  .fp-responsive-app .input-group > .form-control {
    min-width: 0;
  }

  .fp-responsive-app .table-responsive {
    height: auto !important;
    max-height: 56vh;
    border: 1px solid var(--fp-app-border);
  }

  .fp-responsive-app .table-responsive > .table {
    min-width: 620px;
  }

  .fp-responsive-app .dataTables_wrapper .dataTables_length,
  .fp-responsive-app .dataTables_wrapper .dataTables_filter,
  .fp-responsive-app .dataTables_wrapper .dataTables_info,
  .fp-responsive-app .dataTables_wrapper .dataTables_paginate {
    text-align: left !important;
  }

  .fp-responsive-app .dataTables_wrapper .dataTables_filter label,
  .fp-responsive-app .dataTables_wrapper .dataTables_filter input {
    width: 100%;
    margin-left: 0;
  }

  .fp-responsive-app .dataTables_wrapper .dataTables_paginate .pagination {
    justify-content: flex-start !important;
  }

  .fp-topbar {
    min-height: 50px;
    padding-right: .35rem;
    padding-left: .35rem;
  }

  .fp-topbar-logo-wide {
    display: none;
  }

  .fp-topbar-logo img {
    max-height: 24px;
  }

  .fp-topbar .nav-link {
    min-width: 32px;
    padding-right: .35rem;
    padding-left: .35rem;
  }

  .fp-topbar .dropdown-toggle {
    max-width: 118px;
    padding-right: .45rem;
    padding-left: .45rem;
  }

  .fp-responsive-app .modal-dialog,
  .fp-responsive-app .modal-dialog.modal-lg,
  .fp-responsive-app .modal-dialog.modal-xl {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    margin: .5rem auto;
  }

  .fp-responsive-app .modal-content {
    max-height: calc(100vh - 16px);
    border-radius: 8px;
  }

  .fp-responsive-app .modal-body {
    max-height: calc(100vh - 118px);
  }

  .fp-responsive-app .modal .text-right,
  .fp-responsive-app .modal .modal-footer {
    text-align: left !important;
  }

  .fp-responsive-app .main-footer {
    padding: .65rem .75rem;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .fp-responsive-app .content-header h1,
  .fp-responsive-app .content-header h2,
  .fp-responsive-app .content-header h3,
  .fp-responsive-app .content-header h4 {
    font-size: 1rem;
  }

  .fp-responsive-app .breadcrumb {
    display: none;
  }

  .fp-responsive-app .nav-pills .nav-link {
    padding: .35rem .55rem;
    font-size: .78rem;
  }

  .fp-responsive-app .btn:not(.btn-block) {
    white-space: nowrap;
  }

  .fp-responsive-app .btn-group .btn {
    min-width: 30px;
  }

  .fp-responsive-app .table-responsive > .table {
    min-width: 560px;
  }

  .fp-topbar-logo {
    display: none;
  }

  .fp-topbar-actions {
    gap: 0;
  }

  .fp-topbar .dropdown-toggle {
    max-width: 96px;
  }

  .fp-responsive-app .select2-container {
    width: 100% !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .fp-responsive-app .btn,
  .fp-responsive-app .nav-link,
  .fp-responsive-app .page-link {
    min-height: 36px;
  }
}

/* Modern cash close modal */
.fp-cash-close {
  color: var(--fp-modal-text, #374151);
}

.fp-cash-hero {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem;
  margin-bottom: .9rem;
  color: #ffffff;
  background: #062b4f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}

.fp-cash-hero-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  color: #ffffff;
  background: #14b8a6;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(20, 184, 166, .24);
}

.fp-cash-hero-text {
  min-width: 0;
  flex: 1;
}

.fp-cash-hero-text span,
.fp-cash-hero-text strong,
.fp-cash-hero-text small {
  display: block;
  line-height: 1.25;
}

.fp-cash-hero-text span {
  color: rgba(255,255,255,.74);
  font-size: .76rem;
  font-weight: 700;
}

.fp-cash-hero-text strong {
  margin-top: .15rem;
  color: #ffffff;
  font-size: .96rem;
  font-weight: 800;
}

.fp-cash-hero-text small {
  margin-top: .2rem;
  color: rgba(255,255,255,.68);
  font-size: .75rem;
}

.fp-cash-hero-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .55rem;
  color: #ccfbf1;
  background: rgba(20, 184, 166, .16);
  border: 1px solid rgba(153, 246, 228, .22);
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}

.fp-cash-hero-status i {
  font-size: .45rem;
}

.fp-cash-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-bottom: .85rem;
}

.fp-cash-card {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  padding: .72rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.fp-cash-card-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  color: #0f766e;
  background: rgba(20, 184, 166, .12);
  border-radius: 8px;
}

.fp-cash-card-minus .fp-cash-card-icon {
  color: #b45309;
  background: rgba(245, 158, 11, .14);
}

.fp-cash-card span,
.fp-cash-card strong {
  display: block;
  line-height: 1.2;
}

.fp-cash-card span {
  color: #64748b;
  font-size: .74rem;
  font-weight: 800;
}

.fp-cash-card strong {
  margin-top: .22rem;
  color: #111827;
  font-size: .94rem;
  font-weight: 800;
}

.fp-cash-expected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem;
  margin-bottom: .85rem;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 8px;
}

.fp-cash-expected span,
.fp-cash-expected strong {
  display: block;
  line-height: 1.2;
}

.fp-cash-expected span {
  color: #0f766e;
  font-size: .76rem;
  font-weight: 800;
}

.fp-cash-expected strong {
  margin-top: .2rem;
  color: #083344;
  font-size: 1.3rem;
  font-weight: 900;
}

.fp-cash-expected > i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
}

.fp-cash-entry {
  margin-bottom: .75rem;
}

.fp-cash-entry label {
  color: #334155 !important;
}

.fp-cash-entry .form-control {
  height: 38px;
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
}

.fp-cash-entry small {
  display: block;
  margin-top: .35rem;
  color: #64748b;
  font-size: .75rem;
}

.fp-cash-difference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .85rem;
  margin-bottom: .85rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.fp-cash-difference span,
.fp-cash-difference strong,
.fp-cash-difference small {
  display: block;
  line-height: 1.2;
}

.fp-cash-difference span {
  color: #64748b;
  font-size: .74rem;
  font-weight: 800;
}

.fp-cash-difference strong {
  margin-top: .2rem;
  color: #111827;
  font-size: 1rem;
  font-weight: 900;
}

.fp-cash-difference small {
  padding: .28rem .55rem;
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}

.fp-cash-difference.is-balanced small {
  color: #047857;
  background: #d1fae5;
}

.fp-cash-difference.is-over small {
  color: #0369a1;
  background: #e0f2fe;
}

.fp-cash-difference.is-short small {
  color: #b91c1c;
  background: #fee2e2;
}

.fp-cash-actions {
  position: sticky;
  bottom: -1rem;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin: .85rem -1rem -1rem;
  padding: .75rem 1rem;
  background: var(--fp-modal-surface, #f8fafc);
  border-top: 1px solid var(--fp-modal-border, #e5e7eb);
}

.fp-cash-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

@media (max-width: 575.98px) {
  .fp-cash-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .fp-cash-hero-status {
    margin-left: 53px;
  }

  .fp-cash-summary {
    grid-template-columns: 1fr;
  }

  .fp-cash-difference {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-cash-actions {
    flex-direction: column-reverse;
  }

  .fp-cash-actions .btn {
    justify-content: center;
    width: 100%;
  }
}
/* Modern cash edit close modal */
.fp-cash-edit-hero .fp-cash-hero-icon {
  background: #f59e0b;
  box-shadow: 0 10px 22px rgba(245, 158, 11, .22);
}

.fp-cash-edit-current {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-bottom: .85rem;
}

.fp-cash-edit-current > div {
  padding: .78rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.fp-cash-edit-current span,
.fp-cash-edit-current strong {
  display: block;
  line-height: 1.2;
}

.fp-cash-edit-current span {
  color: #64748b;
  font-size: .74rem;
  font-weight: 800;
}

.fp-cash-edit-current strong {
  margin-top: .22rem;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 900;
}

.fp-cash-admin-key {
  padding: .78rem;
  margin-bottom: .85rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.fp-cash-admin-key label {
  color: #92400e !important;
}

.fp-cash-admin-key small {
  display: block;
  margin-top: .35rem;
  color: #92400e;
  font-size: .75rem;
}

.fp-cash-lock-panel {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem;
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.fp-cash-lock-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  color: #b91c1c;
  background: #ffffff;
  border: 1px solid rgba(185, 28, 28, .16);
  border-radius: 8px;
}

.fp-cash-lock-panel strong,
.fp-cash-lock-panel span {
  display: block;
  line-height: 1.25;
}

.fp-cash-lock-panel strong {
  font-size: .95rem;
  font-weight: 900;
}

.fp-cash-lock-panel span {
  margin-top: .2rem;
  color: #991b1b;
  font-size: .8rem;
}

@media (max-width: 575.98px) {
  .fp-cash-edit-current {
    grid-template-columns: 1fr;
  }
}
/* Dashboard branch sales report */
.fp-dashboard .fp-branch-sales .card-header {
  justify-content: space-between;
  gap: .75rem;
}

.fp-branch-sales-total {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: .25rem .55rem;
  color: #ccfbf1;
  background: rgba(20, 184, 166, .18);
  border: 1px solid rgba(153, 246, 228, .24);
  border-radius: 7px;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.fp-branch-sales-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.fp-branch-sales-item {
  padding: .78rem;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
}

.fp-branch-sales-main {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}

.fp-branch-sales-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 8px;
}

.fp-branch-sales-name {
  min-width: 0;
  flex: 1;
}

.fp-branch-sales-name strong,
.fp-branch-sales-name span,
.fp-branch-sales-amount strong,
.fp-branch-sales-amount span {
  display: block;
  line-height: 1.2;
}

.fp-branch-sales-name strong {
  color: #0f172a;
  font-size: .9rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-branch-sales-name span {
  margin-top: .18rem;
  color: #64748b;
  font-size: .74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-branch-sales-amount {
  text-align: right;
}

.fp-branch-sales-amount strong {
  color: #0f766e;
  font-size: .94rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-branch-sales-amount span {
  margin-top: .18rem;
  color: #475569;
  font-size: .74rem;
  font-weight: 800;
}

.fp-branch-sales-progress {
  height: 7px;
  overflow: hidden;
  margin: .65rem 0;
  background: #e2e8f0;
  border-radius: 999px;
}

.fp-branch-sales-progress span {
  display: block;
  height: 100%;
  min-width: 4px;
  background: #14b8a6;
  border-radius: inherit;
}

.fp-branch-sales-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.fp-branch-sales-breakdown span {
  padding: .28rem .45rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: .72rem;
  font-weight: 700;
}

.fp-branch-sales-breakdown b {
  color: #0f172a;
}

.fp-branch-sales-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 96px;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .fp-branch-sales-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .fp-dashboard .fp-branch-sales .card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-branch-sales-main {
    align-items: flex-start;
  }

  .fp-branch-sales-amount {
    text-align: left;
  }
}
/* Dashboard executive refresh */
.fp-dashboard .container-fluid {
  padding-bottom: 1rem;
}

.fp-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
  padding: 1rem;
  color: #ffffff;
  background: #07192f;
  border: 1px solid rgba(20, 184, 166, .2);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .12);
}

.fp-dashboard-hero-copy span,
.fp-dashboard-hero-copy h2,
.fp-dashboard-hero-copy p {
  display: block;
  margin: 0;
  line-height: 1.2;
}

.fp-dashboard-hero-copy span {
  color: #99f6e4;
  font-size: .78rem;
  font-weight: 800;
}

.fp-dashboard-hero-copy h2 {
  margin-top: .2rem;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
}

.fp-dashboard-hero-copy p {
  margin-top: .25rem;
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
  font-weight: 700;
}

.fp-dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.fp-hero-action {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 34px;
  padding: .45rem .75rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  font-size: .8rem;
  font-weight: 800;
  transition: background-color .16s ease, transform .16s ease, border-color .16s ease;
}

.fp-hero-action:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(153, 246, 228, .34);
  transform: translateY(-1px);
}

.fp-hero-action-primary {
  color: #042f2e;
  background: #5eead4;
  border-color: #5eead4;
}

.fp-hero-action-primary:hover {
  color: #042f2e;
  background: #99f6e4;
}

.fp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .95rem;
}

.fp-kpi-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  padding: .85rem;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.fp-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, .34);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .09);
}

.fp-kpi-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  color: #ffffff;
  background: #0f766e;
  border-radius: 8px;
}

.fp-kpi-card-docs .fp-kpi-icon { background: #2563eb; }
.fp-kpi-card-branch .fp-kpi-icon { background: #7c3aed; }
.fp-kpi-card-buy .fp-kpi-icon { background: #d97706; }

.fp-kpi-content {
  min-width: 0;
}

.fp-kpi-content span,
.fp-kpi-content strong,
.fp-kpi-content small {
  display: block;
  line-height: 1.2;
}

.fp-kpi-content span {
  color: #64748b;
  font-size: .74rem;
  font-weight: 800;
}

.fp-kpi-content strong {
  margin-top: .22rem;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-kpi-content small {
  margin-top: .22rem;
  color: #64748b;
  font-size: .73rem;
  font-weight: 700;
}

.fp-action-grid .fp-quick-card .widget-user-header {
  position: relative;
  min-height: 72px;
}

.fp-action-grid .fp-quick-card .widget-user-header::after {
  content: "";
  position: absolute;
  right: .8rem;
  bottom: .7rem;
  width: 28px;
  height: 3px;
  background: rgba(255, 255, 255, .55);
  border-radius: 999px;
}

.fp-branch-sales-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.fp-branch-sales-toggle:hover {
  color: #0f766e;
  background: #ecfeff;
}

.fp-branch-sales-item .fp-branch-sales-toggle i {
  transition: transform .16s ease;
}

.fp-branch-sales-item.is-open .fp-branch-sales-toggle i {
  transform: rotate(180deg);
}

.fp-branch-sales-item:not(.is-open) .fp-branch-sales-breakdown {
  display: none;
}

.fp-branch-sales-item {
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.fp-branch-sales-item:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, .36);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

.fp-dashboard .data-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .35rem .5rem;
  margin-bottom: .3rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
}

.fp-dashboard .data-label {
  color: #64748b;
  font-weight: 700;
}

.fp-dashboard .data-value {
  color: #0f172a;
  font-weight: 900;
}

@media (max-width: 1199.98px) {
  .fp-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-dashboard-hero-actions,
  .fp-hero-action {
    width: 100%;
  }

  .fp-hero-action {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .fp-kpi-grid {
    grid-template-columns: 1fr;
  }

  .fp-kpi-card {
    align-items: flex-start;
  }

  .fp-dashboard-hero-copy h2 {
    font-size: 1.12rem;
  }
}
/* Dashboard soft analytics */
.fp-soft-dashboard {
  display: grid;
  gap: .85rem;
  margin-bottom: 1rem;
}

.fp-soft-metric-grid,
.fp-soft-analytics-grid,
.fp-soft-bottom-grid {
  display: grid;
  gap: .85rem;
}

.fp-soft-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-soft-analytics-grid {
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
}

.fp-soft-bottom-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr);
}

.fp-soft-card {
  min-width: 0;
  padding: .95rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #dce7f2;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
}

.fp-soft-ring-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: .85rem;
  position: relative;
  overflow: hidden;
}

.fp-soft-ring-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--soft), rgba(255, 255, 255, 0));
  opacity: .62;
  pointer-events: none;
}

.fp-soft-ring,
.fp-soft-card-copy,
.fp-soft-progress {
  position: relative;
  z-index: 1;
}

.fp-soft-ring {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--accent) calc(var(--value) * 1%), rgba(255, 255, 255, .9) 0);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 8px 18px rgba(15, 23, 42, .08);
}

.fp-soft-ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #edf2f7;
}

.fp-soft-ring span {
  position: relative;
  z-index: 1;
  color: #111827;
  font-size: 1rem;
  font-weight: 900;
}

.fp-soft-card-copy span,
.fp-soft-card-copy strong,
.fp-soft-card-copy small,
.fp-soft-section-head span,
.fp-soft-section-head b {
  display: block;
  line-height: 1.2;
}

.fp-soft-card-copy span {
  color: #172554;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-soft-card-copy span i {
  margin-right: .28rem;
  color: var(--accent);
}

.fp-soft-card-copy strong {
  margin-top: .3rem;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-soft-card-copy small {
  margin-top: .24rem;
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
}

.fp-soft-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  margin-top: .1rem;
}

.fp-soft-progress::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  height: 6px;
  background: rgba(255,255,255,.72);
  border-radius: 999px;
}

.fp-soft-progress span {
  grid-column: 1;
  grid-row: 1;
  height: 6px;
  background: var(--accent);
  border-radius: 999px;
}

.fp-soft-progress b {
  color: #172554;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-soft-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}

.fp-soft-section-head span {
  color: #172554;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-soft-section-head b {
  padding: .22rem .5rem;
  color: #0f766e;
  background: #ecfeff;
  border: 1px solid #ccfbf1;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
}

.fp-soft-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.fp-soft-mini-stat {
  min-width: 0;
  padding: .7rem .55rem;
  background: #ffffff;
  border: 1px dashed #dbe4ee;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.fp-soft-mini-stat span,
.fp-soft-mini-stat b,
.fp-soft-mini-stat small {
  display: block;
  line-height: 1.15;
}

.fp-soft-mini-stat span {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
}

.fp-soft-mini-stat b {
  margin-top: .35rem;
  color: #0f172a;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-soft-mini-stat small {
  margin-top: .2rem;
  color: #64748b;
  font-size: .68rem;
  font-weight: 700;
}

.fp-soft-subscriptions {
  min-height: 178px;
}

.fp-soft-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(26px, 1fr));
  align-items: end;
  gap: .7rem;
  min-height: 122px;
  padding: .15rem .3rem 0;
}

.fp-soft-bar {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  gap: .35rem;
  min-width: 0;
  height: 122px;
}

.fp-soft-bar span {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 96px;
}

.fp-soft-bar i {
  display: block;
  width: min(34px, 100%);
  height: var(--height);
  min-height: 14px;
  background: linear-gradient(180deg, #14b8a6 0%, #2563eb 100%);
  border-radius: 8px 8px 3px 3px;
  box-shadow: 0 8px 16px rgba(37, 99, 235, .16);
}

.fp-soft-bar:nth-child(2n) i { background: linear-gradient(180deg, #38bdf8 0%, #1d4ed8 100%); }
.fp-soft-bar:nth-child(3n) i { background: linear-gradient(180deg, #a855f7 0%, #2563eb 100%); }

.fp-soft-bar b {
  max-width: 100%;
  color: #475569;
  font-size: .65rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-soft-chart-wrap {
  position: relative;
  height: 214px;
}

.fp-soft-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.fp-soft-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .28rem;
}

.fp-soft-calendar-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e6eef7;
  border-radius: 7px;
  font-size: .7rem;
  font-weight: 800;
}

.fp-soft-calendar-week {
  margin-bottom: .35rem;
}

.fp-soft-calendar-week span {
  min-height: 20px;
  color: #64748b;
  background: transparent;
  border: 0;
}

.fp-soft-calendar-grid span.is-muted {
  visibility: hidden;
}

.fp-soft-calendar-grid span.is-today {
  color: #ffffff;
  background: #14b8a6;
  border-color: #14b8a6;
  box-shadow: 0 8px 16px rgba(20, 184, 166, .22);
}

.fp-soft-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 96px;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-weight: 800;
}

@media (max-width: 1199.98px) {
  .fp-soft-metric-grid,
  .fp-soft-analytics-grid,
  .fp-soft-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .fp-soft-metric-grid {
    grid-template-columns: 1fr;
  }

  .fp-soft-ring-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .fp-soft-ring {
    width: 68px;
    height: 68px;
  }

  .fp-soft-mini-grid {
    grid-template-columns: 1fr;
  }

  .fp-soft-bars {
    grid-template-columns: repeat(4, minmax(32px, 1fr));
    min-height: 150px;
  }

  .fp-soft-bar {
    height: 118px;
  }
}

@media (max-width: 575.98px) {
  .fp-soft-card {
    padding: .8rem;
  }

  .fp-soft-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .fp-soft-card-copy strong {
    font-size: 1rem;
  }
}


/* Product inventory adjustment modal */
.fp-inventory-modal {
  color: #374151;
}

.fp-inventory-hero {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem;
  margin-bottom: .85rem;
  background: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 8px;
}

.fp-inventory-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  color: #ffffff;
  background: #0f766e;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
}

.fp-inventory-title {
  min-width: 0;
}

.fp-inventory-title span,
.fp-inventory-title strong,
.fp-inventory-title small {
  display: block;
  line-height: 1.18;
}

.fp-inventory-title span {
  color: #0f766e;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-inventory-title strong {
  margin-top: .18rem;
  color: #0f172a;
  font-size: .96rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-inventory-title small {
  margin-top: .2rem;
  color: #64748b;
  font-size: .74rem;
  font-weight: 700;
}

.fp-inventory-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-bottom: .85rem;
}

.fp-inventory-stat {
  min-width: 0;
  padding: .7rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fp-inventory-stat span,
.fp-inventory-stat strong {
  display: block;
  line-height: 1.15;
}

.fp-inventory-stat span {
  color: #64748b;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-inventory-stat strong {
  margin-top: .3rem;
  color: #0f172a;
  font-size: .95rem;
  font-weight: 900;
}

.fp-inventory-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: .75rem;
  align-items: stretch;
  margin-bottom: .85rem;
}

.fp-inventory-field {
  padding: .85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fp-inventory-field label {
  display: block;
  margin-bottom: .35rem;
  color: #334155;
  font-size: .78rem;
  font-weight: 900 !important;
}

.fp-inventory-input {
  font-size: 1rem;
  font-weight: 900;
}

.fp-inventory-field small {
  display: block;
  margin-top: .45rem;
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
}

.fp-inventory-diff {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: .75rem;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fp-inventory-diff span,
.fp-inventory-diff small {
  display: block;
  line-height: 1.15;
}

.fp-inventory-diff span {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 900;
}

.fp-inventory-diff small {
  margin-top: .3rem;
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-inventory-diff.is-over {
  background: #ecfdf5;
  border-color: #99f6e4;
}

.fp-inventory-diff.is-over span,
.fp-inventory-diff.is-over small {
  color: #047857;
}

.fp-inventory-diff.is-short {
  background: #fff7ed;
  border-color: #fed7aa;
}

.fp-inventory-diff.is-short span,
.fp-inventory-diff.is-short small {
  color: #c2410c;
}

.fp-inventory-lot {
  padding: .85rem;
  margin-bottom: .85rem;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
}

.fp-inventory-section-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .6rem;
  color: #172554;
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-inventory-section-title i {
  color: #2563eb;
}

.fp-inventory-warning {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .7rem .8rem;
  color: #475569;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 700;
}

.fp-inventory-warning i {
  margin-top: .12rem;
  color: #0f766e;
}

.fp-inventory-actions {
  margin-top: .85rem !important;
}

@media (max-width: 575.98px) {
  .fp-inventory-stats,
  .fp-inventory-panel {
    grid-template-columns: 1fr;
  }

  .fp-inventory-title strong {
    white-space: normal;
  }
}

/* Product latest movements modal */
.fp-movement-modal {
  color: #374151;
}

.fp-movement-hero {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem;
  margin-bottom: .85rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 100%);
  border: 1px solid #dbeafe;
  border-radius: 8px;
}

.fp-movement-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  color: #ffffff;
  background: #2563eb;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.fp-movement-title {
  min-width: 0;
}

.fp-movement-title span,
.fp-movement-title strong,
.fp-movement-title small {
  display: block;
  line-height: 1.18;
}

.fp-movement-title span {
  color: #0f766e;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-movement-title strong {
  margin-top: .18rem;
  color: #0f172a;
  font-size: .96rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-movement-title small {
  margin-top: .2rem;
  color: #64748b;
  font-size: .74rem;
  font-weight: 700;
}

.fp-movement-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-bottom: .85rem;
}

.fp-movement-stat {
  min-width: 0;
  padding: .7rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fp-movement-stat span,
.fp-movement-stat strong,
.fp-movement-stat small {
  display: block;
  line-height: 1.15;
}

.fp-movement-stat span {
  color: #64748b;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-movement-stat strong {
  margin-top: .28rem;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
}

.fp-movement-stat small {
  margin-top: .22rem;
  color: #64748b;
  font-size: .7rem;
  font-weight: 700;
}

.fp-movement-tabs {
  gap: .35rem;
  padding: .35rem;
  margin-bottom: .85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fp-movement-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 32px;
  padding: .38rem .7rem;
  color: #475569;
  border: 0 !important;
  border-radius: 7px;
  font-size: .78rem;
  font-weight: 900;
}

.fp-movement-tabs .nav-link.active {
  color: #ffffff;
  background: #0f766e;
}

.fp-movement-content {
  min-height: 220px;
}

.fp-movement-table-wrap {
  max-height: 440px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fp-movement-table {
  margin-bottom: 0;
  font-size: .78rem;
}

.fp-movement-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #475569;
  background: #f8fafc;
  border-bottom: 1px solid #dbe4ee;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-movement-table td {
  vertical-align: middle;
  border-top-color: #edf2f7;
}

.fp-movement-table td strong,
.fp-movement-table td small {
  display: block;
  line-height: 1.2;
}

.fp-movement-table td strong {
  color: #0f172a;
  font-weight: 800;
}

.fp-movement-table td small {
  margin-top: .12rem;
  color: #64748b;
  font-size: .68rem;
  font-weight: 700;
}

.fp-movement-date,
.fp-movement-doc {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .18rem .42rem;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.fp-movement-doc {
  color: #0f766e;
  background: #ecfeff;
  border-color: #ccfbf1;
}

.fp-movement-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 150px;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-weight: 800;
}

.fp-movement-empty i {
  color: #0f766e;
}

.fp-movement-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
}

.fp-movement-price-card {
  min-width: 0;
  padding: .7rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fp-movement-price-card span,
.fp-movement-price-card strong,
.fp-movement-price-card b,
.fp-movement-price-card em {
  display: block;
  line-height: 1.18;
}

.fp-movement-price-card span {
  color: #64748b;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-movement-price-card strong {
  margin-top: .35rem;
  color: #0f172a;
  font-weight: 900;
}

.fp-movement-price-card b {
  margin-bottom: .18rem;
  color: #0f766e;
  font-size: .82rem;
}

.fp-movement-price-card em {
  color: #94a3b8;
  font-size: .74rem;
  font-style: normal;
  font-weight: 800;
}

.fp-movement-actions {
  margin-top: .85rem !important;
}

@media (max-width: 767.98px) {
  .fp-movement-stats,
  .fp-movement-price-grid {
    grid-template-columns: 1fr;
  }

  .fp-movement-tabs .nav-link {
    width: 100%;
    justify-content: center;
  }

  .fp-movement-title strong {
    white-space: normal;
  }
}

/* Product barcode modal */
.fp-barcode-modal {
  color: #374151;
}

.fp-barcode-hero {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem;
  margin-bottom: .85rem;
  background: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 8px;
}

.fp-barcode-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  color: #ffffff;
  background: #0f766e;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
}

.fp-barcode-title {
  min-width: 0;
}

.fp-barcode-title span,
.fp-barcode-title strong,
.fp-barcode-title small {
  display: block;
  line-height: 1.18;
}

.fp-barcode-title span {
  color: #0f766e;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-barcode-title strong {
  margin-top: .18rem;
  color: #0f172a;
  font-size: .96rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-barcode-title small {
  margin-top: .2rem;
  color: #64748b;
  font-size: .74rem;
  font-weight: 700;
}

.fp-barcode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-bottom: .85rem;
}

.fp-barcode-card {
  min-width: 0;
  padding: .7rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fp-barcode-card span,
.fp-barcode-card strong,
.fp-barcode-card small {
  display: block;
  line-height: 1.15;
}

.fp-barcode-card span {
  color: #64748b;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-barcode-card strong {
  margin-top: .28rem;
  color: #0f172a;
  font-size: .95rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-barcode-card small {
  margin-top: .22rem;
  color: #64748b;
  font-size: .7rem;
  font-weight: 700;
}

.fp-barcode-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: stretch;
  padding: .85rem;
  margin-bottom: .85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fp-barcode-field label {
  display: block;
  margin-bottom: .35rem;
  color: #334155;
  font-size: .78rem;
  font-weight: 900 !important;
}

.fp-barcode-field small {
  display: block;
  margin-top: .42rem;
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
}

.fp-barcode-stepper {
  display: grid;
  grid-template-columns: 34px minmax(80px, 120px) 34px;
  gap: .35rem;
  align-items: center;
}

.fp-barcode-stepper .btn {
  width: 34px;
  padding-right: 0;
  padding-left: 0;
}

.fp-barcode-stepper input {
  font-weight: 900;
}

.fp-barcode-actionbox {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .45rem;
}

.fp-barcode-actionbox a[aria-disabled="true"] {
  pointer-events: none;
  opacity: .55;
}

.fp-barcode-preview {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
}

.fp-barcode-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .62rem .8rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.fp-barcode-preview-head span,
.fp-barcode-preview-head b {
  color: #172554;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-barcode-preview-head span i {
  color: #0f766e;
  margin-right: .35rem;
}

.fp-barcode-preview-head b {
  color: #0f766e;
}

.fp-barcode-preview iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  background: #f8fafc;
  border: 0;
}

.fp-barcode-empty {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .85rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 800;
}

.fp-barcode-empty i {
  margin-top: .12rem;
  color: #d97706;
}

.fp-barcode-actions {
  margin-top: .85rem !important;
}

@media (max-width: 767.98px) {
  .fp-barcode-grid,
  .fp-barcode-control {
    grid-template-columns: 1fr;
  }

  .fp-barcode-actionbox {
    justify-content: stretch;
  }

  .fp-barcode-actionbox .btn {
    width: 100%;
  }

  .fp-barcode-title strong,
  .fp-barcode-card strong {
    white-space: normal;
  }
}

/* Products module modern page */
.fp-products-header {
  padding: .85rem 0 .35rem;
}

.fp-products-page {
  padding-bottom: 1.25rem;
}

.fp-products-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #071b52 0%, #0f766e 58%, #14b8a6 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(7, 27, 82, .16);
}

.fp-products-hero-muted {
  background: linear-gradient(135deg, #102044 0%, #334155 54%, #0f766e 100%);
}

.fp-products-hero-lotes {
  background: linear-gradient(135deg, #071b52 0%, #0f4c81 52%, #06b6d4 100%);
}

.fp-products-kicker,
.fp-products-branch {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 32px;
  padding: .35rem .65rem;
  color: #ccfbf1;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-products-hero h1 {
  margin: .7rem 0 .25rem;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
}

.fp-products-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  font-weight: 600;
}

.fp-products-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
}

.fp-products-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 38px;
  padding: .55rem .85rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.fp-products-action:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.fp-products-action-primary {
  color: #06323a;
  background: #fff;
  box-shadow: 0 12px 24px rgba(6, 182, 212, .18);
}

.fp-products-action-primary:hover {
  color: #042f2e;
  background: #ecfeff;
}

.fp-products-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin: .95rem 0;
}

.fp-products-stat {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 82px;
  padding: .9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.fp-products-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 9px;
}

.fp-products-stat small {
  display: block;
  margin-bottom: .15rem;
  color: #64748b;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-products-stat strong {
  display: block;
  color: #0f172a;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 900;
}

.fp-products-stat.is-active {
  border-color: rgba(20, 184, 166, .42);
}

.fp-products-stat.is-warning .fp-products-stat-icon {
  color: #a16207;
  background: #fef3c7;
}

.fp-products-stat.is-info .fp-products-stat-icon {
  color: #075985;
  background: #e0f2fe;
}

.fp-products-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .95rem;
  padding: .45rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.fp-products-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 36px;
  padding: .46rem .72rem;
  color: #334155;
  background: transparent;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 900;
}

.fp-products-tabs a:hover,
.fp-products-tabs a.active {
  color: #fff;
  background: #071b52;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(7, 27, 82, .14);
}

.fp-products-alert {
  border: 0;
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.fp-products-table-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
}

.fp-products-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.fp-products-table-head span {
  display: block;
  color: #0f766e;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-products-table-head h2 {
  margin: .16rem 0 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
}

.fp-products-table-head p {
  max-width: 460px;
  margin: 0;
  color: #64748b;
  font-size: .8rem;
  font-weight: 700;
  text-align: right;
}

.fp-products-table-wrap {
  padding: .85rem;
}

.fp-products-table {
  margin-bottom: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

.fp-products-table thead th {
  color: #f8fafc;
  background: #071b52;
  border-color: #071b52 !important;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  vertical-align: middle;
}

.fp-products-table tbody td {
  color: #1e293b;
  border-top: 1px solid #edf2f7;
  font-size: .8rem;
  font-weight: 650;
  vertical-align: middle;
}

.fp-products-table tbody tr:hover td {
  background: #f0fdfa;
}

.fp-stock-pill,
.fp-diff-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 26px;
  padding: .25rem .45rem;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 7px;
  font-size: .78rem;
  font-weight: 900;
}

.fp-stock-pill.is-muted {
  color: #475569;
  background: #e2e8f0;
}

.fp-stock-pill.is-info,
.fp-diff-badge.is-ok {
  color: #075985;
  background: #e0f2fe;
}

.fp-diff-badge.is-warning {
  color: #92400e;
  background: #fef3c7;
}

.fp-diff-badge.is-danger {
  color: #991b1b;
  background: #fee2e2;
}

.fp-products-table-card .dataTables_filter input,
.fp-products-table-card .dataTables_length select {
  min-height: 34px;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: none;
}

.fp-products-table-card .dataTables_filter input:focus,
.fp-products-table-card .dataTables_length select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 .15rem rgba(20, 184, 166, .18);
}

.fp-products-table-card .dataTables_info,
.fp-products-table-card .dataTables_length label,
.fp-products-table-card .dataTables_filter label {
  color: #475569;
  font-size: .78rem;
  font-weight: 800;
}

.fp-products-table-card .page-link {
  color: #071b52;
  border-color: #e2e8f0;
  font-weight: 800;
}

.fp-products-table-card .page-item.active .page-link {
  color: #fff;
  background: #0f766e;
  border-color: #0f766e;
}

@media (max-width: 991.98px) {
  .fp-products-hero,
  .fp-products-table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-products-hero-actions {
    justify-content: flex-start;
  }

  .fp-products-table-head p {
    max-width: none;
    text-align: left;
  }

  .fp-products-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fp-products-hero {
    padding: 1rem;
  }

  .fp-products-hero h1 {
    font-size: 1.35rem;
  }

  .fp-products-branch,
  .fp-products-action,
  .fp-products-tabs a {
    width: 100%;
  }

  .fp-products-stats {
    grid-template-columns: 1fr;
  }

  .fp-products-table-wrap {
    padding: .65rem;
  }
}
/* Product catalog status board */
.fp-catalog-hero {
  background: linear-gradient(135deg, #071b52 0%, #0f766e 52%, #22c55e 100%);
}

.fp-products-stat.is-danger .fp-products-stat-icon {
  color: #991b1b;
  background: #fee2e2;
}

.fp-catalog-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fp-catalog-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  align-items: stretch;
}

.fp-catalog-lane {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
}

.fp-catalog-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.fp-catalog-lane-head > div {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.fp-catalog-lane-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 9px;
}

.fp-catalog-lane-inactive .fp-catalog-lane-icon {
  color: #92400e;
  background: #fef3c7;
}

.fp-catalog-lane-retired .fp-catalog-lane-icon {
  color: #991b1b;
  background: #fee2e2;
}

.fp-catalog-lane-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
}

.fp-catalog-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: .28rem .55rem;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-catalog-search {
  position: relative;
  padding: .85rem 1rem .7rem;
}

.fp-catalog-search i {
  position: absolute;
  left: 1.75rem;
  top: 50%;
  color: #64748b;
  transform: translateY(-42%);
  pointer-events: none;
}

.fp-catalog-search input {
  width: 100%;
  min-height: 40px;
  padding: .55rem .8rem .55rem 2.25rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 750;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.fp-catalog-search input:focus {
  background: #fff;
  border-color: #14b8a6;
  box-shadow: 0 0 0 .15rem rgba(20, 184, 166, .16);
}

.fp-catalog-table-wrap {
  height: 510px;
  overflow: auto;
  padding: 0 1rem 1rem;
}

.fp-catalog-table {
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 .42rem;
}

.fp-catalog-table tr {
  transition: transform .16s ease, box-shadow .16s ease;
}

.fp-catalog-table tr:hover {
  transform: translateY(-1px);
}

.fp-catalog-table td {
  color: #1e293b;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  font-size: .8rem;
  font-weight: 750;
  vertical-align: middle;
}

.fp-catalog-table td:first-child {
  border-left: 1px solid #e2e8f0;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.fp-catalog-table td:last-child {
  border-right: 1px solid #e2e8f0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.fp-catalog-product-name {
  display: block;
  color: #0f172a;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.fp-catalog-table small {
  display: block;
  margin-top: .2rem;
  color: #64748b;
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-catalog-action-cell {
  width: 44px;
  text-align: center;
}

.fp-catalog-action,
.fp-catalog-table .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.fp-catalog-action:hover,
.fp-catalog-table .btn:hover {
  text-decoration: none;
  filter: brightness(.98);
}

.fp-catalog-action.is-pause,
.fp-catalog-table .btn-warning {
  color: #78350f !important;
  background: #fef3c7 !important;
}

.fp-catalog-action.is-activate,
.fp-catalog-table .btn-success {
  color: #065f46 !important;
  background: #d1fae5 !important;
}

.fp-catalog-action.is-retire,
.fp-catalog-table .btn-danger {
  color: #991b1b !important;
  background: #fee2e2 !important;
}

.fp-catalog-empty-row td {
  padding: .85rem !important;
  color: #64748b !important;
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 8px !important;
  text-align: center;
  font-weight: 850;
}

.fp-catalog-empty-row i {
  margin-right: .35rem;
  color: #0f766e;
}

@media (max-width: 1199.98px) {
  .fp-catalog-board {
    grid-template-columns: 1fr;
  }

  .fp-catalog-table-wrap {
    height: 390px;
  }
}

@media (max-width: 575.98px) {
  .fp-catalog-lane-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-catalog-count {
    width: 100%;
  }

  .fp-catalog-search,
  .fp-catalog-table-wrap {
    padding-left: .75rem;
    padding-right: .75rem;
  }
}
/* Product pricing manager */
.fp-pricing-hero {
  background: linear-gradient(135deg, #071b52 0%, #0f4c81 52%, #14b8a6 100%);
}

.fp-pricing-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fp-pricing-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: .95rem;
}

.fp-pricing-insight {
  min-height: 112px;
  padding: .9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.fp-pricing-insight span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .45rem;
  color: #0f766e;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-pricing-insight strong {
  display: block;
  margin-bottom: .25rem;
  color: #0f172a;
  font-size: .98rem;
  font-weight: 900;
}

.fp-pricing-insight p {
  margin: 0;
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
}

.fp-pricing-table-wrap {
  overflow-x: auto;
}

.fp-pricing-table {
  min-width: 1180px;
}

.fp-pricing-table thead th {
  white-space: nowrap;
}

.fp-pricing-product {
  display: block;
  min-width: 210px;
  color: #0f172a;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.fp-pricing-lab {
  display: inline-flex;
  align-items: center;
  max-width: 160px;
  padding: .22rem .42rem;
  color: #075985;
  background: #e0f2fe;
  border-radius: 7px;
  font-size: .72rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.fp-price-money {
  display: inline-flex;
  justify-content: flex-end;
  min-width: 72px;
  color: #0f172a;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.fp-price-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 24px;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 900;
}

.fp-margin-badge,
.fp-variation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 27px;
  padding: .24rem .45rem;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.fp-margin-badge.is-ok,
.fp-variation-badge.is-ok {
  color: #065f46;
  background: #d1fae5;
}

.fp-margin-badge.is-danger,
.fp-variation-badge.is-danger {
  color: #991b1b;
  background: #fee2e2;
}

.fp-variation-badge.is-neutral {
  color: #475569;
  background: #e2e8f0;
}

.fp-pricing-table-card .dataTables_wrapper {
  width: 100%;
}

.fp-pricing-table tbody tr:hover td .fp-price-money {
  color: #0f766e;
}

@media (max-width: 991.98px) {
  .fp-pricing-insights,
  .fp-pricing-stats {
    grid-template-columns: 1fr;
  }

  .fp-pricing-insight {
    min-height: auto;
  }
}
/* Product create/edit modal */
.fp-product-editor {
  color: #0f172a;
}

.fp-product-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #071b52 0%, #0f766e 58%, #14b8a6 100%);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(7, 27, 82, .14);
}

.fp-product-editor-head span {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: #ccfbf1;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-product-editor-head h3 {
  margin: .45rem 0 .18rem;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
}

.fp-product-editor-head p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
  font-weight: 700;
}

.fp-product-digemid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 36px;
  padding: .48rem .72rem;
  color: #06323a;
  background: #fff;
  border: 0;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-product-note {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .85rem;
  padding: .72rem .85rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: 9px;
  font-size: .8rem;
  font-weight: 850;
}

.fp-product-section {
  margin-bottom: .9rem;
  padding: .95rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.fp-product-section-title {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .85rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #e2e8f0;
}

.fp-product-section-title > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 9px;
}

.fp-product-section-title strong {
  display: block;
  color: #0f172a;
  font-size: .95rem;
  font-weight: 900;
}

.fp-product-section-title small {
  display: block;
  margin-top: .1rem;
  color: #64748b;
  font-size: .73rem;
  font-weight: 750;
}

.fp-product-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: .72rem;
}

.fp-product-grid.compact {
  gap: .6rem;
}

.fp-field {
  min-width: 0;
}

.fp-field.span-2 { grid-column: span 2; }
.fp-field.span-3 { grid-column: span 3; }
.fp-field.span-4 { grid-column: span 4; }
.fp-field.span-5 { grid-column: span 5; }
.fp-field.span-6 { grid-column: span 6; }
.fp-field.span-12 { grid-column: span 12; }

.fp-field label {
  display: block;
  margin-bottom: .24rem;
  color: #475569;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-field .form-control,
.fp-field .input-group-text {
  min-height: 34px;
  border-color: #cbd5e1;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 760;
}

.fp-field .input-group .form-control {
  border-radius: 0;
}

.fp-field .input-group-prepend .input-group-text {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.fp-field .input-group-append .input-group-text,
.fp-field .input-group-append .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.fp-field .form-control:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 .15rem rgba(20, 184, 166, .16);
}

.fp-switch-field {
  display: flex;
  align-items: end;
  min-height: 58px;
}

.fp-switch-field .custom-control-label {
  color: #334155;
  font-size: .78rem;
  font-weight: 850;
  text-transform: none;
}

.fp-price-panels {
  display: grid;
  gap: .75rem;
}

.fp-price-panel {
  padding: .75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
}

.fp-price-panel h4 {
  margin: 0 0 .65rem;
  color: #071b52;
  font-size: .86rem;
  font-weight: 900;
}

.fp-product-photo-row {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.fp-product-photo-preview {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  padding: .35rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.fp-product-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.fp-field small {
  display: block;
  margin-top: .35rem;
  color: #64748b;
  font-size: .72rem;
  font-weight: 750;
}

.fp-product-actions {
  position: sticky;
  bottom: -1rem;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: .55rem;
  margin-top: .95rem;
  padding: .75rem 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 34%);
}

.fp-product-actions .btn {
  min-height: 36px;
  padding: .45rem .85rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 900;
}

.fp-product-digemid-search {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  margin-bottom: .8rem;
}

.fp-product-digemid-search label {
  margin: 0;
  color: #475569;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-product-digemid-table {
  max-height: 560px;
  overflow: auto;
}

.fp-product-editor .select2-container {
  width: 100% !important;
}

.fp-product-editor .select2-container .select2-selection--single {
  min-height: 34px;
  border-color: #cbd5e1;
  border-radius: 8px;
}

.fp-product-editor .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 32px;
  color: #0f172a;
  font-size: .8rem;
  font-weight: 760;
}

.fp-product-editor .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 32px;
}

@media (max-width: 991.98px) {
  .fp-product-editor-head,
  .fp-product-photo-row,
  .fp-product-digemid-search {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .fp-product-digemid-btn {
    width: 100%;
  }

  .fp-field.span-2,
  .fp-field.span-3,
  .fp-field.span-4,
  .fp-field.span-5,
  .fp-field.span-6 {
    grid-column: span 6;
  }
}

@media (max-width: 575.98px) {
  .fp-product-grid {
    grid-template-columns: 1fr;
  }

  .fp-field.span-2,
  .fp-field.span-3,
  .fp-field.span-4,
  .fp-field.span-5,
  .fp-field.span-6,
  .fp-field.span-12 {
    grid-column: span 1;
  }

  .fp-product-actions {
    flex-direction: column-reverse;
  }

  .fp-product-actions .btn {
    width: 100%;
  }
}
/* DIGEMID product search modal */
.fp-product-digemid-btn {
  align-items: center;
  gap: .7rem;
  min-height: 46px;
  padding: .55rem .8rem;
  color: #062a4f;
  background: #ffffff;
  border: 1px solid rgba(20, 184, 166, .32);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(6, 27, 82, .12);
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.fp-product-digemid-btn:hover,
.fp-product-digemid-btn:focus {
  color: #061b52;
  background: #f8fffd;
  border-color: #14b8a6;
  box-shadow: 0 14px 30px rgba(6, 27, 82, .16);
  transform: translateY(-1px);
  outline: 0;
}

.fp-product-digemid-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}

.fp-product-digemid-btn-text {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
  line-height: 1.1;
}

.fp-product-digemid-btn-text strong {
  color: #061b52;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: 0;
}

.fp-product-digemid-btn-text small {
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
  white-space: normal;
}

.fp-digemid-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, .28);
}

.fp-digemid-modal .modal-body {
  padding: 1rem;
  background: #f8fafc;
}

.fp-digemid-modal-head {
  align-items: flex-start;
  padding: 1rem 1.15rem;
  color: #ffffff;
  background: linear-gradient(135deg, #061b52 0%, #083b72 58%, #0f766e 100%);
  border-bottom: 0;
}

.fp-digemid-title span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .35rem;
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-digemid-title h5 {
  margin: 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-digemid-title p {
  max-width: 620px;
  margin: .32rem 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 650;
}

.fp-digemid-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  color: #ffffff;
  text-shadow: none;
  background: rgba(255, 255, 255, .12);
  border-radius: 8px;
  opacity: 1;
}

.fp-digemid-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .2);
}

.fp-digemid-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .85rem;
}

.fp-digemid-summary div {
  min-width: 0;
  padding: .75rem .85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #14b8a6;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.fp-digemid-summary span {
  display: block;
  color: #64748b;
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-digemid-summary strong {
  display: block;
  margin-top: .18rem;
  overflow: hidden;
  color: #0f172a;
  font-size: .82rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-product-digemid-search {
  grid-template-columns: minmax(190px, .55fr) minmax(280px, 1fr);
  gap: .9rem;
  padding: .85rem;
  margin-bottom: .9rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.fp-digemid-search-label label {
  margin-bottom: .18rem;
  color: #061b52;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-digemid-search-label small {
  display: block;
  color: #64748b;
  font-size: .72rem;
  font-weight: 750;
}

.fp-digemid-search-box .input-group-text {
  color: #0f766e;
  background: #ecfdf5;
  border-color: #cbd5e1;
  border-radius: 9px 0 0 9px;
}

.fp-digemid-search-box .form-control {
  min-height: 38px;
  color: #0f172a;
  border-color: #cbd5e1;
  border-radius: 0 9px 9px 0;
  font-size: .82rem;
  font-weight: 760;
}

.fp-digemid-search-box .form-control:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 .18rem rgba(20, 184, 166, .14);
}

.fp-product-digemid-table {
  max-height: 58vh;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.fp-digemid-results {
  min-width: 1080px;
  margin-bottom: 0;
}

.fp-digemid-results thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #334155;
  background: #f1f5f9;
  border-bottom: 1px solid #dbe4ee;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-digemid-result-row td {
  vertical-align: middle;
  color: #334155;
  border-top: 1px solid #eef2f7;
  font-size: .76rem;
  font-weight: 700;
}

.fp-digemid-result-row:hover td {
  background: #f8fffd;
}

.fp-digemid-code,
.fp-digemid-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: .18rem .45rem;
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 900;
}

.fp-digemid-chip {
  color: #115e59;
  background: #ccfbf1;
}

.fp-digemid-chip-soft {
  color: #334155;
  background: #f1f5f9;
}

.fp-digemid-name {
  display: block;
  min-width: 210px;
  color: #0f172a;
  font-weight: 950;
}

.fp-digemid-muted {
  color: #64748b;
  font-weight: 760;
}

.fp-digemid-price {
  color: #061b52;
  font-weight: 950;
}

.fp-digemid-empty-row td {
  height: 150px;
  color: #64748b;
  text-align: center;
  background: #ffffff;
}

.fp-digemid-empty-row i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: .45rem;
  color: #0f766e;
  background: #ecfdf5;
  border-radius: 10px;
}

.fp-digemid-empty-row strong,
.fp-digemid-empty-row small {
  display: block;
}

.fp-digemid-empty-row strong {
  color: #0f172a;
  font-size: .88rem;
  font-weight: 950;
}

.fp-digemid-empty-row small {
  margin-top: .12rem;
  color: #64748b;
  font-size: .74rem;
  font-weight: 750;
}

@media (max-width: 767.98px) {
  .fp-digemid-summary,
  .fp-product-digemid-search {
    grid-template-columns: 1fr;
  }

  .fp-digemid-title p {
    display: none;
  }

  .fp-product-digemid-btn {
    justify-content: flex-start;
  }
}
/* Stock establishments modal */
.fp-stock-modal {
  color: #0f172a;
}

.fp-stock-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: .85rem;
  color: #ffffff;
  background: linear-gradient(135deg, #061b52 0%, #083b72 58%, #0f766e 100%);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(6, 27, 82, .22);
}

.fp-stock-hero-main {
  min-width: 0;
}

.fp-stock-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-stock-hero-main h3 {
  margin: .42rem 0 .18rem;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.fp-stock-hero-main p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 700;
}

.fp-stock-total {
  display: flex;
  flex: 0 0 138px;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  padding: .85rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  text-align: right;
}

.fp-stock-total small {
  color: rgba(255, 255, 255, .72);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-stock-total strong {
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 950;
  line-height: 1.05;
}

.fp-stock-total.is-muted strong {
  color: #cbd5e1;
}

.fp-stock-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .85rem;
}

.fp-stock-summary > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: .7rem;
  align-items: center;
  min-width: 0;
  padding: .75rem .85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.fp-stock-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  width: 38px;
  height: 38px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 10px;
}

.fp-stock-summary-icon.is-ok {
  color: #0f766e;
  background: #ccfbf1;
}

.fp-stock-summary-icon.is-info {
  color: #061b52;
  background: #dbeafe;
}

.fp-stock-summary small {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: .66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-stock-summary strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: .94rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-stock-table-wrap {
  max-height: 55vh;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.fp-stock-table {
  min-width: 760px;
  margin-bottom: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

.fp-stock-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #f8fafc;
  background: #071b52;
  border: 0;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-stock-table tbody td {
  vertical-align: middle;
  color: #334155;
  border-top: 1px solid #edf2f7;
  font-size: .78rem;
  font-weight: 760;
}

.fp-stock-table tbody tr:hover td {
  background: #f0fdfa;
}

.fp-stock-branch {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

.fp-stock-branch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #0f766e;
  background: #ecfdf5;
  border-radius: 9px;
}

.fp-stock-branch strong {
  color: #0f172a;
  font-weight: 950;
}

.fp-stock-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 26px;
  padding: .18rem .55rem;
  color: #475569;
  background: #e2e8f0;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 950;
}

.fp-stock-chip.is-ok {
  color: #115e59;
  background: #ccfbf1;
}

.fp-stock-price {
  color: #061b52;
  font-weight: 950;
}

.fp-stock-empty td {
  height: 150px;
  color: #64748b;
  text-align: center;
}

.fp-stock-empty i,
.fp-stock-empty strong,
.fp-stock-empty small {
  display: block;
}

.fp-stock-empty i {
  margin-bottom: .45rem;
  color: #0f766e;
  font-size: 1.2rem;
}

.fp-stock-empty strong {
  color: #0f172a;
  font-size: .88rem;
  font-weight: 950;
}

.fp-stock-empty small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 750;
}

.fp-stock-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: .85rem;
  margin-top: .85rem;
  border-top: 1px solid #e2e8f0;
}

.fp-stock-actions .btn {
  min-height: 36px;
  padding: .42rem .85rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 900;
}

@media (max-width: 767.98px) {
  .fp-stock-hero,
  .fp-stock-summary {
    grid-template-columns: 1fr;
  }

  .fp-stock-hero {
    flex-direction: column;
  }

  .fp-stock-total {
    flex-basis: auto;
    min-height: auto;
    text-align: left;
  }

  .fp-stock-summary {
    display: grid;
  }

  .fp-stock-actions .btn {
    width: 100%;
  }
}
/* Billing pending modal */
.fp-billing-modal {
  color: #0f172a;
}

.fp-billing-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: .85rem;
  color: #ffffff;
  background: linear-gradient(135deg, #061b52 0%, #083b72 58%, #0f766e 100%);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(6, 27, 82, .22);
}

.fp-billing-hero.has-pending {
  background: linear-gradient(135deg, #061b52 0%, #0f4c81 52%, #b45309 100%);
}

.fp-billing-hero-main {
  min-width: 0;
}

.fp-billing-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-billing-hero-main h3 {
  margin: .42rem 0 .18rem;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.fp-billing-hero-main p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 700;
}

.fp-billing-total {
  display: flex;
  flex: 0 0 148px;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: .85rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  text-align: right;
}

.fp-billing-total small,
.fp-billing-total em {
  color: rgba(255, 255, 255, .74);
  font-size: .66rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-billing-total strong {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1.05;
}

.fp-billing-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .85rem;
}

.fp-billing-summary > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: .7rem;
  align-items: center;
  min-width: 0;
  padding: .75rem .85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.fp-billing-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  width: 38px;
  height: 38px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 10px;
}

.fp-billing-summary-icon.is-warning {
  color: #92400e;
  background: #fef3c7;
}

.fp-billing-summary-icon.is-ok {
  color: #0f766e;
  background: #ccfbf1;
}

.fp-billing-summary small {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: .66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-billing-summary strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: .94rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.fp-billing-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: .75rem;
  min-width: 0;
  padding: .85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8;
  border-radius: 11px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fp-billing-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .1);
}

.fp-billing-card.is-success { border-left-color: #0f766e; }
.fp-billing-card.is-warning { border-left-color: #d97706; }
.fp-billing-card.is-danger { border-left-color: #dc2626; }
.fp-billing-card.is-info { border-left-color: #0284c7; }
.fp-billing-card.is-purple { border-left-color: #7c3aed; }

.fp-billing-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 11px;
}

.fp-billing-card.is-success .fp-billing-card-icon {
  color: #0f766e;
  background: #ccfbf1;
}

.fp-billing-card.is-warning .fp-billing-card-icon {
  color: #92400e;
  background: #fef3c7;
}

.fp-billing-card.is-danger .fp-billing-card-icon {
  color: #991b1b;
  background: #fee2e2;
}

.fp-billing-card.is-info .fp-billing-card-icon {
  color: #075985;
  background: #e0f2fe;
}

.fp-billing-card.is-purple .fp-billing-card-icon {
  color: #5b21b6;
  background: #ede9fe;
}

.fp-billing-card-body {
  min-width: 0;
}

.fp-billing-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .7rem;
}

.fp-billing-card-head strong {
  min-width: 0;
  color: #0f172a;
  font-size: .86rem;
  font-weight: 950;
  line-height: 1.2;
}

.fp-billing-card-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 28px;
  padding: .1rem .48rem;
  color: #061b52;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 950;
}

.fp-billing-card.is-empty .fp-billing-card-head span {
  color: #475569;
  background: #e2e8f0;
}

.fp-billing-card p {
  margin: .35rem 0 .65rem;
  color: #64748b;
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.35;
}

.fp-billing-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}

.fp-billing-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .16rem .48rem;
  color: #115e59;
  background: #ccfbf1;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
}

.fp-billing-card.has-value .fp-billing-state {
  color: #92400e;
  background: #fef3c7;
}

.fp-billing-link {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  color: #0f766e;
  font-size: .72rem;
  font-weight: 950;
  white-space: nowrap;
}

.fp-billing-link:hover {
  color: #061b52;
  text-decoration: none;
}

.fp-billing-actions {
  display: flex;
  justify-content: flex-end;
  gap: .55rem;
  padding-top: .85rem;
  margin-top: .85rem;
  border-top: 1px solid #e2e8f0;
}

.fp-billing-actions .btn {
  min-height: 36px;
  padding: .42rem .85rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 900;
}

@media (max-width: 767.98px) {
  .fp-billing-hero {
    flex-direction: column;
  }

  .fp-billing-total {
    flex-basis: auto;
    min-height: auto;
    text-align: left;
  }

  .fp-billing-summary,
  .fp-billing-grid {
    grid-template-columns: 1fr;
  }

  .fp-billing-actions {
    flex-direction: column;
  }

  .fp-billing-actions .btn {
    width: 100%;
  }
}
/* Transactions modal */
.fp-transactions-modal {
  color: #0f172a;
}

.fp-transactions-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: .85rem;
  color: #ffffff;
  background: linear-gradient(135deg, #061b52 0%, #083b72 58%, #0f766e 100%);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(6, 27, 82, .22);
}

.fp-transactions-hero-main {
  min-width: 0;
}

.fp-transactions-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-transactions-hero-main h3 {
  margin: .42rem 0 .18rem;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.fp-transactions-hero-main p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 700;
}

.fp-transactions-total {
  display: flex;
  flex: 0 0 138px;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: .85rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  text-align: right;
}

.fp-transactions-total small,
.fp-transactions-total em {
  color: rgba(255, 255, 255, .74);
  font-size: .66rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-transactions-total strong {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1.05;
}

.fp-transactions-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .85rem;
}

.fp-transactions-summary > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: .7rem;
  align-items: center;
  min-width: 0;
  padding: .75rem .85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.fp-transactions-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  width: 38px;
  height: 38px;
  color: #5b21b6;
  background: #ede9fe;
  border-radius: 10px;
}

.fp-transactions-summary-icon.is-ok {
  color: #0f766e;
  background: #ccfbf1;
}

.fp-transactions-summary-icon.is-info {
  color: #075985;
  background: #e0f2fe;
}

.fp-transactions-summary small {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: .66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-transactions-summary strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: .86rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-transactions-list {
  display: grid;
  gap: .7rem;
  max-height: 55vh;
  overflow: auto;
  padding-right: .25rem;
}

.fp-transaction-item {
  display: grid;
  grid-template-columns: 34px 42px minmax(0, 1fr);
  gap: .7rem;
  min-width: 0;
  padding: .85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8;
  border-radius: 11px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fp-transaction-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .1);
}

.fp-transaction-item.is-yape {
  border-left-color: #7c3aed;
}

.fp-transaction-item.is-plin {
  border-left-color: #0f766e;
}

.fp-transaction-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 9px;
  font-size: .76rem;
  font-weight: 950;
}

.fp-transaction-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 11px;
}

.fp-transaction-item.is-yape .fp-transaction-icon {
  color: #5b21b6;
  background: #ede9fe;
}

.fp-transaction-item.is-plin .fp-transaction-icon {
  color: #0f766e;
  background: #ccfbf1;
}

.fp-transaction-body {
  min-width: 0;
}

.fp-transaction-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .7rem;
}

.fp-transaction-head strong,
.fp-transaction-head span {
  display: block;
}

.fp-transaction-head strong {
  color: #0f172a;
  font-size: .86rem;
  font-weight: 950;
  line-height: 1.2;
}

.fp-transaction-head div > span {
  margin-top: .12rem;
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
}

.fp-transaction-app {
  display: inline-flex !important;
  align-items: center;
  min-height: 24px;
  padding: .14rem .5rem;
  color: #475569;
  background: #e2e8f0;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 950;
  white-space: nowrap;
}

.fp-transaction-app.is-yape {
  color: #5b21b6;
  background: #ede9fe;
}

.fp-transaction-app.is-plin {
  color: #115e59;
  background: #ccfbf1;
}

.fp-transaction-body p {
  margin: .45rem 0 .6rem;
  color: #334155;
  font-size: .78rem;
  font-weight: 740;
  line-height: 1.35;
}

.fp-transaction-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.fp-transaction-meta span {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  min-height: 24px;
  padding: .14rem .5rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 850;
}

.fp-transactions-empty {
  min-height: 170px;
  padding: 1.4rem;
  color: #64748b;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.fp-transactions-empty i,
.fp-transactions-empty strong,
.fp-transactions-empty small {
  display: block;
}

.fp-transactions-empty i {
  margin-bottom: .45rem;
  color: #0f766e;
  font-size: 1.35rem;
}

.fp-transactions-empty strong {
  color: #0f172a;
  font-size: .9rem;
  font-weight: 950;
}

.fp-transactions-empty small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 750;
}

.fp-transactions-actions {
  display: flex;
  justify-content: flex-end;
  gap: .55rem;
  padding-top: .85rem;
  margin-top: .85rem;
  border-top: 1px solid #e2e8f0;
}

.fp-transactions-actions .btn {
  min-height: 36px;
  padding: .42rem .85rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 900;
}

@media (max-width: 767.98px) {
  .fp-transactions-hero {
    flex-direction: column;
  }

  .fp-transactions-total {
    flex-basis: auto;
    min-height: auto;
    text-align: left;
  }

  .fp-transactions-summary {
    grid-template-columns: 1fr;
  }

  .fp-transaction-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .fp-transaction-icon {
    display: none;
  }

  .fp-transaction-head,
  .fp-transactions-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fp-transactions-actions .btn {
    width: 100%;
  }
}
/* Minimum stock modal */
.fp-minstock-modal {
  color: #0f172a;
}

.fp-minstock-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: .85rem;
  color: #ffffff;
  background: linear-gradient(135deg, #061b52 0%, #083b72 58%, #0f766e 100%);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(6, 27, 82, .22);
}

.fp-minstock-hero.has-alerts {
  background: linear-gradient(135deg, #061b52 0%, #0f4c81 52%, #b45309 100%);
}

.fp-minstock-hero-main {
  min-width: 0;
}

.fp-minstock-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-minstock-hero-main h3 {
  margin: .42rem 0 .18rem;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.fp-minstock-hero-main p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 700;
}

.fp-minstock-total {
  display: flex;
  flex: 0 0 138px;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: .85rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  text-align: right;
}

.fp-minstock-total small,
.fp-minstock-total em {
  color: rgba(255, 255, 255, .74);
  font-size: .66rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-minstock-total strong {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1.05;
}

.fp-minstock-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .85rem;
}

.fp-minstock-summary > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: .7rem;
  align-items: center;
  min-width: 0;
  padding: .75rem .85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.fp-minstock-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.fp-minstock-summary-icon.is-danger {
  color: #991b1b;
  background: #fee2e2;
}

.fp-minstock-summary-icon.is-warning {
  color: #92400e;
  background: #fef3c7;
}

.fp-minstock-summary-icon.is-info {
  color: #075985;
  background: #e0f2fe;
}

.fp-minstock-summary small {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: .66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-minstock-summary strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: .94rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-minstock-table-wrap {
  max-height: 55vh;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.fp-minstock-table {
  min-width: 900px;
  margin-bottom: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

.fp-minstock-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #f8fafc;
  background: #071b52;
  border: 0;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-minstock-table tbody td {
  vertical-align: middle;
  color: #334155;
  border-top: 1px solid #edf2f7;
  font-size: .78rem;
  font-weight: 760;
}

.fp-minstock-table tbody tr:hover td {
  background: #f0fdfa;
}

.fp-minstock-index {
  color: #64748b;
  font-weight: 950;
}

.fp-minstock-product {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

.fp-minstock-product > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #0f766e;
  background: #ecfdf5;
  border-radius: 9px;
}

.fp-minstock-product strong,
.fp-minstock-product small {
  display: block;
}

.fp-minstock-product strong {
  color: #0f172a;
  font-weight: 950;
}

.fp-minstock-product small {
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
}

.fp-minstock-number,
.fp-minstock-chip,
.fp-minstock-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 950;
}

.fp-minstock-number {
  min-width: 44px;
  color: #061b52;
  background: #e0f2fe;
}

.fp-minstock-number.is-warning,
.fp-minstock-chip.is-warning,
.fp-minstock-state.is-warning {
  color: #92400e;
  background: #fef3c7;
}

.fp-minstock-number.is-danger,
.fp-minstock-chip.is-danger,
.fp-minstock-state.is-danger {
  color: #991b1b;
  background: #fee2e2;
}

.fp-minstock-chip {
  min-width: 44px;
}

.fp-minstock-progress {
  width: 100%;
  min-width: 130px;
  height: 8px;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 999px;
}

.fp-minstock-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #f59e0b 55%, #14b8a6 100%);
  border-radius: inherit;
}

.fp-minstock-percent {
  display: block;
  margin-top: .2rem;
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
}

.fp-minstock-empty td {
  height: 150px;
  color: #64748b;
  text-align: center;
}

.fp-minstock-empty i,
.fp-minstock-empty strong,
.fp-minstock-empty small {
  display: block;
}

.fp-minstock-empty i {
  margin-bottom: .45rem;
  color: #0f766e;
  font-size: 1.25rem;
}

.fp-minstock-empty strong {
  color: #0f172a;
  font-size: .9rem;
  font-weight: 950;
}

.fp-minstock-empty small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 750;
}

.fp-minstock-actions {
  display: flex;
  justify-content: flex-end;
  gap: .55rem;
  padding-top: .85rem;
  margin-top: .85rem;
  border-top: 1px solid #e2e8f0;
}

.fp-minstock-actions .btn {
  min-height: 36px;
  padding: .42rem .85rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 900;
}

@media (max-width: 767.98px) {
  .fp-minstock-hero {
    flex-direction: column;
  }

  .fp-minstock-total {
    flex-basis: auto;
    min-height: auto;
    text-align: left;
  }

  .fp-minstock-summary {
    grid-template-columns: 1fr;
  }

  .fp-minstock-actions {
    flex-direction: column;
  }

  .fp-minstock-actions .btn {
    width: 100%;
  }
}
/* Stock minimum consultation page */
.fp-stockm-header {
  padding-top: .85rem;
}

.fp-stockm-page {
  padding-bottom: 1.25rem;
}

.fp-stockm-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem;
  color: #ffffff;
  background: linear-gradient(135deg, #061b52 0%, #0f4c81 54%, #0f766e 100%);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(6, 27, 82, .2);
}

.fp-stockm-hero-main {
  min-width: 0;
}

.fp-stockm-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-stockm-hero-main h1 {
  margin: .48rem 0 .2rem;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-stockm-hero-main p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  font-weight: 700;
}

.fp-stockm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

.fp-stockm-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  min-height: 36px;
  padding: .45rem .78rem;
  color: #061b52;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .12);
}

.fp-stockm-action:hover {
  color: #0f766e;
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-stockm-action.is-light {
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
}

.fp-stockm-action.is-light:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .18);
}

.fp-stockm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: .85rem 0;
}

.fp-stockm-stat {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: .7rem;
  align-items: center;
  min-width: 0;
  padding: .85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.fp-stockm-stat > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.fp-stockm-stat small {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: .66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-stockm-stat strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-stockm-stat.is-warning > span {
  color: #92400e;
  background: #fef3c7;
}

.fp-stockm-stat.is-danger > span {
  color: #991b1b;
  background: #fee2e2;
}

.fp-stockm-stat.is-purple > span {
  color: #5b21b6;
  background: #ede9fe;
}

.fp-stockm-stat.is-info > span {
  color: #075985;
  background: #e0f2fe;
}

.fp-stockm-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.fp-stockm-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.fp-stockm-card-head > div > span {
  display: block;
  color: #0f766e;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-stockm-card-head h2 {
  margin: .18rem 0 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-stockm-tabs {
  gap: .4rem;
  justify-content: flex-end;
}

.fp-stockm-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 34px;
  padding: .35rem .62rem;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: .74rem;
  font-weight: 900;
}

.fp-stockm-tabs .nav-link.active,
.fp-stockm-tabs .nav-link:hover {
  color: #ffffff;
  background: #071b52;
  border-color: #071b52;
}

.fp-stockm-tabs b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 .32rem;
  color: #061b52;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: .68rem;
}

.fp-stockm-tabs .nav-link.active b,
.fp-stockm-tabs .nav-link:hover b {
  color: #ffffff;
  background: rgba(255, 255, 255, .18);
}

.fp-stockm-tab-content {
  padding: 1rem;
}

.fp-stockm-section-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem;
  margin-bottom: .75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8;
  border-radius: 10px;
}

.fp-stockm-section-head.is-warning { border-left-color: #d97706; }
.fp-stockm-section-head.is-danger { border-left-color: #dc2626; }
.fp-stockm-section-head.is-purple { border-left-color: #7c3aed; }

.fp-stockm-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 10px;
}

.fp-stockm-section-head.is-warning .fp-stockm-section-icon {
  color: #92400e;
  background: #fef3c7;
}

.fp-stockm-section-head.is-danger .fp-stockm-section-icon {
  color: #991b1b;
  background: #fee2e2;
}

.fp-stockm-section-head.is-purple .fp-stockm-section-icon {
  color: #5b21b6;
  background: #ede9fe;
}

.fp-stockm-section-head > div:not(.fp-stockm-section-icon) {
  min-width: 0;
  flex: 1;
}

.fp-stockm-section-head strong,
.fp-stockm-section-head small {
  display: block;
}

.fp-stockm-section-head strong {
  color: #0f172a;
  font-size: .9rem;
  font-weight: 950;
}

.fp-stockm-section-head small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 760;
}

.fp-stockm-section-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: .18rem .55rem;
  color: #061b52;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 950;
  white-space: nowrap;
}

.fp-stockm-table-wrap {
  max-height: 58vh;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.fp-stockm-table {
  min-width: 920px;
  margin-bottom: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

.fp-stockm-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #f8fafc;
  background: #071b52;
  border: 0;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-stockm-table tbody td {
  vertical-align: middle;
  color: #334155;
  border-top: 1px solid #edf2f7;
  font-size: .78rem;
  font-weight: 760;
}

.fp-stockm-table tbody tr:hover td {
  background: #f0fdfa;
}

.fp-stockm-index {
  color: #64748b;
  font-weight: 950;
}

.fp-stockm-product {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

.fp-stockm-product > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #0f766e;
  background: #ecfdf5;
  border-radius: 9px;
}

.fp-stockm-product strong,
.fp-stockm-product small {
  display: block;
}

.fp-stockm-product strong {
  color: #0f172a;
  font-weight: 950;
}

.fp-stockm-product small {
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
}

.fp-stockm-number,
.fp-stockm-chip,
.fp-stockm-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 950;
}

.fp-stockm-number {
  min-width: 44px;
  color: #061b52;
  background: #e0f2fe;
}

.fp-stockm-number.is-warning,
.fp-stockm-chip.is-warning,
.fp-stockm-state.is-warning {
  color: #92400e;
  background: #fef3c7;
}

.fp-stockm-number.is-danger,
.fp-stockm-chip.is-danger,
.fp-stockm-state.is-danger {
  color: #991b1b;
  background: #fee2e2;
}

.fp-stockm-number.is-purple,
.fp-stockm-chip.is-purple,
.fp-stockm-state.is-purple {
  color: #5b21b6;
  background: #ede9fe;
}

.fp-stockm-progress {
  width: 100%;
  min-width: 130px;
  height: 8px;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 999px;
}

.fp-stockm-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #f59e0b 55%, #14b8a6 100%);
  border-radius: inherit;
}

.fp-stockm-percent {
  display: block;
  margin-top: .2rem;
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
}

.fp-stockm-empty td {
  height: 150px;
  color: #64748b;
  text-align: center;
}

.fp-stockm-empty i,
.fp-stockm-empty strong,
.fp-stockm-empty small {
  display: block;
}

.fp-stockm-empty i {
  margin-bottom: .45rem;
  color: #0f766e;
  font-size: 1.25rem;
}

.fp-stockm-empty strong {
  color: #0f172a;
  font-size: .9rem;
  font-weight: 950;
}

.fp-stockm-empty small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 750;
}

@media (max-width: 991.98px) {
  .fp-stockm-hero,
  .fp-stockm-card-head,
  .fp-stockm-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-stockm-hero-actions,
  .fp-stockm-tabs {
    justify-content: flex-start;
  }

  .fp-stockm-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fp-stockm-hero {
    padding: 1rem;
  }

  .fp-stockm-hero-main h1 {
    font-size: 1.35rem;
  }

  .fp-stockm-stats {
    grid-template-columns: 1fr;
  }

  .fp-stockm-action,
  .fp-stockm-tabs .nav-link {
    width: 100%;
  }
}
/* Expiring products modal */
.fp-expiring-modal {
  color: #0f172a;
}

.fp-expiring-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: .85rem;
  color: #ffffff;
  background: linear-gradient(135deg, #061b52 0%, #083b72 58%, #0f766e 100%);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(6, 27, 82, .22);
}

.fp-expiring-hero.has-alerts {
  background: linear-gradient(135deg, #061b52 0%, #0f4c81 52%, #b45309 100%);
}

.fp-expiring-hero-main {
  min-width: 0;
}

.fp-expiring-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-expiring-hero-main h3 {
  margin: .42rem 0 .18rem;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.fp-expiring-hero-main p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 700;
}

.fp-expiring-total {
  display: flex;
  flex: 0 0 138px;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: .85rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  text-align: right;
}

.fp-expiring-total small,
.fp-expiring-total em {
  color: rgba(255, 255, 255, .74);
  font-size: .66rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-expiring-total strong {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1.05;
}

.fp-expiring-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .85rem;
}

.fp-expiring-summary > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: .7rem;
  align-items: center;
  min-width: 0;
  padding: .75rem .85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.fp-expiring-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.fp-expiring-summary-icon.is-danger {
  color: #991b1b;
  background: #fee2e2;
}

.fp-expiring-summary-icon.is-warning {
  color: #92400e;
  background: #fef3c7;
}

.fp-expiring-summary-icon.is-info {
  color: #075985;
  background: #e0f2fe;
}

.fp-expiring-summary small {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: .66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-expiring-summary strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: .94rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-expiring-table-wrap {
  max-height: 55vh;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.fp-expiring-table {
  min-width: 920px;
  margin-bottom: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

.fp-expiring-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #f8fafc;
  background: #071b52;
  border: 0;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-expiring-table tbody td {
  vertical-align: middle;
  color: #334155;
  border-top: 1px solid #edf2f7;
  font-size: .78rem;
  font-weight: 760;
}

.fp-expiring-table tbody tr:hover td {
  background: #f0fdfa;
}

.fp-expiring-index {
  color: #64748b;
  font-weight: 950;
}

.fp-expiring-product {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

.fp-expiring-product > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #0f766e;
  background: #ecfdf5;
  border-radius: 9px;
}

.fp-expiring-product strong,
.fp-expiring-product small {
  display: block;
}

.fp-expiring-product strong {
  color: #0f172a;
  font-weight: 950;
}

.fp-expiring-product small {
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
}

.fp-expiring-lot,
.fp-expiring-date,
.fp-expiring-days,
.fp-expiring-stock,
.fp-expiring-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 950;
}

.fp-expiring-lot,
.fp-expiring-stock {
  color: #061b52;
  background: #e0f2fe;
}

.fp-expiring-date.is-ok,
.fp-expiring-days.is-ok,
.fp-expiring-state.is-ok {
  color: #115e59;
  background: #ccfbf1;
}

.fp-expiring-date.is-warning,
.fp-expiring-days.is-warning,
.fp-expiring-state.is-warning {
  color: #92400e;
  background: #fef3c7;
}

.fp-expiring-date.is-danger,
.fp-expiring-days.is-danger,
.fp-expiring-state.is-danger,
.fp-expiring-date.is-expired,
.fp-expiring-days.is-expired,
.fp-expiring-state.is-expired {
  color: #991b1b;
  background: #fee2e2;
}

.fp-expiring-empty td {
  height: 150px;
  color: #64748b;
  text-align: center;
}

.fp-expiring-empty i,
.fp-expiring-empty strong,
.fp-expiring-empty small {
  display: block;
}

.fp-expiring-empty i {
  margin-bottom: .45rem;
  color: #0f766e;
  font-size: 1.25rem;
}

.fp-expiring-empty strong {
  color: #0f172a;
  font-size: .9rem;
  font-weight: 950;
}

.fp-expiring-empty small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 750;
}

.fp-expiring-actions {
  display: flex;
  justify-content: flex-end;
  gap: .55rem;
  padding-top: .85rem;
  margin-top: .85rem;
  border-top: 1px solid #e2e8f0;
}

.fp-expiring-actions .btn {
  min-height: 36px;
  padding: .42rem .85rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 900;
}

@media (max-width: 767.98px) {
  .fp-expiring-hero {
    flex-direction: column;
  }

  .fp-expiring-total {
    flex-basis: auto;
    min-height: auto;
    text-align: left;
  }

  .fp-expiring-summary {
    grid-template-columns: 1fr;
  }

  .fp-expiring-actions {
    flex-direction: column;
  }

  .fp-expiring-actions .btn {
    width: 100%;
  }
}
/* Stock valuation consultation page */
.fp-stockv-header {
  padding-top: .85rem;
}

.fp-stockv-page {
  padding-bottom: 1.25rem;
}

.fp-stockv-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem;
  color: #ffffff;
  background: linear-gradient(135deg, #061b52 0%, #0f4c81 54%, #0f766e 100%);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(6, 27, 82, .2);
}

.fp-stockv-hero-main {
  min-width: 0;
}

.fp-stockv-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-stockv-hero-main h1 {
  margin: .48rem 0 .2rem;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-stockv-hero-main p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  font-weight: 700;
}

.fp-stockv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

.fp-stockv-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  min-height: 36px;
  padding: .45rem .78rem;
  color: #061b52;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .12);
}

.fp-stockv-action:hover {
  color: #0f766e;
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-stockv-action.is-success {
  color: #ffffff;
  background: rgba(20, 184, 166, .34);
}

.fp-stockv-action.is-success:hover {
  color: #ffffff;
  background: rgba(20, 184, 166, .46);
}

.fp-stockv-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: .85rem 0;
}

.fp-stockv-stat {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: .7rem;
  align-items: center;
  min-width: 0;
  padding: .85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.fp-stockv-stat > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.fp-stockv-stat small {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: .66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-stockv-stat strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-stockv-stat.is-info > span {
  color: #075985;
  background: #e0f2fe;
}

.fp-stockv-stat.is-primary > span {
  color: #061b52;
  background: #dbeafe;
}

.fp-stockv-stat.is-success > span {
  color: #0f766e;
  background: #ccfbf1;
}

.fp-stockv-stat.is-warning > span {
  color: #92400e;
  background: #fef3c7;
}

.fp-stockv-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.fp-stockv-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.fp-stockv-card-head > div > span {
  display: block;
  color: #0f766e;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-stockv-card-head h2 {
  margin: .18rem 0 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-stockv-card-head p {
  max-width: 560px;
  margin: .18rem 0 0;
  color: #64748b;
  font-size: .76rem;
  font-weight: 760;
}

.fp-stockv-tabs {
  gap: .4rem;
  justify-content: flex-end;
}

.fp-stockv-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 34px;
  padding: .35rem .62rem;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: .74rem;
  font-weight: 900;
}

.fp-stockv-tabs .nav-link.active,
.fp-stockv-tabs .nav-link:hover {
  color: #ffffff;
  background: #071b52;
  border-color: #071b52;
}

.fp-stockv-table-panel {
  padding: 1rem;
}

.fp-stockv-table-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .72rem .85rem;
  margin-bottom: .75rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #14b8a6;
  border-radius: 10px;
  font-size: .76rem;
  font-weight: 800;
}

.fp-stockv-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.fp-stockv-table {
  margin-bottom: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

.fp-stockv-table thead th {
  color: #f8fafc;
  background: #071b52;
  border: 0;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-stockv-table tbody td {
  vertical-align: middle;
  color: #334155;
  border-top: 1px solid #edf2f7;
  font-size: .78rem;
  font-weight: 760;
}

.fp-stockv-table tbody tr:hover td {
  background: #f0fdfa;
}

.fp-stockv-product {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

.fp-stockv-product > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #0f766e;
  background: #ecfdf5;
  border-radius: 9px;
}

.fp-stockv-product strong {
  color: #0f172a;
  font-weight: 950;
}

.fp-stockv-lab,
.fp-stockv-muted,
.fp-stockv-money,
.fp-stockv-stock,
.fp-stockv-profit,
.fp-stockv-margin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: .16rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 950;
}

.fp-stockv-lab {
  color: #075985;
  background: #e0f2fe;
}

.fp-stockv-muted,
.fp-stockv-money.is-muted {
  color: #64748b;
  background: #f1f5f9;
}

.fp-stockv-money,
.fp-stockv-stock {
  color: #061b52;
  background: #dbeafe;
}

.fp-stockv-profit {
  color: #115e59;
  background: #ccfbf1;
}

.fp-stockv-margin {
  color: #92400e;
  background: #fef3c7;
}

.fp-stockv-card .dataTables_filter input,
.fp-stockv-card .dataTables_length select {
  min-height: 34px;
  color: #0f172a;
  border-color: #cbd5e1;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 760;
}

.fp-stockv-card .dataTables_filter input:focus,
.fp-stockv-card .dataTables_length select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 .15rem rgba(20, 184, 166, .18);
}

.fp-stockv-card .dataTables_info,
.fp-stockv-card .dataTables_length label,
.fp-stockv-card .dataTables_filter label {
  color: #475569;
  font-size: .78rem;
  font-weight: 800;
}

.fp-stockv-card .page-link {
  color: #071b52;
  border-color: #e2e8f0;
}

.fp-stockv-card .page-item.active .page-link {
  color: #ffffff;
  background: #0f766e;
  border-color: #0f766e;
}

@media (max-width: 991.98px) {
  .fp-stockv-hero,
  .fp-stockv-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-stockv-hero-actions,
  .fp-stockv-tabs {
    justify-content: flex-start;
  }

  .fp-stockv-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fp-stockv-hero {
    padding: 1rem;
  }

  .fp-stockv-hero-main h1 {
    font-size: 1.35rem;
  }

  .fp-stockv-stats {
    grid-template-columns: 1fr;
  }

  .fp-stockv-action,
  .fp-stockv-tabs .nav-link {
    width: 100%;
  }

  .fp-stockv-table-panel {
    padding: .75rem;
  }
}
/* Expiring stock consultation page */
.fp-pvencer-header {
  padding-top: 12px;
}

.fp-pvencer-page {
  padding-bottom: 22px;
}

.fp-pvencer-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.fp-pvencer-hero-main {
  min-width: 0;
}

.fp-pvencer-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ccfbf1;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-pvencer-hero-main h1 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0;
}

.fp-pvencer-hero-main p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}

.fp-pvencer-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-pvencer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: #ef4444;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fp-pvencer-action:hover {
  color: #ffffff;
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
}

.fp-pvencer-action.is-success {
  background: #16a34a;
  color: #ffffff;
}

.fp-pvencer-action.is-success:hover {
  background: #15803d;
}

.fp-pvencer-action.is-light {
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
}

.fp-pvencer-action.is-light:hover {
  background: rgba(255, 255, 255, .22);
}

.fp-pvencer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.fp-pvencer-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "icon value";
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-pvencer-stat > span {
  grid-area: icon;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: #0f766e;
}

.fp-pvencer-stat small {
  grid-area: label;
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-pvencer-stat strong {
  grid-area: value;
  color: #0f172a;
  font-size: 1.38rem;
  font-weight: 900;
}

.fp-pvencer-stat.is-danger > span { background: #dc2626; }
.fp-pvencer-stat.is-warning > span { background: #d97706; }
.fp-pvencer-stat.is-info > span { background: #0284c7; }
.fp-pvencer-stat.is-primary > span { background: #0f766e; }

.fp-pvencer-card {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.fp-pvencer-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fp-pvencer-card-head > div > span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-pvencer-card-head h2 {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 900;
}

.fp-pvencer-tabs,
.fp-pvencer-range-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-pvencer-range-tabs {
  justify-content: flex-start;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.fp-pvencer-tabs .nav-link,
.fp-pvencer-range-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: .83rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.fp-pvencer-tabs .nav-link.active,
.fp-pvencer-tabs .nav-link:hover,
.fp-pvencer-range-tabs .nav-link.active,
.fp-pvencer-range-tabs .nav-link:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.fp-pvencer-range-tabs b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f766e;
  font-size: .76rem;
}

.fp-pvencer-range-tabs .nav-link.active b,
.fp-pvencer-range-tabs .nav-link:hover b {
  color: #0f172a;
}

.fp-pvencer-tab-content {
  margin-top: 4px;
}

.fp-pvencer-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  border-left: 5px solid #0284c7;
  background: #ffffff;
}

.fp-pvencer-section-head.is-danger { border-left-color: #dc2626; }
.fp-pvencer-section-head.is-warning { border-left-color: #d97706; }
.fp-pvencer-section-head.is-info { border-left-color: #0284c7; }

.fp-pvencer-section-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #e0f2fe;
  color: #0284c7;
}

.fp-pvencer-section-head.is-danger .fp-pvencer-section-icon {
  background: #fee2e2;
  color: #dc2626;
}

.fp-pvencer-section-head.is-warning .fp-pvencer-section-icon {
  background: #fef3c7;
  color: #d97706;
}

.fp-pvencer-section-head > div:not(.fp-pvencer-section-icon) {
  min-width: 0;
  flex: 1 1 auto;
}

.fp-pvencer-section-head strong,
.fp-pvencer-section-head small {
  display: block;
}

.fp-pvencer-section-head strong {
  color: #0f172a;
  font-size: .98rem;
  font-weight: 900;
}

.fp-pvencer-section-head small {
  margin-top: 2px;
  color: #64748b;
  font-size: .82rem;
}

.fp-pvencer-section-head > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: .78rem;
  font-weight: 900;
}

.fp-pvencer-table-wrap {
  max-height: 570px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.fp-pvencer-table {
  margin-bottom: 0;
  color: #0f172a;
}

.fp-pvencer-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 10px;
  border: 0;
  background: #071b4d;
  color: #ffffff;
  font-size: .72rem;
  text-transform: uppercase;
}

.fp-pvencer-table tbody td {
  vertical-align: middle;
  padding: 11px 10px;
  border-top: 1px solid #eef2f7;
  font-size: .84rem;
}

.fp-pvencer-table tbody tr:hover td {
  background: #f8fafc;
}

.fp-pvencer-index {
  width: 42px;
  color: #64748b;
  font-weight: 900;
}

.fp-pvencer-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
}

.fp-pvencer-product > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #ecfdf5;
  color: #0f766e;
}

.fp-pvencer-product strong,
.fp-pvencer-product small {
  display: block;
}

.fp-pvencer-product strong {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.fp-pvencer-product small {
  margin-top: 3px;
  color: #64748b;
  font-size: .75rem;
}

.fp-pvencer-lot,
.fp-pvencer-date,
.fp-pvencer-days,
.fp-pvencer-stock,
.fp-pvencer-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-pvencer-lot,
.fp-pvencer-stock {
  background: #f1f5f9;
  color: #334155;
}

.fp-pvencer-date.is-info,
.fp-pvencer-days.is-info,
.fp-pvencer-state.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-pvencer-date.is-warning,
.fp-pvencer-days.is-warning,
.fp-pvencer-state.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-pvencer-date.is-danger,
.fp-pvencer-days.is-danger,
.fp-pvencer-state.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-pvencer-empty td {
  padding: 38px 16px !important;
  text-align: center;
  background: #f8fafc;
}

.fp-pvencer-empty i,
.fp-pvencer-empty strong,
.fp-pvencer-empty small {
  display: block;
}

.fp-pvencer-empty i {
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 1.7rem;
}

.fp-pvencer-empty strong {
  color: #0f172a;
  font-size: .98rem;
}

.fp-pvencer-empty small {
  margin-top: 3px;
  color: #64748b;
}

@media (max-width: 991.98px) {
  .fp-pvencer-hero,
  .fp-pvencer-card-head,
  .fp-pvencer-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-pvencer-hero-actions,
  .fp-pvencer-tabs {
    justify-content: flex-start;
  }

  .fp-pvencer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fp-pvencer-hero {
    padding: 16px;
  }

  .fp-pvencer-hero-main h1 {
    font-size: 1.48rem;
  }

  .fp-pvencer-stats {
    grid-template-columns: 1fr;
  }

  .fp-pvencer-action,
  .fp-pvencer-tabs .nav-link,
  .fp-pvencer-range-tabs .nav-link {
    width: 100%;
  }

  .fp-pvencer-card {
    padding: 14px;
  }
}



/* Sales valuation consultation page */
.fp-consulta-header {
  padding-top: 12px;
}

.fp-consulta-page {
  padding-bottom: 22px;
}

.fp-consulta-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.fp-consulta-hero-main {
  min-width: 0;
}

.fp-consulta-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ccfbf1;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-consulta-hero-main h1 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0;
}

.fp-consulta-hero-main p {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}

.fp-consulta-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-consulta-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: #ef4444;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fp-consulta-action:hover {
  color: #ffffff;
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
}

.fp-consulta-action.is-success {
  background: #16a34a;
  color: #ffffff;
}

.fp-consulta-action.is-success:hover {
  background: #15803d;
}

.fp-consulta-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.fp-consulta-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "icon value";
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-consulta-stat > span {
  grid-area: icon;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: #0f766e;
}

.fp-consulta-stat small {
  grid-area: label;
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-consulta-stat strong {
  grid-area: value;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 900;
}

.fp-consulta-stat.is-primary > span { background: #0f766e; }
.fp-consulta-stat.is-info > span { background: #0284c7; }
.fp-consulta-stat.is-success > span { background: #16a34a; }
.fp-consulta-stat.is-warning > span { background: #d97706; }
.fp-consulta-stat.is-danger > span { background: #dc2626; }

.fp-consulta-card {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.fp-consulta-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fp-consulta-card-head > div > span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-consulta-card-head h2 {
  margin: 8px 0 2px;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 900;
}

.fp-consulta-card-head p {
  margin: 0;
  color: #64748b;
  font-size: .84rem;
  font-weight: 700;
}

.fp-consulta-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-consulta-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: .83rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.fp-consulta-tabs .nav-link.active,
.fp-consulta-tabs .nav-link:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.fp-consulta-filter {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.fp-consulta-form {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) minmax(190px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.fp-consulta-form label {
  display: block;
  margin: 0;
}

.fp-consulta-form label span {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-consulta-form .form-control {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  color: #0f172a;
  font-size: .88rem;
  box-shadow: none;
}

.fp-consulta-form .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-consulta-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 12px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .18);
}

.fp-consulta-submit:hover {
  background: #115e59;
  color: #ffffff;
}

.fp-consulta-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.fp-consulta-summary > div {
  padding: 13px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.fp-consulta-summary small,
.fp-consulta-summary strong {
  display: block;
}

.fp-consulta-summary small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-consulta-summary strong {
  margin-top: 3px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
}

.fp-consulta-table-wrap {
  max-height: 560px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.fp-consulta-table {
  margin-bottom: 0;
  color: #0f172a;
}

.fp-consulta-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 10px;
  border: 0;
  background: #071b4d;
  color: #ffffff;
  font-size: .72rem;
  text-transform: uppercase;
}

.fp-consulta-table tbody td {
  vertical-align: middle;
  padding: 11px 10px;
  border-top: 1px solid #eef2f7;
  font-size: .84rem;
}

.fp-consulta-table tbody tr:hover td {
  background: #f8fafc;
}

.fp-consulta-index {
  width: 42px;
  color: #64748b;
  font-weight: 900;
}

.fp-consulta-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.fp-consulta-product > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #ecfdf5;
  color: #0f766e;
}

.fp-consulta-product strong,
.fp-consulta-product small {
  display: block;
}

.fp-consulta-product strong {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.fp-consulta-product small {
  margin-top: 3px;
  color: #64748b;
  font-size: .75rem;
}

.fp-consulta-type,
.fp-consulta-number,
.fp-consulta-money,
.fp-consulta-profit,
.fp-consulta-margin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-consulta-type.is-primary {
  background: #ecfdf5;
  color: #0f766e;
}

.fp-consulta-type.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-consulta-number,
.fp-consulta-money.is-muted {
  background: #f1f5f9;
  color: #334155;
}

.fp-consulta-money {
  background: #ecfdf5;
  color: #0f766e;
}

.fp-consulta-profit,
.fp-consulta-margin.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-consulta-margin.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-consulta-margin.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-consulta-empty td {
  padding: 38px 16px !important;
  text-align: center;
  background: #f8fafc;
}

.fp-consulta-empty i,
.fp-consulta-empty strong,
.fp-consulta-empty small {
  display: block;
}

.fp-consulta-empty i {
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 1.7rem;
}

.fp-consulta-empty strong {
  color: #0f172a;
  font-size: .98rem;
}

.fp-consulta-empty small {
  margin-top: 3px;
  color: #64748b;
}

@media (max-width: 991.98px) {
  .fp-consulta-hero,
  .fp-consulta-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-consulta-hero-actions,
  .fp-consulta-tabs {
    justify-content: flex-start;
  }

  .fp-consulta-stats,
  .fp-consulta-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-consulta-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fp-consulta-hero {
    padding: 16px;
  }

  .fp-consulta-hero-main h1 {
    font-size: 1.48rem;
  }

  .fp-consulta-stats,
  .fp-consulta-summary,
  .fp-consulta-form {
    grid-template-columns: 1fr;
  }

  .fp-consulta-action,
  .fp-consulta-tabs .nav-link,
  .fp-consulta-submit {
    width: 100%;
  }

  .fp-consulta-card {
    padding: 14px;
  }
}

/* Payments and receivables pages */
.fp-cobros-header {
  padding-top: 12px;
}

.fp-cobros-page {
  padding-bottom: 22px;
}

.fp-cobros-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.fp-cobros-hero-main {
  min-width: 0;
}

.fp-cobros-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ccfbf1;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-cobros-hero-main h1 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0;
}

.fp-cobros-hero-main p {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}

.fp-cobros-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-cobros-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: #0f766e;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fp-cobros-action:hover {
  color: #ffffff;
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
}

.fp-cobros-action.is-success {
  background: #16a34a;
}

.fp-cobros-action.is-success:hover {
  background: #15803d;
}

.fp-cobros-action.is-light {
  background: rgba(255, 255, 255, .14);
}

.fp-cobros-action.is-light:hover {
  background: rgba(255, 255, 255, .22);
}

.fp-cobros-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.fp-cobros-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "icon value";
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-cobros-stat > span {
  grid-area: icon;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: #0f766e;
}

.fp-cobros-stat small {
  grid-area: label;
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-cobros-stat strong {
  grid-area: value;
  color: #0f172a;
  font-size: 1.16rem;
  font-weight: 900;
}

.fp-cobros-stat.is-primary > span { background: #0f766e; }
.fp-cobros-stat.is-info > span { background: #0284c7; }
.fp-cobros-stat.is-success > span { background: #16a34a; }
.fp-cobros-stat.is-warning > span { background: #d97706; }
.fp-cobros-stat.is-danger > span { background: #dc2626; }

.fp-cobros-card {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.fp-cobros-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fp-cobros-card-head > div > span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-cobros-card-head h2 {
  margin: 8px 0 2px;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 900;
}

.fp-cobros-card-head p {
  margin: 0;
  color: #64748b;
  font-size: .84rem;
  font-weight: 700;
}

.fp-cobros-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-cobros-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: .83rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.fp-cobros-tabs .nav-link.active,
.fp-cobros-tabs .nav-link:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.fp-cobros-filter {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.fp-cobros-form {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) auto;
  gap: 12px;
  align-items: end;
}

.fp-cobros-form label {
  display: block;
  margin: 0;
}

.fp-cobros-form label span {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-cobros-form .form-control {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  color: #0f172a;
  font-size: .88rem;
  box-shadow: none;
}

.fp-cobros-form .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-cobros-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 12px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .18);
}

.fp-cobros-submit:hover {
  background: #115e59;
  color: #ffffff;
}

.fp-cobros-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.fp-cobros-summary > div {
  padding: 13px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.fp-cobros-summary small,
.fp-cobros-summary strong {
  display: block;
}

.fp-cobros-summary small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-cobros-summary strong {
  margin-top: 3px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
}

.fp-cobros-alert {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.fp-cobros-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.fp-cobros-table {
  margin-bottom: 0 !important;
  color: #0f172a;
}

.fp-cobros-table thead th {
  padding: 12px 10px;
  border: 0;
  background: #071b4d;
  color: #ffffff;
  font-size: .72rem;
  text-transform: uppercase;
}

.fp-cobros-table tbody td {
  vertical-align: middle;
  padding: 11px 10px;
  border-top: 1px solid #eef2f7;
  font-size: .84rem;
}

.fp-cobros-table tbody tr:hover td {
  background: #f8fafc;
}

.fp-cobros-index {
  width: 42px;
  color: #64748b;
  font-weight: 900;
}

.fp-cobros-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
}

.fp-cobros-person > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #ecfdf5;
  color: #0f766e;
}

.fp-cobros-person strong,
.fp-cobros-person small,
.fp-cobros-due {
  display: block;
}

.fp-cobros-person strong {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.fp-cobros-person small,
.fp-cobros-due {
  margin-top: 3px;
  color: #64748b;
  font-size: .75rem;
}

.fp-cobros-date,
.fp-cobros-doc,
.fp-cobros-money,
.fp-cobros-method,
.fp-cobros-type,
.fp-cobros-balance,
.fp-cobros-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-cobros-date,
.fp-cobros-method,
.fp-cobros-money.is-muted {
  background: #f1f5f9;
  color: #334155;
}

.fp-cobros-doc {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-cobros-money {
  background: #ecfdf5;
  color: #0f766e;
}

.fp-cobros-balance {
  background: #fef3c7;
  color: #92400e;
}

.fp-cobros-type.is-primary {
  background: #ecfdf5;
  color: #0f766e;
}

.fp-cobros-type.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-cobros-state.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-cobros-state.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-cobros-state.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-cobros-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 118, 110, .18);
}

.fp-cobros-icon-btn:hover {
  color: #ffffff;
  background: #115e59;
}

.fp-cobros-empty td {
  padding: 38px 16px !important;
  text-align: center;
  background: #f8fafc;
}

.fp-cobros-empty i,
.fp-cobros-empty strong,
.fp-cobros-empty small {
  display: block;
}

.fp-cobros-empty i {
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 1.7rem;
}

.fp-cobros-empty strong {
  color: #0f172a;
  font-size: .98rem;
}

.fp-cobros-empty small {
  margin-top: 3px;
  color: #64748b;
}

.fp-cobros-card .dataTables_filter input,
.fp-cobros-card .dataTables_length select {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  color: #0f172a;
  box-shadow: none;
}

.fp-cobros-card .dataTables_info,
.fp-cobros-card .dataTables_length label,
.fp-cobros-card .dataTables_filter label {
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
}

.fp-cobros-card .page-link {
  color: #0f766e;
  border-color: #e5e7eb;
}

.fp-cobros-card .page-item.active .page-link {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .fp-cobros-hero,
  .fp-cobros-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-cobros-hero-actions,
  .fp-cobros-tabs {
    justify-content: flex-start;
  }

  .fp-cobros-stats,
  .fp-cobros-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-cobros-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fp-cobros-hero {
    padding: 16px;
  }

  .fp-cobros-hero-main h1 {
    font-size: 1.48rem;
  }

  .fp-cobros-stats,
  .fp-cobros-summary,
  .fp-cobros-form {
    grid-template-columns: 1fr;
  }

  .fp-cobros-action,
  .fp-cobros-tabs .nav-link,
  .fp-cobros-submit {
    width: 100%;
  }

  .fp-cobros-card {
    padding: 14px;
  }
}

.fp-cobros-empty-panel {
  margin-bottom: 14px;
  padding: 30px 16px;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  text-align: center;
}

.fp-cobros-empty-panel i,
.fp-cobros-empty-panel strong,
.fp-cobros-empty-panel small {
  display: block;
}

.fp-cobros-empty-panel i {
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 1.7rem;
}

.fp-cobros-empty-panel strong {
  color: #0f172a;
  font-size: .98rem;
}

.fp-cobros-empty-panel small {
  margin-top: 3px;
  color: #64748b;
}

/* Sales valuation by document page */
.fp-ventad-header {
  padding-top: 12px;
}

.fp-ventad-page {
  padding-bottom: 22px;
}

.fp-ventad-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.fp-ventad-hero-main {
  min-width: 0;
}

.fp-ventad-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ccfbf1;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-ventad-hero-main h1 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0;
}

.fp-ventad-hero-main p {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}

.fp-ventad-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-ventad-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: #ef4444;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fp-ventad-action:hover {
  color: #ffffff;
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
}

.fp-ventad-action.is-success {
  background: #16a34a;
}

.fp-ventad-action.is-success:hover {
  background: #15803d;
}

.fp-ventad-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.fp-ventad-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "icon value";
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-ventad-stat > span {
  grid-area: icon;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: #0f766e;
}

.fp-ventad-stat small {
  grid-area: label;
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-ventad-stat strong {
  grid-area: value;
  color: #0f172a;
  font-size: 1.16rem;
  font-weight: 900;
}

.fp-ventad-stat.is-primary > span { background: #0f766e; }
.fp-ventad-stat.is-info > span { background: #0284c7; }
.fp-ventad-stat.is-success > span { background: #16a34a; }
.fp-ventad-stat.is-warning > span { background: #d97706; }
.fp-ventad-stat.is-danger > span { background: #dc2626; }

.fp-ventad-card {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.fp-ventad-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fp-ventad-card-head > div > span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-ventad-card-head h2 {
  margin: 8px 0 2px;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 900;
}

.fp-ventad-card-head p {
  margin: 0;
  color: #64748b;
  font-size: .84rem;
  font-weight: 700;
}

.fp-ventad-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-ventad-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: .83rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.fp-ventad-tabs .nav-link.active,
.fp-ventad-tabs .nav-link:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.fp-ventad-filter {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.fp-ventad-form {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) auto;
  gap: 12px;
  align-items: end;
}

.fp-ventad-form label {
  display: block;
  margin: 0;
}

.fp-ventad-form label span {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-ventad-form .form-control {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  color: #0f172a;
  font-size: .88rem;
  box-shadow: none;
}

.fp-ventad-form .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-ventad-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 12px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .18);
}

.fp-ventad-submit:hover {
  background: #115e59;
  color: #ffffff;
}

.fp-ventad-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.fp-ventad-summary > div {
  padding: 13px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.fp-ventad-summary small,
.fp-ventad-summary strong {
  display: block;
}

.fp-ventad-summary small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-ventad-summary strong {
  margin-top: 3px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
}

.fp-ventad-table-wrap {
  max-height: 560px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.fp-ventad-table {
  margin-bottom: 0;
  color: #0f172a;
}

.fp-ventad-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 10px;
  border: 0;
  background: #071b4d;
  color: #ffffff;
  font-size: .72rem;
  text-transform: uppercase;
}

.fp-ventad-table tbody td {
  vertical-align: middle;
  padding: 11px 10px;
  border-top: 1px solid #eef2f7;
  font-size: .84rem;
}

.fp-ventad-table tbody tr:hover td {
  background: #f8fafc;
}

.fp-ventad-index {
  width: 42px;
  color: #64748b;
  font-weight: 900;
}

.fp-ventad-doc-block,
.fp-ventad-client {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.fp-ventad-doc-block > span,
.fp-ventad-client > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #ecfdf5;
  color: #0f766e;
}

.fp-ventad-client > span {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-ventad-doc-block strong,
.fp-ventad-doc-block small,
.fp-ventad-client strong,
.fp-ventad-client small {
  display: block;
}

.fp-ventad-doc-block strong,
.fp-ventad-client strong {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.fp-ventad-doc-block small,
.fp-ventad-client small {
  margin-top: 3px;
  color: #64748b;
  font-size: .75rem;
}

.fp-ventad-date,
.fp-ventad-type,
.fp-ventad-money,
.fp-ventad-profit,
.fp-ventad-margin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-ventad-date,
.fp-ventad-money.is-muted {
  background: #f1f5f9;
  color: #334155;
}

.fp-ventad-type.is-primary {
  background: #ecfdf5;
  color: #0f766e;
}

.fp-ventad-type.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-ventad-type.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-ventad-type.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-ventad-money {
  background: #ecfdf5;
  color: #0f766e;
}

.fp-ventad-profit,
.fp-ventad-margin.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-ventad-money.is-negative,
.fp-ventad-profit.is-negative {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-ventad-margin.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-ventad-margin.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-ventad-empty td {
  padding: 38px 16px !important;
  text-align: center;
  background: #f8fafc;
}

.fp-ventad-empty i,
.fp-ventad-empty strong,
.fp-ventad-empty small {
  display: block;
}

.fp-ventad-empty i {
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 1.7rem;
}

.fp-ventad-empty strong {
  color: #0f172a;
  font-size: .98rem;
}

.fp-ventad-empty small {
  margin-top: 3px;
  color: #64748b;
}

@media (max-width: 991.98px) {
  .fp-ventad-hero,
  .fp-ventad-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-ventad-hero-actions,
  .fp-ventad-tabs {
    justify-content: flex-start;
  }

  .fp-ventad-stats,
  .fp-ventad-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-ventad-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fp-ventad-hero {
    padding: 16px;
  }

  .fp-ventad-hero-main h1 {
    font-size: 1.48rem;
  }

  .fp-ventad-stats,
  .fp-ventad-summary,
  .fp-ventad-form {
    grid-template-columns: 1fr;
  }

  .fp-ventad-action,
  .fp-ventad-tabs .nav-link,
  .fp-ventad-submit {
    width: 100%;
  }

  .fp-ventad-card {
    padding: 14px;
  }
}

/* Low rotation consultation page */
.fp-rotacion-header {
  padding-top: 12px;
}

.fp-rotacion-page {
  padding-bottom: 22px;
}

.fp-rotacion-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.fp-rotacion-hero-main {
  min-width: 0;
}

.fp-rotacion-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ccfbf1;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-rotacion-hero-main h1 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0;
}

.fp-rotacion-hero-main p {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}

.fp-rotacion-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-rotacion-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: #0f766e;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fp-rotacion-action:hover {
  color: #ffffff;
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
}

.fp-rotacion-action.is-light {
  background: rgba(255, 255, 255, .14);
}

.fp-rotacion-action.is-light:hover {
  background: rgba(255, 255, 255, .22);
}

.fp-rotacion-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.fp-rotacion-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "icon value";
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-rotacion-stat > span {
  grid-area: icon;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: #0f766e;
}

.fp-rotacion-stat small {
  grid-area: label;
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-rotacion-stat strong {
  grid-area: value;
  color: #0f172a;
  font-size: 1.16rem;
  font-weight: 900;
}

.fp-rotacion-stat.is-primary > span { background: #0f766e; }
.fp-rotacion-stat.is-info > span { background: #0284c7; }
.fp-rotacion-stat.is-success > span { background: #16a34a; }
.fp-rotacion-stat.is-warning > span { background: #d97706; }
.fp-rotacion-stat.is-danger > span { background: #dc2626; }

.fp-rotacion-card {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.fp-rotacion-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fp-rotacion-card-head > div > span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-rotacion-card-head h2 {
  margin: 8px 0 2px;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 900;
}

.fp-rotacion-card-head p {
  margin: 0;
  color: #64748b;
  font-size: .84rem;
  font-weight: 700;
}

.fp-rotacion-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-rotacion-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: .83rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.fp-rotacion-tabs .nav-link.active,
.fp-rotacion-tabs .nav-link:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.fp-rotacion-filter {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.fp-rotacion-form {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) auto;
  gap: 12px;
  align-items: end;
}

.fp-rotacion-form label {
  display: block;
  margin: 0;
}

.fp-rotacion-form label span {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-rotacion-form .form-control {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  color: #0f172a;
  font-size: .88rem;
  box-shadow: none;
}

.fp-rotacion-form .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-rotacion-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 12px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .18);
}

.fp-rotacion-submit:hover {
  background: #115e59;
  color: #ffffff;
}

.fp-rotacion-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.fp-rotacion-summary > div {
  padding: 13px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.fp-rotacion-summary small,
.fp-rotacion-summary strong {
  display: block;
}

.fp-rotacion-summary small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-rotacion-summary strong {
  margin-top: 3px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
}

.fp-rotacion-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.fp-rotacion-table {
  margin-bottom: 0 !important;
  color: #0f172a;
}

.fp-rotacion-table thead th {
  padding: 12px 10px;
  border: 0;
  background: #071b4d;
  color: #ffffff;
  font-size: .72rem;
  text-transform: uppercase;
}

.fp-rotacion-table tbody td {
  vertical-align: middle;
  padding: 11px 10px;
  border-top: 1px solid #eef2f7;
  font-size: .84rem;
}

.fp-rotacion-table tbody tr:hover td {
  background: #f8fafc;
}

.fp-rotacion-index {
  color: #64748b;
  font-weight: 900;
}

.fp-rotacion-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.fp-rotacion-product > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #ecfdf5;
  color: #0f766e;
}

.fp-rotacion-product strong,
.fp-rotacion-product small {
  display: block;
}

.fp-rotacion-product strong {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.fp-rotacion-product small {
  margin-top: 3px;
  color: #64748b;
  font-size: .75rem;
}

.fp-rotacion-number,
.fp-rotacion-rate,
.fp-rotacion-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-rotacion-number {
  background: #f1f5f9;
  color: #334155;
}

.fp-rotacion-number.is-success,
.fp-rotacion-rate.is-success,
.fp-rotacion-state.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-rotacion-number.is-warning,
.fp-rotacion-rate.is-warning,
.fp-rotacion-state.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-rotacion-number.is-danger,
.fp-rotacion-rate.is-danger,
.fp-rotacion-state.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-rotacion-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
  min-width: 150px;
}

.fp-rotacion-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #16a34a;
}

.fp-rotacion-progress span.is-warning {
  background: #d97706;
}

.fp-rotacion-progress span.is-danger {
  background: #dc2626;
}

.fp-rotacion-percent {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: .74rem;
  font-weight: 800;
}

.fp-rotacion-empty-panel {
  margin-bottom: 14px;
  padding: 30px 16px;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  text-align: center;
}

.fp-rotacion-empty-panel i,
.fp-rotacion-empty-panel strong,
.fp-rotacion-empty-panel small {
  display: block;
}

.fp-rotacion-empty-panel i {
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 1.7rem;
}

.fp-rotacion-empty-panel strong {
  color: #0f172a;
  font-size: .98rem;
}

.fp-rotacion-empty-panel small {
  margin-top: 3px;
  color: #64748b;
}

.fp-rotacion-card .dataTables_filter input,
.fp-rotacion-card .dataTables_length select {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  color: #0f172a;
  box-shadow: none;
}

.fp-rotacion-card .dataTables_info,
.fp-rotacion-card .dataTables_length label,
.fp-rotacion-card .dataTables_filter label {
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
}

.fp-rotacion-card .page-link {
  color: #0f766e;
  border-color: #e5e7eb;
}

.fp-rotacion-card .page-item.active .page-link {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .fp-rotacion-hero,
  .fp-rotacion-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-rotacion-hero-actions,
  .fp-rotacion-tabs {
    justify-content: flex-start;
  }

  .fp-rotacion-stats,
  .fp-rotacion-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-rotacion-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fp-rotacion-hero {
    padding: 16px;
  }

  .fp-rotacion-hero-main h1 {
    font-size: 1.48rem;
  }

  .fp-rotacion-stats,
  .fp-rotacion-summary,
  .fp-rotacion-form {
    grid-template-columns: 1fr;
  }

  .fp-rotacion-action,
  .fp-rotacion-tabs .nav-link,
  .fp-rotacion-submit {
    width: 100%;
  }

  .fp-rotacion-card {
    padding: 14px;
  }
}

/* Kardex general consultation page */
.fp-kardex-header {
  padding-top: 12px;
}

.fp-kardex-page {
  padding-bottom: 22px;
}

.fp-kardex-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.fp-kardex-hero-main {
  min-width: 0;
}

.fp-kardex-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ccfbf1;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-kardex-hero-main h1 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0;
}

.fp-kardex-hero-main p {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}

.fp-kardex-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-kardex-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: #0f766e;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fp-kardex-action:hover {
  color: #ffffff;
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
}

.fp-kardex-action.is-light {
  background: rgba(255, 255, 255, .14);
}

.fp-kardex-action.is-light:hover {
  background: rgba(255, 255, 255, .22);
}

.fp-kardex-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.fp-kardex-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "icon value";
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-kardex-stat > span {
  grid-area: icon;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: #0f766e;
}

.fp-kardex-stat small {
  grid-area: label;
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-kardex-stat strong {
  grid-area: value;
  color: #0f172a;
  font-size: 1.16rem;
  font-weight: 900;
}

.fp-kardex-stat.is-primary > span { background: #0f766e; }
.fp-kardex-stat.is-success > span { background: #16a34a; }
.fp-kardex-stat.is-danger > span { background: #dc2626; }
.fp-kardex-stat.is-info > span { background: #0284c7; }

.fp-kardex-card {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.fp-kardex-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fp-kardex-card-head > div > span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-kardex-card-head h2 {
  margin: 8px 0 2px;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 900;
}

.fp-kardex-card-head p {
  margin: 0;
  color: #64748b;
  font-size: .84rem;
  font-weight: 700;
}

.fp-kardex-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-kardex-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: .83rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.fp-kardex-tabs .nav-link.active,
.fp-kardex-tabs .nav-link:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.fp-kardex-filter {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.fp-kardex-form {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) auto;
  gap: 12px;
  align-items: end;
}

.fp-kardex-form label {
  display: block;
  margin: 0;
}

.fp-kardex-form label span {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-kardex-form .form-control {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  color: #0f172a;
  font-size: .88rem;
  box-shadow: none;
}

.fp-kardex-form .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-kardex-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 12px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .18);
}

.fp-kardex-submit:hover {
  background: #115e59;
  color: #ffffff;
}

.fp-kardex-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.fp-kardex-summary > div {
  padding: 13px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.fp-kardex-summary small,
.fp-kardex-summary strong {
  display: block;
}

.fp-kardex-summary small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-kardex-summary strong {
  margin-top: 3px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
}

.fp-kardex-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.fp-kardex-table {
  margin-bottom: 0 !important;
  color: #0f172a;
}

.fp-kardex-table thead th {
  padding: 12px 10px;
  border: 0;
  background: #071b4d;
  color: #ffffff;
  font-size: .72rem;
  text-transform: uppercase;
}

.fp-kardex-table tbody td {
  vertical-align: middle;
  padding: 11px 10px;
  border-top: 1px solid #eef2f7;
  font-size: .84rem;
}

.fp-kardex-table tbody tr:hover td {
  background: #f8fafc;
}

.fp-kardex-index {
  color: #64748b;
  font-weight: 900;
}

.fp-kardex-movement {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.fp-kardex-movement > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #f1f5f9;
  color: #334155;
}

.fp-kardex-movement > span.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-kardex-movement > span.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-kardex-movement > span.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-kardex-movement strong,
.fp-kardex-movement small,
.fp-kardex-product strong,
.fp-kardex-product small,
.fp-kardex-subvalue {
  display: block;
}

.fp-kardex-movement strong,
.fp-kardex-product strong {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.fp-kardex-movement small,
.fp-kardex-product small,
.fp-kardex-subvalue {
  margin-top: 3px;
  color: #64748b;
  font-size: .75rem;
}

.fp-kardex-product {
  min-width: 280px;
}

.fp-kardex-qty,
.fp-kardex-money,
.fp-kardex-cost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-kardex-qty {
  background: #f1f5f9;
  color: #334155;
}

.fp-kardex-qty.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-kardex-qty.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-kardex-qty.is-info,
.fp-kardex-cost {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-kardex-money {
  background: #ecfdf5;
  color: #0f766e;
}

.fp-kardex-empty-panel {
  margin-bottom: 14px;
  padding: 30px 16px;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  text-align: center;
}

.fp-kardex-empty-panel i,
.fp-kardex-empty-panel strong,
.fp-kardex-empty-panel small {
  display: block;
}

.fp-kardex-empty-panel i {
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 1.7rem;
}

.fp-kardex-empty-panel strong {
  color: #0f172a;
  font-size: .98rem;
}

.fp-kardex-empty-panel small {
  margin-top: 3px;
  color: #64748b;
}

.fp-kardex-card .dataTables_filter input,
.fp-kardex-card .dataTables_length select {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  color: #0f172a;
  box-shadow: none;
}

.fp-kardex-card .dataTables_info,
.fp-kardex-card .dataTables_length label,
.fp-kardex-card .dataTables_filter label {
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
}

.fp-kardex-card .page-link {
  color: #0f766e;
  border-color: #e5e7eb;
}

.fp-kardex-card .page-item.active .page-link {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .fp-kardex-hero,
  .fp-kardex-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-kardex-hero-actions,
  .fp-kardex-tabs {
    justify-content: flex-start;
  }

  .fp-kardex-stats,
  .fp-kardex-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-kardex-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fp-kardex-hero {
    padding: 16px;
  }

  .fp-kardex-hero-main h1 {
    font-size: 1.48rem;
  }

  .fp-kardex-stats,
  .fp-kardex-summary,
  .fp-kardex-form {
    grid-template-columns: 1fr;
  }

  .fp-kardex-action,
  .fp-kardex-tabs .nav-link,
  .fp-kardex-submit {
    width: 100%;
  }

  .fp-kardex-card {
    padding: 14px;
  }
}

/* Kardex product consultation page */
.fp-kproducto-header {
  padding-top: 12px;
}

.fp-kproducto-page {
  padding-bottom: 22px;
}

.fp-kproducto-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.fp-kproducto-hero-main {
  min-width: 0;
}

.fp-kproducto-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ccfbf1;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-kproducto-hero-main h1 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0;
}

.fp-kproducto-hero-main p {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}

.fp-kproducto-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-kproducto-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: #0f766e;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fp-kproducto-action:hover {
  color: #ffffff;
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
}

.fp-kproducto-action.is-light {
  background: rgba(255, 255, 255, .14);
}

.fp-kproducto-action.is-light:hover {
  background: rgba(255, 255, 255, .22);
}

.fp-kproducto-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.fp-kproducto-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "icon value";
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-kproducto-stat > span {
  grid-area: icon;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: #0f766e;
}

.fp-kproducto-stat small {
  grid-area: label;
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-kproducto-stat strong {
  grid-area: value;
  color: #0f172a;
  font-size: 1.16rem;
  font-weight: 900;
}

.fp-kproducto-stat.is-primary > span { background: #0f766e; }
.fp-kproducto-stat.is-success > span { background: #16a34a; }
.fp-kproducto-stat.is-danger > span { background: #dc2626; }
.fp-kproducto-stat.is-info > span { background: #0284c7; }

.fp-kproducto-card {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.fp-kproducto-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fp-kproducto-card-head > div > span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-kproducto-card-head h2 {
  margin: 8px 0 2px;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 900;
}

.fp-kproducto-card-head p {
  margin: 0;
  color: #64748b;
  font-size: .84rem;
  font-weight: 700;
}

.fp-kproducto-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-kproducto-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: .83rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.fp-kproducto-tabs .nav-link.active,
.fp-kproducto-tabs .nav-link:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.fp-kproducto-filter {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.fp-kproducto-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 190px) minmax(150px, 190px) auto;
  gap: 12px;
  align-items: end;
}

.fp-kproducto-form label {
  display: block;
  margin: 0;
}

.fp-kproducto-form label span {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-kproducto-form .form-control {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  color: #0f172a;
  font-size: .88rem;
  box-shadow: none;
}

.fp-kproducto-form .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-kproducto-search-field {
  position: relative;
}

.fp-kproducto-search {
  position: relative;
}

.fp-kproducto-search > i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #0f766e;
  z-index: 2;
}

.fp-kproducto-search .form-control {
  padding-left: 38px;
}

.fp-kproducto-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 1051;
  max-height: 300px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.fp-kproducto-results dl {
  margin-bottom: 0;
}

.fp-kproducto-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 12px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .18);
}

.fp-kproducto-submit:hover {
  background: #115e59;
  color: #ffffff;
}

.fp-kproducto-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.fp-kproducto-summary > div {
  padding: 13px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.fp-kproducto-summary small,
.fp-kproducto-summary strong {
  display: block;
}

.fp-kproducto-summary small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-kproducto-summary strong {
  margin-top: 3px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
}

.fp-kproducto-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.fp-kproducto-table {
  margin-bottom: 0 !important;
  color: #0f172a;
}

.fp-kproducto-table thead th {
  padding: 12px 10px;
  border: 0;
  background: #071b4d;
  color: #ffffff;
  font-size: .72rem;
  text-transform: uppercase;
}

.fp-kproducto-table tbody td {
  vertical-align: middle;
  padding: 11px 10px;
  border-top: 1px solid #eef2f7;
  font-size: .84rem;
}

.fp-kproducto-table tbody tr:hover td {
  background: #f8fafc;
}

.fp-kproducto-index {
  color: #64748b;
  font-weight: 900;
}

.fp-kproducto-movement {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.fp-kproducto-movement > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #f1f5f9;
  color: #334155;
}

.fp-kproducto-movement > span.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-kproducto-movement > span.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-kproducto-movement > span.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-kproducto-movement strong,
.fp-kproducto-movement small,
.fp-kproducto-detail strong,
.fp-kproducto-detail small,
.fp-kproducto-subvalue {
  display: block;
}

.fp-kproducto-movement strong,
.fp-kproducto-detail strong {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.fp-kproducto-movement small,
.fp-kproducto-detail small,
.fp-kproducto-subvalue {
  margin-top: 3px;
  color: #64748b;
  font-size: .75rem;
}

.fp-kproducto-user,
.fp-kproducto-qty,
.fp-kproducto-money,
.fp-kproducto-cost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-kproducto-user,
.fp-kproducto-qty {
  background: #f1f5f9;
  color: #334155;
}

.fp-kproducto-qty.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-kproducto-qty.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-kproducto-qty.is-info,
.fp-kproducto-cost {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-kproducto-money {
  background: #ecfdf5;
  color: #0f766e;
}

.fp-kproducto-empty-panel {
  margin-bottom: 14px;
  padding: 30px 16px;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  text-align: center;
}

.fp-kproducto-empty-panel i,
.fp-kproducto-empty-panel strong,
.fp-kproducto-empty-panel small {
  display: block;
}

.fp-kproducto-empty-panel i {
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 1.7rem;
}

.fp-kproducto-empty-panel strong {
  color: #0f172a;
  font-size: .98rem;
}

.fp-kproducto-empty-panel small {
  margin-top: 3px;
  color: #64748b;
}

.fp-kproducto-card .dataTables_filter input,
.fp-kproducto-card .dataTables_length select {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  color: #0f172a;
  box-shadow: none;
}

.fp-kproducto-card .dataTables_info,
.fp-kproducto-card .dataTables_length label,
.fp-kproducto-card .dataTables_filter label {
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
}

.fp-kproducto-card .page-link {
  color: #0f766e;
  border-color: #e5e7eb;
}

.fp-kproducto-card .page-item.active .page-link {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .fp-kproducto-hero,
  .fp-kproducto-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-kproducto-hero-actions,
  .fp-kproducto-tabs {
    justify-content: flex-start;
  }

  .fp-kproducto-stats,
  .fp-kproducto-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-kproducto-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-kproducto-search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .fp-kproducto-hero {
    padding: 16px;
  }

  .fp-kproducto-hero-main h1 {
    font-size: 1.48rem;
  }

  .fp-kproducto-stats,
  .fp-kproducto-summary,
  .fp-kproducto-form {
    grid-template-columns: 1fr;
  }

  .fp-kproducto-action,
  .fp-kproducto-tabs .nav-link,
  .fp-kproducto-submit {
    width: 100%;
  }

  .fp-kproducto-card {
    padding: 14px;
  }
}

/* Kardex lot consultation page */
.fp-klote-header { padding-top: 12px; }
.fp-klote-page { padding-bottom: 22px; }
.fp-klote-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%); color: #ffffff; box-shadow: 0 18px 42px rgba(15, 23, 42, .18); }
.fp-klote-hero-main { min-width: 0; }
.fp-klote-hero-main span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #ccfbf1; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.fp-klote-hero-main h1 { margin: 10px 0 6px; color: #ffffff; font-size: 1.85rem; font-weight: 900; letter-spacing: 0; }
.fp-klote-hero-main p { margin: 0; max-width: 780px; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.fp-klote-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.fp-klote-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: #0f766e; color: #ffffff; font-weight: 800; box-shadow: 0 12px 26px rgba(15, 23, 42, .18); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.fp-klote-action:hover { color: #ffffff; background: #115e59; transform: translateY(-1px); box-shadow: 0 16px 32px rgba(15, 23, 42, .22); }
.fp-klote-action.is-light { background: rgba(255, 255, 255, .14); }
.fp-klote-action.is-light:hover { background: rgba(255, 255, 255, .22); }
.fp-klote-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.fp-klote-stat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon label" "icon value"; gap: 2px 12px; align-items: center; min-height: 92px; padding: 16px; border-radius: 16px; background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 14px 32px rgba(15, 23, 42, .08); }
.fp-klote-stat > span { grid-area: icon; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #ffffff; background: #0f766e; }
.fp-klote-stat small { grid-area: label; color: #64748b; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.fp-klote-stat strong { grid-area: value; color: #0f172a; font-size: 1.16rem; font-weight: 900; }
.fp-klote-stat.is-primary > span { background: #0f766e; }
.fp-klote-stat.is-info > span { background: #0284c7; }
.fp-klote-stat.is-success > span { background: #16a34a; }
.fp-klote-stat.is-danger > span { background: #dc2626; }
.fp-klote-card { padding: 18px; border-radius: 18px; background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 18px 44px rgba(15, 23, 42, .08); }
.fp-klote-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fp-klote-card-head > div > span { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.fp-klote-card-head h2 { margin: 8px 0 2px; color: #0f172a; font-size: 1.18rem; font-weight: 900; }
.fp-klote-card-head p { margin: 0; color: #64748b; font-size: .84rem; font-weight: 700; }
.fp-klote-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fp-klote-tabs .nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border-radius: 12px; background: #f1f5f9; color: #334155; font-size: .83rem; font-weight: 800; border: 1px solid transparent; }
.fp-klote-tabs .nav-link.active, .fp-klote-tabs .nav-link:hover { background: #0f766e; color: #ffffff; border-color: #0f766e; }
.fp-klote-filter { margin-bottom: 14px; padding: 14px; border-radius: 16px; background: #f8fafc; border: 1px solid #e5e7eb; }
.fp-klote-form { display: grid; grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 190px) minmax(150px, 190px) auto; gap: 12px; align-items: end; }
.fp-klote-form label { display: block; margin: 0; }
.fp-klote-form label span { display: block; margin-bottom: 5px; color: #475569; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.fp-klote-form .form-control { min-height: 40px; border-radius: 12px; border: 1px solid #dbe3ef; color: #0f172a; font-size: .88rem; box-shadow: none; }
.fp-klote-form .form-control:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.fp-klote-search-field { position: relative; }
.fp-klote-search { position: relative; }
.fp-klote-search > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #0f766e; z-index: 2; }
.fp-klote-search .form-control { padding-left: 38px; }
.fp-klote-results { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1051; max-height: 300px; overflow: auto; border-radius: 14px; border: 1px solid #dbe3ef; background: #ffffff; box-shadow: 0 18px 42px rgba(15, 23, 42, .16); }
.fp-klote-results dl { margin-bottom: 0; }
.fp-klote-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border: 0; border-radius: 12px; background: #0f766e; color: #ffffff; font-weight: 900; box-shadow: 0 12px 26px rgba(15, 118, 110, .18); }
.fp-klote-submit:hover { background: #115e59; color: #ffffff; }
.fp-klote-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.fp-klote-summary > div { padding: 13px 14px; border-radius: 14px; background: #ffffff; border: 1px solid #e5e7eb; }
.fp-klote-summary small, .fp-klote-summary strong { display: block; }
.fp-klote-summary small { color: #64748b; font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.fp-klote-summary strong { margin-top: 3px; color: #0f172a; font-size: 1.05rem; font-weight: 900; }
.fp-klote-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.fp-klote-strip > div { padding: 12px; border-radius: 14px; background: #f8fafc; border: 1px solid #e5e7eb; }
.fp-klote-strip small, .fp-klote-strip strong { display: block; }
.fp-klote-strip small { color: #64748b; font-size: .73rem; font-weight: 900; text-transform: uppercase; }
.fp-klote-strip strong { margin-top: 3px; color: #0f766e; font-size: 1rem; font-weight: 900; }
.fp-klote-table-wrap { border: 1px solid #e5e7eb; border-radius: 16px; background: #ffffff; overflow: hidden; }
.fp-klote-table { margin-bottom: 0 !important; color: #0f172a; }
.fp-klote-table thead th { padding: 12px 10px; border: 0; background: #071b4d; color: #ffffff; font-size: .72rem; text-transform: uppercase; }
.fp-klote-table tbody td { vertical-align: middle; padding: 11px 10px; border-top: 1px solid #eef2f7; font-size: .84rem; }
.fp-klote-table tbody tr:hover td { background: #f8fafc; }
.fp-klote-index { color: #64748b; font-weight: 900; }
.fp-klote-movement { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.fp-klote-movement > span { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 13px; background: #f1f5f9; color: #334155; }
.fp-klote-movement > span.is-success { background: #dcfce7; color: #166534; }
.fp-klote-movement > span.is-danger { background: #fee2e2; color: #b91c1c; }
.fp-klote-movement > span.is-warning { background: #fef3c7; color: #92400e; }
.fp-klote-movement strong, .fp-klote-movement small, .fp-klote-detail strong, .fp-klote-detail small { display: block; }
.fp-klote-movement strong, .fp-klote-detail strong { color: #0f172a; font-weight: 900; line-height: 1.25; }
.fp-klote-movement small, .fp-klote-detail small { margin-top: 3px; color: #64748b; font-size: .75rem; }
.fp-klote-user, .fp-klote-lot, .fp-klote-qty { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 30px; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.fp-klote-user, .fp-klote-qty { background: #f1f5f9; color: #334155; }
.fp-klote-lot { background: #e0f2fe; color: #0369a1; }
.fp-klote-qty.is-success { background: #dcfce7; color: #166534; }
.fp-klote-qty.is-danger { background: #fee2e2; color: #b91c1c; }
.fp-klote-qty.is-info { background: #e0f2fe; color: #0369a1; }
.fp-klote-empty-panel { margin-bottom: 14px; padding: 30px 16px; border-radius: 16px; border: 1px dashed #cbd5e1; background: #f8fafc; text-align: center; }
.fp-klote-empty-panel i, .fp-klote-empty-panel strong, .fp-klote-empty-panel small { display: block; }
.fp-klote-empty-panel i { margin-bottom: 8px; color: #0f766e; font-size: 1.7rem; }
.fp-klote-empty-panel strong { color: #0f172a; font-size: .98rem; }
.fp-klote-empty-panel small { margin-top: 3px; color: #64748b; }
.fp-klote-card .dataTables_filter input, .fp-klote-card .dataTables_length select { min-height: 34px; border-radius: 10px; border: 1px solid #dbe3ef; color: #0f172a; box-shadow: none; }
.fp-klote-card .dataTables_info, .fp-klote-card .dataTables_length label, .fp-klote-card .dataTables_filter label { color: #64748b; font-size: .82rem; font-weight: 700; }
.fp-klote-card .page-link { color: #0f766e; border-color: #e5e7eb; }
.fp-klote-card .page-item.active .page-link { background: #0f766e; border-color: #0f766e; color: #ffffff; }
@media (max-width: 991.98px) { .fp-klote-hero, .fp-klote-card-head { align-items: stretch; flex-direction: column; } .fp-klote-hero-actions, .fp-klote-tabs { justify-content: flex-start; } .fp-klote-stats, .fp-klote-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fp-klote-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fp-klote-search-field { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .fp-klote-hero { padding: 16px; } .fp-klote-hero-main h1 { font-size: 1.48rem; } .fp-klote-stats, .fp-klote-summary, .fp-klote-form { grid-template-columns: 1fr; } .fp-klote-action, .fp-klote-tabs .nav-link, .fp-klote-submit { width: 100%; } .fp-klote-card { padding: 14px; } }

/* Sales by hour consultation page */
.fp-vhorario-header { padding-top: 12px; }
.fp-vhorario-page { padding-bottom: 22px; }
.fp-vhorario-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%); color: #ffffff; box-shadow: 0 18px 42px rgba(15, 23, 42, .18); }
.fp-vhorario-hero-main { min-width: 0; }
.fp-vhorario-hero-main span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #ccfbf1; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.fp-vhorario-hero-main h1 { margin: 10px 0 6px; color: #ffffff; font-size: 1.85rem; font-weight: 900; letter-spacing: 0; }
.fp-vhorario-hero-main p { margin: 0; max-width: 800px; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.fp-vhorario-hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.fp-vhorario-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: #0f766e; color: #ffffff; font-weight: 800; box-shadow: 0 12px 26px rgba(15, 23, 42, .18); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.fp-vhorario-action:hover { color: #ffffff; background: #115e59; transform: translateY(-1px); box-shadow: 0 16px 32px rgba(15, 23, 42, .22); }
.fp-vhorario-action.is-light { background: rgba(255, 255, 255, .14); }
.fp-vhorario-action.is-light:hover { background: rgba(255, 255, 255, .22); }
.fp-vhorario-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.fp-vhorario-stat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon label" "icon value"; gap: 2px 12px; align-items: center; min-height: 92px; padding: 16px; border-radius: 16px; background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 14px 32px rgba(15, 23, 42, .08); }
.fp-vhorario-stat > span { grid-area: icon; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #ffffff; background: #0f766e; }
.fp-vhorario-stat small { grid-area: label; color: #64748b; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.fp-vhorario-stat strong { grid-area: value; color: #0f172a; font-size: 1.02rem; font-weight: 900; line-height: 1.25; }
.fp-vhorario-stat.is-primary > span { background: #0f766e; }
.fp-vhorario-stat.is-info > span { background: #0284c7; }
.fp-vhorario-stat.is-success > span { background: #16a34a; }
.fp-vhorario-stat.is-warning > span { background: #f59e0b; }
.fp-vhorario-card { padding: 18px; border-radius: 18px; background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 18px 44px rgba(15, 23, 42, .08); }
.fp-vhorario-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fp-vhorario-card-head > div > span { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.fp-vhorario-card-head h2 { margin: 8px 0 2px; color: #0f172a; font-size: 1.18rem; font-weight: 900; }
.fp-vhorario-card-head p { margin: 0; color: #64748b; font-size: .84rem; font-weight: 700; }
.fp-vhorario-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fp-vhorario-tabs .nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border-radius: 12px; background: #f1f5f9; color: #334155; font-size: .83rem; font-weight: 800; border: 1px solid transparent; }
.fp-vhorario-tabs .nav-link.active, .fp-vhorario-tabs .nav-link:hover { background: #0f766e; color: #ffffff; border-color: #0f766e; }
.fp-vhorario-filter { margin-bottom: 14px; padding: 14px; border-radius: 16px; background: #f8fafc; border: 1px solid #e5e7eb; }
.fp-vhorario-form { display: grid; grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) auto; gap: 12px; align-items: end; }
.fp-vhorario-form label { display: block; margin: 0; }
.fp-vhorario-form label span { display: block; margin-bottom: 5px; color: #475569; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.fp-vhorario-form .form-control { min-height: 40px; border-radius: 12px; border: 1px solid #dbe3ef; color: #0f172a; font-size: .88rem; box-shadow: none; }
.fp-vhorario-form .form-control:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.fp-vhorario-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border: 0; border-radius: 12px; background: #0f766e; color: #ffffff; font-weight: 900; box-shadow: 0 12px 26px rgba(15, 118, 110, .18); }
.fp-vhorario-submit:hover { background: #115e59; color: #ffffff; }
.fp-vhorario-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: stretch; }
.fp-vhorario-chart-panel, .fp-vhorario-insights { border-radius: 16px; background: #ffffff; border: 1px solid #e5e7eb; overflow: hidden; }
.fp-vhorario-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #eef2f7; background: #ffffff; }
.fp-vhorario-chart-head small, .fp-vhorario-chart-head strong { display: block; }
.fp-vhorario-chart-head small { color: #64748b; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.fp-vhorario-chart-head strong { margin-top: 2px; color: #0f172a; font-size: 1rem; font-weight: 900; }
.fp-vhorario-chart-head > span { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 6px 10px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.fp-vhorario-chart { position: relative; min-height: 430px; padding: 16px; }
.fp-vhorario-chart canvas { min-height: 398px; height: 398px !important; max-height: 398px; max-width: 100%; }
.fp-vhorario-insights { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #f8fafc; }
.fp-vhorario-insight { padding: 13px 14px; border-radius: 14px; background: #ffffff; border: 1px solid #e5e7eb; }
.fp-vhorario-insight small, .fp-vhorario-insight strong, .fp-vhorario-insight span { display: block; }
.fp-vhorario-insight small { color: #64748b; font-size: .73rem; font-weight: 900; text-transform: uppercase; }
.fp-vhorario-insight strong { margin-top: 2px; color: #0f172a; font-size: 1.28rem; font-weight: 900; }
.fp-vhorario-insight span { margin-top: 2px; color: #64748b; font-size: .78rem; font-weight: 700; }
.fp-vhorario-insight.is-main { background: linear-gradient(135deg, #0f766e 0%, #0284c7 100%); border: 0; }
.fp-vhorario-insight.is-main small, .fp-vhorario-insight.is-main strong, .fp-vhorario-insight.is-main span { color: #ffffff; }
.fp-vhorario-slot-list { display: grid; gap: 10px; margin-top: 2px; }
.fp-vhorario-slot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; border-radius: 14px; background: #ffffff; border: 1px solid #e5e7eb; }
.fp-vhorario-slot strong, .fp-vhorario-slot small { display: block; }
.fp-vhorario-slot strong { color: #0f172a; font-size: .95rem; font-weight: 900; }
.fp-vhorario-slot small { margin-top: 2px; color: #64748b; font-size: .76rem; font-weight: 800; }
.fp-vhorario-slot > span { display: block; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.fp-vhorario-slot > span::before { content: ""; display: block; width: var(--fp-slot, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f766e, #0284c7); }
.fp-vhorario-empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 84px; padding: 14px; border-radius: 14px; border: 1px dashed #cbd5e1; color: #64748b; background: #ffffff; font-weight: 800; text-align: center; }
@media (max-width: 1199.98px) { .fp-vhorario-grid { grid-template-columns: 1fr; } .fp-vhorario-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .fp-vhorario-slot-list { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
@media (max-width: 991.98px) { .fp-vhorario-hero, .fp-vhorario-card-head { align-items: stretch; flex-direction: column; } .fp-vhorario-hero-actions, .fp-vhorario-tabs { justify-content: flex-start; } .fp-vhorario-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fp-vhorario-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fp-vhorario-submit { grid-column: 1 / -1; } .fp-vhorario-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .fp-vhorario-hero { padding: 16px; } .fp-vhorario-hero-main h1 { font-size: 1.48rem; } .fp-vhorario-stats, .fp-vhorario-form, .fp-vhorario-insights { grid-template-columns: 1fr; } .fp-vhorario-action, .fp-vhorario-tabs .nav-link, .fp-vhorario-submit { width: 100%; } .fp-vhorario-card { padding: 14px; } .fp-vhorario-chart { min-height: 340px; padding: 10px; } .fp-vhorario-chart canvas { min-height: 315px; height: 315px !important; max-height: 315px; } }

/* Daily sales consultation page */
.fp-vdiario-header { padding-top: 12px; }
.fp-vdiario-page { padding-bottom: 22px; }
.fp-vdiario-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%); color: #ffffff; box-shadow: 0 18px 42px rgba(15, 23, 42, .18); }
.fp-vdiario-hero-main { min-width: 0; }
.fp-vdiario-hero-main span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #ccfbf1; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.fp-vdiario-hero-main h1 { margin: 10px 0 6px; color: #ffffff; font-size: 1.85rem; font-weight: 900; letter-spacing: 0; }
.fp-vdiario-hero-main p { margin: 0; max-width: 800px; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.fp-vdiario-hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.fp-vdiario-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: #0f766e; color: #ffffff; font-weight: 800; box-shadow: 0 12px 26px rgba(15, 23, 42, .18); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.fp-vdiario-action:hover { color: #ffffff; background: #115e59; transform: translateY(-1px); box-shadow: 0 16px 32px rgba(15, 23, 42, .22); }
.fp-vdiario-action.is-light { background: rgba(255, 255, 255, .14); }
.fp-vdiario-action.is-light:hover { background: rgba(255, 255, 255, .22); }
.fp-vdiario-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.fp-vdiario-stat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon label" "icon value"; gap: 2px 12px; align-items: center; min-height: 92px; padding: 16px; border-radius: 16px; background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 14px 32px rgba(15, 23, 42, .08); }
.fp-vdiario-stat > span { grid-area: icon; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #ffffff; background: #0f766e; }
.fp-vdiario-stat small { grid-area: label; color: #64748b; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.fp-vdiario-stat strong { grid-area: value; color: #0f172a; font-size: 1.05rem; font-weight: 900; line-height: 1.25; }
.fp-vdiario-stat.is-primary > span { background: #0f766e; }
.fp-vdiario-stat.is-info > span { background: #0284c7; }
.fp-vdiario-stat.is-success > span { background: #16a34a; }
.fp-vdiario-stat.is-warning > span { background: #f59e0b; }
.fp-vdiario-card { padding: 18px; border-radius: 18px; background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 18px 44px rgba(15, 23, 42, .08); }
.fp-vdiario-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fp-vdiario-card-head > div > span { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.fp-vdiario-card-head h2 { margin: 8px 0 2px; color: #0f172a; font-size: 1.18rem; font-weight: 900; }
.fp-vdiario-card-head p { margin: 0; color: #64748b; font-size: .84rem; font-weight: 700; }
.fp-vdiario-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fp-vdiario-tabs .nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border-radius: 12px; background: #f1f5f9; color: #334155; font-size: .83rem; font-weight: 800; border: 1px solid transparent; }
.fp-vdiario-tabs .nav-link.active, .fp-vdiario-tabs .nav-link:hover { background: #0f766e; color: #ffffff; border-color: #0f766e; }
.fp-vdiario-filter { margin-bottom: 14px; padding: 14px; border-radius: 16px; background: #f8fafc; border: 1px solid #e5e7eb; }
.fp-vdiario-form { display: grid; grid-template-columns: minmax(150px, 220px) minmax(150px, 260px) auto; gap: 12px; align-items: end; }
.fp-vdiario-form label { display: block; margin: 0; }
.fp-vdiario-form label span { display: block; margin-bottom: 5px; color: #475569; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.fp-vdiario-form .form-control { min-height: 40px; border-radius: 12px; border: 1px solid #dbe3ef; color: #0f172a; font-size: .88rem; box-shadow: none; }
.fp-vdiario-form .form-control:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.fp-vdiario-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border: 0; border-radius: 12px; background: #0f766e; color: #ffffff; font-weight: 900; box-shadow: 0 12px 26px rgba(15, 118, 110, .18); }
.fp-vdiario-submit:hover { background: #115e59; color: #ffffff; }
.fp-vdiario-summary { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.fp-vdiario-summary > div { padding: 14px; border-radius: 15px; background: #ffffff; border: 1px solid #e5e7eb; }
.fp-vdiario-summary small, .fp-vdiario-summary strong, .fp-vdiario-summary em { display: block; }
.fp-vdiario-summary small { color: #64748b; font-size: .73rem; font-weight: 900; font-style: normal; text-transform: uppercase; }
.fp-vdiario-summary strong { margin-top: 3px; color: #0f172a; font-size: 1.22rem; font-weight: 900; }
.fp-vdiario-summary em { margin-top: 3px; color: #64748b; font-size: .78rem; font-style: normal; font-weight: 700; }
.fp-vdiario-summary span { display: block; height: 8px; margin-top: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.fp-vdiario-summary span i { display: block; width: var(--fp-progress, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f766e, #0284c7); }
.fp-vdiario-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.fp-vdiario-day { min-height: 142px; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; border-radius: 15px; background: #f8fafc; border: 1px solid #e5e7eb; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.fp-vdiario-day:hover { transform: translateY(-2px); border-color: rgba(15, 118, 110, .32); box-shadow: 0 14px 30px rgba(15, 23, 42, .1); }
.fp-vdiario-day.is-active { background: #ffffff; }
.fp-vdiario-day.is-today { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .1); }
.fp-vdiario-day-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fp-vdiario-day-top span { color: #64748b; font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.fp-vdiario-day-top strong { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #e2e8f0; color: #0f172a; font-size: .95rem; font-weight: 900; }
.fp-vdiario-day.is-active .fp-vdiario-day-top strong { background: #0f766e; color: #ffffff; }
.fp-vdiario-day-body { display: grid; gap: 7px; margin: 10px 0; }
.fp-vdiario-day-body p { display: grid; grid-template-columns: 18px 34px 1fr; align-items: center; gap: 6px; margin: 0; color: #64748b; font-size: .74rem; font-weight: 800; }
.fp-vdiario-day-body p i { color: #0f766e; }
.fp-vdiario-day-body p b { justify-self: end; color: #0f172a; font-size: .82rem; font-weight: 900; }
.fp-vdiario-day-foot small { display: inline-flex; align-items: center; min-height: 26px; padding: 5px 9px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: .72rem; font-weight: 900; }
.fp-vdiario-day.is-active .fp-vdiario-day-foot small { background: #ecfdf5; color: #0f766e; }
.fp-vdiario-table-wrap { border: 1px solid #e5e7eb; border-radius: 16px; background: #ffffff; overflow: auto; }
.fp-vdiario-table { margin-bottom: 0 !important; color: #0f172a; min-width: 980px; }
.fp-vdiario-table thead th { padding: 12px 10px; border: 0; background: #071b4d; color: #ffffff; font-size: .72rem; text-transform: uppercase; white-space: nowrap; }
.fp-vdiario-table thead th.is-today { background: #0f766e; }
.fp-vdiario-table tbody td { vertical-align: middle; padding: 10px; border-top: 1px solid #eef2f7; font-size: .82rem; white-space: nowrap; }
.fp-vdiario-table tbody tr:hover td { background: #f8fafc; }
.fp-vdiario-type, .fp-vdiario-hour { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 30px; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.fp-vdiario-type { color: #334155; background: #f1f5f9; }
.fp-vdiario-type.is-note { color: #166534; background: #dcfce7; }
.fp-vdiario-type.is-sale { color: #0369a1; background: #e0f2fe; }
.fp-vdiario-hour { min-width: 52px; color: #94a3b8; background: #f8fafc; }
.fp-vdiario-hour.is-on { color: #0f766e; background: #ecfdf5; }
@media (max-width: 1199.98px) { .fp-vdiario-calendar { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .fp-vdiario-hero, .fp-vdiario-card-head { align-items: stretch; flex-direction: column; } .fp-vdiario-hero-actions, .fp-vdiario-tabs { justify-content: flex-start; } .fp-vdiario-stats, .fp-vdiario-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fp-vdiario-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fp-vdiario-submit { grid-column: 1 / -1; } .fp-vdiario-calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .fp-vdiario-hero { padding: 16px; } .fp-vdiario-hero-main h1 { font-size: 1.48rem; } .fp-vdiario-stats, .fp-vdiario-summary, .fp-vdiario-form, .fp-vdiario-calendar { grid-template-columns: 1fr; } .fp-vdiario-action, .fp-vdiario-tabs .nav-link, .fp-vdiario-submit { width: 100%; } .fp-vdiario-card { padding: 14px; } .fp-vdiario-day { min-height: 124px; } }

/* Seller bonus consultation page */
.fp-bvendedor-header { padding-top: 12px; }
.fp-bvendedor-page { padding-bottom: 22px; }
.fp-bvendedor-alert { border: 0; border-radius: 14px; box-shadow: 0 12px 28px rgba(15, 23, 42, .08); }
.fp-bvendedor-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%); color: #ffffff; box-shadow: 0 18px 42px rgba(15, 23, 42, .18); }
.fp-bvendedor-hero-main { min-width: 0; }
.fp-bvendedor-hero-main span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #ccfbf1; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.fp-bvendedor-hero-main h1 { margin: 10px 0 6px; color: #ffffff; font-size: 1.85rem; font-weight: 900; letter-spacing: 0; }
.fp-bvendedor-hero-main p { margin: 0; max-width: 800px; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.fp-bvendedor-hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.fp-bvendedor-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: #0f766e; color: #ffffff; font-weight: 800; box-shadow: 0 12px 26px rgba(15, 23, 42, .18); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.fp-bvendedor-action:hover { color: #ffffff; background: #115e59; transform: translateY(-1px); box-shadow: 0 16px 32px rgba(15, 23, 42, .22); }
.fp-bvendedor-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.fp-bvendedor-stat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon label" "icon value"; gap: 2px 12px; align-items: center; min-height: 92px; padding: 16px; border-radius: 16px; background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 14px 32px rgba(15, 23, 42, .08); }
.fp-bvendedor-stat > span { grid-area: icon; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #ffffff; background: #0f766e; }
.fp-bvendedor-stat small { grid-area: label; color: #64748b; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.fp-bvendedor-stat strong { grid-area: value; color: #0f172a; font-size: 1.02rem; font-weight: 900; line-height: 1.25; }
.fp-bvendedor-stat.is-primary > span { background: #0f766e; }
.fp-bvendedor-stat.is-info > span { background: #0284c7; }
.fp-bvendedor-stat.is-success > span { background: #16a34a; }
.fp-bvendedor-stat.is-warning > span { background: #f59e0b; }
.fp-bvendedor-card { padding: 18px; border-radius: 18px; background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 18px 44px rgba(15, 23, 42, .08); }
.fp-bvendedor-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fp-bvendedor-card-head > div > span { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.fp-bvendedor-card-head h2 { margin: 8px 0 2px; color: #0f172a; font-size: 1.18rem; font-weight: 900; }
.fp-bvendedor-card-head p { margin: 0; color: #64748b; font-size: .84rem; font-weight: 700; }
.fp-bvendedor-filter { margin-bottom: 14px; padding: 14px; border-radius: 16px; background: #f8fafc; border: 1px solid #e5e7eb; }
.fp-bvendedor-form { display: grid; grid-template-columns: minmax(140px, 190px) minmax(150px, 220px) minmax(240px, 1fr) auto; gap: 12px; align-items: end; }
.fp-bvendedor-form label { display: block; margin: 0; }
.fp-bvendedor-form label span { display: block; margin-bottom: 5px; color: #475569; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.fp-bvendedor-form .form-control { min-height: 40px; border-radius: 12px; border: 1px solid #dbe3ef; color: #0f172a; font-size: .88rem; box-shadow: none; }
.fp-bvendedor-form .form-control:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.fp-bvendedor-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border: 0; border-radius: 12px; background: #0f766e; color: #ffffff; font-weight: 900; box-shadow: 0 12px 26px rgba(15, 118, 110, .18); }
.fp-bvendedor-submit:hover { background: #115e59; color: #ffffff; }
.fp-bvendedor-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.fp-bvendedor-summary > div { padding: 14px; border-radius: 15px; background: #ffffff; border: 1px solid #e5e7eb; }
.fp-bvendedor-summary small, .fp-bvendedor-summary strong, .fp-bvendedor-summary em { display: block; }
.fp-bvendedor-summary small { color: #64748b; font-size: .73rem; font-weight: 900; font-style: normal; text-transform: uppercase; }
.fp-bvendedor-summary strong { margin-top: 3px; color: #0f172a; font-size: 1.08rem; font-weight: 900; line-height: 1.25; }
.fp-bvendedor-summary em { margin-top: 4px; color: #64748b; font-size: .78rem; font-style: normal; font-weight: 700; }
.fp-bvendedor-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.fp-bvendedor-products > div { min-height: 134px; padding: 13px; border-radius: 15px; background: #f8fafc; border: 1px solid #e5e7eb; }
.fp-bvendedor-products small, .fp-bvendedor-products strong, .fp-bvendedor-products em { display: block; }
.fp-bvendedor-products small { color: #0f766e; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.fp-bvendedor-products strong { min-height: 40px; margin-top: 4px; color: #0f172a; font-size: .86rem; font-weight: 900; line-height: 1.25; }
.fp-bvendedor-products span { display: block; height: 8px; margin: 11px 0 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.fp-bvendedor-products span i { display: block; width: var(--fp-progress, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f766e, #0284c7); }
.fp-bvendedor-products em { color: #64748b; font-size: .76rem; font-style: normal; font-weight: 800; }
.fp-bvendedor-empty { margin-bottom: 14px; padding: 30px 16px; border-radius: 16px; border: 1px dashed #cbd5e1; background: #f8fafc; text-align: center; }
.fp-bvendedor-empty i, .fp-bvendedor-empty strong, .fp-bvendedor-empty small { display: block; }
.fp-bvendedor-empty i { margin-bottom: 8px; color: #0f766e; font-size: 1.7rem; }
.fp-bvendedor-empty strong { color: #0f172a; font-size: .98rem; }
.fp-bvendedor-empty small { margin-top: 3px; color: #64748b; }
.fp-bvendedor-table-wrap { border: 1px solid #e5e7eb; border-radius: 16px; background: #ffffff; overflow: auto; }
.fp-bvendedor-table { margin-bottom: 0 !important; color: #0f172a; min-width: 860px; }
.fp-bvendedor-table thead th { padding: 12px 10px; border: 0; background: #071b4d; color: #ffffff; font-size: .72rem; text-transform: uppercase; white-space: nowrap; }
.fp-bvendedor-table tbody td { vertical-align: middle; padding: 11px 10px; border-top: 1px solid #eef2f7; font-size: .84rem; }
.fp-bvendedor-table tbody tr:hover td { background: #f8fafc; }
.fp-bvendedor-table tfoot th { padding: 12px 10px; border-top: 1px solid #e5e7eb; background: #f8fafc; color: #0f172a; font-weight: 900; }
.fp-bvendedor-code, .fp-bvendedor-badge, .fp-bvendedor-total { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.fp-bvendedor-code { color: #334155; background: #f1f5f9; }
.fp-bvendedor-badge.is-info { color: #0369a1; background: #e0f2fe; }
.fp-bvendedor-badge.is-success { color: #166534; background: #dcfce7; }
.fp-bvendedor-total { color: #0f766e; background: #ecfdf5; }
.fp-bvendedor-product strong, .fp-bvendedor-product small { display: block; }
.fp-bvendedor-product strong { color: #0f172a; font-weight: 900; line-height: 1.25; }
.fp-bvendedor-product small { margin-top: 3px; color: #64748b; font-size: .76rem; font-weight: 700; }
@media (max-width: 1199.98px) { .fp-bvendedor-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fp-bvendedor-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fp-bvendedor-submit { grid-column: 1 / -1; } }
@media (max-width: 991.98px) { .fp-bvendedor-hero, .fp-bvendedor-card-head { align-items: stretch; flex-direction: column; } .fp-bvendedor-hero-actions { justify-content: flex-start; } .fp-bvendedor-stats, .fp-bvendedor-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .fp-bvendedor-hero { padding: 16px; } .fp-bvendedor-hero-main h1 { font-size: 1.48rem; } .fp-bvendedor-stats, .fp-bvendedor-summary, .fp-bvendedor-form, .fp-bvendedor-products { grid-template-columns: 1fr; } .fp-bvendedor-action, .fp-bvendedor-submit { width: 100%; } .fp-bvendedor-card { padding: 14px; } }

/* DIGEMID management consultation page */
.fp-digemid-admin-header { padding-top: 12px; }
.fp-digemid-admin-page { padding-bottom: 22px; }
.fp-digemid-admin-alert { border: 0; border-radius: 14px; box-shadow: 0 12px 28px rgba(15, 23, 42, .08); }
.fp-digemid-admin-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%); color: #ffffff; box-shadow: 0 18px 42px rgba(15, 23, 42, .18); }
.fp-digemid-admin-hero-main { min-width: 0; }
.fp-digemid-admin-hero-main span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #ccfbf1; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.fp-digemid-admin-hero-main h1 { margin: 10px 0 6px; color: #ffffff; font-size: 1.85rem; font-weight: 900; letter-spacing: 0; }
.fp-digemid-admin-hero-main p { margin: 0; max-width: 840px; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.fp-digemid-admin-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.fp-digemid-admin-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: #0f766e; color: #ffffff; font-weight: 800; box-shadow: 0 12px 26px rgba(15, 23, 42, .18); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.fp-digemid-admin-action:hover { color: #ffffff; background: #115e59; transform: translateY(-1px); box-shadow: 0 16px 32px rgba(15, 23, 42, .22); }
.fp-digemid-admin-action.is-light { background: rgba(255, 255, 255, .14); }
.fp-digemid-admin-action.is-light:hover { background: rgba(255, 255, 255, .22); }
.fp-digemid-admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.fp-digemid-admin-stat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon label" "icon value"; gap: 2px 12px; align-items: center; min-height: 92px; padding: 16px; border-radius: 16px; background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 14px 32px rgba(15, 23, 42, .08); }
.fp-digemid-admin-stat > span { grid-area: icon; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #ffffff; background: #0f766e; }
.fp-digemid-admin-stat small { grid-area: label; color: #64748b; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.fp-digemid-admin-stat strong { grid-area: value; color: #0f172a; font-size: 1.08rem; font-weight: 900; line-height: 1.25; }
.fp-digemid-admin-stat.is-primary > span { background: #0f766e; }
.fp-digemid-admin-stat.is-info > span { background: #0284c7; }
.fp-digemid-admin-stat.is-success > span { background: #16a34a; }
.fp-digemid-admin-stat.is-warning > span { background: #f59e0b; }
.fp-digemid-admin-card { padding: 18px; border-radius: 18px; background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 18px 44px rgba(15, 23, 42, .08); }
.fp-digemid-admin-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fp-digemid-admin-card-head > div > span { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.fp-digemid-admin-card-head h2 { margin: 8px 0 2px; color: #0f172a; font-size: 1.18rem; font-weight: 900; }
.fp-digemid-admin-card-head p { margin: 0; color: #64748b; font-size: .84rem; font-weight: 700; }
.fp-digemid-admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fp-digemid-admin-tabs .nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border-radius: 12px; background: #f1f5f9; color: #334155; font-size: .83rem; font-weight: 800; border: 1px solid transparent; }
.fp-digemid-admin-tabs .nav-link.active, .fp-digemid-admin-tabs .nav-link:hover { background: #0f766e; color: #ffffff; border-color: #0f766e; }
.fp-digemid-admin-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.fp-digemid-admin-summary > div { padding: 14px; border-radius: 15px; background: #ffffff; border: 1px solid #e5e7eb; }
.fp-digemid-admin-summary small, .fp-digemid-admin-summary strong, .fp-digemid-admin-summary em { display: block; }
.fp-digemid-admin-summary small { color: #64748b; font-size: .73rem; font-weight: 900; font-style: normal; text-transform: uppercase; }
.fp-digemid-admin-summary strong { margin-top: 3px; color: #0f172a; font-size: 1.04rem; font-weight: 900; line-height: 1.25; }
.fp-digemid-admin-summary em { margin-top: 4px; color: #64748b; font-size: .78rem; font-style: normal; font-weight: 700; }
.fp-digemid-admin-summary span { display: block; height: 8px; margin-top: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.fp-digemid-admin-summary span i { display: block; width: var(--fp-progress, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f766e, #0284c7); }
.fp-digemid-admin-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 14px; align-items: start; }
.fp-digemid-admin-panel { min-width: 0; border: 1px solid #e5e7eb; border-radius: 16px; background: #ffffff; overflow: hidden; }
.fp-digemid-admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #eef2f7; background: #ffffff; }
.fp-digemid-admin-panel-head small, .fp-digemid-admin-panel-head strong { display: block; }
.fp-digemid-admin-panel-head small { color: #64748b; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.fp-digemid-admin-panel-head strong { margin-top: 2px; color: #0f172a; font-size: 1rem; font-weight: 900; }
.fp-digemid-admin-panel-head > span { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.fp-digemid-admin-search { position: relative; padding: 14px 16px; border-bottom: 1px solid #eef2f7; background: #f8fafc; }
.fp-digemid-admin-search i { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); color: #0f766e; z-index: 2; }
.fp-digemid-admin-search .form-control { min-height: 40px; padding-left: 38px; border-radius: 12px; border: 1px solid #dbe3ef; color: #0f172a; font-size: .88rem; box-shadow: none; }
.fp-digemid-admin-search .form-control:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.fp-digemid-admin-table-wrap { overflow: auto; }
.fp-digemid-admin-table-wrap.is-pending { max-height: 560px; }
.fp-digemid-admin-table { margin-bottom: 0 !important; color: #0f172a; min-width: 720px; }
.fp-digemid-admin-table thead th { padding: 12px 10px; border: 0; background: #071b4d; color: #ffffff; font-size: .72rem; text-transform: uppercase; white-space: nowrap; }
.fp-digemid-admin-table tbody td { vertical-align: middle; padding: 11px 10px; border-top: 1px solid #eef2f7; font-size: .84rem; }
.fp-digemid-admin-table tbody tr:hover td { background: #f8fafc; }
.fp-digemid-admin-index, .fp-digemid-admin-code, .fp-digemid-admin-price { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.fp-digemid-admin-index { color: #64748b; background: #f1f5f9; }
.fp-digemid-admin-code { color: #0f766e; background: #ecfdf5; }
.fp-digemid-admin-price { color: #166534; background: #dcfce7; }
.fp-digemid-admin-price.is-soft { color: #0369a1; background: #e0f2fe; }
.fp-digemid-admin-product strong, .fp-digemid-admin-product small { display: block; }
.fp-digemid-admin-product strong { color: #0f172a; font-weight: 900; line-height: 1.25; }
.fp-digemid-admin-product small { margin-top: 3px; color: #64748b; font-size: .76rem; font-weight: 700; }
.fp-digemid-admin-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: #f59e0b; color: #ffffff; box-shadow: 0 8px 18px rgba(245, 158, 11, .2); transition: transform .18s ease, background .18s ease; }
.fp-digemid-admin-icon:hover { color: #ffffff; background: #d97706; transform: translateY(-1px); }
.fp-digemid-admin-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; padding: 18px; color: #64748b; text-align: center; }
.fp-digemid-admin-empty i { margin-bottom: 8px; color: #0f766e; font-size: 1.6rem; }
.fp-digemid-admin-empty strong { color: #0f172a; font-size: .98rem; }
.fp-digemid-admin-empty small { margin-top: 3px; }
.fp-digemid-admin-card .dataTables_filter input, .fp-digemid-admin-card .dataTables_length select { min-height: 34px; border-radius: 10px; border: 1px solid #dbe3ef; color: #0f172a; box-shadow: none; }
.fp-digemid-admin-card .dataTables_info, .fp-digemid-admin-card .dataTables_length label, .fp-digemid-admin-card .dataTables_filter label { color: #64748b; font-size: .82rem; font-weight: 700; }
.fp-digemid-admin-card .page-link { color: #0f766e; border-color: #e5e7eb; }
.fp-digemid-admin-card .page-item.active .page-link { background: #0f766e; border-color: #0f766e; color: #ffffff; }
@media (max-width: 1199.98px) { .fp-digemid-admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 991.98px) { .fp-digemid-admin-hero, .fp-digemid-admin-card-head { align-items: stretch; flex-direction: column; } .fp-digemid-admin-actions, .fp-digemid-admin-tabs { justify-content: flex-start; } .fp-digemid-admin-stats, .fp-digemid-admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .fp-digemid-admin-hero { padding: 16px; } .fp-digemid-admin-hero-main h1 { font-size: 1.48rem; } .fp-digemid-admin-stats, .fp-digemid-admin-summary { grid-template-columns: 1fr; } .fp-digemid-admin-action, .fp-digemid-admin-tabs .nav-link { width: 100%; } .fp-digemid-admin-card { padding: 14px; } .fp-digemid-admin-panel-head { align-items: flex-start; flex-direction: column; } }

/* Essential medicines classification page */
.fp-pclasif-header { padding-top: 12px; }
.fp-pclasif-page { padding-bottom: 22px; }
.fp-pclasif-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%); color: #ffffff; box-shadow: 0 18px 42px rgba(15, 23, 42, .18); }
.fp-pclasif-hero-main { min-width: 0; }
.fp-pclasif-hero-main span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #ccfbf1; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.fp-pclasif-hero-main h1 { margin: 10px 0 6px; color: #ffffff; font-size: 1.85rem; font-weight: 900; letter-spacing: 0; }
.fp-pclasif-hero-main p { margin: 0; max-width: 840px; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.fp-pclasif-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.fp-pclasif-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: #0f766e; color: #ffffff; font-weight: 800; box-shadow: 0 12px 26px rgba(15, 23, 42, .18); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.fp-pclasif-action:hover { color: #ffffff; background: #115e59; transform: translateY(-1px); box-shadow: 0 16px 32px rgba(15, 23, 42, .22); }
.fp-pclasif-action.is-light { background: rgba(255, 255, 255, .14); }
.fp-pclasif-action.is-light:hover { background: rgba(255, 255, 255, .22); }
.fp-pclasif-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.fp-pclasif-stat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon label" "icon value"; gap: 2px 12px; align-items: center; min-height: 92px; padding: 16px; border-radius: 16px; background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 14px 32px rgba(15, 23, 42, .08); }
.fp-pclasif-stat > span { grid-area: icon; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #ffffff; background: #0f766e; }
.fp-pclasif-stat small { grid-area: label; color: #64748b; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.fp-pclasif-stat strong { grid-area: value; color: #0f172a; font-size: 1.08rem; font-weight: 900; line-height: 1.25; }
.fp-pclasif-stat.is-primary > span { background: #0f766e; }
.fp-pclasif-stat.is-info > span { background: #0284c7; }
.fp-pclasif-stat.is-success > span { background: #16a34a; }
.fp-pclasif-stat.is-danger > span { background: #dc2626; }
.fp-pclasif-card { padding: 18px; border-radius: 18px; background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 18px 44px rgba(15, 23, 42, .08); }
.fp-pclasif-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fp-pclasif-card-head > div > span { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.fp-pclasif-card-head h2 { margin: 8px 0 2px; color: #0f172a; font-size: 1.18rem; font-weight: 900; }
.fp-pclasif-card-head p { margin: 0; color: #64748b; font-size: .84rem; font-weight: 700; }
.fp-pclasif-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fp-pclasif-tabs .nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border-radius: 12px; background: #f1f5f9; color: #334155; font-size: .83rem; font-weight: 800; border: 1px solid transparent; }
.fp-pclasif-tabs .nav-link.active, .fp-pclasif-tabs .nav-link:hover { background: #0f766e; color: #ffffff; border-color: #0f766e; }
.fp-pclasif-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.fp-pclasif-summary > div { padding: 14px; border-radius: 15px; background: #ffffff; border: 1px solid #e5e7eb; }
.fp-pclasif-summary small, .fp-pclasif-summary strong, .fp-pclasif-summary em { display: block; }
.fp-pclasif-summary small { color: #64748b; font-size: .73rem; font-weight: 900; font-style: normal; text-transform: uppercase; }
.fp-pclasif-summary strong { margin-top: 3px; color: #0f172a; font-size: 1.16rem; font-weight: 900; line-height: 1.25; }
.fp-pclasif-summary em { margin-top: 4px; color: #64748b; font-size: .78rem; font-style: normal; font-weight: 700; }
.fp-pclasif-summary span { display: block; height: 8px; margin-top: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.fp-pclasif-summary span i { display: block; width: var(--fp-progress, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f766e, #0284c7); }
.fp-pclasif-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.fp-pclasif-panel, .fp-pclasif-chart-card, .fp-pclasif-risk-card { border: 1px solid #e5e7eb; border-radius: 16px; background: #ffffff; overflow: hidden; }
.fp-pclasif-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #eef2f7; background: #ffffff; }
.fp-pclasif-panel-head small, .fp-pclasif-panel-head strong { display: block; }
.fp-pclasif-panel-head small { color: #64748b; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.fp-pclasif-panel-head strong { margin-top: 2px; color: #0f172a; font-size: 1rem; font-weight: 900; }
.fp-pclasif-panel-head > span { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.fp-pclasif-empty { padding: 30px 16px; border-bottom: 1px solid #eef2f7; background: #f8fafc; text-align: center; }
.fp-pclasif-empty i, .fp-pclasif-empty strong, .fp-pclasif-empty small { display: block; }
.fp-pclasif-empty i { margin-bottom: 8px; color: #0f766e; font-size: 1.7rem; }
.fp-pclasif-empty strong { color: #0f172a; font-size: .98rem; }
.fp-pclasif-empty small { margin-top: 3px; color: #64748b; }
.fp-pclasif-table-wrap { overflow: auto; }
.fp-pclasif-table { margin-bottom: 0 !important; color: #0f172a; min-width: 820px; }
.fp-pclasif-table thead th { padding: 12px 10px; border: 0; background: #071b4d; color: #ffffff; font-size: .72rem; text-transform: uppercase; white-space: nowrap; }
.fp-pclasif-table tbody td { vertical-align: middle; padding: 11px 10px; border-top: 1px solid #eef2f7; font-size: .84rem; }
.fp-pclasif-table tbody tr:hover td { background: #f8fafc; }
.fp-pclasif-product strong, .fp-pclasif-product small { display: block; }
.fp-pclasif-product strong { color: #0f172a; font-weight: 900; line-height: 1.25; }
.fp-pclasif-product small { margin-top: 3px; color: #64748b; font-size: .76rem; font-weight: 700; }
.fp-pclasif-number, .fp-pclasif-state { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 30px; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.fp-pclasif-number.is-brand { color: #0369a1; background: #e0f2fe; }
.fp-pclasif-number.is-generic { color: #166534; background: #dcfce7; }
.fp-pclasif-number.is-min { color: #475569; background: #f1f5f9; }
.fp-pclasif-number.is-danger, .fp-pclasif-state.is-danger { color: #b91c1c; background: #fee2e2; }
.fp-pclasif-state.is-ok { color: #166534; background: #dcfce7; }
.fp-pclasif-side { display: grid; gap: 14px; }
.fp-pclasif-chart-head { padding: 14px 16px 0; }
.fp-pclasif-chart-head small, .fp-pclasif-chart-head strong { display: block; }
.fp-pclasif-chart-head small { color: #64748b; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.fp-pclasif-chart-head strong { margin-top: 2px; color: #0f172a; font-size: .98rem; font-weight: 900; }
.fp-pclasif-chart { position: relative; min-height: 235px; padding: 12px 16px 16px; }
.fp-pclasif-chart canvas { min-height: 210px; height: 210px !important; max-height: 210px; width: 100% !important; }
.fp-pclasif-risk-card { padding: 15px; background: linear-gradient(135deg, #0f766e 0%, #0284c7 100%); border: 0; color: #ffffff; }
.fp-pclasif-risk-card small, .fp-pclasif-risk-card strong, .fp-pclasif-risk-card span { display: block; color: #ffffff; }
.fp-pclasif-risk-card small { font-size: .73rem; font-weight: 900; text-transform: uppercase; opacity: .82; }
.fp-pclasif-risk-card strong { margin-top: 4px; font-size: 1.65rem; font-weight: 900; }
.fp-pclasif-risk-card span { margin-top: 4px; font-size: .82rem; font-weight: 800; opacity: .86; }
.fp-pclasif-card .dataTables_filter input, .fp-pclasif-card .dataTables_length select { min-height: 34px; border-radius: 10px; border: 1px solid #dbe3ef; color: #0f172a; box-shadow: none; }
.fp-pclasif-card .dataTables_info, .fp-pclasif-card .dataTables_length label, .fp-pclasif-card .dataTables_filter label { color: #64748b; font-size: .82rem; font-weight: 700; }
.fp-pclasif-card .page-link { color: #0f766e; border-color: #e5e7eb; }
.fp-pclasif-card .page-item.active .page-link { background: #0f766e; border-color: #0f766e; color: #ffffff; }
@media (max-width: 1199.98px) { .fp-pclasif-grid { grid-template-columns: 1fr; } .fp-pclasif-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fp-pclasif-risk-card { grid-column: 1 / -1; } }
@media (max-width: 991.98px) { .fp-pclasif-hero, .fp-pclasif-card-head { align-items: stretch; flex-direction: column; } .fp-pclasif-actions, .fp-pclasif-tabs { justify-content: flex-start; } .fp-pclasif-stats, .fp-pclasif-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .fp-pclasif-hero { padding: 16px; } .fp-pclasif-hero-main h1 { font-size: 1.48rem; } .fp-pclasif-stats, .fp-pclasif-summary, .fp-pclasif-side { grid-template-columns: 1fr; } .fp-pclasif-action, .fp-pclasif-tabs .nav-link { width: 100%; } .fp-pclasif-card { padding: 14px; } .fp-pclasif-panel-head { align-items: flex-start; flex-direction: column; } }

/* Seller bonus filter enhancements */
.fp-bvendedor-action.is-light { background: rgba(255, 255, 255, .14); }
.fp-bvendedor-action.is-light:hover { background: rgba(255, 255, 255, .22); }
.fp-bvendedor-filter-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 15px; background: #f8fafc; border: 1px solid #e5e7eb; }
.fp-bvendedor-filter-note span, .fp-bvendedor-filter-note strong, .fp-bvendedor-filter-note small { display: inline-flex; align-items: center; gap: 7px; }
.fp-bvendedor-filter-note span { min-height: 30px; padding: 6px 10px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.fp-bvendedor-filter-note strong { color: #0f172a; font-size: .92rem; font-weight: 900; }
.fp-bvendedor-filter-note small { color: #64748b; font-size: .78rem; font-weight: 800; }
.fp-bvendedor-mode select { cursor: pointer; }
@media (min-width: 1200px) { .fp-bvendedor-form { grid-template-columns: minmax(120px, 170px) minmax(150px, 210px) minmax(160px, 220px) minmax(240px, 1fr) auto; } }
@media (max-width: 767.98px) { .fp-bvendedor-filter-note { align-items: stretch; flex-direction: column; } .fp-bvendedor-filter-note span, .fp-bvendedor-filter-note strong, .fp-bvendedor-filter-note small { justify-content: center; } }

/* Essential medicines centered search */
.fp-pclasif-card .dataTables_wrapper > .row:first-child {
  align-items: center;
  margin-bottom: 12px;
}

.fp-pclasif-card .dataTables_wrapper > .row:first-child > div {
  display: flex;
  align-items: center;
}

.fp-pclasif-card .dataTables_wrapper > .row:first-child > div:first-child {
  justify-content: flex-start;
}

.fp-pclasif-card .dataTables_wrapper > .row:first-child > div:last-child {
  justify-content: center;
}

.fp-pclasif-card .dataTables_filter {
  width: 100%;
  text-align: center !important;
}

.fp-pclasif-card .dataTables_filter label {
  width: min(100%, 460px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #475569;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.fp-pclasif-card .dataTables_filter input {
  width: min(100%, 320px) !important;
  min-height: 40px;
  margin-left: 0 !important;
  padding: 8px 12px;
  border-radius: 12px;
  background: #ffffff;
}

.fp-pclasif-card .dataTables_filter input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-pclasif-card .dataTables_length {
  width: 100%;
}

.fp-pclasif-card .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .fp-pclasif-card .dataTables_wrapper > .row:first-child > div,
  .fp-pclasif-card .dataTables_wrapper > .row:first-child > div:first-child,
  .fp-pclasif-card .dataTables_wrapper > .row:first-child > div:last-child {
    justify-content: center;
  }

  .fp-pclasif-card .dataTables_length {
    margin-bottom: 10px;
    text-align: center;
  }

  .fp-pclasif-card .dataTables_filter label {
    flex-direction: column;
    gap: 7px;
  }

  .fp-pclasif-card .dataTables_filter input {
    width: 100% !important;
  }
}

/* DIGEMID centered search controls */
.fp-digemid-admin-card .dataTables_wrapper > .row:first-child {
  align-items: center;
  margin: 2px 0 12px;
}

.fp-digemid-admin-card .dataTables_wrapper > .row:first-child > div {
  display: flex;
  align-items: center;
}

.fp-digemid-admin-card .dataTables_wrapper > .row:first-child > div:first-child {
  justify-content: flex-start;
}

.fp-digemid-admin-card .dataTables_wrapper > .row:first-child > div:last-child {
  justify-content: center;
}

.fp-digemid-admin-card .dataTables_filter {
  width: 100%;
  text-align: center !important;
}

.fp-digemid-admin-card .dataTables_filter label {
  width: min(100%, 480px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #475569;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.fp-digemid-admin-card .dataTables_filter input {
  width: min(100%, 330px) !important;
  min-height: 40px;
  margin-left: 0 !important;
  padding: 8px 12px;
  border-radius: 12px;
  background: #ffffff;
}

.fp-digemid-admin-card .dataTables_filter input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-digemid-admin-card .dataTables_length {
  width: 100%;
}

.fp-digemid-admin-card .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.fp-digemid-admin-search {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.fp-digemid-admin-search-copy {
  max-width: 560px;
  text-align: center;
}

.fp-digemid-admin-search-copy strong,
.fp-digemid-admin-search-copy small {
  display: block;
}

.fp-digemid-admin-search-copy strong {
  color: #0f172a;
  font-size: .96rem;
  font-weight: 900;
}

.fp-digemid-admin-search-copy small {
  margin-top: 3px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 750;
}

.fp-digemid-admin-search-box {
  position: relative;
  width: min(100%, 560px);
}

.fp-digemid-admin-search .fp-digemid-admin-search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #0f766e;
  z-index: 2;
}

.fp-digemid-admin-search .fp-digemid-admin-search-box .form-control {
  width: 100%;
  min-height: 44px;
  padding-left: 42px;
  padding-right: 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  color: #0f172a;
  font-size: .9rem;
  font-weight: 750;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.fp-digemid-admin-search .fp-digemid-admin-search-box .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12), 0 14px 28px rgba(15, 23, 42, .08);
}

@media (max-width: 767.98px) {
  .fp-digemid-admin-card .dataTables_wrapper > .row:first-child > div,
  .fp-digemid-admin-card .dataTables_wrapper > .row:first-child > div:first-child,
  .fp-digemid-admin-card .dataTables_wrapper > .row:first-child > div:last-child {
    justify-content: center;
  }

  .fp-digemid-admin-card .dataTables_length {
    margin-bottom: 10px;
    text-align: center;
  }

  .fp-digemid-admin-card .dataTables_filter label {
    flex-direction: column;
    gap: 7px;
  }

  .fp-digemid-admin-card .dataTables_filter input {
    width: 100% !important;
  }
}

/* Kardex centered search controls */
.fp-kardex-card .dataTables_wrapper > .row:first-child {
  align-items: center;
  margin: 2px 0 12px;
}

.fp-kardex-card .dataTables_wrapper > .row:first-child > div {
  display: flex;
  align-items: center;
}

.fp-kardex-card .dataTables_wrapper > .row:first-child > div:first-child {
  justify-content: flex-start;
}

.fp-kardex-card .dataTables_wrapper > .row:first-child > div:last-child {
  justify-content: center;
}

.fp-kardex-card .dataTables_filter {
  width: 100%;
  text-align: center !important;
}

.fp-kardex-card .dataTables_filter label {
  width: min(100%, 500px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #475569;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.fp-kardex-card .dataTables_filter input {
  width: min(100%, 340px) !important;
  min-height: 40px;
  margin-left: 0 !important;
  padding: 8px 12px;
  border-radius: 12px;
  background: #ffffff;
}

.fp-kardex-card .dataTables_filter input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-kardex-card .dataTables_length {
  width: 100%;
}

.fp-kardex-card .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.fp-kardex-filter {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.fp-kardex-form {
  align-items: end;
}

.fp-kardex-form label {
  position: relative;
}

.fp-kardex-form .form-control {
  min-height: 42px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.fp-kardex-form .form-control:hover {
  border-color: #94a3b8;
}

.fp-kardex-table-wrap {
  border-top: 1px solid #eef2f7;
}

@media (max-width: 767.98px) {
  .fp-kardex-card .dataTables_wrapper > .row:first-child > div,
  .fp-kardex-card .dataTables_wrapper > .row:first-child > div:first-child,
  .fp-kardex-card .dataTables_wrapper > .row:first-child > div:last-child {
    justify-content: center;
  }

  .fp-kardex-card .dataTables_length {
    margin-bottom: 10px;
    text-align: center;
  }

  .fp-kardex-card .dataTables_filter label {
    flex-direction: column;
    gap: 7px;
  }

  .fp-kardex-card .dataTables_filter input {
    width: 100% !important;
  }
}

/* Kardex product centered search controls */
.fp-kproducto-filter {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.fp-kproducto-form {
  align-items: end;
}

.fp-kproducto-search-field {
  display: grid !important;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.fp-kproducto-search-field > span {
  margin-bottom: 0 !important;
}

.fp-kproducto-search-help {
  display: block;
  max-width: 560px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.35;
}

.fp-kproducto-search {
  width: min(100%, 560px);
}

.fp-kproducto-search .form-control {
  min-height: 44px;
  padding-left: 42px;
  padding-right: 14px;
  border-radius: 14px;
  background: #ffffff;
  font-weight: 750;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.fp-kproducto-search .form-control:hover {
  border-color: #94a3b8;
}

.fp-kproducto-search .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12), 0 14px 28px rgba(15, 23, 42, .08);
}

.fp-kproducto-search > i {
  left: 15px;
}

.fp-kproducto-results {
  width: min(100%, 560px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  text-align: left;
}

.fp-kproducto-results a {
  display: block;
  padding: 10px 12px;
  color: #0f172a;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}

.fp-kproducto-results a:hover,
.fp-kproducto-results a:focus {
  color: #0f766e;
  background: #ecfdf5;
  outline: 0;
}

.fp-kproducto-results dt {
  margin: 0 !important;
  font-size: .84rem;
  font-weight: 850;
  line-height: 1.35;
}

.fp-kproducto-results b {
  display: block;
  padding: 18px;
  color: #64748b;
  font-size: .84rem;
  text-align: center;
}

.fp-kproducto-card .dataTables_wrapper > .row:first-child {
  align-items: center;
  margin: 2px 0 12px;
}

.fp-kproducto-card .dataTables_wrapper > .row:first-child > div {
  display: flex;
  align-items: center;
}

.fp-kproducto-card .dataTables_wrapper > .row:first-child > div:first-child {
  justify-content: flex-start;
}

.fp-kproducto-card .dataTables_wrapper > .row:first-child > div:last-child {
  justify-content: center;
}

.fp-kproducto-card .dataTables_filter {
  width: 100%;
  text-align: center !important;
}

.fp-kproducto-card .dataTables_filter label {
  width: min(100%, 500px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #475569;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.fp-kproducto-card .dataTables_filter input {
  width: min(100%, 340px) !important;
  min-height: 40px;
  margin-left: 0 !important;
  padding: 8px 12px;
  border-radius: 12px;
  background: #ffffff;
}

.fp-kproducto-card .dataTables_filter input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-kproducto-card .dataTables_length {
  width: 100%;
}

.fp-kproducto-card .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.fp-kproducto-table-wrap {
  overflow: auto;
}

.fp-kproducto-table {
  min-width: 900px;
}

@media (min-width: 992px) {
  .fp-kproducto-search-field {
    grid-column: 1 / -1;
  }

  .fp-kproducto-form {
    grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) auto;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .fp-kproducto-card .dataTables_wrapper > .row:first-child > div,
  .fp-kproducto-card .dataTables_wrapper > .row:first-child > div:first-child,
  .fp-kproducto-card .dataTables_wrapper > .row:first-child > div:last-child {
    justify-content: center;
  }

  .fp-kproducto-card .dataTables_length {
    margin-bottom: 10px;
    text-align: center;
  }

  .fp-kproducto-card .dataTables_filter label {
    flex-direction: column;
    gap: 7px;
  }

  .fp-kproducto-card .dataTables_filter input,
  .fp-kproducto-search,
  .fp-kproducto-results {
    width: 100% !important;
  }
}

/* Kardex product primary search restored */
.fp-kproducto-search-field {
  display: block !important;
  text-align: left;
}

.fp-kproducto-search-field > span {
  margin-bottom: 5px !important;
}

.fp-kproducto-search {
  width: auto;
}

.fp-kproducto-search .form-control {
  min-height: 40px;
  padding-left: 38px;
  padding-right: .75rem;
  border-radius: 12px;
  font-weight: 400;
  box-shadow: none;
}

.fp-kproducto-search > i {
  left: 13px;
}

.fp-kproducto-results {
  width: auto;
  left: 0;
  right: 0;
  transform: none;
  text-align: left;
}

@media (min-width: 992px) {
  .fp-kproducto-search-field {
    grid-column: auto;
  }

  .fp-kproducto-form {
    grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 190px) minmax(150px, 190px) auto;
    justify-content: initial;
  }
}

/* Kardex product primary search wider */
@media (min-width: 992px) {
  .fp-kproducto-form {
    grid-template-columns: minmax(380px, 1.7fr) minmax(150px, 190px) minmax(150px, 190px) auto;
  }
}

.fp-kproducto-search-field {
  min-width: min(100%, 380px);
}

/* Product records centered DataTable search */
.fp-products-table-card .dataTables_wrapper > .row:first-child {
  align-items: center;
  margin: 0 0 12px;
  padding: 2px 0 0;
}

.fp-products-table-card .dataTables_wrapper > .row:first-child > div {
  display: flex;
  align-items: center;
}

.fp-products-table-card .dataTables_wrapper > .row:first-child > div:first-child {
  justify-content: flex-start;
}

.fp-products-table-card .dataTables_wrapper > .row:first-child > div:last-child {
  justify-content: center;
}

.fp-products-table-card .dataTables_filter {
  width: 100%;
  text-align: center !important;
}

.fp-products-table-card .dataTables_filter label {
  width: min(100%, 520px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  padding: 8px 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: .82rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.fp-products-table-card .dataTables_filter input {
  width: min(100%, 350px) !important;
  min-height: 40px;
  margin-left: 0 !important;
  padding: 8px 12px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-weight: 750;
}

.fp-products-table-card .dataTables_filter input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-products-table-card .dataTables_length {
  width: 100%;
}

.fp-products-table-card .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  min-height: 40px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.fp-products-table-card .dataTables_length select {
  min-height: 34px;
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .fp-products-table-card .dataTables_wrapper > .row:first-child > div,
  .fp-products-table-card .dataTables_wrapper > .row:first-child > div:first-child,
  .fp-products-table-card .dataTables_wrapper > .row:first-child > div:last-child {
    justify-content: center;
  }

  .fp-products-table-card .dataTables_length {
    margin-bottom: 10px;
    text-align: center;
  }

  .fp-products-table-card .dataTables_filter label,
  .fp-products-table-card .dataTables_length label {
    width: 100%;
    flex-direction: column;
    gap: 7px;
  }

  .fp-products-table-card .dataTables_filter input {
    width: 100% !important;
  }
}

/* Kardex lot centered search controls */
.fp-klote-card .dataTables_wrapper > .row:first-child {
  align-items: center;
  margin: 2px 0 12px;
}

.fp-klote-card .dataTables_wrapper > .row:first-child > div {
  display: flex;
  align-items: center;
}

.fp-klote-card .dataTables_wrapper > .row:first-child > div:first-child {
  justify-content: flex-start;
}

.fp-klote-card .dataTables_wrapper > .row:first-child > div:last-child {
  justify-content: center;
}

.fp-klote-card .dataTables_filter {
  width: 100%;
  text-align: center !important;
}

.fp-klote-card .dataTables_filter label {
  width: min(100%, 500px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #475569;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.fp-klote-card .dataTables_filter input {
  width: min(100%, 340px) !important;
  min-height: 40px;
  margin-left: 0 !important;
  padding: 8px 12px;
  border-radius: 12px;
  background: #ffffff;
  font-weight: 750;
}

.fp-klote-card .dataTables_filter input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-klote-card .dataTables_length {
  width: 100%;
}

.fp-klote-card .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  min-height: 40px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.fp-klote-card .dataTables_length select {
  min-height: 34px;
  cursor: pointer;
}

.fp-klote-table-wrap {
  overflow: auto;
}

.fp-klote-table {
  min-width: 860px;
}

@media (max-width: 767.98px) {
  .fp-klote-card .dataTables_wrapper > .row:first-child > div,
  .fp-klote-card .dataTables_wrapper > .row:first-child > div:first-child,
  .fp-klote-card .dataTables_wrapper > .row:first-child > div:last-child {
    justify-content: center;
  }

  .fp-klote-card .dataTables_length {
    margin-bottom: 10px;
    text-align: center;
  }

  .fp-klote-card .dataTables_filter label,
  .fp-klote-card .dataTables_length label {
    width: 100%;
    flex-direction: column;
    gap: 7px;
  }

  .fp-klote-card .dataTables_filter input {
    width: 100% !important;
  }
}

/* Facturacion principal */
.fp-invoice-header {
  padding-top: 14px;
}

.fp-invoice-page {
  padding-bottom: 18px;
}

.fp-invoice-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.fp-invoice-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fp-invoice-hero-main h1 {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.fp-invoice-hero-main p {
  max-width: 740px;
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.fp-invoice-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.fp-invoice-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-weight: 850;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.fp-invoice-action:hover {
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .1);
  transform: translateY(-1px);
}

.fp-invoice-action.is-primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.fp-invoice-action.is-primary:hover {
  color: #ffffff;
}

.fp-invoice-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.fp-invoice-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.fp-invoice-stat > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff;
}

.fp-invoice-stat small,
.fp-invoice-stat strong {
  display: block;
  line-height: 1.1;
}

.fp-invoice-stat small {
  color: #64748b;
  font-weight: 800;
}

.fp-invoice-stat strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.fp-invoice-stat.is-primary > span { background: #0f766e; }
.fp-invoice-stat.is-info > span { background: #0284c7; }
.fp-invoice-stat.is-warning > span { background: #d97706; }
.fp-invoice-stat.is-success > span { background: #16a34a; }
.fp-invoice-stat.is-danger > span { background: #dc2626; }

.fp-invoice-card {
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-invoice-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.fp-invoice-card-head > div > span {
  display: inline-flex;
  margin-bottom: 4px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-invoice-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.fp-invoice-card-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-weight: 750;
}

.fp-invoice-tabs {
  display: flex;
  gap: 6px;
}

.fp-invoice-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-weight: 850;
}

.fp-invoice-tabs .nav-link.active,
.fp-invoice-tabs .nav-link:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.fp-invoice-alert {
  margin: 14px 16px 0;
}

.fp-invoice-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px 8px;
}

.fp-invoice-filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.fp-invoice-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-weight: 850;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.fp-invoice-filter:hover,
.fp-invoice-filter.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
  transform: translateY(-1px);
}

.fp-invoice-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  margin: 12px 16px;
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.fp-invoice-empty i {
  color: #16a34a;
  font-size: 26px;
}

.fp-invoice-empty strong {
  color: #0f172a;
  font-size: 16px;
}

.fp-invoice-table-wrap {
  overflow: auto;
  padding: 0 16px 16px;
}

.fp-invoice-table {
  min-width: 1020px;
}

.fp-invoice-table thead th {
  border-top: 0;
  border-bottom: 1px solid #cbd5e1 !important;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fp-invoice-table tbody td {
  vertical-align: middle;
  border-color: #e2e8f0;
  color: #334155;
}

.fp-invoice-table tbody tr:hover td {
  background: #f8fafc;
}

.fp-invoice-index {
  color: #64748b;
  font-weight: 900;
  white-space: nowrap;
}

.fp-invoice-index > span {
  margin-left: 6px;
}

.fp-invoice-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.fp-invoice-expand.is-open {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.fp-invoice-expand.is-open i {
  transform: rotate(180deg);
}

.fp-invoice-doc,
.fp-invoice-client {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fp-invoice-doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  color: #ffffff;
}

.fp-invoice-doc-icon.is-info { background: #0284c7; }
.fp-invoice-doc-icon.is-warning { background: #d97706; }
.fp-invoice-doc-icon.is-success { background: #16a34a; }

.fp-invoice-doc strong,
.fp-invoice-client strong,
.fp-invoice-doc small,
.fp-invoice-client small {
  display: block;
}

.fp-invoice-doc strong,
.fp-invoice-client strong {
  color: #0f172a;
  font-weight: 900;
}

.fp-invoice-doc small,
.fp-invoice-client small {
  margin-top: 2px;
  color: #64748b;
  font-weight: 750;
}

.fp-invoice-type,
.fp-invoice-date,
.fp-invoice-due,
.fp-invoice-files span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.fp-invoice-type.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-invoice-type.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-invoice-type.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-invoice-date {
  background: #f1f5f9;
  color: #334155;
}

.fp-invoice-due.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-invoice-due.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-invoice-due.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.fp-invoice-due-text {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-weight: 750;
}

.fp-invoice-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fp-invoice-files .is-ready {
  background: #dcfce7;
  color: #166534;
}

.fp-invoice-files .is-pending {
  background: #f1f5f9;
  color: #64748b;
}

.fp-invoice-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
  transition: transform .16s ease, box-shadow .16s ease;
}

.fp-invoice-send:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .16);
}

.fp-invoice-send.is-info { background: #0284c7; }
.fp-invoice-send.is-warning { background: #d97706; }
.fp-invoice-send.is-success { background: #16a34a; }
.fp-invoice-send.is-danger { background: #dc2626; }
.fp-invoice-send.is-disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.fp-invoice-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-invoice-detail small,
.fp-invoice-detail strong {
  display: block;
}

.fp-invoice-detail small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-invoice-detail strong {
  margin-top: 2px;
  color: #0f172a;
  font-weight: 850;
}

.fp-invoice-card .dataTables_wrapper > .row:first-child {
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 14px;
}

.fp-invoice-card .dataTables_wrapper > .row:first-child > [class*="col-"] {
  display: flex;
  flex: 0 0 auto;
  max-width: none;
  width: auto;
  justify-content: center;
  padding-left: 5px;
  padding-right: 5px;
}

.fp-invoice-card .dataTables_length,
.fp-invoice-card .dataTables_filter {
  float: none;
  text-align: center;
}

.fp-invoice-card .dataTables_length label,
.fp-invoice-card .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-weight: 850;
}

.fp-invoice-card .dataTables_filter input {
  width: min(70vw, 380px) !important;
  min-height: 36px;
  margin-left: 0 !important;
  border-radius: 8px;
  border-color: #cbd5e1;
  background: #ffffff;
  font-weight: 800;
}

.fp-invoice-card .dataTables_length select {
  min-height: 34px;
  border-radius: 8px;
  border-color: #cbd5e1;
  cursor: pointer;
}

.fp-invoice-card .dataTables_filter input:focus,
.fp-invoice-card .dataTables_length select:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-invoice-card .dataTables_info,
.fp-invoice-card .dataTables_paginate {
  color: #64748b;
  font-weight: 800;
}

.fp-invoice-card .page-link {
  border-radius: 8px;
  color: #0f766e;
  font-weight: 850;
}

.fp-invoice-card .page-item.active .page-link {
  background: #0f766e;
  border-color: #0f766e;
}

@media (max-width: 991.98px) {
  .fp-invoice-hero,
  .fp-invoice-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-invoice-hero-actions,
  .fp-invoice-tabs {
    justify-content: flex-start;
    width: 100%;
  }

  .fp-invoice-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-invoice-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-invoice-hero-main h1 {
    font-size: 22px;
  }

  .fp-invoice-stats,
  .fp-invoice-detail {
    grid-template-columns: 1fr;
  }

  .fp-invoice-card .dataTables_wrapper > .row:first-child {
    flex-direction: column;
  }

  .fp-invoice-card .dataTables_wrapper > .row:first-child > [class*="col-"],
  .fp-invoice-card .dataTables_length,
  .fp-invoice-card .dataTables_filter,
  .fp-invoice-card .dataTables_length label,
  .fp-invoice-card .dataTables_filter label {
    width: 100%;
  }

  .fp-invoice-card .dataTables_length label,
  .fp-invoice-card .dataTables_filter label {
    flex-direction: column;
  }

  .fp-invoice-card .dataTables_filter input {
    width: 100% !important;
  }
}

/* Resumenes pendientes */
.fp-summaryi-header .fp-invoice-hero-main span,
.fp-summaryi-card .fp-invoice-card-head > div > span {
  color: #0369a1;
}

.fp-summaryi-page .fp-invoice-stat.is-primary > span,
.fp-summaryi-card .fp-invoice-tabs .nav-link.active,
.fp-summaryi-card .fp-invoice-tabs .nav-link:hover,
.fp-summaryi-card .fp-invoice-filter:hover,
.fp-summaryi-card .fp-invoice-filter.is-active,
.fp-summaryi-card .page-item.active .page-link {
  background: #0369a1;
  border-color: #0369a1;
}

.fp-summaryi-card .fp-invoice-action.is-primary {
  background: #0369a1;
  border-color: #0369a1;
}

.fp-summaryi-card .dataTables_filter input:focus,
.fp-summaryi-card .dataTables_length select:focus {
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, .12);
}

.fp-summaryi-card .page-link {
  color: #0369a1;
}

.fp-summaryi-table {
  min-width: 1080px;
}

.fp-summaryi-date strong,
.fp-summaryi-date small,
.fp-summaryi-range strong,
.fp-summaryi-mix small {
  display: block;
}

.fp-summaryi-date strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.fp-summaryi-date small,
.fp-summaryi-mix small {
  margin-top: 4px;
  color: #64748b;
  font-weight: 800;
}

.fp-summaryi-mix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.fp-summaryi-mix small {
  flex-basis: 100%;
}

.fp-summaryi-mix > span,
.fp-summaryi-docs > span,
.fp-summaryi-doc-list > span,
.fp-summaryi-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.fp-summaryi-mix > span.is-info,
.fp-summaryi-docs > span.is-info,
.fp-summaryi-doc-list > span.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-summaryi-mix > span.is-warning,
.fp-summaryi-docs > span.is-warning,
.fp-summaryi-doc-list > span.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-summaryi-range strong {
  color: #0f172a;
  font-weight: 950;
}

.fp-summaryi-docs,
.fp-summaryi-doc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.fp-summaryi-docs {
  max-width: 420px;
}

.fp-summaryi-docs > span {
  min-height: 24px;
  padding: 3px 7px;
  font-size: 11px;
}

.fp-summaryi-docs > span.is-more {
  background: #f1f5f9;
  color: #475569;
}

.fp-summaryi-total {
  background: #ecfdf5;
  color: #166534;
  font-size: 13px;
}

.fp-summaryi-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-summaryi-detail > div.is-wide {
  grid-column: 1 / -1;
}

.fp-summaryi-detail small,
.fp-summaryi-detail strong {
  display: block;
}

.fp-summaryi-detail small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-summaryi-detail strong {
  margin-top: 2px;
  color: #0f172a;
  font-weight: 850;
}

@media (max-width: 991.98px) {
  .fp-summaryi-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-summaryi-docs {
    max-width: 100%;
  }

  .fp-summaryi-detail {
    grid-template-columns: 1fr;
  }
}

/* Resumenes enviados */
.fp-summary-list-header .fp-invoice-hero-main span,
.fp-summary-list-card .fp-invoice-card-head > div > span {
  color: #0369a1;
}

.fp-summary-list-page .fp-invoice-stat.is-primary > span,
.fp-summary-list-card .fp-invoice-tabs .nav-link.active,
.fp-summary-list-card .fp-invoice-tabs .nav-link:hover,
.fp-summary-list-card .fp-invoice-filter:hover,
.fp-summary-list-card .fp-invoice-filter.is-active,
.fp-summary-list-card .page-item.active .page-link {
  background: #0369a1;
  border-color: #0369a1;
}

.fp-summary-list-card .fp-invoice-action.is-primary {
  background: #0369a1;
  border-color: #0369a1;
}

.fp-summary-list-card .dataTables_filter input:focus,
.fp-summary-list-card .dataTables_length select:focus,
.fp-summary-list-field .form-control:focus {
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, .12);
}

.fp-summary-list-card .page-link {
  color: #0369a1;
}

.fp-summary-list-filter {
  display: grid;
  grid-template-columns: minmax(150px, .22fr) minmax(150px, .22fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 14px 16px 6px;
}

.fp-summary-list-field label {
  margin-bottom: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-summary-list-field .form-control {
  min-height: 38px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #0f172a;
  box-shadow: none;
}

.fp-summary-list-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0369a1, #14b8a6);
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(3, 105, 161, .18);
}

.fp-summary-list-table {
  min-width: 1120px;
}

.fp-summary-list-id strong,
.fp-summary-list-id small,
.fp-summary-list-ticket strong,
.fp-summary-list-ticket small {
  display: block;
}

.fp-summary-list-id strong,
.fp-summary-list-ticket strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.fp-summary-list-id small,
.fp-summary-list-ticket small,
.fp-summary-list-counts strong {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.fp-summary-list-id.is-warning strong {
  color: #b45309;
}

.fp-summary-list-ticket.is-danger strong {
  color: #dc2626;
}

.fp-summary-list-status {
  min-width: 90px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.fp-summary-list-docs,
.fp-summary-list-doc-list,
.fp-summary-list-counts,
.fp-summary-list-downloads,
.fp-summary-list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.fp-summary-list-docs {
  max-width: 360px;
}

.fp-summary-list-docs > span,
.fp-summary-list-doc-list > span,
.fp-summary-list-counts > span,
.fp-summary-list-downloads > a,
.fp-summary-list-downloads > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

.fp-summary-list-docs > span.is-info,
.fp-summary-list-doc-list > span.is-info,
.fp-summary-list-counts > span.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-summary-list-docs > span.is-warning,
.fp-summary-list-doc-list > span.is-warning,
.fp-summary-list-counts > span.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-summary-list-docs > span.is-more,
.fp-summary-list-docs > span.is-empty,
.fp-summary-list-downloads > span {
  background: #f1f5f9;
  color: #64748b;
}

.fp-summary-list-counts {
  min-width: 150px;
}

.fp-summary-list-counts strong {
  flex-basis: 100%;
}

.fp-summary-list-downloads > a {
  text-decoration: none;
  transition: transform .16s ease;
}

.fp-summary-list-downloads > a:hover {
  transform: translateY(-1px);
}

.fp-summary-list-downloads .is-xml {
  background: #dcfce7;
  color: #15803d;
}

.fp-summary-list-downloads .is-cdr {
  background: #e0f2fe;
  color: #0284c7;
}

.fp-summary-list-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-summary-list-detail > div.is-wide {
  grid-column: 1 / -1;
}

.fp-summary-list-detail small,
.fp-summary-list-detail strong {
  display: block;
}

.fp-summary-list-detail small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-summary-list-detail strong {
  margin-top: 2px;
  color: #0f172a;
  font-weight: 850;
}

@media (max-width: 991.98px) {
  .fp-summary-list-filter,
  .fp-summary-list-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-summary-list-button {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .fp-summary-list-filter,
  .fp-summary-list-detail {
    grid-template-columns: 1fr;
  }

  .fp-summary-list-button {
    grid-column: auto;
  }

  .fp-summary-list-docs {
    max-width: 100%;
  }
}

/* Anulaciones enviadas */
.fp-cancel-list-header .fp-invoice-hero-main span,
.fp-cancel-list-card .fp-invoice-card-head > div > span {
  color: #be123c;
}

.fp-cancel-list-page .fp-invoice-stat.is-primary > span,
.fp-cancel-list-card .fp-invoice-tabs .nav-link.active,
.fp-cancel-list-card .fp-invoice-tabs .nav-link:hover,
.fp-cancel-list-card .fp-invoice-filter:hover,
.fp-cancel-list-card .fp-invoice-filter.is-active,
.fp-cancel-list-card .page-item.active .page-link {
  background: #be123c;
  border-color: #be123c;
}

.fp-cancel-list-card .fp-invoice-action.is-primary {
  background: #be123c;
  border-color: #be123c;
}

.fp-cancel-list-card .dataTables_filter input:focus,
.fp-cancel-list-card .dataTables_length select:focus,
.fp-cancel-list-field .form-control:focus {
  border-color: #be123c;
  box-shadow: 0 0 0 3px rgba(190, 18, 60, .12);
}

.fp-cancel-list-card .page-link {
  color: #be123c;
}

.fp-cancel-list-filter {
  display: grid;
  grid-template-columns: minmax(150px, .22fr) minmax(150px, .22fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 14px 16px 6px;
}

.fp-cancel-list-field label {
  margin-bottom: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-cancel-list-field .form-control {
  min-height: 38px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #0f172a;
  box-shadow: none;
}

.fp-cancel-list-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #be123c, #2563eb);
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(190, 18, 60, .18);
}

.fp-cancel-list-table {
  min-width: 1120px;
}

.fp-cancel-list-id > span,
.fp-cancel-list-id strong,
.fp-cancel-list-id small,
.fp-cancel-list-ticket strong,
.fp-cancel-list-ticket small {
  display: block;
}

.fp-cancel-list-id > span {
  width: max-content;
  margin-bottom: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-cancel-list-id > span.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-cancel-list-id > span.is-danger {
  background: #fee2e2;
  color: #dc2626;
}

.fp-cancel-list-id strong,
.fp-cancel-list-ticket strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.fp-cancel-list-id small,
.fp-cancel-list-ticket small,
.fp-cancel-list-counts strong {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.fp-cancel-list-id.is-warning strong {
  color: #b45309;
}

.fp-cancel-list-ticket.is-danger strong {
  color: #dc2626;
}

.fp-cancel-list-status {
  min-width: 90px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.fp-cancel-list-docs,
.fp-cancel-list-doc-list,
.fp-cancel-list-counts,
.fp-cancel-list-downloads,
.fp-cancel-list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.fp-cancel-list-docs {
  max-width: 360px;
}

.fp-cancel-list-docs > span,
.fp-cancel-list-doc-list > span,
.fp-cancel-list-counts > span,
.fp-cancel-list-downloads > a,
.fp-cancel-list-downloads > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

.fp-cancel-list-docs > span.is-info,
.fp-cancel-list-doc-list > span.is-info,
.fp-cancel-list-counts > span.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-cancel-list-docs > span.is-warning,
.fp-cancel-list-doc-list > span.is-warning,
.fp-cancel-list-counts > span.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-cancel-list-docs > span.is-danger,
.fp-cancel-list-doc-list > span.is-danger,
.fp-cancel-list-counts > span.is-danger {
  background: #fee2e2;
  color: #dc2626;
}

.fp-cancel-list-docs > span.is-more,
.fp-cancel-list-docs > span.is-empty,
.fp-cancel-list-downloads > span {
  background: #f1f5f9;
  color: #64748b;
}

.fp-cancel-list-counts {
  min-width: 150px;
}

.fp-cancel-list-counts strong {
  flex-basis: 100%;
}

.fp-cancel-list-downloads > a {
  text-decoration: none;
  transition: transform .16s ease;
}

.fp-cancel-list-downloads > a:hover {
  transform: translateY(-1px);
}

.fp-cancel-list-downloads .is-xml {
  background: #dcfce7;
  color: #15803d;
}

.fp-cancel-list-downloads .is-cdr {
  background: #e0f2fe;
  color: #0284c7;
}

.fp-cancel-list-detail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-cancel-list-detail > div.is-wide {
  grid-column: 1 / -1;
}

.fp-cancel-list-detail small,
.fp-cancel-list-detail strong {
  display: block;
}

.fp-cancel-list-detail small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-cancel-list-detail strong {
  margin-top: 2px;
  color: #0f172a;
  font-weight: 850;
}

@media (max-width: 1199.98px) {
  .fp-cancel-list-detail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .fp-cancel-list-filter,
  .fp-cancel-list-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-cancel-list-button {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .fp-cancel-list-filter,
  .fp-cancel-list-detail {
    grid-template-columns: 1fr;
  }

  .fp-cancel-list-button {
    grid-column: auto;
  }

  .fp-cancel-list-docs {
    max-width: 100%;
  }
}

/* Anulaciones pendientes */
.fp-canceli-header .fp-invoice-hero-main span,
.fp-canceli-card .fp-invoice-card-head > div > span {
  color: #be123c;
}

.fp-canceli-page .fp-invoice-stat.is-primary > span,
.fp-canceli-card .fp-invoice-tabs .nav-link.active,
.fp-canceli-card .fp-invoice-tabs .nav-link:hover,
.fp-canceli-card .fp-invoice-filter:hover,
.fp-canceli-card .fp-invoice-filter.is-active,
.fp-canceli-card .page-item.active .page-link {
  background: #be123c;
  border-color: #be123c;
}

.fp-canceli-header .fp-invoice-action.is-primary,
.fp-canceli-card .fp-invoice-action.is-primary,
.fp-canceli-card .fp-invoice-send.is-info {
  background: #be123c;
  border-color: #be123c;
}

.fp-canceli-card .dataTables_filter input:focus,
.fp-canceli-card .dataTables_length select:focus {
  border-color: #be123c;
  box-shadow: 0 0 0 3px rgba(190, 18, 60, .12);
}

.fp-canceli-card .page-link {
  color: #be123c;
}

.fp-canceli-table {
  min-width: 1120px;
}

.fp-canceli-date strong,
.fp-canceli-date small,
.fp-canceli-group small,
.fp-canceli-range strong {
  display: block;
}

.fp-canceli-date strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.fp-canceli-date small,
.fp-canceli-group small {
  margin-top: 4px;
  color: #64748b;
  font-weight: 800;
}

.fp-canceli-group,
.fp-canceli-mix,
.fp-canceli-docs,
.fp-canceli-doc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fp-canceli-group {
  align-items: center;
}

.fp-canceli-group small {
  flex-basis: 100%;
}

.fp-canceli-group > span,
.fp-canceli-mix > span,
.fp-canceli-docs > span,
.fp-canceli-doc-list > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.fp-canceli-group > span.is-info,
.fp-canceli-mix > span.is-info,
.fp-canceli-docs > span.is-info,
.fp-canceli-doc-list > span.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-canceli-group > span.is-success,
.fp-canceli-mix > span.is-success,
.fp-canceli-docs > span.is-success,
.fp-canceli-doc-list > span.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-canceli-mix > span.is-warning,
.fp-canceli-docs > span.is-warning,
.fp-canceli-doc-list > span.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-canceli-mix > span.is-danger,
.fp-canceli-docs > span.is-danger,
.fp-canceli-doc-list > span.is-danger {
  background: #ffe4e6;
  color: #9f1239;
}

.fp-canceli-range strong {
  color: #0f172a;
  font-weight: 950;
}

.fp-canceli-docs,
.fp-canceli-doc-list {
  margin-top: 6px;
}

.fp-canceli-docs {
  max-width: 430px;
}

.fp-canceli-docs > span {
  min-height: 24px;
  padding: 3px 7px;
  font-size: 11px;
}

.fp-canceli-docs > span.is-more {
  background: #f1f5f9;
  color: #475569;
}

.fp-invoice-due.is-muted {
  background: #f1f5f9;
  color: #475569;
}

.fp-canceli-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-canceli-detail > div.is-wide {
  grid-column: 1 / -1;
}

.fp-canceli-detail small,
.fp-canceli-detail strong {
  display: block;
}

.fp-canceli-detail small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-canceli-detail strong {
  margin-top: 2px;
  color: #0f172a;
  font-weight: 850;
}

@media (max-width: 991.98px) {
  .fp-canceli-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-canceli-docs {
    max-width: 100%;
  }

  .fp-canceli-detail {
    grid-template-columns: 1fr;
  }
}

/* Rectificaciones */
.fp-recti-header .fp-invoice-hero-main span,
.fp-recti-card .fp-invoice-card-head > div > span {
  color: #6d28d9;
}

.fp-recti-page .fp-invoice-stat.is-primary > span,
.fp-recti-card .fp-invoice-tabs .nav-link.active,
.fp-recti-card .fp-invoice-tabs .nav-link:hover,
.fp-recti-card .fp-invoice-filter:hover,
.fp-recti-card .fp-invoice-filter.is-active,
.fp-recti-card .page-item.active .page-link {
  background: #6d28d9;
  border-color: #6d28d9;
}

.fp-recti-header .fp-invoice-action.is-primary,
.fp-recti-card .fp-invoice-action.is-primary,
.fp-recti-card .fp-invoice-send.is-info {
  background: #6d28d9;
  border-color: #6d28d9;
}

.fp-recti-card .dataTables_filter input:focus,
.fp-recti-card .dataTables_length select:focus {
  border-color: #6d28d9;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}

.fp-recti-card .page-link {
  color: #6d28d9;
}

.fp-recti-table {
  min-width: 1160px;
}

.fp-invoice-due.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-recti-code {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-weight: 900;
}

.fp-recti-message {
  max-width: 370px;
  margin-top: 5px;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.fp-recti-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #166534;
  font-weight: 950;
  white-space: nowrap;
}

.fp-recti-card .fp-invoice-files a,
.fp-recti-card .fp-invoice-files span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.fp-recti-card .fp-invoice-files a:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-recti-actions {
  display: inline-flex;
  justify-content: center;
  gap: 7px;
}

.fp-recti-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-recti-detail > div.is-wide {
  grid-column: 1 / -1;
}

.fp-recti-detail small,
.fp-recti-detail strong {
  display: block;
}

.fp-recti-detail small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-recti-detail strong {
  margin-top: 2px;
  color: #0f172a;
  font-weight: 850;
  line-height: 1.35;
}

@media (max-width: 991.98px) {
  .fp-recti-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-recti-message {
    max-width: 100%;
  }

  .fp-recti-detail {
    grid-template-columns: 1fr;
  }
}

/* Validador SUNAT */
.fp-validator-header .fp-invoice-hero-main span,
.fp-validator-card .fp-invoice-card-head > div > span {
  color: #0f766e;
}

.fp-validator-page .fp-invoice-stat.is-primary > span,
.fp-validator-card .fp-invoice-tabs .nav-link.active,
.fp-validator-card .fp-invoice-tabs .nav-link:hover,
.fp-validator-card .fp-invoice-filter:hover,
.fp-validator-card .fp-invoice-filter.is-active {
  background: #0f766e;
  border-color: #0f766e;
}

.fp-validator-header .fp-invoice-action.is-primary,
.fp-validator-card .fp-invoice-action.is-primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.fp-validator-form {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-validator-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(120px, .7fr) minmax(140px, .8fr) minmax(140px, .8fr) auto;
  gap: 10px;
  align-items: end;
}

.fp-validator-grid.is-ticket {
  grid-template-columns: minmax(240px, 420px) auto;
  justify-content: center;
}

.fp-validator-field {
  min-width: 0;
}

.fp-validator-field label {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-validator-field .form-control {
  min-height: 38px;
  border-color: #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 800;
}

.fp-validator-field .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-validator-submit {
  display: flex;
  align-items: flex-end;
}

.fp-validator-submit .fp-invoice-action {
  width: 100%;
  min-height: 38px;
  border: 0;
}

.fp-validator-toolbar {
  padding-top: 16px;
}

.fp-validator-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 420px);
  min-height: 42px;
  padding: 7px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
}

.fp-validator-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-weight: 800;
}

.fp-validator-search input::placeholder {
  color: #94a3b8;
}

.fp-validator-table {
  min-width: 1060px;
}

.fp-validator-table-wrap {
  max-height: 500px;
}

.fp-validator-system {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 900;
  white-space: nowrap;
}

.fp-validator-system.badge-success {
  background: #dcfce7;
  color: #166534;
}

.fp-validator-system.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.fp-validator-system.badge-primary,
.fp-validator-system.badge-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-validator-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-validator-detail > div.is-wide {
  grid-column: 1 / -1;
}

.fp-validator-detail small,
.fp-validator-detail strong {
  display: block;
}

.fp-validator-detail small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-validator-detail strong {
  margin-top: 2px;
  color: #0f172a;
  font-weight: 850;
  line-height: 1.35;
}

.fp-validator-child-row > td {
  padding: 0 12px 12px !important;
  background: #ffffff !important;
}

.fp-validator-regularize {
  display: flex;
  justify-content: center;
  padding: 0 16px 18px;
}

.fp-validator-regularize .fp-invoice-action {
  min-height: 40px;
  border: 0;
}

@media (max-width: 991.98px) {
  .fp-validator-grid,
  .fp-validator-grid.is-ticket {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-validator-submit {
    grid-column: 1 / -1;
  }

  .fp-validator-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-validator-grid,
  .fp-validator-grid.is-ticket,
  .fp-validator-detail {
    grid-template-columns: 1fr;
  }

  .fp-validator-search {
    width: 100%;
  }

  .fp-validator-regularize .fp-invoice-action {
    width: 100%;
  }
}

/* Consistencia documentos */
.fp-consistency-header .fp-invoice-hero-main span,
.fp-consistency-card .fp-invoice-card-head > div > span {
  color: #047857;
}

.fp-consistency-page .fp-invoice-stat.is-primary > span,
.fp-consistency-card .fp-invoice-tabs .nav-link.active,
.fp-consistency-card .fp-invoice-tabs .nav-link:hover,
.fp-consistency-card .fp-invoice-filter:hover,
.fp-consistency-card .fp-invoice-filter.is-active,
.fp-consistency-card .page-item.active .page-link {
  background: #047857;
  border-color: #047857;
}

.fp-consistency-header .fp-invoice-action.is-primary,
.fp-consistency-card .fp-invoice-action.is-primary {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
}

.fp-consistency-card .fp-validator-search:focus-within {
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, .12);
}

.fp-consistency-section {
  padding: 16px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-consistency-card .fp-consistency-section:first-of-type {
  border-top: 0;
}

.fp-consistency-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fp-consistency-section-head span,
.fp-consistency-section-head h3 {
  display: block;
}

.fp-consistency-section-head span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fp-consistency-section-head h3 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.fp-consistency-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fp-consistency-status-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-consistency-status-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.fp-consistency-status-title > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0369a1;
}

.fp-consistency-status-title > span.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-consistency-status-title > span.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-consistency-status-title > span.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.fp-consistency-status-title strong,
.fp-consistency-status-title small {
  display: block;
}

.fp-consistency-status-title strong {
  color: #0f172a;
  font-weight: 900;
}

.fp-consistency-status-title small {
  color: #64748b;
  font-weight: 800;
}

.fp-consistency-status-list {
  display: grid;
  gap: 7px;
}

.fp-consistency-status-list > div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  overflow: hidden;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-consistency-status-list span,
.fp-consistency-status-list strong {
  position: relative;
  z-index: 1;
}

.fp-consistency-status-list span {
  overflow: hidden;
  color: #475569;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-consistency-status-list strong {
  color: #0f172a;
  font-weight: 900;
}

.fp-consistency-status-list em {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 8px 8px 0;
  background: #047857;
}

.fp-consistency-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fp-consistency-month {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-consistency-month > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
}

.fp-consistency-bars {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.fp-consistency-bars > span {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-consistency-bars i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 8px;
  background: rgba(4, 120, 87, .16);
}

.fp-consistency-bars i.is-warning,
.fp-consistency-taxbox span i.is-warning {
  background: rgba(217, 119, 6, .18);
}

.fp-consistency-bars i.is-info,
.fp-consistency-taxbox span i.is-info {
  background: rgba(2, 132, 199, .18);
}

.fp-consistency-bars i.is-success,
.fp-consistency-taxbox span i.is-success {
  background: rgba(22, 163, 74, .18);
}

.fp-consistency-bars i.is-danger,
.fp-consistency-taxbox span i.is-danger {
  background: rgba(220, 38, 38, .18);
}

.fp-consistency-bars b,
.fp-consistency-bars em {
  position: relative;
  z-index: 1;
}

.fp-consistency-bars b {
  overflow: hidden;
  color: #334155;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-consistency-bars em {
  color: #0f172a;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.fp-consistency-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fp-consistency-table-wrap {
  padding-top: 0;
}

.fp-consistency-table {
  min-width: 1120px;
}

.fp-consistency-serie,
.fp-consistency-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.fp-consistency-serie {
  background: #ecfdf5;
  color: #047857;
}

.fp-consistency-chip {
  background: #f1f5f9;
  color: #334155;
}

.fp-consistency-chip.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-consistency-chip.is-muted {
  background: #f1f5f9;
  color: #64748b;
}

.fp-consistency-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 520px;
}

.fp-consistency-ranges span {
  display: inline-flex;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 850;
}

.fp-consistency-ranges span.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-consistency-ranges span.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-consistency-ranges span.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-consistency-ranges span.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.fp-consistency-ranges span.is-muted {
  background: #f1f5f9;
  color: #64748b;
}

.fp-consistency-tax-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fp-consistency-taxbox {
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-consistency-taxbox strong,
.fp-consistency-taxbox small {
  display: block;
}

.fp-consistency-taxbox strong {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.fp-consistency-taxbox small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.fp-consistency-taxbox.is-total {
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.fp-consistency-taxbox > span {
  overflow: hidden;
  width: 100%;
  height: 7px;
  margin-top: 4px;
  border-radius: 999px;
  background: #e2e8f0;
}

.fp-consistency-taxbox > span i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #047857;
}

@media (max-width: 1199.98px) {
  .fp-consistency-status-grid,
  .fp-consistency-months,
  .fp-consistency-tax-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .fp-consistency-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-consistency-tools,
  .fp-consistency-tools .fp-validator-search,
  .fp-consistency-tools .fp-invoice-filter-group {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .fp-consistency-status-grid,
  .fp-consistency-months,
  .fp-consistency-tax-grid {
    grid-template-columns: 1fr;
  }

  .fp-consistency-tools .fp-validator-search {
    width: 100%;
  }

  .fp-consistency-tools .fp-invoice-filter {
    flex: 1 1 140px;
  }
}

/* Venta interactiva */
.fp-salei-header .fp-invoice-hero-main span,
.fp-salei-card .fp-invoice-card-head > div > span {
  color: #0f766e;
}

.fp-salei-page .fp-invoice-stat.is-primary > span,
.fp-salei-card .fp-invoice-tabs .nav-link.active,
.fp-salei-card .fp-invoice-tabs .nav-link:hover,
.fp-salei-card .fp-invoice-filter:hover,
.fp-salei-card .fp-invoice-filter.is-active {
  background: #0f766e;
  border-color: #0f766e;
}

.fp-salei-header .fp-invoice-action.is-primary,
.fp-salei-card .fp-invoice-action.is-primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.fp-salei-stats .fp-invoice-stat strong {
  font-size: 20px;
}

.fp-salei-card {
  overflow: visible;
}

.fp-salei-live {
  display: grid;
  grid-template-columns: repeat(3, minmax(95px, 1fr));
  gap: 8px;
  min-width: min(100%, 420px);
}

.fp-salei-live > div {
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-salei-live > div.is-total {
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.fp-salei-live small,
.fp-salei-live strong {
  display: block;
  line-height: 1.1;
}

.fp-salei-live small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-salei-live strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.fp-salei-body {
  padding: 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.fp-salei-alert {
  border-radius: 8px;
  font-weight: 800;
}

.fp-salei-form {
  margin: 0;
}

.fp-salei-workspace {
  display: grid;
  grid-template-columns: minmax(470px, .96fr) minmax(520px, 1.04fr);
  gap: 14px;
}

.fp-salei-panel {
  min-width: 0;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.fp-salei-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 13px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.fp-salei-panel-head.is-compact {
  min-height: 0;
  padding: 0 0 10px;
  border-bottom: 0;
}

.fp-salei-panel-head span,
.fp-salei-panel-head h3 {
  display: block;
}

.fp-salei-panel-head span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fp-salei-panel-head h3 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.fp-salei-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .22);
  transition: transform .16s ease, box-shadow .16s ease;
}

.fp-salei-icon-action:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 118, 110, .24);
}

.fp-salei-search-grid {
  display: grid;
  grid-template-columns: minmax(160px, .5fr) minmax(260px, 1fr);
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.fp-salei-field {
  min-width: 0;
}

.fp-salei-field label {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-salei-field .form-control {
  min-height: 38px;
  border-color: #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 800;
}

.fp-salei-field .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-salei-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
}

.fp-salei-input:focus-within {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-salei-input .form-control {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fp-salei-input button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #e2e8f0;
  color: #334155;
}

.fp-salei-input button:hover {
  background: #0f766e;
  color: #ffffff;
}

.fp-salei-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px 0;
}

.fp-salei-hints span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
}

.fp-salei-table-wrap {
  overflow: auto;
  padding: 14px;
}

.fp-salei-products {
  height: 392px;
}

.fp-salei-selected {
  height: 430px;
}

.fp-salei-digemid {
  height: 550px;
  padding: 0;
}

.fp-salei-table-wrap table {
  margin-bottom: 0;
}

.fp-salei-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  border-top: 0;
  border-bottom: 1px solid #cbd5e1 !important;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fp-salei-table-wrap tbody td {
  vertical-align: middle;
  border-color: #e2e8f0;
  color: #334155;
}

.fp-salei-product-row.is-out td {
  background: #fff1f2;
}

.fp-salei-product-row.is-bonus td {
  background: #faf5ff;
}

.fp-salei-product-row.is-controlled td {
  background: #ecfdf5;
}

.fp-salei-product-name {
  display: block;
  color: #0f172a;
  line-height: 1.25;
}

.fp-salei-product-name:hover {
  color: #0f766e;
}

.fp-salei-product-name strong,
.fp-salei-product-name small {
  display: block;
}

.fp-salei-product-name strong {
  font-weight: 900;
}

.fp-salei-product-name small {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.fp-salei-bonus {
  color: #7e22ce;
  font-weight: 900;
}

.fp-salei-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 28px;
  padding: 4px 7px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 900;
}

.fp-salei-stock.is-lote {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-salei-stock.is-empty {
  background: #fee2e2;
  color: #991b1b;
}

.fp-salei-price {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 28px;
  padding: 4px 9px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-weight: 900;
  box-shadow: 0 7px 14px rgba(15, 23, 42, .12);
}

.fp-salei-price.is-unit {
  background: #0284c7 !important;
}

.fp-salei-price.is-blister {
  background: #4f46e5 !important;
}

.fp-salei-price.is-box {
  background: #16a34a !important;
}

.fp-salei-price.is-disabled {
  background: #e2e8f0 !important;
  color: #64748b !important;
  box-shadow: none;
}

.fp-salei-detail-head {
  display: grid;
  grid-template-columns: 2.2fr .5fr .55fr .75fr .8fr .8fr .9fr;
  gap: 8px;
  align-items: center;
}

.fp-salei-selected #grilla tr td:first-child {
  min-width: 640px;
}

.fp-salei-selected #grilla textarea,
.fp-salei-selected #grilla input,
.fp-salei-selected #grilla .form-control,
.fp-salei-totals .campo {
  border-radius: 8px;
  font-weight: 800;
}

.fp-salei-selected #grilla .campo {
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid transparent;
  background: #f8fafc;
}

.fp-salei-selected #grilla .campo:focus {
  border-color: #0f766e;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-salei-selected #grilla textarea.campo,
.fp-salei-selected #grilla textarea.form-control {
  min-height: 50px;
  resize: vertical;
}

.fp-salei-selected #grilla .elimina,
.fp-salei-addpay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  border-radius: 8px;
}

.fp-salei-service {
  cursor: pointer;
}

.fp-salei-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.fp-salei-totals > div {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-salei-totals > div.is-total {
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.fp-salei-totals small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-salei-totals input {
  width: 100%;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.fp-salei-checkout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 14px;
  margin-top: 14px;
}

.fp-salei-form-grid {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.fp-salei-form-grid.is-doc {
  grid-template-columns: minmax(150px, 1fr) minmax(80px, .45fr) minmax(180px, 1.35fr) minmax(140px, 1fr);
}

.fp-salei-form-grid.is-extra {
  grid-template-columns: minmax(140px, .7fr) minmax(140px, .7fr) minmax(240px, 1.6fr);
  padding-top: 0;
}

.fp-salei-form-grid.is-tax,
.fp-salei-form-grid.is-payment,
.fp-salei-form-grid.is-cash {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-salei-form-grid.is-modal {
  grid-template-columns: 1fr;
  padding: 0;
}

.fp-salei-field.is-wide {
  grid-column: span 2;
}

.fp-salei-tax-panel,
.fp-salei-payment-panel {
  margin: 0 14px 14px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-salei-payment-panel .form-group {
  margin-bottom: 0 !important;
}

.fp-salei-payment-panel label,
.fp-salei-payment-panel .col-form-label {
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-salei-switches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.fp-salei-switches .custom-control {
  min-height: 38px;
  padding: 9px 10px 8px 42px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-salei-switches .custom-control-label {
  color: #334155;
  font-weight: 850;
}

.fp-salei-client {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(135px, .28fr);
  gap: 10px;
  padding: 14px;
}

.fp-salei-points {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-salei-points small,
.fp-salei-points strong {
  display: block;
}

.fp-salei-points small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-salei-points strong {
  margin-top: 4px;
  color: #0f172a;
  font-weight: 900;
}

.fp-salei-cash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
  gap: 10px;
  align-items: end;
  padding: 0 14px 14px;
}

.fp-salei-cash .fp-salei-form-grid {
  padding: 0;
}

.fp-salei-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(15, 118, 110, .22);
  transition: transform .16s ease, box-shadow .16s ease;
}

.fp-salei-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 118, 110, .26);
}

.fp-salei-modal .modal-title {
  color: #0f172a;
  font-weight: 900;
}

.fp-salei-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 1199.98px) {
  .fp-salei-workspace,
  .fp-salei-checkout {
    grid-template-columns: 1fr;
  }

  .fp-salei-products,
  .fp-salei-selected {
    height: 360px;
  }
}

@media (max-width: 991.98px) {
  .fp-salei-live,
  .fp-salei-search-grid,
  .fp-salei-form-grid.is-doc,
  .fp-salei-form-grid.is-extra,
  .fp-salei-form-grid.is-tax,
  .fp-salei-form-grid.is-payment,
  .fp-salei-form-grid.is-cash,
  .fp-salei-client,
  .fp-salei-cash {
    grid-template-columns: 1fr;
  }

  .fp-salei-field.is-wide {
    grid-column: auto;
  }

  .fp-salei-switches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-salei-body {
    padding: 10px;
  }

  .fp-salei-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-salei-live,
  .fp-salei-totals,
  .fp-salei-switches {
    grid-template-columns: 1fr;
  }

  .fp-salei-table-wrap {
    padding: 10px;
  }

  .fp-salei-products,
  .fp-salei-selected {
    height: 320px;
  }
}

/* Venta listado */
.fp-sale-header .fp-invoice-hero-main span,
.fp-sale-card .fp-invoice-card-head > div > span {
  color: #0f766e;
}

.fp-sale-page .fp-invoice-stat.is-primary > span,
.fp-sale-card .fp-invoice-tabs .nav-link.active,
.fp-sale-card .fp-invoice-tabs .nav-link:hover,
.fp-sale-card .fp-invoice-filter:hover,
.fp-sale-card .fp-invoice-filter.is-active,
.fp-sale-card .page-item.active .page-link {
  background: #0f766e;
  border-color: #0f766e;
}

.fp-sale-header .fp-invoice-action.is-primary,
.fp-sale-card .fp-invoice-action.is-primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.fp-sale-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fp-sale-kpis > div {
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.fp-sale-kpis small,
.fp-sale-kpis strong {
  display: block;
}

.fp-sale-kpis small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-sale-kpis strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.fp-sale-toolbar {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-sale-alert {
  margin-bottom: 0;
  border-radius: 8px;
  font-weight: 800;
}

.fp-sale-period {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) auto;
  gap: 10px;
  align-items: end;
  justify-content: center;
}

.fp-sale-field label {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-sale-field .form-control {
  min-height: 38px;
  border-color: #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 800;
}

.fp-sale-field .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-sale-filters {
  padding-top: 2px;
}

.fp-sale-table {
  min-width: 1120px;
}

.fp-sale-date strong,
.fp-sale-date small,
.fp-sale-document span,
.fp-sale-document small,
.fp-sale-muted {
  display: block;
}

.fp-sale-date strong {
  color: #0f172a;
  font-weight: 900;
}

.fp-sale-date small,
.fp-sale-document small,
.fp-sale-muted {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.fp-sale-document span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 950;
  white-space: nowrap;
}

.fp-sale-amount {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 950;
  white-space: nowrap;
}

.fp-sale-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 900;
  white-space: nowrap;
}

.fp-sale-status.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-sale-status.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-sale-status.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.fp-sale-payment h5 {
  margin: 0;
  font-size: 13px;
}

.fp-sale-payment .badge,
.fp-sale-payment a {
  min-height: 28px;
  border-radius: 8px;
  font-weight: 900;
}

.fp-sale-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 180px;
}

.fp-sale-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .12);
  transition: transform .16s ease, box-shadow .16s ease;
}

.fp-sale-action:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, .16);
}

.fp-sale-action.is-light {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  box-shadow: none;
}

.fp-sale-action.is-light:hover {
  color: #0f172a;
}

.fp-sale-action.is-info { background: #0284c7; }
.fp-sale-action.is-primary { background: #0f766e; }
.fp-sale-action.is-success { background: #16a34a; }
.fp-sale-action.is-danger { background: #dc2626; }
.fp-sale-action.is-fuchsia { background: #c026d3; }
.fp-sale-action.is-purple { background: #7c3aed; }

.fp-sale-action.is-open i {
  transform: rotate(180deg);
}

.fp-sale-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-sale-detail small,
.fp-sale-detail strong {
  display: block;
}

.fp-sale-detail small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-sale-detail strong {
  margin-top: 2px;
  color: #0f172a;
  font-weight: 850;
  line-height: 1.35;
}

.fp-sale-table-wrap .child > td,
.fp-sale-table-wrap tr.child > td {
  background: #ffffff !important;
}

.fp-sale-modal .modal-title {
  color: #0f172a;
  font-weight: 900;
}

@media (max-width: 1199.98px) {
  .fp-sale-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .fp-sale-period {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .fp-sale-period .fp-invoice-action {
    grid-column: 1 / -1;
  }

  .fp-sale-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-sale-kpis,
  .fp-sale-period,
  .fp-sale-detail {
    grid-template-columns: 1fr;
  }

  .fp-sale-toolbar {
    padding: 12px;
  }

  .fp-sale-row-actions {
    min-width: 150px;
  }
}

/* POS rapido */
.fp-pos-header .fp-invoice-hero {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  border: 1px solid rgba(15, 118, 110, .16);
  background:
    radial-gradient(circle at 14% 10%, rgba(20, 184, 166, .22), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(45, 212, 191, .18), transparent 24%),
    linear-gradient(135deg, #0b3b4d 0%, #0f766e 58%, #0b5b68 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.fp-pos-header .fp-invoice-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0/72px 72px,
              linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0/72px 72px;
  pointer-events: none;
}

.fp-pos-header .fp-invoice-hero-main,
.fp-pos-hero-panel,
.fp-pos-hero-actions {
  position: relative;
  z-index: 1;
}

.fp-pos-header .fp-invoice-hero-main span,
.fp-pos-card .fp-invoice-card-head > div > span,
.fp-pos-section-head span {
  color: #0f766e;
}

.fp-pos-header .fp-invoice-hero-main span {
  color: rgba(255,255,255,.8);
}

.fp-pos-header .fp-invoice-hero-main h1 {
  color: #ffffff;
}

.fp-pos-header .fp-invoice-hero-main p {
  max-width: 760px;
  color: rgba(240,253,250,.78);
}

.fp-pos-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.fp-pos-hero-chips b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.fp-pos-hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 8px;
  min-width: 330px;
  align-self: center;
}

.fp-pos-hero-panel div {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}

.fp-pos-hero-panel small,
.fp-pos-hero-panel strong {
  display: block;
}

.fp-pos-hero-panel small {
  color: rgba(240,253,250,.72);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-pos-hero-panel strong {
  margin-top: 4px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.fp-pos-header .fp-invoice-action.is-primary,
.fp-pos-card .fp-invoice-action.is-primary,
.fp-pos-add-payment,
.fp-pos-submit {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border-color: #0f766e;
  color: #ffffff;
}

.fp-pos-header .fp-invoice-action.is-light {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
  color: #ffffff;
}

.fp-pos-page {
  background: linear-gradient(180deg, #f7fbfc 0%, #f1f7f9 100%);
}

.fp-pos-page .fp-invoice-stat {
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
}

.fp-pos-page .fp-invoice-stat.is-primary > span,
.fp-pos-card .fp-invoice-tabs .nav-link.active,
.fp-pos-card .fp-invoice-tabs .nav-link:hover,
.fp-pos-card .fp-invoice-filter:hover,
.fp-pos-card .fp-invoice-filter.is-active {
  background: #0f766e;
  border-color: #0f766e;
}

.fp-pos-alert {
  border: 0;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(154, 52, 18, .08);
}

.fp-pos-form {
  margin: 0;
}

.fp-pos-layout {
  display: grid;
  grid-template-columns: minmax(610px, 1.38fr) minmax(430px, .82fr);
  gap: 14px;
  align-items: start;
}

.fp-pos-card {
  overflow: hidden;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.fp-pos-checkout {
  position: sticky;
  top: 78px;
  align-self: start;
}

.fp-pos-card-head {
  gap: 14px;
  border-bottom: 1px solid #e5edf3;
  background: linear-gradient(180deg, #ffffff, #f8fbfc);
}

.fp-pos-card-head h2 {
  color: #0f172a;
}

.fp-pos-card-head p {
  color: #64748b;
}

.fp-pos-head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fp-pos-mini,
.fp-pos-total-live {
  min-width: 116px;
  padding: 9px 11px;
  border: 1px solid #c7f0e9;
  border-radius: 8px;
  background: linear-gradient(180deg, #ecfdf5, #f8fffd);
}

.fp-pos-mini small,
.fp-pos-mini strong,
.fp-pos-total-live small,
.fp-pos-total-live strong {
  display: block;
  line-height: 1.1;
}

.fp-pos-mini small,
.fp-pos-total-live small,
.fp-pos-points small,
.fp-pos-summary small {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-pos-mini strong,
.fp-pos-total-live strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 21px;
  font-weight: 950;
}

.fp-pos-density {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-pos-density button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
}

.fp-pos-density button.is-active {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15,118,110,.16);
}

.fp-pos-categories {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 13px 14px 11px;
  border-bottom: 1px solid #e5edf3;
  background: #ffffff;
  scrollbar-width: thin;
}

.fp-pos-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d5e1ea;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-weight: 850;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.fp-pos-category small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf6f5;
  color: #0f766e;
  font-weight: 900;
}

.fp-pos-category:hover,
.fp-pos-category.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 118, 110, .14);
}

.fp-pos-category:hover small,
.fp-pos-category.is-active small {
  background: rgba(255, 255, 255, .22);
  color: #ffffff;
}

.fp-pos-search {
  padding: 12px 14px;
  border-bottom: 1px solid #e5edf3;
  background: #f8fbfc;
}

.fp-pos-search-input {
  max-width: 720px;
}

.fp-pos-search-input input {
  min-height: 40px;
  border-color: #d5e1ea;
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
}

.fp-pos-search-input input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15,118,110,.11);
}

.fp-pos-products {
  height: min(640px, calc(100vh - 300px));
  min-height: 460px;
  overflow: auto;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(15,118,110,.035) 1px, transparent 1px) 0 0/42px 42px,
    #f6fafb;
}

.fp-pos-products #tblproducto {
  margin-left: -6px;
  margin-right: -6px;
}

.fp-pos-products #tblproducto > [class*="col-"] {
  padding-left: 6px;
  padding-right: 6px;
}

.fp-pos-layout.is-compact .fp-pos-products #tblproducto > [class*="col-"] {
  flex: 0 0 20%;
  max-width: 20%;
}

.fp-pos-product-card,
.fp-pos-products .card {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px !important;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.fp-pos-product-card:hover,
.fp-pos-products .card:hover {
  border-color: #5eead4;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .13);
}

.fp-pos-product-card.is-added {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20,184,166,.16), 0 18px 34px rgba(15, 23, 42, .13);
}

.fp-pos-product-card.is-out,
.fp-pos-products .card:has(.img-overlay) {
  opacity: .74;
  filter: grayscale(.08);
}

.fp-pos-product-media,
.fp-pos-products .card-body {
  position: relative;
  padding: 0 !important;
}

.fp-pos-product-media a,
.fp-pos-products .image-container {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / .76;
  background: #eef6f6;
}

.fp-pos-layout.is-compact .fp-pos-product-media a,
.fp-pos-layout.is-compact .fp-pos-products .image-container {
  aspect-ratio: 1 / .68;
}

.fp-pos-product-media img,
.fp-pos-products .image-container > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0 !important;
  border-radius: 0 !important;
  transition: transform .22s ease;
}

.fp-pos-product-card:hover .fp-pos-product-media img:first-child,
.fp-pos-products .card:hover .image-container > img:first-child {
  transform: scale(1.04);
}

.fp-pos-out-img,
.fp-pos-products .img-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fp-pos-product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fp-pos-product-badges b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .74);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.fp-pos-product-badges b.is-stock { background: rgba(15,118,110,.9); }
.fp-pos-product-badges b.is-danger { background: rgba(220,38,38,.9); }
.fp-pos-product-badges b.is-bulk { background: rgba(2,132,199,.9); }
.fp-pos-product-badges b.is-service { background: rgba(124,58,237,.88); }

.fp-pos-product-media span,
.fp-pos-products .overlay-text {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: block;
  min-height: 42px;
  padding: 8px 9px;
  background: linear-gradient(180deg, rgba(15,23,42,.12), rgba(15,23,42,.84)) !important;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-align: left;
}

.fp-pos-add-cue {
  position: absolute;
  right: 8px;
  bottom: 52px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #0f766e;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}

.fp-pos-product-card:hover .fp-pos-add-cue {
  opacity: 1;
  transform: translateY(0);
}

.fp-pos-product-footer,
.fp-pos-products .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 58px;
  padding: 9px 10px !important;
  border-top: 1px solid #e5edf3;
  background: #ffffff;
}

.fp-pos-products .card-footer h5 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  margin: 0 !important;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.fp-pos-product-footer small,
.fp-pos-product-footer strong {
  display: block;
}

.fp-pos-product-footer small {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-pos-product-footer strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
}

.fp-pos-product-actions {
  display: flex;
  gap: 5px;
}

.fp-pos-product-action,
.fp-pos-products .card-footer .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 34px;
  height: 32px;
  padding: 4px 8px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .13);
}

.fp-pos-product-action.is-info,
.fp-pos-products .card-footer .btn-primary {
  background: #0284c7 !important;
}

.fp-pos-product-action.is-price,
.fp-pos-products .card-footer .btn-info {
  background: #0f766e !important;
}

.fp-pos-document {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, .38fr);
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #e5edf3;
  background: #ffffff;
}

.fp-pos-cart {
  position: relative;
  height: 340px;
  overflow: auto;
  padding: 12px 14px;
  border-bottom: 1px solid #e5edf3;
  background: #f6fafb;
}

.fp-pos-cart-empty {
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 24px;
  border: 1px dashed #bdd7d6;
  border-radius: 8px;
  background: rgba(255,255,255,.7);
  color: #64748b;
  text-align: center;
}

.fp-pos-cart-empty i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 22px;
}

.fp-pos-cart-empty strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.fp-pos-cart-empty small {
  max-width: 260px;
  color: #64748b;
  font-weight: 750;
}

.fp-pos-cart table {
  margin-bottom: 0;
}

.fp-pos-cart #grilla td {
  vertical-align: middle;
  border-color: #e5edf3;
  background: #ffffff;
}

.fp-pos-cart #grilla tr:hover td {
  background: #f8fafc;
}

.fp-pos-cart #grilla .campo,
.fp-pos-cart #grilla .form-control {
  min-height: 30px;
  border-radius: 8px;
  font-weight: 800;
}

.fp-pos-cart #grilla .campo {
  padding: 4px 6px;
  border: 1px solid transparent;
  background: #f8fafc;
}

.fp-pos-cart #grilla .campo:focus,
.fp-pos-payment-table .campo:focus {
  border-color: #0f766e;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-pos-cart #grilla .elimina {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
}

.fp-pos-client {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(155px, .36fr);
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #e5edf3;
}

.fp-pos-points {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-pos-points strong {
  margin-top: 4px;
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.fp-pos-payment-summary {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #e5edf3;
  background: #ffffff;
}

.fp-pos-payment,
.fp-pos-summary {
  min-width: 0;
  padding: 11px;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-pos-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fp-pos-section-head span,
.fp-pos-section-head h3 {
  display: block;
}

.fp-pos-section-head span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-pos-section-head h3 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.fp-pos-add-payment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(15,118,110,.16);
}

.fp-pos-payment-table {
  width: 100%;
  margin: 0;
}

.fp-pos-payment-table td {
  padding: 6px 5px;
  border-top: 1px solid #e5edf3;
  color: #334155;
  font-weight: 850;
}

.fp-pos-payment-table tr:first-child td {
  border-top: 0;
}

.fp-pos-payment-table .campo {
  width: 100%;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  text-align: right;
}

.fp-pos-summary {
  display: grid;
  gap: 8px;
}

.fp-pos-summary > div {
  padding: 8px 9px;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #ffffff;
}

.fp-pos-summary > div.is-total {
  border-color: #99f6e4;
  background: #ecfdf5;
}

.fp-pos-summary input {
  width: 100%;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.fp-pos-summary .is-total input {
  color: #0f766e;
  font-size: 26px;
}

.fp-pos-submit-wrap {
  display: grid;
  grid-template-columns: minmax(150px, .62fr) minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  background: #ffffff;
}

.fp-pos-pay-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 9px 11px;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-pos-pay-status span,
.fp-pos-pay-status strong {
  display: block;
}

.fp-pos-pay-status span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-pos-pay-status strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.fp-pos-pay-status.is-ok {
  border-color: #99f6e4;
  background: #ecfdf5;
}

.fp-pos-pay-status.is-ok strong { color: #0f766e; }
.fp-pos-pay-status.is-pending strong { color: #b45309; }
.fp-pos-pay-status.is-over strong { color: #dc2626; }

.fp-pos-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(15, 118, 110, .24);
  transition: transform .16s ease, box-shadow .16s ease;
}

.fp-pos-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 118, 110, .28);
}

.fp-pos-modal .modal-title {
  color: #0f172a;
  font-weight: 900;
}

@media (max-width: 1399.98px) {
  .fp-pos-layout.is-compact .fp-pos-products #tblproducto > [class*="col-"] {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (max-width: 1199.98px) {
  .fp-pos-layout {
    grid-template-columns: 1fr;
  }

  .fp-pos-checkout {
    position: static;
  }

  .fp-pos-products {
    height: 500px;
  }

  .fp-pos-layout.is-compact .fp-pos-products #tblproducto > [class*="col-"] {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (max-width: 991.98px) {
  .fp-pos-header .fp-invoice-hero {
    flex-direction: column;
  }

  .fp-pos-hero-panel,
  .fp-pos-document,
  .fp-pos-client,
  .fp-pos-payment-summary {
    grid-template-columns: 1fr;
  }

  .fp-pos-hero-panel {
    min-width: 0;
  }

  .fp-pos-layout.is-compact .fp-pos-products #tblproducto > [class*="col-"] {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 767.98px) {
  .fp-pos-products {
    height: 430px;
    min-height: 360px;
    padding: 10px;
  }

  .fp-pos-cart {
    height: 320px;
  }

  .fp-pos-categories {
    padding-left: 10px;
    padding-right: 10px;
  }

  .fp-pos-product-media a,
  .fp-pos-products .image-container {
    aspect-ratio: 1 / .86;
  }

  .fp-pos-payment-summary,
  .fp-pos-client,
  .fp-pos-document,
  .fp-pos-submit-wrap {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .fp-pos-head-tools {
    align-items: flex-end;
    flex-direction: column;
  }

  .fp-pos-layout.is-compact .fp-pos-products #tblproducto > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
/* Devolucion listado */
.fp-return-header .fp-invoice-hero-main span,
.fp-return-card .fp-invoice-card-head > div > span {
  color: #be123c;
}

.fp-return-page .fp-invoice-stat.is-primary > span,
.fp-return-card .fp-invoice-tabs .nav-link.active,
.fp-return-card .fp-invoice-tabs .nav-link:hover,
.fp-return-card .fp-invoice-filter:hover,
.fp-return-card .fp-invoice-filter.is-active,
.fp-return-card .page-item.active .page-link {
  background: #be123c;
  border-color: #be123c;
}

.fp-return-header .fp-invoice-action.is-primary,
.fp-return-card .fp-invoice-action.is-primary {
  background: #be123c;
  border-color: #be123c;
  color: #ffffff;
}

.fp-return-header .fp-invoice-action.is-primary:hover,
.fp-return-card .fp-invoice-action.is-primary:hover {
  color: #ffffff;
}

.fp-return-card .dataTables_filter input:focus,
.fp-return-card .dataTables_length select:focus {
  border-color: #be123c;
  box-shadow: 0 0 0 3px rgba(190, 18, 60, .12);
}

.fp-return-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fp-return-kpis > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.fp-return-kpis small,
.fp-return-kpis strong {
  display: block;
}

.fp-return-kpis small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-return-kpis strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.25;
}

.fp-return-toolbar {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-return-alert {
  margin-bottom: 0;
  border-radius: 8px;
  font-weight: 800;
}

.fp-return-period {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) auto;
  gap: 10px;
  align-items: end;
  justify-content: center;
}

.fp-return-field label {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-return-field .form-control {
  min-height: 38px;
  border-color: #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 800;
}

.fp-return-field .form-control:focus {
  border-color: #be123c;
  box-shadow: 0 0 0 3px rgba(190, 18, 60, .12);
}

.fp-return-filters {
  padding-top: 2px;
}

.fp-return-table {
  min-width: 1120px;
}

.fp-return-date strong,
.fp-return-date small,
.fp-return-document span,
.fp-return-document small,
.fp-return-reason strong,
.fp-return-reason small,
.fp-return-affected span,
.fp-return-affected small {
  display: block;
}

.fp-return-date strong,
.fp-return-reason strong {
  color: #0f172a;
  font-weight: 900;
}

.fp-return-date small,
.fp-return-document small,
.fp-return-reason small,
.fp-return-affected small {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.fp-return-document span,
.fp-return-affected span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  font-weight: 950;
  white-space: nowrap;
}

.fp-return-document span {
  background: #fff1f2;
  color: #be123c;
}

.fp-return-affected span {
  background: #ecfdf5;
  color: #047857;
}

.fp-return-amount {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 950;
  white-space: nowrap;
}

.fp-return-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 126px;
}

.fp-return-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .12);
  transition: transform .16s ease, box-shadow .16s ease;
}

.fp-return-action:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, .16);
}

.fp-return-action.is-light {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  box-shadow: none;
}

.fp-return-action.is-light:hover {
  color: #0f172a;
}

.fp-return-action.is-info { background: #0284c7; }
.fp-return-action.is-success { background: #16a34a; }
.fp-return-action.is-danger { background: #dc2626; }

.fp-return-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-return-detail small,
.fp-return-detail strong {
  display: block;
}

.fp-return-detail small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-return-detail strong {
  margin-top: 2px;
  color: #0f172a;
  font-weight: 850;
  line-height: 1.35;
}

.fp-return-table-wrap .child > td,
.fp-return-table-wrap tr.child > td {
  background: #ffffff !important;
}

.fp-return-modal .modal-title {
  color: #0f172a;
  font-weight: 900;
}

@media (max-width: 1199.98px) {
  .fp-return-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .fp-return-period {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .fp-return-period .fp-invoice-action {
    grid-column: 1 / -1;
  }

  .fp-return-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-return-kpis,
  .fp-return-period,
  .fp-return-detail {
    grid-template-columns: 1fr;
  }

  .fp-return-toolbar {
    padding: 12px;
  }

  .fp-return-row-actions {
    min-width: 108px;
  }
}

/* Comprobantes electronicos */
.fp-electronic-header .fp-invoice-hero-main span,
.fp-electronic-card .fp-invoice-card-head > div > span {
  color: #0369a1;
}

.fp-electronic-page .fp-invoice-stat.is-primary > span,
.fp-electronic-card .fp-invoice-tabs .nav-link.active,
.fp-electronic-card .fp-invoice-tabs .nav-link:hover,
.fp-electronic-card .fp-invoice-filter:hover,
.fp-electronic-card .fp-invoice-filter.is-active,
.fp-electronic-card .page-item.active .page-link {
  background: #0369a1;
  border-color: #0369a1;
}

.fp-electronic-header .fp-invoice-action.is-primary,
.fp-electronic-card .fp-invoice-action.is-primary {
  background: #0369a1;
  border-color: #0369a1;
  color: #ffffff;
}

.fp-electronic-header .fp-invoice-action.is-primary:hover,
.fp-electronic-card .fp-invoice-action.is-primary:hover {
  color: #ffffff;
}

.fp-electronic-card .dataTables_filter input:focus,
.fp-electronic-card .dataTables_length select:focus {
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, .12);
}

.fp-electronic-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fp-electronic-kpis > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.fp-electronic-kpis small,
.fp-electronic-kpis strong {
  display: block;
}

.fp-electronic-kpis small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-electronic-kpis strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.25;
}

.fp-electronic-toolbar {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-electronic-alert {
  margin-bottom: 0;
  border-radius: 8px;
  font-weight: 800;
}

.fp-electronic-period {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) auto;
  gap: 10px;
  align-items: end;
  justify-content: center;
}

.fp-electronic-field label {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-electronic-field .form-control {
  min-height: 38px;
  border-color: #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 800;
}

.fp-electronic-field .form-control:focus {
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, .12);
}

.fp-electronic-filters {
  padding-top: 2px;
}

.fp-electronic-table {
  min-width: 1260px;
}

.fp-electronic-date strong,
.fp-electronic-date small,
.fp-electronic-document span,
.fp-electronic-document small,
.fp-electronic-muted {
  display: block;
}

.fp-electronic-date strong {
  color: #0f172a;
  font-weight: 900;
}

.fp-electronic-date small,
.fp-electronic-document small,
.fp-electronic-muted {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.fp-electronic-muted.is-danger {
  color: #b91c1c;
}

.fp-electronic-type,
.fp-electronic-document span,
.fp-electronic-amount,
.fp-electronic-status,
.fp-electronic-files a,
.fp-electronic-files span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  font-weight: 950;
  white-space: nowrap;
}

.fp-electronic-type.is-factura {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-electronic-type.is-boleta {
  background: #ecfdf5;
  color: #047857;
}

.fp-electronic-document span {
  background: #f1f5f9;
  color: #0f172a;
}

.fp-electronic-document.is-warning span {
  background: #fef3c7;
  color: #92400e;
}

.fp-electronic-amount {
  background: #f8fafc;
  color: #0f172a;
}

.fp-electronic-status {
  border: 0;
  font-size: 12px;
}

.fp-electronic-status.is-void {
  background: #fee2e2;
  color: #991b1b;
}

.fp-electronic-files {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 112px;
}

.fp-electronic-files a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.fp-electronic-files .is-ready {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(22, 163, 74, .14);
}

.fp-electronic-files .is-pdf {
  background: #2563eb;
}

.fp-electronic-files .is-cdr {
  background: #0284c7;
}

.fp-electronic-files .is-pending {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
}

.fp-electronic-payment h5 {
  margin: 0;
  font-size: 13px;
}

.fp-electronic-payment .badge,
.fp-electronic-payment a {
  min-height: 28px;
  border-radius: 8px;
  font-weight: 900;
}

.fp-electronic-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 210px;
}

.fp-electronic-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .12);
  transition: transform .16s ease, box-shadow .16s ease;
}

.fp-electronic-action:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, .16);
}

.fp-electronic-action.is-light {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  box-shadow: none;
}

.fp-electronic-action.is-light:hover {
  color: #0f172a;
}

.fp-electronic-action.is-info { background: #0284c7; }
.fp-electronic-action.is-primary { background: #0369a1; }
.fp-electronic-action.is-success { background: #16a34a; }
.fp-electronic-action.is-danger { background: #dc2626; }
.fp-electronic-action.is-secondary { background: #475569; }
.fp-electronic-action.is-fuchsia { background: #c026d3; }
.fp-electronic-action.is-purple { background: #7c3aed; }

.fp-electronic-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-electronic-detail small,
.fp-electronic-detail strong {
  display: block;
}

.fp-electronic-detail small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-electronic-detail strong {
  margin-top: 2px;
  color: #0f172a;
  font-weight: 850;
  line-height: 1.35;
}

.fp-electronic-table-wrap .child > td,
.fp-electronic-table-wrap tr.child > td {
  background: #ffffff !important;
}

.fp-electronic-modal .modal-title {
  color: #0f172a;
  font-weight: 900;
}

@media (max-width: 1199.98px) {
  .fp-electronic-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .fp-electronic-period {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .fp-electronic-period .fp-invoice-action {
    grid-column: 1 / -1;
  }

  .fp-electronic-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-electronic-kpis,
  .fp-electronic-period,
  .fp-electronic-detail {
    grid-template-columns: 1fr;
  }

  .fp-electronic-toolbar {
    padding: 12px;
  }

  .fp-electronic-row-actions {
    min-width: 170px;
  }
}

/* Notas de credito */
.fp-credit-header .fp-invoice-hero-main span,
.fp-credit-card .fp-invoice-card-head > div > span {
  color: #7c3aed;
}

.fp-credit-page .fp-invoice-stat.is-primary > span,
.fp-credit-card .fp-invoice-tabs .nav-link.active,
.fp-credit-card .fp-invoice-tabs .nav-link:hover,
.fp-credit-card .fp-invoice-filter:hover,
.fp-credit-card .fp-invoice-filter.is-active,
.fp-credit-card .page-item.active .page-link {
  background: #7c3aed;
  border-color: #7c3aed;
}

.fp-credit-header .fp-invoice-action.is-primary,
.fp-credit-card .fp-invoice-action.is-primary {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

.fp-credit-header .fp-invoice-action.is-primary:hover,
.fp-credit-card .fp-invoice-action.is-primary:hover {
  color: #ffffff;
}

.fp-credit-card .dataTables_filter input:focus,
.fp-credit-card .dataTables_length select:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

.fp-credit-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fp-credit-kpis > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.fp-credit-kpis small,
.fp-credit-kpis strong {
  display: block;
}

.fp-credit-kpis small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-credit-kpis strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.25;
}

.fp-credit-toolbar {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-credit-alert {
  margin-bottom: 0;
  border-radius: 8px;
  font-weight: 800;
}

.fp-credit-period {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) auto;
  gap: 10px;
  align-items: end;
  justify-content: center;
}

.fp-credit-field label {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-credit-field .form-control {
  min-height: 38px;
  border-color: #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 800;
}

.fp-credit-field .form-control:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

.fp-credit-filters {
  padding-top: 2px;
}

.fp-credit-table {
  min-width: 1240px;
}

.fp-credit-date strong,
.fp-credit-date small,
.fp-credit-document span,
.fp-credit-document small,
.fp-credit-reason span,
.fp-credit-reason small,
.fp-credit-affected span,
.fp-credit-affected small,
.fp-credit-muted {
  display: block;
}

.fp-credit-date strong,
.fp-credit-reason span {
  color: #0f172a;
  font-weight: 900;
}

.fp-credit-date small,
.fp-credit-document small,
.fp-credit-reason small,
.fp-credit-affected small,
.fp-credit-muted {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.fp-credit-muted.is-danger {
  color: #b91c1c;
}

.fp-credit-document span,
.fp-credit-reason span,
.fp-credit-affected span,
.fp-credit-amount,
.fp-credit-status,
.fp-credit-files a,
.fp-credit-files span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  font-weight: 950;
  white-space: nowrap;
}

.fp-credit-document span {
  background: #f5f3ff;
  color: #6d28d9;
}

.fp-credit-document.is-warning span {
  background: #fef3c7;
  color: #92400e;
}

.fp-credit-reason span {
  background: #f8fafc;
  color: #334155;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-credit-affected span {
  background: #ecfdf5;
  color: #047857;
}

.fp-credit-amount {
  background: #f5f3ff;
  color: #6d28d9;
}

.fp-credit-status {
  border: 0;
  font-size: 12px;
}

.fp-credit-files {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 112px;
}

.fp-credit-files a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.fp-credit-files .is-ready {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(22, 163, 74, .14);
}

.fp-credit-files .is-pdf {
  background: #2563eb;
}

.fp-credit-files .is-cdr {
  background: #0284c7;
}

.fp-credit-files .is-pending {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
}

.fp-credit-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 102px;
}

.fp-credit-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .12);
  transition: transform .16s ease, box-shadow .16s ease;
}

.fp-credit-action:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, .16);
}

.fp-credit-action.is-light {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  box-shadow: none;
}

.fp-credit-action.is-light:hover {
  color: #0f172a;
}

.fp-credit-action.is-info { background: #0284c7; }
.fp-credit-action.is-danger { background: #dc2626; }

.fp-credit-detail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-credit-detail small,
.fp-credit-detail strong {
  display: block;
}

.fp-credit-detail small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-credit-detail strong {
  margin-top: 2px;
  color: #0f172a;
  font-weight: 850;
  line-height: 1.35;
}

.fp-credit-table-wrap .child > td,
.fp-credit-table-wrap tr.child > td {
  background: #ffffff !important;
}

.fp-credit-modal .modal-title {
  color: #0f172a;
  font-weight: 900;
}

@media (max-width: 1199.98px) {
  .fp-credit-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fp-credit-detail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .fp-credit-period {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .fp-credit-period .fp-invoice-action {
    grid-column: 1 / -1;
  }

  .fp-credit-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-credit-kpis,
  .fp-credit-period,
  .fp-credit-detail {
    grid-template-columns: 1fr;
  }

  .fp-credit-toolbar {
    padding: 12px;
  }
}

/* Modal apertura de arqueo */
.fp-arqueo-modal {
  margin: 0;
}

.fp-arqueo-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-arqueo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-size: 20px;
  box-shadow: 0 10px 20px rgba(15, 118, 110, .16);
}

.fp-arqueo-hero span,
.fp-arqueo-hero h3,
.fp-arqueo-hero p {
  display: block;
}

.fp-arqueo-hero span {
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-arqueo-hero h3 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.fp-arqueo-hero p {
  margin: 4px 0 0;
  color: #64748b;
  font-weight: 750;
  line-height: 1.35;
}

.fp-arqueo-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.fp-arqueo-summary > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-arqueo-summary small,
.fp-arqueo-summary strong,
.fp-arqueo-summary span {
  display: block;
}

.fp-arqueo-summary small {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-arqueo-summary strong {
  margin-top: 3px;
  color: #0f172a;
  font-weight: 950;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-arqueo-summary span {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.fp-arqueo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-arqueo-field label {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-arqueo-field small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.fp-arqueo-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-arqueo-input i,
.fp-arqueo-input span {
  color: #0f766e;
  font-weight: 950;
}

.fp-arqueo-input .form-control {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  box-shadow: none;
}

.fp-arqueo-input .form-control:focus {
  border: 0;
  box-shadow: none;
}

.fp-arqueo-input:focus-within {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-arqueo-field.is-readonly .fp-arqueo-input {
  background: #f1f5f9;
}

.fp-arqueo-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  grid-column: 1 / -1;
}

.fp-arqueo-quick button {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-weight: 900;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.fp-arqueo-quick button:hover {
  border-color: #0f766e;
  color: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .1);
}

.fp-arqueo-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 11px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #ecfdf5;
}

.fp-arqueo-total small {
  color: #047857;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-arqueo-total strong {
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.fp-arqueo-notes {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.fp-arqueo-notes > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

.fp-arqueo-notes i {
  color: #0f766e;
}

.fp-arqueo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.fp-arqueo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 8px;
  font-weight: 950;
  transition: transform .16s ease, box-shadow .16s ease;
}

.fp-arqueo-btn:hover {
  transform: translateY(-1px);
}

.fp-arqueo-btn.is-light {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.fp-arqueo-btn.is-primary {
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, .18);
}

.fp-arqueo-btn.is-primary:hover {
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 118, 110, .24);
}

@media (max-width: 767.98px) {
  .fp-arqueo-hero,
  .fp-arqueo-body,
  .fp-arqueo-summary {
    grid-template-columns: 1fr;
  }

  .fp-arqueo-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-arqueo-actions {
    justify-content: stretch;
  }

  .fp-arqueo-btn {
    flex: 1 1 100%;
  }
}

/* Cotizacion listado */
.fp-quote-header {
  padding-top: 12px;
}

.fp-quote-page {
  padding-bottom: 22px;
}

.fp-quote-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.fp-quote-hero-main {
  min-width: 0;
}

.fp-quote-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ccfbf1;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-quote-hero-main h1 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-quote-hero-main p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: .95rem;
  font-weight: 650;
}

.fp-quote-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.fp-quote-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fp-quote-action:hover {
  color: #ffffff;
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
}

.fp-quote-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.fp-quote-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.fp-quote-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "icon value";
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-quote-stat > span {
  grid-area: icon;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: #0f766e;
}

.fp-quote-stat small {
  grid-area: label;
  color: #64748b;
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-quote-stat strong {
  grid-area: value;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 950;
  line-height: 1.25;
}

.fp-quote-stat.is-primary > span {
  background: #0f766e;
}

.fp-quote-stat.is-success > span {
  background: #16a34a;
}

.fp-quote-stat.is-info > span {
  background: #0284c7;
}

.fp-quote-stat.is-danger > span {
  background: #dc2626;
}

.fp-quote-card {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.fp-quote-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fp-quote-card-head > div > span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-quote-card-head h2 {
  margin: 8px 0 2px;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 950;
}

.fp-quote-card-head p {
  margin: 0;
  color: #64748b;
  font-size: .84rem;
  font-weight: 700;
}

.fp-quote-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.fp-quote-filter {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: .8rem;
  font-weight: 850;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.fp-quote-filter:hover,
.fp-quote-filter.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.fp-quote-period {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-quote-period form {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) auto;
  gap: 12px;
  align-items: end;
}

.fp-quote-period label {
  display: block;
  margin: 0;
}

.fp-quote-period label span {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-quote-period .form-control {
  min-height: 40px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  color: #0f172a;
  box-shadow: none;
}

.fp-quote-period .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-quote-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .18);
}

.fp-quote-submit:hover {
  color: #ffffff;
  background: #115e59;
}

.fp-quote-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.fp-quote-summary > div {
  padding: 13px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.fp-quote-summary small,
.fp-quote-summary strong {
  display: block;
}

.fp-quote-summary small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-quote-summary strong {
  margin-top: 3px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 950;
}

.fp-quote-table-wrap {
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.fp-quote-table {
  min-width: 900px;
  margin-bottom: 0 !important;
  color: #0f172a;
}

.fp-quote-table thead th {
  padding: 12px 10px;
  border: 0;
  background: #071b4d;
  color: #ffffff;
  font-size: .72rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-quote-table tbody td {
  vertical-align: middle;
  padding: 11px 10px;
  border-top: 1px solid #eef2f7;
  font-size: .84rem;
}

.fp-quote-table tbody tr:hover td {
  background: #f8fafc;
}

.fp-quote-index,
.fp-quote-number,
.fp-quote-total,
.fp-quote-state,
.fp-quote-issued {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-quote-index {
  color: #64748b;
  background: #f1f5f9;
}

.fp-quote-number {
  color: #0369a1;
  background: #e0f2fe;
}

.fp-quote-total {
  color: #0f766e;
  background: #ecfdf5;
}

.fp-quote-issued {
  color: #334155;
  background: #f1f5f9;
}

.fp-quote-state.is-open {
  color: #92400e;
  background: #fef3c7;
}

.fp-quote-state.is-sale {
  color: #166534;
  background: #dcfce7;
}

.fp-quote-state.is-cancel {
  color: #b91c1c;
  background: #fee2e2;
}

.fp-quote-client strong,
.fp-quote-client small {
  display: block;
}

.fp-quote-client strong {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.fp-quote-client small {
  margin-top: 3px;
  color: #64748b;
  font-size: .76rem;
  font-weight: 700;
}

.fp-quote-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fp-quote-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fp-quote-icon:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.fp-quote-icon.is-edit {
  background: #f59e0b;
}

.fp-quote-icon.is-sale {
  background: #0284c7;
}

.fp-quote-icon.is-cancel {
  background: #dc2626;
}

.fp-quote-icon.is-print {
  background: #16a34a;
}

.fp-quote-icon.is-copy {
  background: #7c3aed;
}

.fp-quote-card .dataTables_wrapper > .row:first-child {
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 14px;
}

.fp-quote-card .dataTables_wrapper > .row:first-child > [class*="col-"] {
  display: flex;
  flex: 0 0 auto;
  max-width: none;
  width: auto;
  justify-content: center;
  padding-left: 5px;
  padding-right: 5px;
}

.fp-quote-card .dataTables_length,
.fp-quote-card .dataTables_filter {
  float: none;
  text-align: center;
}

.fp-quote-card .dataTables_length label,
.fp-quote-card .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-weight: 850;
}

.fp-quote-card .dataTables_filter input {
  width: min(70vw, 380px) !important;
  min-height: 36px;
  margin-left: 0 !important;
  border-radius: 8px;
  border-color: #cbd5e1;
  background: #ffffff;
  font-weight: 800;
}

.fp-quote-card .dataTables_length select {
  min-height: 34px;
  border-radius: 8px;
  border-color: #cbd5e1;
  cursor: pointer;
}

.fp-quote-card .dataTables_filter input:focus,
.fp-quote-card .dataTables_length select:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-quote-card .dataTables_info,
.fp-quote-card .dataTables_paginate {
  color: #64748b;
  font-weight: 800;
}

.fp-quote-card .page-link {
  border-radius: 8px;
  color: #0f766e;
  font-weight: 850;
}

.fp-quote-card .page-item.active .page-link {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.fp-quote-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .26);
}

.fp-quote-modal .modal-header {
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
}

.fp-quote-modal .modal-header span {
  display: block;
  color: #ccfbf1;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-quote-modal .modal-title {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 950;
}

.fp-quote-modal .close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  opacity: 1;
  text-shadow: none;
}

.fp-quote-modal .modal-body {
  padding: 18px;
  background: #f8fafc;
}

@media (max-width: 991.98px) {
  .fp-quote-hero,
  .fp-quote-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-quote-hero-actions,
  .fp-quote-filters {
    justify-content: flex-start;
  }

  .fp-quote-stats,
  .fp-quote-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-quote-period form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-quote-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .fp-quote-hero {
    padding: 16px;
  }

  .fp-quote-hero-main h1 {
    font-size: 1.48rem;
  }

  .fp-quote-stats,
  .fp-quote-summary,
  .fp-quote-period form {
    grid-template-columns: 1fr;
  }

  .fp-quote-action,
  .fp-quote-filter,
  .fp-quote-submit {
    width: 100%;
  }

  .fp-quote-card {
    padding: 14px;
  }

  .fp-quote-card .dataTables_wrapper > .row:first-child {
    flex-direction: column;
  }

  .fp-quote-card .dataTables_wrapper > .row:first-child > [class*="col-"],
  .fp-quote-card .dataTables_length,
  .fp-quote-card .dataTables_filter,
  .fp-quote-card .dataTables_length label,
  .fp-quote-card .dataTables_filter label {
    width: 100%;
  }

  .fp-quote-card .dataTables_length label,
  .fp-quote-card .dataTables_filter label {
    flex-direction: column;
  }

  .fp-quote-card .dataTables_filter input {
    width: 100% !important;
  }
}
/* Caja listado */
.fp-caja-header {
  padding-top: 12px;
}

.fp-caja-page {
  padding-bottom: 22px;
}

.fp-caja-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.fp-caja-hero-main {
  min-width: 0;
}

.fp-caja-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ccfbf1;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-caja-hero-main h1 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-caja-hero-main p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: .95rem;
  font-weight: 650;
}

.fp-caja-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.fp-caja-action,
.fp-caja-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.fp-caja-action {
  border: 1px solid rgba(255, 255, 255, .18);
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}

.fp-caja-action:hover {
  color: #ffffff;
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
}

.fp-caja-action.is-light,
.fp-caja-status-pill {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  box-shadow: none;
}

.fp-caja-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.fp-caja-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.fp-caja-stats.is-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-caja-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "icon value";
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-caja-stat > span {
  grid-area: icon;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: #0f766e;
}

.fp-caja-stat small {
  grid-area: label;
  color: #64748b;
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-caja-stat strong {
  grid-area: value;
  min-width: 0;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.fp-caja-stat.is-primary > span {
  background: #0f766e;
}

.fp-caja-stat.is-success > span {
  background: #16a34a;
}

.fp-caja-stat.is-info > span {
  background: #0284c7;
}

.fp-caja-stat.is-danger > span {
  background: #dc2626;
}

.fp-caja-card {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.fp-caja-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fp-caja-card-head > div > span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-caja-card-head h2 {
  margin: 8px 0 2px;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 950;
}

.fp-caja-card-head p {
  margin: 0;
  color: #64748b;
  font-size: .84rem;
  font-weight: 700;
}

.fp-caja-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-caja-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: .8rem;
  font-weight: 850;
}

.fp-caja-tabs a:hover,
.fp-caja-tabs a.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.fp-caja-filterbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-caja-filterbar form {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) auto;
  gap: 12px;
  align-items: end;
}

.fp-caja-filterbar label {
  display: block;
  margin: 0;
}

.fp-caja-filterbar label span {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-caja-filterbar .form-control {
  min-height: 40px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  color: #0f172a;
  box-shadow: none;
}

.fp-caja-filterbar .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-caja-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .18);
}

.fp-caja-submit:hover {
  color: #ffffff;
  background: #115e59;
}

.fp-caja-state-filters {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fp-caja-state-filters button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: .8rem;
  font-weight: 850;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.fp-caja-state-filters button:hover,
.fp-caja-state-filters button.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.fp-caja-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.fp-caja-summary > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.fp-caja-summary small,
.fp-caja-summary strong {
  display: block;
}

.fp-caja-summary small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-caja-summary strong {
  margin-top: 3px;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.fp-caja-table-wrap {
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.fp-caja-table {
  min-width: 980px;
  margin-bottom: 0 !important;
  color: #0f172a;
}

.fp-caja-table thead th {
  padding: 12px 10px;
  border: 0;
  background: #071b4d;
  color: #ffffff;
  font-size: .72rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-caja-table tbody td {
  vertical-align: middle;
  padding: 11px 10px;
  border-top: 1px solid #eef2f7;
  font-size: .84rem;
}

.fp-caja-table tbody tr:hover td {
  background: #f8fafc;
}

.fp-caja-index,
.fp-caja-date,
.fp-caja-money,
.fp-caja-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-caja-index {
  color: #64748b;
  background: #f1f5f9;
}

.fp-caja-date {
  color: #334155;
  background: #f1f5f9;
}

.fp-caja-money {
  color: #0f766e;
  background: #ecfdf5;
}

.fp-caja-money.is-muted {
  color: #0369a1;
  background: #e0f2fe;
}

.fp-caja-state.is-open {
  color: #92400e;
  background: #fef3c7;
}

.fp-caja-state.is-closed {
  color: #166534;
  background: #dcfce7;
}

.fp-caja-doc strong,
.fp-caja-doc small {
  display: block;
}

.fp-caja-doc strong {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.fp-caja-doc small {
  margin-top: 3px;
  color: #64748b;
  font-size: .76rem;
  font-weight: 700;
}

.fp-caja-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fp-caja-user span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0369a1;
}

.fp-caja-user strong {
  color: #0f172a;
  font-weight: 900;
}

.fp-caja-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fp-caja-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fp-caja-icon:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.fp-caja-icon.is-close {
  background: #dc2626;
}

.fp-caja-icon.is-print {
  background: #16a34a;
}

.fp-caja-icon.is-edit {
  background: #f59e0b;
}

.fp-caja-card .dataTables_wrapper > .row:first-child {
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 14px;
}

.fp-caja-card .dataTables_wrapper > .row:first-child > [class*="col-"] {
  display: flex;
  flex: 0 0 auto;
  max-width: none;
  width: auto;
  justify-content: center;
  padding-left: 5px;
  padding-right: 5px;
}

.fp-caja-card .dataTables_length,
.fp-caja-card .dataTables_filter {
  float: none;
  text-align: center;
}

.fp-caja-card .dataTables_length label,
.fp-caja-card .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-weight: 850;
}

.fp-caja-card .dataTables_filter input {
  width: min(70vw, 380px) !important;
  min-height: 36px;
  margin-left: 0 !important;
  border-radius: 8px;
  border-color: #cbd5e1;
  background: #ffffff;
  font-weight: 800;
}

.fp-caja-card .dataTables_length select {
  min-height: 34px;
  border-radius: 8px;
  border-color: #cbd5e1;
  cursor: pointer;
}

.fp-caja-card .dataTables_filter input:focus,
.fp-caja-card .dataTables_length select:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-caja-card .dataTables_info,
.fp-caja-card .dataTables_paginate {
  color: #64748b;
  font-weight: 800;
}

.fp-caja-card .page-link {
  border-radius: 8px;
  color: #0f766e;
  font-weight: 850;
}

.fp-caja-card .page-item.active .page-link {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.fp-caja-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .26);
}

.fp-caja-modal .modal-header {
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
}

.fp-caja-modal .modal-header span {
  display: block;
  color: #ccfbf1;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-caja-modal .modal-title {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 950;
}

.fp-caja-modal .close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  opacity: 1;
  text-shadow: none;
}

.fp-caja-modal .modal-body {
  padding: 18px;
  background: #f8fafc;
}

@media (max-width: 991.98px) {
  .fp-caja-hero,
  .fp-caja-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-caja-hero-actions,
  .fp-caja-tabs,
  .fp-caja-state-filters {
    justify-content: flex-start;
  }

  .fp-caja-stats,
  .fp-caja-stats.is-compact,
  .fp-caja-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-caja-filterbar {
    grid-template-columns: 1fr;
  }

  .fp-caja-filterbar form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-caja-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .fp-caja-hero {
    padding: 16px;
  }

  .fp-caja-hero-main h1 {
    font-size: 1.48rem;
  }

  .fp-caja-stats,
  .fp-caja-stats.is-compact,
  .fp-caja-summary,
  .fp-caja-filterbar form {
    grid-template-columns: 1fr;
  }

  .fp-caja-action,
  .fp-caja-status-pill,
  .fp-caja-tabs a,
  .fp-caja-state-filters button,
  .fp-caja-submit {
    width: 100%;
  }

  .fp-caja-card {
    padding: 14px;
  }

  .fp-caja-card .dataTables_wrapper > .row:first-child {
    flex-direction: column;
  }

  .fp-caja-card .dataTables_wrapper > .row:first-child > [class*="col-"],
  .fp-caja-card .dataTables_length,
  .fp-caja-card .dataTables_filter,
  .fp-caja-card .dataTables_length label,
  .fp-caja-card .dataTables_filter label {
    width: 100%;
  }

  .fp-caja-card .dataTables_length label,
  .fp-caja-card .dataTables_filter label {
    flex-direction: column;
  }

  .fp-caja-card .dataTables_filter input {
    width: 100% !important;
  }
}
/* Caja pendientes detallado */
.fp-pending-header .fp-caja-hero-main span {
  background: rgba(255, 255, 255, .14);
}

.fp-pending-stats .fp-caja-stat strong {
  font-size: 1.04rem;
}

.fp-pending-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.fp-pending-insights > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.fp-pending-insights small,
.fp-pending-insights strong,
.fp-pending-insights span {
  display: block;
}

.fp-pending-insights small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-pending-insights strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 950;
}

.fp-pending-insights span {
  margin-top: 2px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
}

.fp-pending-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-pending-filterset,
.fp-pending-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fp-pending-filterset button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: .8rem;
  font-weight: 850;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.fp-pending-filterset button:hover,
.fp-pending-filterset button.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.fp-pending-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: .78rem;
  font-weight: 850;
}

.fp-pending-legend i {
  font-size: .56rem;
}

.fp-pending-legend .is-ok {
  color: #16a34a;
}

.fp-pending-legend .is-warning {
  color: #f59e0b;
}

.fp-pending-legend .is-danger {
  color: #dc2626;
}

.fp-pending-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
}

.fp-pending-empty > span {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #16a34a;
  color: #ffffff;
}

.fp-pending-empty strong,
.fp-pending-empty p {
  display: block;
  margin: 0;
}

.fp-pending-empty strong {
  color: #0f172a;
  font-weight: 950;
}

.fp-pending-empty p {
  margin-top: 2px;
  color: #64748b;
  font-weight: 700;
}

.fp-pending-table {
  min-width: 980px;
}

.fp-pending-doc small {
  color: #0f766e;
}

.fp-pending-age {
  min-width: 140px;
}

.fp-pending-age strong,
.fp-pending-age span {
  display: block;
}

.fp-pending-age strong {
  color: #0f172a;
  font-weight: 950;
  line-height: 1.2;
}

.fp-pending-age span {
  margin-top: 2px;
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
}

.fp-pending-progress {
  width: 100%;
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.fp-pending-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #f59e0b, #dc2626);
}

.fp-pending-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-pending-priority.is-ok {
  color: #166534;
  background: #dcfce7;
}

.fp-pending-priority.is-warning {
  color: #92400e;
  background: #fef3c7;
}

.fp-pending-priority.is-danger {
  color: #b91c1c;
  background: #fee2e2;
}

.fp-pending-search-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.fp-pending-actions .fp-caja-icon {
  width: 36px;
  height: 36px;
}

@media (max-width: 991.98px) {
  .fp-pending-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-pending-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-pending-filterset,
  .fp-pending-legend {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .fp-pending-insights {
    grid-template-columns: 1fr;
  }

  .fp-pending-filterset button {
    width: 100%;
  }

  .fp-pending-empty {
    align-items: flex-start;
  }
}
/* SaaS administrativo */
.fp-saas-header {
  padding-top: 12px;
}

.fp-saas-page {
  padding-bottom: 22px;
}

.fp-saas-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.fp-saas-hero-main {
  min-width: 0;
}

.fp-saas-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ccfbf1;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-saas-hero-main h1 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-saas-hero-main p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: .95rem;
  font-weight: 650;
}

.fp-saas-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.fp-saas-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}

.fp-saas-action:hover {
  color: #ffffff;
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
}

.fp-saas-action.is-light {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  box-shadow: none;
}

.fp-saas-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.fp-saas-stats,
.fp-saas-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.fp-saas-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "icon value";
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-saas-stat > span {
  grid-area: icon;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: #0f766e;
}

.fp-saas-stat small {
  grid-area: label;
  color: #64748b;
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-saas-stat strong {
  grid-area: value;
  min-width: 0;
  color: #0f172a;
  font-size: 1.06rem;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.fp-saas-stat.is-primary > span {
  background: #0f766e;
}

.fp-saas-stat.is-success > span {
  background: #16a34a;
}

.fp-saas-stat.is-danger > span {
  background: #dc2626;
}

.fp-saas-stat.is-info > span {
  background: #0284c7;
}

.fp-saas-insights {
  margin-top: 0;
}

.fp-saas-insights > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.fp-saas-insights small,
.fp-saas-insights strong,
.fp-saas-insights span {
  display: block;
}

.fp-saas-insights small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-saas-insights strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.fp-saas-insights span {
  margin-top: 2px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
}

.fp-saas-card {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.fp-saas-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fp-saas-card-head > div > span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-saas-card-head h2 {
  margin: 8px 0 2px;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 950;
}

.fp-saas-card-head p {
  margin: 0;
  color: #64748b;
  font-size: .84rem;
  font-weight: 700;
}

.fp-saas-tabs,
.fp-saas-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-saas-tabs a,
.fp-saas-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: .8rem;
  font-weight: 850;
  cursor: pointer;
}

.fp-saas-tabs a:hover,
.fp-saas-tabs a.is-active,
.fp-saas-filters button:hover,
.fp-saas-filters button.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.fp-saas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-saas-toolbar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: .8rem;
  font-weight: 800;
}

.fp-saas-toolbar-note i {
  color: #0f766e;
}

.fp-saas-table-wrap {
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.fp-saas-table {
  min-width: 1050px;
  margin-bottom: 0 !important;
  color: #0f172a;
}

.fp-plan-table {
  min-width: 920px;
}

.fp-saas-table thead th {
  padding: 12px 10px;
  border: 0;
  background: #071b4d;
  color: #ffffff;
  font-size: .72rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-saas-table tbody td {
  vertical-align: middle;
  padding: 11px 10px;
  border-top: 1px solid #eef2f7;
  font-size: .84rem;
}

.fp-saas-table tbody tr:hover td {
  background: #f8fafc;
}

.fp-saas-index,
.fp-saas-slug,
.fp-saas-state,
.fp-plan-price,
.fp-plan-billing,
.fp-plan-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-saas-index {
  color: #64748b;
  background: #f1f5f9;
}

.fp-saas-slug {
  color: #0369a1;
  background: #e0f2fe;
}

.fp-saas-state.is-active,
.fp-plan-billing.is-on {
  color: #166534;
  background: #dcfce7;
}

.fp-saas-state.is-suspended,
.fp-plan-billing.is-off {
  color: #b91c1c;
  background: #fee2e2;
}

.fp-plan-price {
  color: #0f766e;
  background: #ecfdf5;
}

.fp-plan-support {
  max-width: 220px;
  justify-content: flex-start;
  color: #334155;
  background: #f1f5f9;
  white-space: normal;
}

.fp-saas-company {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 280px;
}

.fp-saas-company > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 950;
}

.fp-saas-company strong,
.fp-saas-company small,
.fp-saas-company em,
.fp-saas-plan strong,
.fp-saas-plan small,
.fp-plan-name strong,
.fp-plan-name small {
  display: block;
}

.fp-saas-company strong,
.fp-saas-plan strong,
.fp-plan-name strong {
  color: #0f172a;
  font-weight: 950;
  line-height: 1.25;
}

.fp-saas-company small,
.fp-saas-plan small,
.fp-plan-name small {
  margin-top: 2px;
  color: #64748b;
  font-size: .76rem;
  font-weight: 750;
}

.fp-saas-company em {
  margin-top: 4px;
  color: #475569;
  font-size: .76rem;
  font-style: normal;
  font-weight: 700;
}

.fp-saas-company em i {
  margin-right: 5px;
  color: #0f766e;
}

.fp-plan-name {
  min-width: 260px;
}

.fp-plan-name small span {
  display: inline-flex;
  margin-right: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 900;
}

.fp-saas-limits,
.fp-saas-contact {
  display: grid;
  gap: 6px;
  min-width: 140px;
}

.fp-saas-limits span,
.fp-saas-contact span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-size: .78rem;
  font-weight: 800;
}

.fp-saas-limits i,
.fp-saas-contact i {
  color: #0f766e;
}

.fp-saas-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fp-saas-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fp-saas-icon:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.fp-saas-icon.is-edit {
  background: #f59e0b;
}

.fp-saas-icon.is-plan {
  background: #0284c7;
}

.fp-saas-icon.is-pause {
  background: #dc2626;
}

.fp-saas-icon.is-play {
  background: #16a34a;
}

.fp-saas-card .dataTables_wrapper > .row:first-child {
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 14px;
}

.fp-saas-card .dataTables_wrapper > .row:first-child > [class*="col-"] {
  display: flex;
  flex: 0 0 auto;
  max-width: none;
  width: auto;
  justify-content: center;
  padding-left: 5px;
  padding-right: 5px;
}

.fp-saas-card .dataTables_length,
.fp-saas-card .dataTables_filter {
  float: none;
  text-align: center;
}

.fp-saas-card .dataTables_length label,
.fp-saas-card .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-weight: 850;
}

.fp-saas-card .dataTables_filter input {
  width: min(70vw, 390px) !important;
  min-height: 36px;
  margin-left: 0 !important;
  border-radius: 8px;
  border-color: #cbd5e1;
  background: #ffffff;
  font-weight: 800;
}

.fp-saas-card .dataTables_length select {
  min-height: 34px;
  border-radius: 8px;
  border-color: #cbd5e1;
  cursor: pointer;
}

.fp-saas-card .dataTables_filter input:focus,
.fp-saas-card .dataTables_length select:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-saas-card .dataTables_info,
.fp-saas-card .dataTables_paginate {
  color: #64748b;
  font-weight: 800;
}

.fp-saas-card .page-link {
  border-radius: 8px;
  color: #0f766e;
  font-weight: 850;
}

.fp-saas-card .page-item.active .page-link {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.fp-saas-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .26);
}

.fp-saas-modal .modal-header {
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
}

.fp-saas-modal .modal-header span {
  display: block;
  color: #ccfbf1;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-saas-modal .modal-title {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 950;
}

.fp-saas-modal .close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  opacity: 1;
  text-shadow: none;
}

.fp-saas-modal .modal-body {
  padding: 18px;
  background: #f8fafc;
}

@media (max-width: 991.98px) {
  .fp-saas-hero,
  .fp-saas-card-head,
  .fp-saas-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-saas-hero-actions,
  .fp-saas-tabs,
  .fp-saas-filters {
    justify-content: flex-start;
  }

  .fp-saas-stats,
  .fp-saas-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fp-saas-hero {
    padding: 16px;
  }

  .fp-saas-hero-main h1 {
    font-size: 1.48rem;
  }

  .fp-saas-stats,
  .fp-saas-insights {
    grid-template-columns: 1fr;
  }

  .fp-saas-action,
  .fp-saas-tabs a,
  .fp-saas-filters button {
    width: 100%;
  }

  .fp-saas-card {
    padding: 14px;
  }

  .fp-saas-toolbar-note {
    align-items: flex-start;
  }

  .fp-saas-card .dataTables_wrapper > .row:first-child {
    flex-direction: column;
  }

  .fp-saas-card .dataTables_wrapper > .row:first-child > [class*="col-"],
  .fp-saas-card .dataTables_length,
  .fp-saas-card .dataTables_filter,
  .fp-saas-card .dataTables_length label,
  .fp-saas-card .dataTables_filter label {
    width: 100%;
  }

  .fp-saas-card .dataTables_length label,
  .fp-saas-card .dataTables_filter label {
    flex-direction: column;
  }

  .fp-saas-card .dataTables_filter input {
    width: 100% !important;
  }
}
/* Product information modal */
.fp-product-info {
  color: #0f172a;
}

.fp-product-info-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
}

.fp-product-info-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  font-size: 1.45rem;
}

.fp-product-info-title {
  min-width: 0;
}

.fp-product-info-title span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ccfbf1;
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-product-info-title h3 {
  margin: 8px 0 3px;
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1.25;
}

.fp-product-info-title p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: .86rem;
  font-weight: 700;
}

.fp-product-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.fp-product-info-chips em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  font-size: .74rem;
  font-style: normal;
  font-weight: 850;
}

.fp-product-info-chips em.is-success {
  background: rgba(22, 163, 74, .22);
}

.fp-product-info-chips em.is-warning {
  background: rgba(245, 158, 11, .25);
}

.fp-product-info-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.fp-product-info-stats > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.fp-product-info-stats small,
.fp-product-info-stats strong,
.fp-product-info-stats span {
  display: block;
}

.fp-product-info-stats small {
  color: #64748b;
  font-size: .7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-product-info-stats strong {
  margin-top: 3px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 950;
}

.fp-product-info-stats span {
  margin-top: 2px;
  color: #64748b;
  font-size: .76rem;
  font-weight: 750;
}

.fp-product-info-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-product-info-tabs .nav-item {
  margin: 0;
}

.fp-product-info-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: .8rem;
  font-weight: 850;
}

.fp-product-info-tabs .nav-link.active,
.fp-product-info-tabs .nav-link:hover {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.fp-product-info-content {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.fp-product-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fp-product-info-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-product-info-card.is-wide {
  grid-column: span 2;
}

.fp-product-info-card small,
.fp-product-info-card strong,
.fp-product-info-card span {
  display: block;
}

.fp-product-info-card small {
  color: #64748b;
  font-size: .7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-product-info-card strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: .9rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.fp-product-info-card span {
  margin-top: 3px;
  color: #64748b;
  font-size: .77rem;
  font-weight: 750;
}

.fp-product-info-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.fp-product-info-note.is-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.fp-product-info-note.is-info {
  border-color: #bae6fd;
  background: #f0f9ff;
}

.fp-product-info-note > div {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
}

.fp-product-info-note small,
.fp-product-info-note p {
  display: block;
  margin: 0;
}

.fp-product-info-note small {
  color: #0f766e;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-product-info-note p {
  margin-top: 4px;
  color: #334155;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.5;
}

.fp-product-info-note p.is-muted {
  color: #64748b;
}

.fp-product-info-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fp-product-info-section-head span {
  display: inline-flex;
  color: #0f766e;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-product-info-section-head h4 {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
}

.fp-product-info-section-head p {
  max-width: 430px;
  margin: 0;
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
  text-align: right;
}

.fp-product-info-table-wrap {
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.fp-product-info-table {
  min-width: 720px;
  margin-bottom: 0 !important;
}

.fp-product-info-table thead th {
  padding: 11px 10px;
  border: 0;
  background: #071b4d;
  color: #ffffff;
  font-size: .72rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-product-info-table tbody td {
  vertical-align: middle;
  padding: 10px;
  border-top: 1px solid #eef2f7;
  color: #334155;
  font-size: .82rem;
}

.fp-product-info-table tbody tr:hover td {
  background: #f8fafc;
}

.fp-product-info-table tbody tr.is-out td {
  color: #b91c1c;
  background: #fff7f7;
}

.fp-product-info-table tbody tr.is-bonus td {
  color: #6d28d9;
}

.fp-product-info-table tbody tr.is-prescription td:first-child {
  border-left: 4px solid #16a34a;
}

.fp-product-info-related-name strong,
.fp-product-info-related-name small {
  display: block;
}

.fp-product-info-related-name strong {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.fp-product-info-related-name small {
  margin-top: 2px;
  color: #64748b;
  font-size: .75rem;
  font-weight: 750;
}

.fp-product-info-stock,
.fp-product-info-price,
.fp-product-info-muted,
.fp-product-info-risk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-product-info-stock {
  color: #0f766e;
  background: #ccfbf1;
}

.fp-product-info-stock.is-zero {
  color: #b91c1c;
  background: #fee2e2;
}

.fp-product-info-price {
  border: 0;
  color: #ffffff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fp-product-info-price:hover {
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

.fp-product-info-price.is-unit {
  background: #0284c7;
}

.fp-product-info-price.is-blister {
  background: #0f766e;
}

.fp-product-info-price.is-box {
  background: #16a34a;
}

.fp-product-info-price.is-disabled {
  color: #64748b;
  background: #e2e8f0;
}

.fp-product-info-price em {
  min-width: 20px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  font-size: .7rem;
  font-style: normal;
}

.fp-product-info-muted {
  color: #94a3b8;
  background: #f1f5f9;
}

.fp-product-info-empty {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
}

.fp-product-info-empty i {
  color: #0f766e;
}

.fp-product-info-molecule-box {
  min-height: 400px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-product-info-action,
.fp-product-info-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(15, 118, 110, .18);
}

.fp-product-info-action:hover,
.fp-product-info-close:hover {
  color: #ffffff;
  background: #115e59;
}

.fp-product-info-risk {
  display: grid;
  gap: 14px;
}

.fp-product-info-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fp-product-info-risk-pill {
  color: #92400e;
  background: #fef3c7;
}

.fp-product-info-organ {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.fp-product-info-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 991.98px) {
  .fp-product-info-stats,
  .fp-product-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-product-info-section-head {
    flex-direction: column;
  }

  .fp-product-info-section-head p {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .fp-product-info-hero,
  .fp-product-info-note {
    grid-template-columns: 1fr;
  }

  .fp-product-info-stats,
  .fp-product-info-grid,
  .fp-product-info-risk-grid {
    grid-template-columns: 1fr;
  }

  .fp-product-info-card.is-wide {
    grid-column: auto;
  }

  .fp-product-info-tabs .nav-link,
  .fp-product-info-action,
  .fp-product-info-close {
    width: 100%;
  }

  .fp-product-info-footer {
    justify-content: stretch;
  }
}
/* Product information detail upgrade */
.fp-product-info-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 12px;
  margin-bottom: 12px;
}

.fp-product-info-detail-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-product-info-detail-card.is-main {
  background: #ffffff;
}

.fp-product-info-section-head.compact {
  align-items: flex-start;
  margin-bottom: 12px;
}

.fp-product-info-section-head.compact p {
  max-width: 310px;
}

.fp-product-info-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fp-product-info-code {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon label" "icon value";
  gap: 2px 9px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.fp-product-info-code.is-large {
  grid-column: 1 / -1;
}

.fp-product-info-code i {
  grid-area: icon;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
}

.fp-product-info-code small {
  grid-area: label;
  color: #64748b;
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-product-info-code strong {
  grid-area: value;
  min-width: 0;
  color: #0f172a;
  font-size: .88rem;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.fp-product-info-status-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.fp-product-info-status-title span {
  color: #64748b;
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-product-info-status-title strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: .76rem;
  font-weight: 900;
}

.fp-product-info-badges {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.fp-product-info-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 900;
}

.fp-product-info-badges span.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-product-info-badges span.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-product-info-badges span.is-info {
  background: #dbeafe;
  color: #1e40af;
}

.fp-product-info-badges span.is-muted {
  background: #e5e7eb;
  color: #475569;
}

.fp-product-info-badges span.is-primary {
  background: #ccfbf1;
  color: #115e59;
}

.fp-product-info-mini-list {
  display: grid;
  gap: 8px;
}

.fp-product-info-mini-list > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.fp-product-info-mini-list small,
.fp-product-info-mini-list strong {
  display: block;
}

.fp-product-info-mini-list small {
  color: #64748b;
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-product-info-mini-list strong {
  margin-top: 2px;
  color: #0f172a;
  font-size: .83rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.fp-product-info-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fp-product-info-flow-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon label" "icon value" "icon price";
  gap: 1px 9px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.fp-product-info-flow-item span {
  grid-area: icon;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #071b4d;
  color: #ffffff;
}

.fp-product-info-flow-item small {
  grid-area: label;
  color: #64748b;
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-product-info-flow-item strong {
  grid-area: value;
  min-width: 0;
  color: #0f172a;
  font-size: .9rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.fp-product-info-flow-item em {
  grid-area: price;
  color: #0f766e;
  font-size: .78rem;
  font-style: normal;
  font-weight: 900;
}

.fp-product-info-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fp-product-info-note.is-detail {
  margin-top: 0;
}

@media (max-width: 991.98px) {
  .fp-product-info-overview,
  .fp-product-info-flow,
  .fp-product-info-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .fp-product-info-code-grid {
    grid-template-columns: 1fr;
  }

  .fp-product-info-section-head.compact {
    display: block;
  }
}
/* Modern company settings page */
.fp-company-page {
  color: #0f172a;
}

.fp-company-page .container-fluid {
  max-width: 1480px;
}

.fp-company-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.fp-company-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.fp-company-hero-main {
  min-width: 0;
}

.fp-company-hero-main span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ccfbf1;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-company-hero-main h1 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-company-hero-main p {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 255, 255, .84);
  font-size: .95rem;
  font-weight: 650;
}

.fp-company-hero-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 260px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
}

.fp-company-hero-logo {
  width: 66px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: #0f766e;
  overflow: hidden;
}

.fp-company-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fp-company-hero-profile small,
.fp-company-hero-profile strong {
  display: block;
}

.fp-company-hero-profile small {
  color: #ccfbf1;
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-company-hero-profile strong {
  margin-top: 2px;
  color: #ffffff;
  font-size: .92rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.fp-company-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.fp-company-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: .82rem;
  font-weight: 850;
  transition: all .18s ease;
}

.fp-company-tabs a:hover,
.fp-company-tabs a.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
  text-decoration: none;
}

.fp-company-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.fp-company-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon label" "icon value";
  gap: 2px 10px;
  align-items: center;
  min-width: 0;
  padding: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.fp-company-stat > span {
  grid-area: icon;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
}

.fp-company-stat small {
  grid-area: label;
  color: #64748b;
  font-size: .7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-company-stat strong {
  grid-area: value;
  color: #0f172a;
  font-size: .96rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.fp-company-stat.is-success > span {
  background: #dcfce7;
  color: #166534;
}

.fp-company-stat.is-info > span {
  background: #dbeafe;
  color: #1e40af;
}

.fp-company-stat.is-warning > span {
  background: #fef3c7;
  color: #92400e;
}

.fp-company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 14px;
}

.fp-company-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.fp-company-panel.is-wide {
  grid-column: span 1;
}

.fp-company-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fp-company-panel-head span,
.fp-company-panel-head h2 {
  display: block;
}

.fp-company-panel-head span {
  color: #0f766e;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-company-panel-head h2 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 950;
}

.fp-company-panel-head > i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
}

.fp-company-fields,
.fp-company-options-grid,
.fp-company-message-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fp-company-fields.representative {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-company-field,
.fp-company-option-block {
  min-width: 0;
}

.fp-company-field.is-wide,
.fp-company-field.is-wide-sm {
  grid-column: 1 / -1;
}

.fp-company-field label,
.fp-company-option-block > strong,
.fp-company-logo-card label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-company-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 38px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.fp-company-input:focus-within {
  border-color: #0f766e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-company-input > i {
  width: 36px;
  color: #64748b;
  text-align: center;
}

.fp-company-input .form-control {
  height: 36px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fp-company-field > .form-control,
.fp-company-percent .form-control,
.fp-company-message-grid textarea,
.fp-company-file {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-company-field > .form-control:focus,
.fp-company-percent .form-control:focus,
.fp-company-message-grid textarea:focus,
.fp-company-file:focus {
  border-color: #0f766e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-company-logo-grid {
  display: grid;
  gap: 12px;
}

.fp-company-logo-card {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-company-logo-box {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f766e;
  overflow: hidden;
}

.fp-company-logo-box i {
  font-size: 1.6rem;
}

.fp-company-logo-box.has-image {
  border-style: solid;
}

.fp-company-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.fp-company-logo-card small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: .75rem;
  font-weight: 700;
}

.fp-company-option-block {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-company-choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fp-company-choice-group.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-company-choice {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.fp-company-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.fp-company-choice span {
  display: block;
  min-height: 62px;
  padding: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  transition: all .18s ease;
}

.fp-company-choice b,
.fp-company-choice small {
  display: block;
}

.fp-company-choice b {
  color: #0f172a;
  font-size: .84rem;
  font-weight: 950;
}

.fp-company-choice small {
  margin-top: 3px;
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
}

.fp-company-choice input:checked + span,
.fp-company-choice:hover span {
  border-color: #0f766e;
  background: #ecfdf5;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .12);
}

.fp-company-percent .input-group-text {
  border-color: #dbe3ef;
  border-radius: 0 8px 8px 0;
  background: #0f766e;
  color: #ffffff;
  font-weight: 900;
}

.fp-company-message-grid {
  grid-template-columns: 1fr;
}

.fp-company-message-grid textarea {
  min-height: 118px;
  resize: vertical;
}

.fp-company-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.fp-company-savebar strong,
.fp-company-savebar small {
  display: block;
}

.fp-company-savebar strong {
  color: #0f172a;
  font-size: .94rem;
  font-weight: 950;
}

.fp-company-savebar small {
  margin-top: 2px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
}

.fp-company-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-size: .84rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .22);
}

.fp-company-save:hover,
.fp-company-save:focus {
  background: #115e59;
  color: #ffffff;
}

.fp-company-modal .modal-content {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
}

.fp-company-modal .modal-header {
  background: linear-gradient(135deg, #071b4d 0%, #0f766e 100%);
  color: #ffffff;
}

.fp-company-modal .modal-title {
  color: #ffffff;
  font-size: .98rem;
  font-weight: 900;
}

.fp-company-modal .close {
  color: #ffffff;
  opacity: .9;
}

@media (max-width: 1199.98px) {
  .fp-company-grid {
    grid-template-columns: 1fr;
  }

  .fp-company-panel.is-wide {
    grid-column: auto;
  }

  .fp-company-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .fp-company-hero,
  .fp-company-savebar {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-company-hero-profile {
    min-width: 0;
  }

  .fp-company-stats,
  .fp-company-fields.representative {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-company-choice-group.is-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fp-company-hero {
    padding: 16px;
  }

  .fp-company-hero-main h1 {
    font-size: 1.45rem;
  }

  .fp-company-tabs a,
  .fp-company-save {
    width: 100%;
    justify-content: center;
  }

  .fp-company-stats,
  .fp-company-fields,
  .fp-company-options-grid,
  .fp-company-fields.representative,
  .fp-company-logo-grid,
  .fp-company-choice-group,
  .fp-company-choice-group.is-three {
    grid-template-columns: 1fr;
  }

  .fp-company-panel {
    padding: 14px;
  }
}
/* Modern company billing settings page */
.fp-company-billing-hero .fp-company-hero-logo {
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
  font-size: 1.45rem;
}

.fp-company-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fp-company-billing-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fp-company-billing-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
}

.fp-company-billing-note.is-soft {
  border-color: #ccfbf1;
  background: #f0fdfa;
  color: #115e59;
}

.fp-company-billing-note i {
  margin-top: 2px;
}

.fp-company-billing-note p {
  margin: 0;
  font-size: .8rem;
  font-weight: 750;
  line-height: 1.35;
}

.fp-company-billing-panel .fp-company-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fp-company-input .fp-company-secret-toggle {
  width: 36px;
  height: 36px;
  border: 0;
  border-left: 1px solid #e2e8f0;
  background: transparent;
  color: #64748b;
}

.fp-company-input .fp-company-secret-toggle:hover,
.fp-company-input .fp-company-secret-toggle:focus {
  color: #0f766e;
  outline: 0;
}

.fp-company-cert-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid #facc15;
  border-radius: 8px;
  background: #fffbeb;
}

.fp-company-cert-card.is-ready {
  border-color: #86efac;
  background: #f0fdf4;
}

.fp-company-cert-card > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
  font-size: 1.1rem;
}

.fp-company-cert-card.is-ready > span {
  background: #dcfce7;
  color: #166534;
}

.fp-company-cert-card small,
.fp-company-cert-card strong,
.fp-company-cert-card em {
  display: block;
}

.fp-company-cert-card small {
  color: #64748b;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-company-cert-card strong {
  margin-top: 2px;
  color: #0f172a;
  font-size: .9rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.fp-company-cert-card em {
  margin-top: 2px;
  color: #64748b;
  font-size: .74rem;
  font-style: normal;
  font-weight: 750;
}

.fp-company-cert-delete {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fee2e2;
  color: #b91c1c;
}

.fp-company-cert-delete:hover,
.fp-company-cert-delete:focus {
  background: #dc2626;
  color: #ffffff;
  text-decoration: none;
}

.fp-company-file-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 138px;
  padding: 16px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
  transition: all .18s ease;
  overflow: hidden;
}

.fp-company-file-drop:hover,
.fp-company-file-drop.has-file {
  border-color: #0f766e;
  background: #ecfdf5;
}

.fp-company-file-drop > i {
  color: #0f766e;
  font-size: 1.65rem;
}

.fp-company-file-drop strong,
.fp-company-file-drop small {
  display: block;
}

.fp-company-file-drop strong {
  max-width: 100%;
  color: #0f172a;
  font-size: .88rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.fp-company-file-drop small {
  color: #64748b;
  font-size: .74rem;
  font-weight: 700;
}

.fp-company-file-drop input[type='file'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.fp-company-credential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.fp-company-credential-list > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-company-credential-list small,
.fp-company-credential-list strong {
  display: block;
}

.fp-company-credential-list small {
  color: #64748b;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-company-credential-list strong {
  margin-top: 2px;
  color: #0f172a;
  font-size: .83rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.fp-company-billing-automations {
  grid-column: 1 / -1;
}

.fp-company-switch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fp-company-switch-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.fp-company-switch-card.is-on,
.fp-company-switch-card:hover {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .08);
}

.fp-company-switch-card div {
  min-width: 0;
}

.fp-company-switch-card i,
.fp-company-switch-card strong,
.fp-company-switch-card p {
  display: block;
}

.fp-company-switch-card div > i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
}

.fp-company-switch-card.is-on div > i {
  background: #ccfbf1;
  color: #115e59;
}

.fp-company-switch-card strong {
  color: #0f172a;
  font-size: .88rem;
  font-weight: 950;
  line-height: 1.25;
}

.fp-company-switch-card p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.35;
}

.fp-company-switch-card .bootstrap-switch {
  flex: 0 0 auto;
}

.fp-company-billing-warnings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.fp-company-billing-warnings span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: .76rem;
  font-weight: 850;
}

.fp-company-billing-warnings span:last-child {
  background: #eff6ff;
  color: #1e40af;
}

@media (max-width: 1199.98px) {
  .fp-company-billing-grid,
  .fp-company-switch-grid {
    grid-template-columns: 1fr;
  }

  .fp-company-billing-automations {
    grid-column: auto;
  }
}

@media (max-width: 767.98px) {
  .fp-company-billing-panel .fp-company-fields,
  .fp-company-credential-list {
    grid-template-columns: 1fr;
  }

  .fp-company-switch-card {
    align-items: stretch;
    flex-direction: column;
  }
}
.fp-company-input.is-secret {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
/* Modern company advanced settings page */
.fp-company-advanced-hero .fp-company-hero-logo {
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
  font-size: 1.42rem;
}

.fp-company-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fp-company-advanced-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fp-company-choice-stack {
  display: grid;
  gap: 12px;
}

.fp-company-switch-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fp-company-switch-list .fp-company-switch-card {
  min-height: 142px;
}

.fp-company-margin-panel {
  border-color: #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.fp-company-margin-toggle {
  min-height: 118px;
}

.fp-company-margin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.fp-company-margin-grid:not(.is-visible) {
  display: none;
}

.fp-company-margin-field {
  min-width: 0;
}

.fp-company-margin-field label {
  display: block;
  margin-bottom: 6px;
  color: #1e3a8a;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-company-margin-field .form-control {
  border-color: #bfdbfe;
  border-radius: 8px 0 0 8px;
  background: #ffffff;
}

.fp-company-margin-field .input-group-text {
  border-color: #bfdbfe;
  border-radius: 0 8px 8px 0;
  background: #071b4d;
  color: #ffffff;
  font-weight: 900;
}

.fp-company-price-form {
  margin-top: 14px;
}

.fp-company-establishment-panel {
  border-color: #ccfbf1;
  background: #ffffff;
}

.fp-company-establishment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
  gap: 12px;
  align-items: stretch;
}

.fp-company-establishment-select {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-company-establishment-select label,
.fp-company-establishment-select small {
  display: block;
}

.fp-company-establishment-select small {
  margin-top: 7px;
  color: #64748b;
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.35;
}

.fp-company-establishment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.fp-company-advanced-page .fp-company-option-block {
  background: #ffffff;
}

.fp-company-advanced-page .fp-company-choice span {
  min-height: 74px;
}

@media (max-width: 1199.98px) {
  .fp-company-advanced-grid,
  .fp-company-establishment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .fp-company-switch-list,
  .fp-company-margin-grid {
    grid-template-columns: 1fr;
  }

  .fp-company-establishment-actions,
  .fp-company-establishment-actions .fp-company-save {
    width: 100%;
  }
}
/* Modern company actions page */
.fp-company-actions-hero .fp-company-hero-logo {
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
  font-size: 1.42rem;
}

.fp-company-action-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.fp-company-action-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: .8rem;
  font-weight: 850;
  transition: all .18s ease;
}

.fp-company-action-filters button:hover,
.fp-company-action-filters button.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.fp-company-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fp-company-action-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fp-company-action-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .1);
}

.fp-company-action-card.is-hidden {
  display: none;
}

.fp-company-action-card.is-danger {
  border-color: #fecaca;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

.fp-company-action-card.is-backup {
  border-color: #dbeafe;
}

.fp-company-action-card.is-products {
  border-color: #bbf7d0;
}

.fp-company-action-card.is-billing {
  border-color: #ccfbf1;
}

.fp-company-action-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.fp-company-action-card-head > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  flex: 0 0 auto;
}

.fp-company-action-card.is-danger .fp-company-action-card-head > span {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-company-action-card.is-products .fp-company-action-card-head > span {
  background: #dcfce7;
  color: #166534;
}

.fp-company-action-card.is-billing .fp-company-action-card-head > span {
  background: #ccfbf1;
  color: #115e59;
}

.fp-company-action-card-head small,
.fp-company-action-card-head h2 {
  display: block;
}

.fp-company-action-card-head small {
  color: #0f766e;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-company-action-card-head h2 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 950;
}

.fp-company-action-card > p {
  margin: 0 0 13px;
  color: #64748b;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.45;
}

.fp-company-action-list {
  display: grid;
  gap: 9px;
}

.fp-company-action-btn,
.fp-company-action-primary,
.fp-company-action-downloads a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  font-weight: 900;
  transition: all .18s ease;
}

.fp-company-action-btn {
  width: 100%;
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
}

.fp-company-action-btn i,
.fp-company-action-primary i,
.fp-company-action-downloads a i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(15, 118, 110, .12);
  color: #0f766e;
  flex: 0 0 auto;
}

.fp-company-action-btn span,
.fp-company-action-btn b,
.fp-company-action-btn small {
  display: block;
}

.fp-company-action-btn b {
  color: #0f172a;
  font-size: .84rem;
  font-weight: 950;
}

.fp-company-action-btn small {
  margin-top: 2px;
  color: #64748b;
  font-size: .74rem;
  font-weight: 700;
}

.fp-company-action-btn.is-danger,
.fp-company-action-btn.is-danger-soft:hover {
  border-color: #dc2626;
  background: #dc2626;
  color: #ffffff;
}

.fp-company-action-btn.is-danger i,
.fp-company-action-btn.is-danger-soft:hover i {
  background: rgba(255, 255, 255, .18);
  color: #ffffff;
}

.fp-company-action-btn.is-danger b,
.fp-company-action-btn.is-danger small,
.fp-company-action-btn.is-danger-soft:hover b,
.fp-company-action-btn.is-danger-soft:hover small {
  color: #ffffff;
}

.fp-company-action-primary {
  min-height: 42px;
  padding: 8px 13px;
  border: 0;
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .2);
}

.fp-company-action-primary i {
  background: rgba(255, 255, 255, .18);
  color: #ffffff;
}

.fp-company-action-primary.is-success {
  background: #16a34a;
}

.fp-company-action-primary:hover,
.fp-company-action-primary:focus {
  color: #ffffff;
  filter: brightness(.95);
  text-decoration: none;
}

.fp-company-action-downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.fp-company-action-downloads a {
  justify-content: center;
  min-height: 50px;
  padding: 9px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #334155;
}

.fp-company-action-downloads a:hover,
.fp-company-action-downloads a:focus {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #0f766e;
  text-decoration: none;
}

.fp-company-actions-help {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #facc15;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
}

.fp-company-actions-help > i {
  margin-top: 2px;
}

.fp-company-actions-help strong,
.fp-company-actions-help p {
  display: block;
  margin: 0;
}

.fp-company-actions-help strong {
  font-size: .86rem;
  font-weight: 950;
}

.fp-company-actions-help p {
  margin-top: 2px;
  font-size: .8rem;
  font-weight: 750;
  line-height: 1.4;
}

@media (max-width: 991.98px) {
  .fp-company-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .fp-company-action-filters button,
  .fp-company-action-primary,
  .fp-company-action-downloads a {
    width: 100%;
    justify-content: center;
  }

  .fp-company-action-downloads {
    grid-template-columns: 1fr;
  }

  .fp-company-action-card {
    padding: 14px;
  }
}
/* Company RUC search */
.fp-company-ruc-search {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: stretch;
  margin: 14px 0 16px;
}

.fp-company-ruc-copy,
.fp-company-ruc-result {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 13px 14px;
}

.fp-company-ruc-copy span {
  display: block;
  color: #0f766e;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-company-ruc-copy strong {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: .98rem;
}

.fp-company-ruc-copy small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  line-height: 1.35;
}

.fp-company-ruc-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: #ffffff;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.fp-company-ruc-result > i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #0f766e;
  background: rgba(15, 118, 110, .1);
}

.fp-company-ruc-result strong,
.fp-company-ruc-result small,
.fp-company-ruc-detail span {
  display: block;
}

.fp-company-ruc-result strong {
  color: #0f172a;
  font-size: .9rem;
}

.fp-company-ruc-result small {
  color: #64748b;
  line-height: 1.35;
}

.fp-company-ruc-result.is-success {
  border-color: rgba(22, 163, 74, .35);
  background: #f0fdf4;
  box-shadow: 0 10px 24px rgba(22, 163, 74, .08);
}

.fp-company-ruc-result.is-success > i {
  color: #15803d;
  background: rgba(22, 163, 74, .13);
}

.fp-company-ruc-result.is-error {
  border-color: rgba(220, 38, 38, .35);
  background: #fef2f2;
  box-shadow: 0 10px 24px rgba(220, 38, 38, .07);
}

.fp-company-ruc-result.is-error > i {
  color: #dc2626;
  background: rgba(220, 38, 38, .12);
}

.fp-company-ruc-result.is-loading {
  border-color: rgba(37, 99, 235, .34);
  background: #eff6ff;
}

.fp-company-ruc-result.is-loading > i {
  color: #2563eb;
  background: rgba(37, 99, 235, .12);
}

.fp-company-input.is-ruc {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding-right: 5px;
}

.fp-company-ruc-btn {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(8, 145, 178, .2);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.fp-company-ruc-btn:hover,
.fp-company-ruc-btn:focus {
  color: #ffffff;
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(8, 145, 178, .26);
}

.fp-company-ruc-btn:disabled {
  cursor: wait;
  opacity: .78;
  transform: none;
}

@media (max-width: 767.98px) {
  .fp-company-ruc-search {
    grid-template-columns: 1fr;
  }

  .fp-company-input.is-ruc {
    grid-template-columns: auto minmax(0, 1fr);
    padding-right: 10px;
  }

  .fp-company-ruc-btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    margin: 0 0 7px;
  }
}
/* Modern shell layouts 2026 */
:root {
  --fp-shell-bg: #f6f8fb;
  --fp-shell-surface: #ffffff;
  --fp-shell-border: #e4e9f0;
  --fp-shell-text: #172033;
  --fp-shell-muted: #667085;
  --fp-shell-sidebar: #071726;
  --fp-shell-sidebar-2: #0a2236;
  --fp-shell-sidebar-hover: rgba(255, 255, 255, .08);
  --fp-shell-sidebar-line: rgba(255, 255, 255, .1);
  --fp-shell-sidebar-text: #e7eef7;
  --fp-shell-sidebar-muted: #9fb0c4;
  --fp-shell-accent: #12b8a6;
  --fp-shell-accent-2: #2f80ed;
  --fp-shell-warning: #f59e0b;
}

body.fp-shell,
body.fp-module-shell {
  background: var(--fp-shell-bg);
  color: var(--fp-shell-text);
}

.fp-shell .content-wrapper.fp-content-wrapper,
.fp-module-shell .fp-module-content-wrapper {
  min-height: calc(100vh - 56px);
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%) !important;
}

.fp-topbar,
.fp-module-topbar {
  min-height: 58px;
  background: rgba(255, 255, 255, .96) !important;
  border-bottom: 1px solid var(--fp-shell-border) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07) !important;
  backdrop-filter: blur(12px);
}

.fp-topbar .nav-link,
.fp-module-topbar .nav-link {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  border-radius: 11px;
  color: #314156 !important;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.fp-topbar .nav-link:hover,
.fp-module-topbar .nav-link:hover {
  background: #eef6fb !important;
  color: #0f766e !important;
  transform: translateY(-1px);
}

.fp-topbar .navbar-badge {
  top: 0 !important;
  right: 2px;
  border: 2px solid #ffffff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, .16);
}

.fp-topbar-logo .nav-link,
.fp-topbar-logo-wide .nav-link {
  width: auto;
  min-width: 42px;
  padding: 4px 7px;
}

.fp-topbar-logo img,
.fp-topbar-logo-wide img {
  max-height: 28px;
  width: auto !important;
  object-fit: contain;
  filter: saturate(1.05);
}

.fp-topbar-identity {
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-left: 10px;
  padding: 6px 12px;
  border: 1px solid var(--fp-shell-border);
  border-radius: 14px;
  background: #f8fbfd;
}

.fp-topbar-identity-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--fp-shell-accent), var(--fp-shell-accent-2));
}

.fp-topbar-identity div {
  min-width: 0;
  line-height: 1.1;
}

.fp-topbar-identity small,
.fp-topbar-identity strong,
.fp-topbar-identity em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-topbar-identity small {
  color: var(--fp-shell-muted);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fp-topbar-identity strong {
  max-width: 230px;
  color: var(--fp-shell-text);
  font-size: .85rem;
  font-weight: 800;
}

.fp-topbar-identity em {
  max-width: 120px;
  padding-left: 10px;
  border-left: 1px solid var(--fp-shell-border);
  color: #0f766e;
  font-size: .73rem;
  font-style: normal;
  font-weight: 800;
}

.fp-user-menu {
  margin-left: 6px;
}

.fp-user-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--fp-shell-border) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--fp-shell-text) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.fp-user-avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: #0f766e;
}

.fp-user-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.fp-user-dropdown {
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--fp-shell-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.fp-user-dropdown-head {
  padding: 9px 10px 10px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: #f7fafc;
}

.fp-user-dropdown-head strong,
.fp-user-dropdown-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-user-dropdown-head strong {
  color: var(--fp-shell-text);
  font-size: .9rem;
}

.fp-user-dropdown-head small {
  margin-top: 2px;
  color: var(--fp-shell-muted);
  font-size: .73rem;
}

.fp-user-dropdown .dropdown-item {
  border-radius: 9px;
  color: #344054;
  font-weight: 700;
}

.fp-user-dropdown .dropdown-item:hover {
  background: #eef8f7;
  color: #0f766e;
}

.fp-user-dropdown .dropdown-item i {
  width: 18px;
  margin-right: 6px;
}

.fp-sidebar,
[class*=sidebar-dark-].fp-sidebar {
  background: linear-gradient(180deg, var(--fp-shell-sidebar) 0%, var(--fp-shell-sidebar-2) 100%) !important;
  box-shadow: 9px 0 28px rgba(7, 23, 38, .22) !important;
}

.fp-sidebar .sidebar {
  padding: 10px 10px 14px !important;
}

.fp-brand-link,
.fp-sidebar .brand-link {
  min-height: 60px;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px !important;
  background: transparent !important;
  border-bottom: 1px solid var(--fp-shell-sidebar-line) !important;
  color: var(--fp-shell-sidebar-text) !important;
}

.fp-brand-logo {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}

.fp-brand-logo img {
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
}

.fp-brand-copy {
  min-width: 0;
  line-height: 1.05;
}

.fp-brand-copy strong,
.fp-brand-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-brand-copy strong {
  color: #ffffff;
  font-size: .92rem;
  font-weight: 900;
}

.fp-brand-copy small {
  margin-top: 3px;
  color: var(--fp-shell-sidebar-muted);
  font-size: .7rem;
  font-weight: 700;
}

.fp-menu-head.fp-menu-head-logo {
  gap: 8px !important;
  margin: 8px 0 10px !important;
  padding: 0 0 10px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--fp-shell-sidebar-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.fp-menu-logo-full {
  max-width: 100% !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .96) !important;
  line-height: 0 !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .12) !important;
}

.fp-menu-logo-full img {
  max-width: 150px !important;
  max-height: 46px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.fp-menu-context {
  padding: 2px 4px 0 !important;
  text-align: center;
}

.fp-menu-context strong {
  color: #ffffff !important;
  font-size: .8rem !important;
  font-weight: 900 !important;
}

.fp-menu-context span,
.fp-menu-context i {
  color: var(--fp-shell-sidebar-muted) !important;
}

.fp-menu-search {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  height: 38px;
  margin: 8px 0 10px;
  padding: 0 7px 0 11px;
  border: 1px solid var(--fp-shell-sidebar-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .07);
}

.fp-menu-search > i {
  color: #72d8ce;
  font-size: .82rem;
}

.fp-menu-search input {
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: .78rem;
  font-weight: 700;
}

.fp-menu-search input::placeholder {
  color: #93a4b8;
}

.fp-menu-search button {
  width: 26px;
  height: 26px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  color: #d7e2ee;
  background: rgba(255, 255, 255, .1);
}

.fp-menu-search button.is-visible {
  display: inline-flex;
}

.fp-sidebar-nav .nav-sidebar > .nav-item {
  margin-bottom: 3px !important;
}

.fp-sidebar-nav .nav-sidebar .nav-link {
  min-height: 38px;
  display: flex !important;
  align-items: center;
  border-radius: 12px !important;
  color: var(--fp-shell-sidebar-muted) !important;
  box-shadow: none !important;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.fp-sidebar-nav .nav-sidebar .nav-link p,
.fp-sidebar-nav .nav-sidebar .nav-link .nav-icon,
.fp-sidebar-nav .nav-sidebar .nav-link .right,
[class*=sidebar-dark-].fp-sidebar .sidebar a {
  color: inherit !important;
  text-shadow: none !important;
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link .nav-icon {
  width: 32px;
  flex: 0 0 32px;
  margin-right: 4px;
  text-align: center;
}

.fp-sidebar-nav .nav-sidebar .nav-link p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.fp-sidebar-nav .nav-sidebar .right {
  top: 12px;
  right: 10px;
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link:hover,
.fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link {
  background: var(--fp-shell-sidebar-hover) !important;
  color: #ffffff !important;
  transform: translateX(1px);
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link.active,
.fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link.active {
  background: linear-gradient(135deg, rgba(18, 184, 166, .95), rgba(47, 128, 237, .9)) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(18, 184, 166, .2) !important;
}

.fp-sidebar-nav .nav-treeview {
  margin: 4px 0 8px 18px !important;
  padding-left: 9px !important;
  border-left: 1px solid var(--fp-shell-sidebar-line) !important;
}

.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link {
  min-height: 32px !important;
  border-radius: 10px !important;
  color: #9fb0c4 !important;
  background: transparent !important;
}

.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link .nav-icon {
  width: 16px;
  flex: 0 0 16px;
  margin-right: 7px;
  color: #55d6c9 !important;
  font-size: .42rem;
}

.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link:hover,
.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link.active {
  background: rgba(255, 255, 255, .065) !important;
  color: #ffffff !important;
}

.fp-menu-hidden {
  display: none !important;
}

.fp-sidebar.is-searching .fp-sidebar-nav .nav-treeview {
  animation: none !important;
}

.fp-support-panel {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid var(--fp-shell-sidebar-line) !important;
}

.fp-support-panel a {
  border: 1px solid var(--fp-shell-sidebar-line);
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .07) !important;
  color: #dbe8f5 !important;
}

.fp-support-panel a:hover {
  background: rgba(18, 184, 166, .16) !important;
  color: #ffffff !important;
}

.fp-support-icon {
  border-radius: 11px !important;
  background: rgba(255, 255, 255, .12) !important;
}

.fp-footer {
  border-top: 1px solid var(--fp-shell-border) !important;
  background: #ffffff !important;
  color: #667085;
}

@media (min-width: 768px) {
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-brand-copy,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-menu-head-logo,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-menu-search,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-support-panel strong,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-support-panel small {
    display: none !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-sidebar-nav .nav-sidebar .nav-link p,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-sidebar-nav .nav-sidebar .right {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused {
    width: 260px !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .brand-link,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .brand-link {
    width: 260px !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-brand-copy,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-brand-copy,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-menu-head-logo,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-menu-head-logo,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-menu-search,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-menu-search {
    display: flex !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-sidebar-nav .nav-sidebar .nav-link p,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .nav-link p {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: 170px !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-sidebar-nav .nav-sidebar .right,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .right {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-support-panel a,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-support-panel a {
    justify-content: flex-start !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-support-panel strong,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-support-panel small,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-support-panel strong,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-support-panel small {
    display: block !important;
  }
}

.fp-module-shell .wrapper {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4f8 100%);
}

.fp-module-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--fp-shell-text) !important;
}

.fp-module-brand-logo {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}

.fp-module-brand-logo img {
  max-width: 31px;
  max-height: 31px;
  object-fit: contain;
}

.fp-module-brand-copy strong,
.fp-module-brand-copy small {
  display: block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.08;
}

.fp-module-brand-copy strong {
  font-size: .98rem;
  font-weight: 900;
}

.fp-module-brand-copy small {
  margin-top: 3px;
  color: var(--fp-shell-muted);
  font-size: .72rem;
  font-weight: 700;
}

.fp-module-context {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 12px;
  border: 1px solid var(--fp-shell-border);
  border-radius: 13px;
  background: #f8fbfd;
}

.fp-module-context span {
  color: #0f766e;
  font-size: .76rem;
  font-weight: 900;
}

.fp-module-context small {
  color: var(--fp-shell-muted);
  font-size: .72rem;
  font-weight: 700;
}

.fp-module-toggle {
  border: 1px solid var(--fp-shell-border) !important;
  border-radius: 12px;
  background: #ffffff;
}

@media (max-width: 991.98px) {
  .fp-topbar-logo-wide,
  .fp-topbar-logo {
    display: none !important;
  }

  .fp-user-name {
    max-width: 100px;
  }
}

@media (max-width: 767.98px) {
  .fp-topbar,
  .fp-module-topbar {
    min-height: 54px;
  }

  .fp-shell .content-wrapper.fp-content-wrapper,
  .fp-module-shell .fp-module-content-wrapper {
    padding-bottom: 18px;
  }

  .fp-user-button {
    padding-right: 7px;
  }

  .fp-user-name {
    display: none;
  }

  .fp-module-brand-copy small {
    display: none;
  }

  .fp-module-context {
    margin-top: 10px;
    width: 100%;
  }
}
/* Modern shell collapsed display refinements */
@media (min-width: 768px) {
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-brand-copy,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-brand-copy {
    display: block !important;
  }

  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-menu-search,
  body.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-menu-search {
    display: grid !important;
  }
}
/* Navy owner dashboard redesign 2026 */
.fp-navy-dashboard {
  min-height: calc(100vh - 58px);
  padding: 18px 0 30px;
  background:
    radial-gradient(circle at 20% 0%, rgba(91, 197, 255, .18), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(105, 215, 87, .12), transparent 24%),
    linear-gradient(135deg, #0b3760 0%, #0e4b78 46%, #0a3158 100%);
  color: #ecf8ff;
}

.fp-navy-dashboard .container-fluid {
  max-width: 1480px;
}

.fp-navy-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(152, 214, 255, .16);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0/72px 72px,
    rgba(9, 57, 96, .72);
  box-shadow: 0 24px 70px rgba(0, 21, 43, .34);
}

.fp-navy-header,
.fp-navy-actions,
.fp-navy-top-grid,
.fp-navy-kpi-row,
.fp-navy-middle-grid,
.fp-navy-detail-grid,
.fp-navy-product-grid,
.fp-navy-bottom-grid {
  position: relative;
  z-index: 1;
}

.fp-navy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.fp-navy-title span,
.fp-navy-panel-head span,
.fp-navy-income-card span,
.fp-navy-trend-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(231, 247, 255, .78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-navy-title h1 {
  margin: 4px 0 6px;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  font-weight: 900;
}

.fp-navy-title p {
  margin: 0;
  color: rgba(228, 246, 255, .72);
  font-size: 13px;
}

.fp-navy-filter {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(164, 223, 255, .16);
  border-radius: 8px;
  background: rgba(7, 44, 78, .72);
}

.fp-navy-filter label {
  margin: 0;
  min-width: 132px;
}

.fp-navy-filter label span {
  display: block;
  margin-bottom: 4px;
  color: rgba(232, 248, 255, .72);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-navy-filter input,
.fp-navy-filter button {
  height: 36px;
  border: 1px solid rgba(160, 224, 255, .18);
  border-radius: 8px;
  outline: none;
}

.fp-navy-filter input {
  width: 100%;
  padding: 0 10px;
  background: rgba(17, 82, 128, .86);
  color: #fff;
  font-weight: 700;
}

.fp-navy-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  background: linear-gradient(135deg, #56c8ff, #69d757);
  color: #083253;
  font-weight: 900;
  cursor: pointer;
}

.fp-navy-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.fp-navy-actions a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(155, 220, 255, .14);
  border-radius: 8px;
  background: rgba(25, 92, 145, .62);
  color: rgba(241, 250, 255, .92);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.fp-navy-actions a:hover {
  transform: translateY(-2px);
  border-color: rgba(105, 215, 87, .46);
  background: rgba(37, 116, 176, .78);
  color: #fff;
}

.fp-navy-actions i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #ffdc32;
}

.fp-navy-top-grid {
  display: grid;
  grid-template-columns: minmax(210px, .78fr) minmax(300px, .96fr) minmax(420px, 1.42fr);
  gap: 14px;
  align-items: stretch;
}

.fp-navy-metric-stack {
  display: grid;
  gap: 10px;
}

.fp-navy-income-card,
.fp-navy-trend-card,
.fp-navy-panel,
.fp-navy-gauge-card,
.fp-navy-kpi-row article {
  border: 1px solid rgba(154, 219, 255, .16);
  border-radius: 8px;
  background: rgba(32, 94, 145, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 26px rgba(0, 24, 48, .18);
}

.fp-navy-income-card {
  position: relative;
  min-height: 104px;
  padding: 14px 44px 14px 15px;
}

.fp-navy-income-card.is-green { background: linear-gradient(135deg, rgba(71, 179, 134, .94), rgba(55, 168, 219, .82)); }
.fp-navy-income-card.is-blue { background: linear-gradient(135deg, rgba(41, 109, 169, .92), rgba(28, 84, 138, .88)); }
.fp-navy-income-card.is-purple { background: linear-gradient(135deg, rgba(91, 105, 198, .88), rgba(37, 96, 157, .82)); }

.fp-navy-income-card button,
.fp-navy-panel-head button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: rgba(255,255,255,.85);
}

.fp-navy-income-card strong {
  display: block;
  margin-top: 8px;
  color: #e9fbff;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1;
  font-weight: 900;
}

.fp-navy-income-card small,
.fp-navy-trend-card small {
  display: block;
  margin-top: 8px;
  color: rgba(239, 251, 255, .76);
  font-size: 12px;
  font-weight: 700;
}

.fp-navy-income-card small b,
.fp-navy-trend-card small b {
  color: #c7ff4f;
}

.fp-navy-trend-card {
  min-height: 92px;
  padding: 13px 14px;
  background: rgba(31, 93, 145, .62);
}

.fp-navy-bars-mini {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
  margin-top: 10px;
}

.fp-navy-bars-mini i {
  flex: 1;
  min-width: 3px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #f9fbff, #77dcff 55%, #ffdc32);
}

.fp-navy-gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 45%, rgba(27, 95, 153, .96), rgba(11, 53, 91, .92));
}

.fp-navy-gauge {
  position: relative;
  width: min(100%, 342px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from -125deg, #ffb22c 0 44deg, #f8e84a 44deg 82deg, #6dde57 82deg 190deg, #56c8ff 190deg 276deg, #5e79ff 276deg 360deg);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 52px rgba(0,0,0,.26);
}

.fp-navy-gauge::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #124b7e 0%, #123f70 64%, #0b3158 100%);
  box-shadow: inset 0 0 34px rgba(0, 16, 36, .45);
}

.fp-navy-gauge::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from -125deg, transparent 0 var(--angle), rgba(9, 44, 78, .72) var(--angle) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 62%, #000 63% 100%);
  mask: radial-gradient(circle, transparent 0 62%, #000 63% 100%);
}

.fp-navy-gauge-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.fp-navy-gauge-inner span {
  display: block;
  color: rgba(193, 224, 247, .72);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.05;
  font-weight: 500;
}

.fp-navy-gauge-inner strong {
  display: block;
  margin: 14px 0 8px;
  color: #fff;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  font-weight: 900;
}

.fp-navy-gauge-inner small {
  color: rgba(223, 242, 255, .72);
  font-size: 18px;
}

.fp-navy-gauge-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}

.fp-navy-gauge-footer div,
.fp-navy-finance-row div,
.fp-navy-summary-grid div {
  border: 1px solid rgba(157, 222, 255, .13);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,.055);
}

.fp-navy-gauge-footer span,
.fp-navy-finance-row span,
.fp-navy-summary-grid span {
  display: block;
  color: rgba(225, 244, 255, .68);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-navy-gauge-footer strong,
.fp-navy-finance-row strong,
.fp-navy-summary-grid strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-weight: 900;
}

.fp-navy-panel {
  position: relative;
  padding: 14px;
}

.fp-navy-panel-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  min-height: 38px;
  margin-bottom: 12px;
}

.fp-navy-panel-head h2 {
  margin: 3px 0 0;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.16;
  font-weight: 900;
}

.fp-navy-panel-head strong {
  color: #ffdc32;
  font-size: 13px;
  white-space: nowrap;
}

.fp-navy-chart-lg,
.fp-navy-chart-md {
  position: relative;
  min-height: 236px;
}

.fp-navy-chart-md {
  min-height: 232px;
}

.fp-navy-finance-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.fp-navy-finance-row i {
  color: #56c8ff;
  margin-bottom: 7px;
}

.fp-navy-finance-row small {
  color: rgba(230,245,255,.62);
  font-weight: 700;
}

.fp-navy-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.fp-navy-kpi-row article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 11px;
  align-items: center;
  padding: 12px;
  min-height: 86px;
  background: rgba(25, 91, 143, .64);
}

.fp-navy-kpi-row i {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(86, 200, 255, .14);
  color: #ffdc32;
}

.fp-navy-kpi-row span {
  color: rgba(231, 247, 255, .72);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-navy-kpi-row strong {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.fp-navy-kpi-row small {
  color: rgba(224, 243, 255, .62);
  font-weight: 700;
}

.fp-navy-middle-grid,
.fp-navy-detail-grid,
.fp-navy-product-grid,
.fp-navy-bottom-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.fp-navy-middle-grid {
  grid-template-columns: minmax(360px, 1.08fr) minmax(270px, .72fr) minmax(340px, .86fr);
}

.fp-navy-detail-grid {
  grid-template-columns: minmax(560px, 1.45fr) minmax(320px, .75fr);
}

.fp-navy-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-navy-bottom-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fp-navy-branch-list,
.fp-navy-list,
.fp-navy-profit-list {
  display: grid;
  gap: 8px;
}

.fp-navy-branch-list {
  margin-top: 12px;
}

.fp-navy-branch-list div,
.fp-navy-list div,
.fp-navy-profit-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}

.fp-navy-branch-list span,
.fp-navy-list span,
.fp-navy-profit-list span {
  min-width: 0;
}

.fp-navy-branch-list strong,
.fp-navy-list strong,
.fp-navy-profit-list strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-navy-branch-list small,
.fp-navy-list small,
.fp-navy-profit-list small {
  display: block;
  overflow: hidden;
  color: rgba(224, 243, 255, .62);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-navy-branch-list em,
.fp-navy-profit-list em {
  grid-column: 1 / -1;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}

.fp-navy-branch-list em i,
.fp-navy-profit-list em i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #56c8ff, #69d757, #ffdc32);
}

.fp-navy-branch-list b,
.fp-navy-list b,
.fp-navy-profit-list b {
  color: #ffdc32;
  font-size: 12px;
  white-space: nowrap;
}

.fp-navy-list div {
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

.fp-navy-list i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(105, 215, 87, .14);
  color: #69d757;
}

.fp-navy-radial-panel {
  display: flex;
  flex-direction: column;
}

.fp-navy-radial {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 2px auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(16,70,116,1) 0 34%, transparent 35%),
    repeating-conic-gradient(from -90deg, #ffdc32 0 9deg, #69d757 9deg 18deg, #56c8ff 18deg 27deg, #7d95ff 27deg 36deg, rgba(255,255,255,.08) 36deg 41deg);
  box-shadow: inset 0 0 36px rgba(0, 16, 36, .25);
}

.fp-navy-radial::after {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: rgba(9, 48, 84, .94);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}

.fp-navy-radial div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.fp-navy-radial strong {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.fp-navy-radial span {
  color: rgba(229,246,255,.66);
  font-weight: 800;
  text-transform: uppercase;
}

.fp-navy-radial-stats,
.fp-navy-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fp-navy-radial-stats span {
  padding: 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  color: rgba(230,245,255,.68);
  font-size: 11px;
  font-weight: 800;
}

.fp-navy-radial-stats b {
  display: block;
  margin-top: 3px;
  color: #ffdc32;
  font-size: 14px;
}

.fp-navy-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.fp-navy-table-wrap {
  overflow-x: auto;
}

.fp-navy-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 7px;
}

.fp-navy-table th {
  padding: 0 10px 4px;
  color: rgba(228,246,255,.66);
  font-size: 10px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-navy-table td {
  padding: 9px 10px;
  background: rgba(255,255,255,.06);
  color: rgba(241, 250, 255, .88);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}

.fp-navy-table td:first-child {
  border-radius: 8px 0 0 8px;
}

.fp-navy-table td:last-child {
  border-radius: 0 8px 8px 0;
}

.fp-navy-table strong {
  display: block;
  color: #fff;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-navy-table small {
  display: block;
  margin-top: 2px;
  color: rgba(224, 243, 255, .58);
}

.fp-navy-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #082b47;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-navy-status.saludable { background: #69d757; }
.fp-navy-status.bajo { background: #ffdc32; }
.fp-navy-status.negativo { background: #ff6e58; color: #fff; }

.fp-navy-empty {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  color: rgba(230,245,255,.68);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1280px) {
  .fp-navy-top-grid,
  .fp-navy-middle-grid,
  .fp-navy-detail-grid,
  .fp-navy-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fp-navy-performance,
  .fp-navy-table-panel {
    grid-column: 1 / -1;
  }

  .fp-navy-product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {
  .fp-navy-shell {
    padding: 16px;
  }

  .fp-navy-header,
  .fp-navy-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .fp-navy-actions,
  .fp-navy-kpi-row,
  .fp-navy-top-grid,
  .fp-navy-middle-grid,
  .fp-navy-detail-grid,
  .fp-navy-product-grid,
  .fp-navy-bottom-grid {
    grid-template-columns: 1fr;
  }

  .fp-navy-summary-grid,
  .fp-navy-finance-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .fp-navy-dashboard {
    padding: 10px 0 22px;
  }

  .fp-navy-shell {
    padding: 12px;
  }

  .fp-navy-actions,
  .fp-navy-summary-grid,
  .fp-navy-finance-row,
  .fp-navy-gauge-footer,
  .fp-navy-radial-stats {
    grid-template-columns: 1fr;
  }

  .fp-navy-filter label {
    min-width: 0;
  }

  .fp-navy-gauge-inner strong {
    font-size: 36px;
  }

  .fp-navy-chart-lg,
  .fp-navy-chart-md {
    min-height: 250px;
  }
}
/* Navy dashboard previous palette override 2026 */
.fp-navy-dashboard {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 79, 195, .18), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(160, 45, 245, .14), transparent 26%),
    linear-gradient(180deg, #fff8fd 0%, #fff1fb 100%);
  color: #241842;
}

.fp-navy-shell {
  border-color: rgba(255, 79, 195, .2);
  background:
    linear-gradient(90deg, rgba(255, 79, 195, .07) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(rgba(160, 45, 245, .055) 1px, transparent 1px) 0 0/72px 72px,
    rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(92, 38, 122, .13);
}

.fp-navy-title h1,
.fp-navy-panel-head h2,
.fp-navy-income-card strong,
.fp-navy-gauge-inner strong,
.fp-navy-kpi-row strong,
.fp-navy-branch-list strong,
.fp-navy-list strong,
.fp-navy-profit-list strong,
.fp-navy-table strong,
.fp-navy-radial strong {
  color: #241842;
}

.fp-navy-title span,
.fp-navy-panel-head span,
.fp-navy-income-card span,
.fp-navy-trend-card span,
.fp-navy-kpi-row span,
.fp-navy-gauge-footer span,
.fp-navy-finance-row span,
.fp-navy-summary-grid span {
  color: #7a4a91;
}

.fp-navy-title p,
.fp-navy-income-card small,
.fp-navy-trend-card small,
.fp-navy-kpi-row small,
.fp-navy-branch-list small,
.fp-navy-list small,
.fp-navy-profit-list small,
.fp-navy-table small,
.fp-navy-gauge-inner span,
.fp-navy-gauge-inner small,
.fp-navy-radial span,
.fp-navy-radial-stats span,
.fp-navy-finance-row small {
  color: #6b5c87;
}

.fp-navy-filter,
.fp-navy-actions a,
.fp-navy-income-card,
.fp-navy-trend-card,
.fp-navy-panel,
.fp-navy-gauge-card,
.fp-navy-kpi-row article {
  border-color: rgba(255, 79, 195, .18);
  background: rgba(255, 255, 255, .88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 14px 28px rgba(92, 38, 122, .09);
}

.fp-navy-filter input {
  border-color: rgba(255, 79, 195, .22);
  background: #fff7fd;
  color: #241842;
}

.fp-navy-filter label span {
  color: #7a4a91;
}

.fp-navy-filter button {
  border-color: transparent;
  background: linear-gradient(135deg, #ff4fc3, #a02df5);
  color: #fff;
}

.fp-navy-actions a {
  color: #302b73;
}

.fp-navy-actions a:hover {
  border-color: rgba(160, 45, 245, .34);
  background: #fff2fb;
  color: #241842;
}

.fp-navy-actions i,
.fp-navy-kpi-row i,
.fp-navy-list i {
  background: #ffecf9;
  color: #ff4fc3;
}

.fp-navy-income-card.is-green {
  background: linear-gradient(135deg, #ffe6f7, #fff7fd);
}

.fp-navy-income-card.is-blue {
  background: linear-gradient(135deg, #ebe9ff, #fff7fd);
}

.fp-navy-income-card.is-purple {
  background: linear-gradient(135deg, #f3e7ff, #fff0fa);
}

.fp-navy-income-card button,
.fp-navy-panel-head button {
  background: rgba(255, 79, 195, .12);
  color: #a02df5;
}

.fp-navy-income-card small b,
.fp-navy-trend-card small b,
.fp-navy-panel-head strong,
.fp-navy-branch-list b,
.fp-navy-list b,
.fp-navy-profit-list b,
.fp-navy-radial-stats b {
  color: #ff4fc3;
}

.fp-navy-bars-mini i {
  background: linear-gradient(180deg, #302b73, #a02df5 56%, #ff4fc3);
}

.fp-navy-gauge-card {
  background: radial-gradient(circle at 50% 45%, #ffffff, #fff1fb 72%, #f7e7ff 100%);
}

.fp-navy-gauge {
  background: conic-gradient(from -125deg, #ff4fc3 0 80deg, #a02df5 80deg 170deg, #302b73 170deg 260deg, #ff7adf 260deg 360deg);
  box-shadow: 0 0 0 1px rgba(255, 79, 195, .16), 0 18px 52px rgba(92, 38, 122, .16);
}

.fp-navy-gauge::before {
  background: radial-gradient(circle, #ffffff 0%, #fff5fc 66%, #f6e8ff 100%);
  box-shadow: inset 0 0 28px rgba(160, 45, 245, .08);
}

.fp-navy-gauge::after {
  background: conic-gradient(from -125deg, transparent 0 var(--angle), rgba(255, 245, 252, .78) var(--angle) 360deg);
}

.fp-navy-gauge-footer div,
.fp-navy-finance-row div,
.fp-navy-summary-grid div,
.fp-navy-branch-list div,
.fp-navy-list div,
.fp-navy-profit-list div,
.fp-navy-radial-stats span {
  border-color: rgba(255, 79, 195, .12);
  background: rgba(255, 244, 252, .82);
}

.fp-navy-finance-row i {
  color: #a02df5;
}

.fp-navy-kpi-row article {
  background: rgba(255, 255, 255, .9);
}

.fp-navy-branch-list em,
.fp-navy-profit-list em {
  background: #f0def4;
}

.fp-navy-branch-list em i,
.fp-navy-profit-list em i {
  background: linear-gradient(90deg, #ff4fc3, #a02df5, #302b73);
}

.fp-navy-radial {
  background:
    radial-gradient(circle, rgba(255,255,255,1) 0 34%, transparent 35%),
    repeating-conic-gradient(from -90deg, #ff4fc3 0 9deg, #a02df5 9deg 18deg, #302b73 18deg 27deg, #ff7adf 27deg 36deg, rgba(255,79,195,.1) 36deg 41deg);
  box-shadow: inset 0 0 34px rgba(160, 45, 245, .08);
}

.fp-navy-radial::after {
  background: #fff7fd;
  box-shadow: 0 0 0 1px rgba(255,79,195,.14);
}

.fp-navy-table td {
  background: rgba(255, 247, 253, .9);
  color: #4b3a68;
}

.fp-navy-table th {
  color: #7a4a91;
}

.fp-navy-status.saludable {
  background: #20c997;
  color: #fff;
}

.fp-navy-status.bajo {
  background: #ffb800;
  color: #4b345a;
}

.fp-navy-status.negativo {
  background: #ff4f8f;
  color: #fff;
}

.fp-navy-empty {
  background: rgba(255, 244, 252, .82);
  color: #6b5c87;
}
/* Return on Revenue soft progress 2026 */
.fp-navy-radial {
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(255,255,255,.98) 0 34%, transparent 35%),
    conic-gradient(from -90deg, var(--score-color, #f2a0bc) 0 var(--score, 0%), rgba(235, 217, 244, .72) var(--score, 0%) 100%);
  box-shadow: inset 0 0 30px rgba(160, 45, 245, .06), 0 16px 38px var(--score-glow, rgba(242,160,188,.22));
}

.fp-navy-radial::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: repeating-conic-gradient(from -90deg, rgba(255,255,255,.62) 0 7deg, rgba(255,255,255,0) 7deg 13deg);
  -webkit-mask: radial-gradient(circle, transparent 0 46%, #000 47% 100%);
  mask: radial-gradient(circle, transparent 0 46%, #000 47% 100%);
  opacity: .46;
}

.fp-navy-radial::after {
  inset: 36%;
  background: #fff8fd;
  box-shadow: 0 0 0 1px rgba(160,45,245,.10), 0 0 32px var(--score-glow, rgba(242,160,188,.18));
}

.fp-navy-radial strong {
  color: var(--score-color, #a995f6);
}
/* Dashboard professional palette override 2026 */
.fp-navy-dashboard {
  background:
    radial-gradient(circle at 14% 0%, rgba(47, 116, 245, .18), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(16, 185, 129, .13), transparent 25%),
    radial-gradient(circle at 52% 100%, rgba(14, 165, 233, .10), transparent 32%),
    linear-gradient(135deg, #07111f 0%, #0b1f36 48%, #0f172a 100%);
  color: #e8f1ff;
}

.fp-navy-shell {
  border-color: rgba(96, 165, 250, .18);
  background:
    linear-gradient(90deg, rgba(96, 165, 250, .055) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(rgba(20, 184, 166, .045) 1px, transparent 1px) 0 0/72px 72px,
    rgba(15, 23, 42, .88);
  box-shadow: 0 24px 70px rgba(0, 9, 24, .42);
}

.fp-navy-title h1,
.fp-navy-panel-head h2,
.fp-navy-income-card strong,
.fp-navy-gauge-inner strong,
.fp-navy-kpi-row strong,
.fp-navy-branch-list strong,
.fp-navy-list strong,
.fp-navy-profit-list strong,
.fp-navy-table strong,
.fp-navy-radial strong {
  color: #f8fafc;
}

.fp-navy-title span,
.fp-navy-panel-head span,
.fp-navy-income-card span,
.fp-navy-trend-card span,
.fp-navy-kpi-row span,
.fp-navy-gauge-footer span,
.fp-navy-finance-row span,
.fp-navy-summary-grid span {
  color: #93c5fd;
}

.fp-navy-title p,
.fp-navy-income-card small,
.fp-navy-trend-card small,
.fp-navy-kpi-row small,
.fp-navy-branch-list small,
.fp-navy-list small,
.fp-navy-profit-list small,
.fp-navy-table small,
.fp-navy-gauge-inner span,
.fp-navy-gauge-inner small,
.fp-navy-radial span,
.fp-navy-radial-stats span,
.fp-navy-finance-row small {
  color: #b8c7dc;
}

.fp-navy-filter,
.fp-navy-actions a,
.fp-navy-income-card,
.fp-navy-trend-card,
.fp-navy-panel,
.fp-navy-gauge-card,
.fp-navy-kpi-row article {
  border-color: rgba(148, 163, 184, .18);
  background: rgba(15, 23, 42, .82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 28px rgba(0, 8, 22, .24);
}

.fp-navy-filter input {
  border-color: rgba(96, 165, 250, .22);
  background: rgba(11, 31, 54, .94);
  color: #f8fafc;
}

.fp-navy-filter label span {
  color: #93c5fd;
}

.fp-navy-filter button {
  border-color: transparent;
  background: linear-gradient(135deg, #2f74f5, #10b981);
  color: #ffffff;
}

.fp-navy-actions a {
  color: #e5edf8;
}

.fp-navy-actions a:hover {
  border-color: rgba(56, 189, 248, .38);
  background: rgba(30, 41, 59, .94);
  color: #ffffff;
}

.fp-navy-actions i,
.fp-navy-kpi-row i,
.fp-navy-list i {
  background: rgba(47, 116, 245, .16);
  color: #38bdf8;
}

.fp-navy-income-card.is-green {
  background: linear-gradient(135deg, #047857, #0f766e);
}

.fp-navy-income-card.is-blue {
  background: linear-gradient(135deg, #1d4ed8, #0f4c81);
}

.fp-navy-income-card.is-purple {
  background: linear-gradient(135deg, #4338ca, #2563eb);
}

.fp-navy-income-card button,
.fp-navy-panel-head button {
  background: rgba(255, 255, 255, .12);
  color: #bfdbfe;
}

.fp-navy-income-card small b,
.fp-navy-trend-card small b,
.fp-navy-panel-head strong,
.fp-navy-branch-list b,
.fp-navy-list b,
.fp-navy-profit-list b,
.fp-navy-radial-stats b {
  color: #4ade80;
}

.fp-navy-bars-mini i {
  background: linear-gradient(180deg, #e2e8f0, #38bdf8 54%, #10b981);
}

.fp-navy-gauge-card {
  background: radial-gradient(circle at 50% 45%, rgba(30, 41, 59, .96), rgba(15, 23, 42, .96) 72%, #07111f 100%);
}

.fp-navy-gauge {
  background: conic-gradient(from -125deg, #ef4444 0 52deg, #f59e0b 52deg 116deg, #10b981 116deg 214deg, #0ea5e9 214deg 300deg, #6366f1 300deg 360deg);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, .18), 0 18px 52px rgba(0, 8, 22, .36);
}

.fp-navy-gauge::before {
  background: radial-gradient(circle, #0f233d 0%, #0f1f35 66%, #07111f 100%);
  box-shadow: inset 0 0 32px rgba(0, 8, 22, .55);
}

.fp-navy-gauge::after {
  background: conic-gradient(from -125deg, transparent 0 var(--angle), rgba(15, 23, 42, .76) var(--angle) 360deg);
}

.fp-navy-gauge-footer div,
.fp-navy-finance-row div,
.fp-navy-summary-grid div,
.fp-navy-branch-list div,
.fp-navy-list div,
.fp-navy-profit-list div,
.fp-navy-radial-stats span {
  border-color: rgba(148, 163, 184, .16);
  background: rgba(30, 41, 59, .68);
}

.fp-navy-finance-row i {
  color: #38bdf8;
}

.fp-navy-kpi-row article {
  background: rgba(15, 23, 42, .84);
}

.fp-navy-branch-list em,
.fp-navy-profit-list em {
  background: rgba(51, 65, 85, .88);
}

.fp-navy-branch-list em i,
.fp-navy-profit-list em i {
  background: linear-gradient(90deg, #2f74f5, #0ea5e9, #10b981);
}

.fp-navy-radial {
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(15, 23, 42, .98) 0 34%, transparent 35%),
    conic-gradient(from -90deg, var(--score-color, #2f74f5) 0 var(--score, 0%), rgba(51, 65, 85, .78) var(--score, 0%) 100%);
  box-shadow: inset 0 0 32px rgba(0, 8, 22, .32), 0 16px 38px var(--score-glow, rgba(47,116,245,.22));
}

.fp-navy-radial::before {
  opacity: .34;
}

.fp-navy-radial::after {
  background: #0f172a;
  box-shadow: 0 0 0 1px rgba(96,165,250,.16), 0 0 32px var(--score-glow, rgba(47,116,245,.18));
}

.fp-navy-radial strong {
  color: var(--score-color, #38bdf8);
}

.fp-navy-table td {
  background: rgba(15, 23, 42, .72);
  color: #dbe7f5;
}

.fp-navy-table th {
  color: #93c5fd;
}

.fp-navy-status.saludable {
  background: #10b981;
  color: #ffffff;
}

.fp-navy-status.bajo {
  background: #f59e0b;
  color: #111827;
}

.fp-navy-status.negativo {
  background: #ef4444;
  color: #ffffff;
}

.fp-navy-empty {
  background: rgba(30, 41, 59, .72);
  color: #b8c7dc;
}

.fp-navy-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px 14px;
  border-top: 1px solid rgba(148, 163, 184, .14);
  background: rgba(15, 23, 42, .46);
}

.fp-navy-page-info {
  color: #b8c7dc;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.fp-navy-page-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.fp-navy-page-btn {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(30, 41, 59, .78);
  color: #d8e6f7;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.fp-navy-page-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, .42);
  background: rgba(47, 116, 245, .26);
  color: #ffffff;
}

.fp-navy-page-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #2f74f5, #10b981);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(47, 116, 245, .18);
}

.fp-navy-page-btn:disabled {
  cursor: not-allowed;
  opacity: .45;
}

@media (max-width: 575.98px) {
  .fp-navy-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-navy-page-controls {
    justify-content: flex-start;
  }
}
/* POS summary amount fields 2026 */
.fp-pos-summary > div {
  display: grid;
  grid-template-columns: minmax(92px, .72fr) minmax(110px, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px;
}

.fp-pos-summary > div.is-total {
  min-height: 58px;
  padding: 10px 12px;
}

.fp-pos-summary small {
  margin: 0;
  line-height: 1.15;
}

.fp-pos-summary input {
  height: 34px;
  min-height: 34px;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #0f172a;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  text-align: right;
}

.fp-pos-summary .is-total input {
  height: 40px;
  min-height: 40px;
  color: #0f766e;
  font-size: 24px;
  font-weight: 950;
}

@media (max-width: 575.98px) {
  .fp-pos-summary > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .fp-pos-summary input,
  .fp-pos-summary .is-total input {
    text-align: left;
  }
}
/* Venta interactiva clean redesign 2026 */
.fp-salei-header .fp-invoice-hero {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  border: 1px solid rgba(15, 118, 110, .16);
  background:
    radial-gradient(circle at 14% 8%, rgba(20, 184, 166, .22), transparent 30%),
    radial-gradient(circle at 90% 16%, rgba(45, 212, 191, .15), transparent 24%),
    linear-gradient(135deg, #0b3b4d 0%, #0f766e 58%, #0b5b68 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.fp-salei-header .fp-invoice-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0/72px 72px,
              linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0/72px 72px;
  pointer-events: none;
}

.fp-salei-header .fp-invoice-hero-main,
.fp-salei-hero-panel,
.fp-salei-hero-actions {
  position: relative;
  z-index: 1;
}

.fp-salei-header .fp-invoice-hero-main span {
  color: rgba(255,255,255,.82);
}

.fp-salei-header .fp-invoice-hero-main h1 {
  color: #ffffff;
}

.fp-salei-header .fp-invoice-hero-main p {
  max-width: 780px;
  color: rgba(240,253,250,.78);
}

.fp-salei-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.fp-salei-hero-chips b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.fp-salei-hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
  min-width: 340px;
  align-self: center;
}

.fp-salei-hero-panel div {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}

.fp-salei-hero-panel small,
.fp-salei-hero-panel strong {
  display: block;
}

.fp-salei-hero-panel small {
  color: rgba(240,253,250,.72);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-salei-hero-panel strong {
  margin-top: 4px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.fp-salei-header .fp-invoice-action.is-light {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
  color: #ffffff;
}

.fp-salei-header .fp-invoice-action.is-primary,
.fp-salei-card .fp-invoice-action.is-primary,
.fp-salei-icon-action,
.fp-salei-submit,
.fp-salei-addpay {
  background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  border-color: #0f766e !important;
  color: #ffffff !important;
}

.fp-salei-page {
  background: linear-gradient(180deg, #f7fbfc 0%, #f1f7f9 100%);
}

.fp-salei-stats {
  margin-bottom: 12px;
}

.fp-salei-stats .fp-invoice-stat {
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
}

.fp-salei-card {
  overflow: visible;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.fp-salei-card > .fp-invoice-card-head {
  border-bottom: 1px solid #e5edf3;
  background: linear-gradient(180deg, #ffffff, #f8fbfc);
}

.fp-salei-card > .fp-invoice-card-head h2 {
  color: #0f172a;
}

.fp-salei-card > .fp-invoice-card-head p {
  color: #64748b;
}

.fp-salei-live {
  gap: 9px;
}

.fp-salei-live > div {
  border-color: #dbe7ef;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 8px 18px rgba(15,23,42,.05);
}

.fp-salei-live > div.is-total {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #ecfdf5, #f8fffd);
}

.fp-salei-live strong {
  font-weight: 950;
}

.fp-salei-body {
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(15,118,110,.035) 1px, transparent 1px) 0 0/42px 42px,
    #f6fafb;
}

.fp-salei-alert {
  border: 0;
  border-radius: 8px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.fp-salei-workspace {
  grid-template-columns: minmax(500px, .95fr) minmax(560px, 1.05fr);
  gap: 14px;
  align-items: stretch;
}

.fp-salei-panel {
  overflow: hidden;
  border-color: #dbe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15,23,42,.07);
}

.fp-salei-panel-head {
  min-height: 62px;
  border-bottom-color: #e5edf3;
  background: linear-gradient(180deg, #ffffff, #f9fbfc);
}

.fp-salei-panel-head span,
.fp-salei-card .fp-invoice-card-head > div > span {
  color: #0f766e;
}

.fp-salei-panel-head h3 {
  color: #0f172a;
  font-size: 16px;
}

.fp-salei-search-grid {
  border-bottom-color: #e5edf3;
  background: #ffffff;
}

.fp-salei-field label,
.fp-salei-payment-panel label,
.fp-salei-payment-panel .col-form-label {
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-salei-field .form-control,
.fp-salei-payment-panel .form-control {
  min-height: 38px;
  border-color: #d5e1ea;
  border-radius: 8px;
  background-color: #ffffff;
  color: #0f172a;
  font-weight: 800;
}

.fp-salei-field .form-control:focus,
.fp-salei-payment-panel .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15,118,110,.11);
}

.fp-salei-input {
  border-color: #dbe7ef;
  background: #f8fafc;
}

.fp-salei-input:focus-within {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15,118,110,.11);
}

.fp-salei-input button {
  background: #eaf2f3;
  color: #334155;
}

.fp-salei-input button:hover {
  background: #0f766e;
  color: #ffffff;
}

.fp-salei-hints {
  padding-top: 12px;
  background: #ffffff;
}

.fp-salei-hints span {
  border-color: #dbe7ef;
  background: #f8fafc;
  color: #475569;
}

.fp-salei-products,
.fp-salei-selected {
  height: min(440px, calc(100vh - 360px));
  min-height: 340px;
  background: #f6fafb;
}

.fp-salei-table-wrap table {
  border-collapse: separate;
  border-spacing: 0 6px;
}

.fp-salei-table-wrap thead th {
  border: 0 !important;
  background: #eef7f7;
  color: #315b63;
  font-size: 10px;
}

.fp-salei-table-wrap tbody td {
  border-top: 0;
  border-bottom: 0;
  background: #ffffff;
  color: #334155;
  vertical-align: middle;
}

.fp-salei-table-wrap tbody tr td:first-child {
  border-radius: 8px 0 0 8px;
}

.fp-salei-table-wrap tbody tr td:last-child {
  border-radius: 0 8px 8px 0;
}

.fp-salei-products tbody tr,
.fp-salei-selected #grilla tr {
  box-shadow: 0 6px 15px rgba(15,23,42,.045);
}

.fp-salei-products tbody tr:hover td,
.fp-salei-selected #grilla tr:hover td {
  background: #fbfefe;
}

.fp-salei-product-row.is-out td {
  background: #fff5f5;
}

.fp-salei-product-row.is-bonus td {
  background: #fbf7ff;
}

.fp-salei-product-row.is-controlled td {
  background: #f0fdf9;
}

.fp-salei-product-name strong {
  color: #0f172a;
  font-weight: 900;
}

.fp-salei-product-name:hover strong {
  color: #0f766e;
}

.fp-salei-product-name small {
  color: #64748b;
}

.fp-salei-bonus {
  display: inline-flex;
  justify-content: center;
  min-width: 28px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #7e22ce;
  font-weight: 900;
}

.fp-salei-stock {
  border-radius: 999px;
  background: #edf6f5;
  color: #0f766e;
}

.fp-salei-stock.is-lote {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-salei-stock.is-empty {
  background: #fee2e2;
  color: #991b1b;
}

.fp-salei-price {
  min-width: 58px;
  min-height: 30px;
  border-radius: 8px !important;
  font-size: 12px;
  box-shadow: 0 8px 16px rgba(15,23,42,.13);
  transition: transform .16s ease, box-shadow .16s ease;
}

.fp-salei-price:not(.is-disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15,23,42,.18);
}

.fp-salei-price.is-unit { background: #0284c7 !important; }
.fp-salei-price.is-blister { background: #4f46e5 !important; }
.fp-salei-price.is-box { background: #16a34a !important; }
.fp-salei-price.is-disabled {
  background: #e2e8f0 !important;
  color: #64748b !important;
  box-shadow: none;
}

.fp-salei-empty-cart {
  min-height: 238px;
  place-items: center;
  align-content: center;
  gap: 5px;
  margin-bottom: 10px;
  padding: 24px;
  border: 1px dashed #bdd7d6;
  border-radius: 8px;
  background: rgba(255,255,255,.74);
  color: #64748b;
  text-align: center;
}

.fp-salei-empty-cart i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 22px;
}

.fp-salei-empty-cart strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.fp-salei-empty-cart small {
  max-width: 280px;
  color: #64748b;
  font-weight: 750;
}

.fp-salei-selected #grilla tr td:first-child {
  min-width: 680px;
}

.fp-salei-selected #grilla textarea,
.fp-salei-selected #grilla input,
.fp-salei-selected #grilla .form-control,
.fp-salei-totals .campo {
  border-radius: 8px;
  font-weight: 800;
}

.fp-salei-selected #grilla .campo {
  border-color: transparent;
  background: #f8fafc;
}

.fp-salei-selected #grilla .campo:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15,118,110,.11);
}

.fp-salei-selected #grilla .elimina {
  border: 0;
  background: #ef4444;
  color: #ffffff;
}

.fp-salei-totals {
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
}

.fp-salei-totals > div {
  display: grid;
  grid-template-columns: minmax(76px, .7fr) minmax(110px, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border-color: #dbe7ef;
  background: #ffffff;
}

.fp-salei-totals > div.is-total {
  border-color: #99f6e4;
  background: #ecfdf5;
}

.fp-salei-totals small {
  margin: 0;
  color: #64748b;
  line-height: 1.15;
}

.fp-salei-totals input {
  height: 38px;
  min-height: 38px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
  text-align: right;
}

.fp-salei-totals .is-total input {
  color: #0f766e;
  font-size: 26px;
}

.fp-salei-checkout {
  grid-template-columns: minmax(0, 1fr) minmax(420px, .86fr);
  gap: 14px;
}

.fp-salei-form-grid,
.fp-salei-client,
.fp-salei-switches,
.fp-salei-cash {
  background: #ffffff;
}

.fp-salei-tax-panel,
.fp-salei-payment-panel {
  border-color: #dbe7ef;
  background: #f8fafc;
}

.fp-salei-switches .custom-control {
  border-color: #dbe7ef;
  background: #f8fafc;
}

.fp-salei-switches .custom-control-label {
  color: #334155;
  font-weight: 850;
}

.fp-salei-client {
  grid-template-columns: minmax(0, 1fr) minmax(150px, .34fr);
}

.fp-salei-points {
  border-color: #dbe7ef;
  background: #f8fafc;
}

.fp-salei-cash {
  grid-template-columns: minmax(0, 1fr) minmax(145px, .42fr) minmax(170px, auto);
  align-items: stretch;
}

.fp-salei-pay-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-salei-pay-status span,
.fp-salei-pay-status strong {
  display: block;
}

.fp-salei-pay-status span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-salei-pay-status strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
}

.fp-salei-pay-status.is-ok {
  border-color: #99f6e4;
  background: #ecfdf5;
}

.fp-salei-pay-status.is-ok strong { color: #0f766e; }
.fp-salei-pay-status.is-pending strong { color: #b45309; }
.fp-salei-pay-status.is-over strong { color: #dc2626; }

.fp-salei-submit {
  min-height: 46px;
  box-shadow: 0 14px 28px rgba(15,118,110,.24);
}

.fp-salei-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15,118,110,.28);
}

.fp-salei-modal .modal-content,
.fp-salei-modal {
  border-radius: 8px;
}

@media (max-width: 1199.98px) {
  .fp-salei-header .fp-invoice-hero {
    flex-direction: column;
  }

  .fp-salei-hero-panel {
    min-width: 0;
  }

  .fp-salei-workspace,
  .fp-salei-checkout {
    grid-template-columns: 1fr;
  }

  .fp-salei-products,
  .fp-salei-selected {
    height: 380px;
  }
}

@media (max-width: 991.98px) {
  .fp-salei-hero-panel,
  .fp-salei-live,
  .fp-salei-search-grid,
  .fp-salei-form-grid.is-doc,
  .fp-salei-form-grid.is-extra,
  .fp-salei-form-grid.is-tax,
  .fp-salei-form-grid.is-payment,
  .fp-salei-form-grid.is-cash,
  .fp-salei-client,
  .fp-salei-cash {
    grid-template-columns: 1fr;
  }

  .fp-salei-field.is-wide {
    grid-column: auto;
  }

  .fp-salei-switches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-salei-body {
    padding: 10px;
  }

  .fp-salei-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-salei-live,
  .fp-salei-totals,
  .fp-salei-switches {
    grid-template-columns: 1fr;
  }

  .fp-salei-table-wrap {
    padding: 10px;
  }

  .fp-salei-products,
  .fp-salei-selected {
    height: 330px;
  }

  .fp-salei-totals > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .fp-salei-totals input {
    text-align: left;
  }
}
/* POS professional polish 2026 */
.fp-pos-command-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) minmax(160px, auto);
  gap: 10px;
  margin-bottom: 12px;
}

.fp-pos-command-strip > div,
.fp-pos-command-strip > button,
.fp-pos-catalog-summary > div,
.fp-pos-checkout-summary > div {
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
}

.fp-pos-command-strip > div {
  padding: 11px 12px;
}

.fp-pos-command-strip span,
.fp-pos-command-strip small,
.fp-pos-command-strip strong,
.fp-pos-catalog-summary small,
.fp-pos-catalog-summary strong,
.fp-pos-checkout-summary span,
.fp-pos-checkout-summary strong {
  display: block;
  line-height: 1.12;
}

.fp-pos-command-strip span,
.fp-pos-catalog-summary small,
.fp-pos-checkout-summary span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-pos-command-strip strong,
.fp-pos-catalog-summary strong,
.fp-pos-checkout-summary strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.fp-pos-command-strip small {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.fp-pos-command-strip > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 14px;
  border-color: #0f766e;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  font-weight: 900;
}

.fp-pos-catalog .fp-pos-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.fp-pos-catalog-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  gap: 8px;
}

.fp-pos-catalog-summary > div {
  min-width: 80px;
  padding: 9px 10px;
  background: #f8fafc;
  box-shadow: none;
}

.fp-pos-catalog-summary strong {
  color: #0f766e;
  font-size: 17px;
}

.fp-pos-product-media span.fp-pos-product-title,
.fp-pos-products .overlay-text {
  min-height: 52px;
  padding: 9px 10px;
}

.fp-pos-product-title strong,
.fp-pos-product-title small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-pos-product-title strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.fp-pos-product-title small {
  margin-top: 3px;
  color: rgba(255,255,255,.74);
  font-size: 10px;
  font-weight: 750;
}

.fp-pos-product-price strong {
  letter-spacing: .01em;
}

.fp-pos-checkout-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(70px, .42fr) minmax(110px, .62fr);
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5edf3;
  background: #ffffff;
}

.fp-pos-checkout-summary > div {
  min-width: 0;
  padding: 9px 10px;
  background: #f8fafc;
  box-shadow: none;
}

.fp-pos-checkout-summary strong {
  overflow: hidden;
  max-width: 100%;
  color: #0f172a;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-pos-checkout-summary > div:last-child {
  border-color: #99f6e4;
  background: #ecfdf5;
}

.fp-pos-checkout-summary > div:last-child strong {
  color: #0f766e;
}

.fp-pos-cart #grilla tr {
  box-shadow: 0 6px 16px rgba(15, 23, 42, .045);
}

.fp-pos-cart #grilla td {
  border-top: 0;
  border-bottom: 6px solid #f6fafb;
}

.fp-pos-cart #grilla td:first-child {
  border-radius: 8px 0 0 8px;
}

.fp-pos-cart #grilla td:last-child {
  border-radius: 0 8px 8px 0;
}

.fp-pos-payment-table .campo,
.fp-pos-summary input,
.fp-pos-cart #grilla .campo,
.fp-pos-cart #grilla .form-control {
  font-variant-numeric: tabular-nums;
}

.fp-pos-submit:disabled {
  cursor: wait;
  opacity: .78;
  box-shadow: none;
}

@media (max-width: 1199.98px) {
  .fp-pos-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-pos-command-strip > button {
    grid-column: span 2;
  }

  .fp-pos-catalog .fp-pos-card-head {
    grid-template-columns: 1fr;
  }

  .fp-pos-catalog-summary,
  .fp-pos-head-tools {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .fp-pos-command-strip,
  .fp-pos-catalog-summary,
  .fp-pos-checkout-summary {
    grid-template-columns: 1fr;
  }

  .fp-pos-command-strip > button {
    grid-column: auto;
  }

  .fp-pos-catalog .fp-pos-card-head {
    gap: 10px;
  }
}
/* Venta interactiva professional polish 2026 */
.fp-salei-command-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr)) minmax(168px, auto);
  gap: 12px;
  align-items: stretch;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.fp-salei-command-metric {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(14, 165, 233, .12);
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef8fb 100%);
}

.fp-salei-command-metric span,
.fp-salei-checkout-summary span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-salei-command-metric strong {
  color: #0f172a;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.fp-salei-command-metric small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.fp-salei-command-search {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0694a2 0%, #0f766e 100%);
  color: #fff;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 84px;
  padding: 0 18px;
  box-shadow: 0 16px 30px rgba(15, 118, 110, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.fp-salei-command-search:hover,
.fp-salei-command-search:focus {
  color: #fff;
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 18px 34px rgba(15, 118, 110, .28);
}

.fp-salei-catalog .fp-salei-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto) 42px;
  gap: 12px;
  align-items: center;
}

.fp-salei-catalog-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(62px, 1fr));
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 15px;
  background: #f8fafc;
}

.fp-salei-catalog-summary > div {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 11px;
  background: #fff;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}

.fp-salei-catalog-summary small {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.fp-salei-catalog-summary strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
}

.fp-salei-product-name strong {
  color: #0f172a;
  font-weight: 900;
}

.fp-salei-product-name small {
  margin-top: 3px;
  color: #64748b;
  font-weight: 700;
}

.fp-salei-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.fp-salei-product-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.fp-salei-product-meta .is-controlled {
  background: #fff7ed;
  color: #c2410c;
}

.fp-salei-product-meta .is-lote {
  background: #ecfeff;
  color: #0e7490;
}

.fp-salei-product-meta .is-bulk {
  background: #ecfdf5;
  color: #047857;
}

.fp-salei-checkout-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(72px, .55fr) minmax(96px, .8fr);
  gap: 10px;
  margin-bottom: 14px;
}

.fp-salei-checkout-summary > div {
  min-width: 0;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.fp-salei-checkout-summary strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-salei-checkout-summary > div:nth-child(3) strong {
  color: #0f766e;
}

.fp-salei-products tbody tr {
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.fp-salei-products tbody tr:hover {
  background: #f8fbff;
  box-shadow: inset 3px 0 0 #0ea5a5;
}

.fp-salei-products .fp-salei-price {
  min-width: 74px;
  border-radius: 11px;
  font-weight: 900;
}

@media (max-width: 1199.98px) {
  .fp-salei-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-salei-command-search {
    grid-column: 1 / -1;
    min-height: 54px;
  }

  .fp-salei-catalog .fp-salei-panel-head {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .fp-salei-catalog-summary {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 767.98px) {
  .fp-salei-command-strip,
  .fp-salei-checkout-summary {
    grid-template-columns: 1fr;
  }

  .fp-salei-command-metric,
  .fp-salei-command-search {
    min-height: 68px;
  }

  .fp-salei-catalog .fp-salei-panel-head {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .fp-salei-catalog-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 6px;
  }

  .fp-salei-catalog-summary > div {
    padding: 7px 6px;
  }

  .fp-salei-products .fp-salei-price {
    min-width: 62px;
  }
}

/* Venta interactiva premium flow 2026 */
.fp-salei-page {
  background: #f4f8fa;
}

.fp-salei-card {
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .075);
}

.fp-salei-card > .fp-invoice-card-head {
  border-radius: 12px 12px 0 0;
}

.fp-salei-body {
  background: #f4f8fa;
}

.fp-salei-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #e2eaf0;
  background: #ffffff;
}

.fp-salei-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #dbe7ef;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fp-salei-flow-step span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eaf2f3;
  color: #315b63;
}

.fp-salei-flow-step small,
.fp-salei-flow-step strong {
  display: block;
  overflow: hidden;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-salei-flow-step small {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-salei-flow-step strong {
  margin-top: 3px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.fp-salei-flow-step.is-active {
  border-color: rgba(15, 118, 110, .38);
  background: #eefbf8;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .10);
}

.fp-salei-flow-step.is-active span {
  background: #0f766e;
  color: #ffffff;
}

.fp-salei-flow-step.is-done {
  border-color: rgba(20, 184, 166, .28);
  background: #f0fdfa;
}

.fp-salei-flow-step.is-done span {
  background: #ccfbf1;
  color: #0f766e;
}

.fp-salei-flow-step.is-pending {
  opacity: .78;
}

.fp-salei-command-strip {
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .055);
}

.fp-salei-command-metric,
.fp-salei-command-search,
.fp-salei-catalog-summary,
.fp-salei-checkout-summary > div,
.fp-salei-panel,
.fp-salei-table-wrap tbody tr td:first-child,
.fp-salei-table-wrap tbody tr td:last-child {
  border-radius: 10px;
}

.fp-salei-panel-head {
  gap: 12px;
}

.fp-salei-panel-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.fp-salei-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #dbe7ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-salei-panel-badge b {
  color: #0f766e;
  font-size: 14px;
}

.fp-salei-service {
  min-height: 34px;
  border-radius: 999px !important;
  font-size: 12px;
}

.fp-salei-products,
.fp-salei-selected {
  scrollbar-color: #94a3b8 #eef2f7;
  scrollbar-width: thin;
}

.fp-salei-products::-webkit-scrollbar,
.fp-salei-selected::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.fp-salei-products::-webkit-scrollbar-thumb,
.fp-salei-selected::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #94a3b8;
}

.fp-salei-products::-webkit-scrollbar-track,
.fp-salei-selected::-webkit-scrollbar-track {
  background: #eef2f7;
}

.fp-salei-payment-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, .8fr) minmax(130px, .9fr) 42px;
  gap: 10px;
  align-items: end;
  margin: 0 !important;
}

.fp-salei-payment-row > label {
  display: none;
}

.fp-salei-payment-row > div {
  width: 100%;
  max-width: none;
  flex: none;
  padding: 0;
}

.fp-salei-payment-row .fp-salei-addpay,
.fp-salei-addpay {
  width: 40px;
  height: 38px;
  border-radius: 10px;
}

.fp-salei-checkout .fp-salei-panel:last-child {
  align-self: start;
}

@media (min-width: 1200px) {
  .fp-salei-checkout .fp-salei-panel:last-child {
    position: sticky;
    top: 78px;
  }
}

@media (max-width: 991.98px) {
  .fp-salei-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-salei-payment-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fp-salei-flow,
  .fp-salei-payment-row {
    grid-template-columns: 1fr;
  }

  .fp-salei-flow-step {
    min-height: 52px;
  }

  .fp-salei-payment-row .fp-salei-addpay,
  .fp-salei-addpay {
    width: 100%;
  }

  .fp-salei-panel-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
/* Venta interactiva final refinements 2026 */
.fp-salei-table-wrap tbody tr td:first-child {
  border-radius: 10px 0 0 10px;
}

.fp-salei-table-wrap tbody tr td:last-child {
  border-radius: 0 10px 10px 0;
}

.fp-salei-payment-row .fp-salei-field {
  min-width: 0;
}

.fp-salei-payment-row .fp-salei-field.is-action {
  align-self: end;
}

.fp-salei-payment-row .fp-salei-field.is-action .fp-salei-addpay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fp-salei-payment-row .fp-salei-field.is-action label {
  visibility: hidden;
}

@media (max-width: 575.98px) {
  .fp-salei-payment-row .fp-salei-field.is-action label {
    display: none;
  }
}
/* Modal Mostrar Lotes professional 2026 */
.fp-lotes-modal {
  color: #0f172a;
}

.fp-lotes-modal .form-control {
  min-height: 38px;
  border-color: #dbe7ef;
  border-radius: 10px;
  color: #0f172a;
  font-weight: 800;
}

.fp-lotes-modal .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-lotes-message:not(:empty) {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff5f5;
  color: #991b1b;
  font-weight: 850;
}

.fp-lotes-hero {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 16px;
  background: linear-gradient(135deg, #083344 0%, #0f766e 62%, #0b5b68 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
}

.fp-lotes-hero-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(255,255,255,.14);
  color: #ffffff;
  font-size: 21px;
}

.fp-lotes-hero-copy span {
  display: block;
  color: rgba(240,253,250,.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-lotes-hero-copy h3 {
  overflow: hidden;
  margin: 2px 0 4px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-lotes-hero-copy p {
  margin: 0;
  color: rgba(240,253,250,.78);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.fp-lotes-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.fp-lotes-kpis > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe7ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .055);
}

.fp-lotes-kpis small,
.fp-lotes-kpis strong {
  display: block;
  line-height: 1.15;
}

.fp-lotes-kpis small {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-lotes-kpis strong {
  margin-top: 5px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.fp-lotes-section {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #dbe7ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.fp-lotes-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-bottom: 1px solid #e5edf3;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.fp-lotes-section-head span {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-lotes-section-head h4 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.fp-lotes-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(150px, .55fr) repeat(5, minmax(92px, .35fr));
  gap: 10px;
  padding: 14px;
}

.fp-lotes-field {
  min-width: 0;
}

.fp-lotes-field.is-wide {
  grid-column: span 1;
}

.fp-lotes-field label {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-lotes-field.is-total .form-control {
  border-color: #99f6e4;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 17px;
  font-weight: 950;
}

.fp-lotes-progress {
  min-width: 210px;
}

.fp-lotes-progress small {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.fp-lotes-progress b {
  color: #0f766e;
}

.fp-lotes-progress span {
  display: block;
  overflow: hidden;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: #e2e8f0;
}

.fp-lotes-progress span i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  transition: width .18s ease;
}

.fp-lotes-table-wrap {
  max-height: 360px;
  padding: 12px;
  overflow: auto;
  background: #f6fafb;
  scrollbar-color: #94a3b8 #eef2f7;
  scrollbar-width: thin;
}

.fp-lotes-table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 7px;
}

.fp-lotes-table thead th {
  position: sticky;
  top: -12px;
  z-index: 1;
  border: 0 !important;
  background: #eef7f7;
  color: #315b63;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-lotes-table tbody td {
  border: 0;
  background: #ffffff;
  color: #334155;
  vertical-align: middle;
  box-shadow: 0 7px 16px rgba(15, 23, 42, .045);
}

.fp-lotes-table tbody td:first-child {
  border-radius: 12px 0 0 12px;
}

.fp-lotes-table tbody td:last-child {
  border-radius: 0 12px 12px 0;
}

.fp-lotes-row {
  transition: transform .16s ease, box-shadow .16s ease;
}

.fp-lotes-row.is-selected td {
  background: #ecfdf5;
  box-shadow: inset 3px 0 0 #0f766e, 0 8px 18px rgba(15, 118, 110, .08);
}

.fp-lotes-checkline {
  display: inline-grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  margin: 0;
  cursor: pointer;
}

.fp-lotes-checkline input {
  width: 18px;
  height: 18px;
  accent-color: #0f766e;
}

.fp-lotes-checkline b,
.fp-lotes-checkline small {
  display: block;
  overflow: hidden;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-lotes-checkline b {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.fp-lotes-checkline small {
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-lotes-stock {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.fp-lotes-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-lotes-status.is-ok {
  background: #ecfdf5;
  color: #047857;
}

.fp-lotes-status.is-warning {
  background: #fff7ed;
  color: #c2410c;
}

.fp-lotes-status.is-expired {
  background: #fef2f2;
  color: #b91c1c;
}

.fp-lotes-empty td {
  padding: 24px !important;
  text-align: center;
}

.fp-lotes-empty i,
.fp-lotes-empty strong,
.fp-lotes-empty small {
  display: block;
}

.fp-lotes-empty i {
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 24px;
}

.fp-lotes-empty strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.fp-lotes-empty small {
  color: #64748b;
  font-weight: 750;
}

.fp-lotes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
  padding-top: 2px;
}

.fp-lotes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.fp-lotes-btn:hover,
.fp-lotes-btn:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.fp-lotes-btn.is-primary {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, .22);
}

.fp-lotes-btn.is-light {
  border-color: #dbe7ef;
  background: #f8fafc;
  color: #334155;
}

.fp-lotes-btn.is-danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

@media (max-width: 1199.98px) {
  .fp-lotes-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fp-lotes-field.is-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .fp-lotes-hero,
  .fp-lotes-form-grid,
  .fp-lotes-kpis {
    grid-template-columns: 1fr;
  }

  .fp-lotes-hero-icon {
    width: 46px;
    height: 46px;
  }

  .fp-lotes-hero-copy h3 {
    white-space: normal;
  }

  .fp-lotes-progress {
    width: 100%;
    min-width: 0;
  }

  .fp-lotes-actions {
    justify-content: stretch;
  }

  .fp-lotes-btn {
    width: 100%;
  }
}
/* Modal Mostrar Lotes layout refinement 2026 */
.fp-lotes-form-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.35fr) repeat(4, minmax(94px, .65fr));
}

.fp-lotes-field.is-wide {
  grid-column: span 2;
}

@media (max-width: 1199.98px) {
  .fp-lotes-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fp-lotes-field.is-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .fp-lotes-form-grid {
    grid-template-columns: 1fr;
  }

  .fp-lotes-field.is-wide {
    grid-column: auto;
  }
}
/* Modal Precios Disponibles professional 2026 */
.fp-precios-modal {
  color: #0f172a;
}

.fp-precios-hero {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-bottom: 14px;
  padding: 15px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 16px;
  background: linear-gradient(135deg, #083344 0%, #0f766e 58%, #0b5b68 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
}

.fp-precios-hero-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  font-size: 22px;
}

.fp-precios-hero-copy span {
  display: block;
  color: rgba(240, 253, 250, .78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-precios-hero-copy h3 {
  overflow: hidden;
  margin: 2px 0 4px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-precios-hero-copy p {
  margin: 0;
  color: rgba(240, 253, 250, .78);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.fp-precios-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.fp-precios-kpis > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe7ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .055);
}

.fp-precios-kpis small,
.fp-precios-kpis strong {
  display: block;
  line-height: 1.15;
}

.fp-precios-kpis small {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-precios-kpis strong {
  overflow: hidden;
  margin-top: 5px;
  color: #0f172a;
  font-size: 19px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-precios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.fp-precios-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dbe7ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.fp-precios-card.is-ready {
  border-color: rgba(15, 118, 110, .22);
}

.fp-precios-card.is-disabled {
  background: #f8fafc;
  opacity: .82;
}

.fp-precios-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.fp-precios-card-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 17px;
}

.fp-precios-card-head small,
.fp-precios-card-head h4 {
  display: block;
  overflow: hidden;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-precios-card-head small {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-precios-card-head h4 {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.fp-precios-money {
  padding: 13px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f8fffd 100%);
  border: 1px solid #99f6e4;
}

.fp-precios-money small,
.fp-precios-money strong {
  display: block;
  line-height: 1.05;
}

.fp-precios-money small {
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-precios-money strong {
  margin-top: 6px;
  color: #0f766e;
  font-size: 27px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.fp-precios-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fp-precios-meta > div {
  min-width: 0;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.fp-precios-meta small,
.fp-precios-meta strong {
  display: block;
  overflow: hidden;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-precios-meta small {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-precios-meta strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.fp-precios-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.fp-precios-status.is-ok {
  background: #ecfdf5;
  color: #047857;
}

.fp-precios-status.is-low {
  background: #fff7ed;
  color: #c2410c;
}

.fp-precios-action,
.fp-precios-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.fp-precios-action {
  margin-top: auto;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, .22);
}

.fp-precios-action:hover,
.fp-precios-action:focus,
.fp-precios-close:hover,
.fp-precios-close:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.fp-precios-action.is-disabled,
.fp-precios-action:disabled {
  cursor: not-allowed;
  background: #e2e8f0;
  color: #64748b;
  box-shadow: none;
  transform: none;
}

.fp-precios-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px dashed #bae6fd;
  border-radius: 13px;
  background: #f0f9ff;
  color: #075985;
  font-size: 12px;
  font-weight: 850;
}

.fp-precios-actions {
  display: flex;
  justify-content: flex-end;
}

.fp-precios-close {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

@media (max-width: 991.98px) {
  .fp-precios-grid,
  .fp-precios-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fp-precios-hero,
  .fp-precios-grid,
  .fp-precios-kpis,
  .fp-precios-meta {
    grid-template-columns: 1fr;
  }

  .fp-precios-hero-copy h3 {
    white-space: normal;
  }

  .fp-precios-actions,
  .fp-precios-close {
    width: 100%;
  }
}
/* Modal Datos del Producto quick professional 2026 */
.fp-product-quick-modal {
  color: #0f172a;
}

.fp-product-quick-head {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 16px;
  background: linear-gradient(135deg, #083344 0%, #0f766e 58%, #0b5b68 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
}

.fp-product-quick-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0/58px 58px,
              linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0/58px 58px;
  pointer-events: none;
}

.fp-product-quick-head > * {
  position: relative;
  z-index: 1;
}

.fp-product-quick-head-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.fp-product-quick-message:not(:empty) {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  background: #f0f9ff;
  color: #075985;
  font-size: 12px;
  font-weight: 850;
}

.fp-product-quick-section {
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
}

.fp-product-quick-section .fp-product-section-title {
  margin-bottom: .75rem;
}

.fp-product-quick-grid .form-control,
.fp-product-quick-prices .form-control,
.fp-product-quick-grid .input-group-text,
.fp-product-quick-prices .input-group-text {
  min-height: 38px;
  border-color: #dbe7ef;
  border-radius: 10px;
  color: #0f172a;
  font-weight: 800;
}

.fp-product-quick-grid .input-group .form-control,
.fp-product-quick-prices .input-group .form-control {
  border-radius: 0 10px 10px 0;
}

.fp-product-quick-grid .input-group-prepend .input-group-text,
.fp-product-quick-prices .input-group-prepend .input-group-text {
  border-radius: 10px 0 0 10px;
  background: #f8fafc;
  color: #0f766e;
  font-weight: 900;
}

.fp-product-quick-grid .form-control:focus,
.fp-product-quick-prices .form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fp-product-quick-lote-switch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #dbe7ef;
  border-radius: 12px;
  background: #f8fafc;
}

.fp-product-quick-lote-switch .custom-control-label {
  color: #0f172a;
  font-weight: 900;
}

.fp-product-quick-lote-switch small {
  margin: 3px 0 0 2rem;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.fp-product-quick-lote-card {
  padding: 13px;
  border: 1px dashed #99f6e4;
  border-radius: 14px;
  background: #ecfdf5;
}

.fp-product-quick-lote-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.fp-product-quick-lote-title > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #ccfbf1;
  color: #0f766e;
}

.fp-product-quick-lote-title strong,
.fp-product-quick-lote-title small {
  display: block;
  line-height: 1.18;
}

.fp-product-quick-lote-title strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.fp-product-quick-lote-title small {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.fp-product-quick-prices .fp-price-panel {
  border-radius: 13px;
  background: #f8fafc;
}

.fp-product-quick-prices .fp-price-panel h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
}

.fp-product-quick-prices .fp-price-panel h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #14b8a6;
}

.fp-product-quick-actions {
  bottom: -.75rem;
  padding: 12px 0 0;
}

.fp-product-quick-actions .btn-primary {
  border-color: #0f766e;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 12px 24px rgba(15, 118, 110, .22);
}

.fp-product-quick-actions .btn-outline-secondary {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

@media (max-width: 991.98px) {
  .fp-product-quick-head {
    flex-direction: column;
    align-items: stretch;
  }

  .fp-product-quick-head-badge {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .fp-product-quick-head h3 {
    font-size: 1.05rem;
  }

  .fp-product-quick-lote-switch small {
    margin-left: 0;
  }
}
/* Modal Datos del Producto descripcion refinement 2026 */
.fp-product-quick-description {
  grid-column: 1 / -1;
}

.fp-product-quick-description .form-control {
  min-height: 48px;
  padding: 10px 14px;
  border-color: #b7d9d5;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.fp-product-quick-description .form-control::placeholder {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 750;
  text-transform: none;
}

.fp-product-quick-description small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.fp-product-quick-description .form-control:focus {
  border-color: #0f766e;
  background: #fbfefe;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
}
/* Venta interna: selector de presentaciones por teclado 2026 */
#tblproducto tr.is-key-active > td {
  position: relative;
  background: #ecfdf5 !important;
  box-shadow: inset 4px 0 0 #0f766e;
  transition: background .18s ease, box-shadow .18s ease;
}

#tblproducto tr.is-key-active .fp-salei-product-name strong {
  color: #0f766e;
}

#tblproducto tr.is-key-active .fp-salei-stock,
#tblproducto tr.is-key-active .fp-salei-bonus {
  transform: translateY(-1px);
}

.fp-salei-presentation-modal {
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.fp-salei-presentation-modal .modal-header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(15, 118, 110, .12);
  background: linear-gradient(135deg, #063b66 0%, #0f766e 100%);
  color: #ffffff;
}

.fp-salei-presentation-modal .close {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  opacity: 1;
  text-shadow: none;
}

.fp-salei-presentation-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #dffcf7;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fp-salei-presentation-title h5 {
  margin: 0;
  color: #ffffff;
  font-size: 1.16rem;
  font-weight: 950;
}

.fp-salei-presentation-title p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 700;
}

.fp-salei-presentation-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(110px, .55fr) minmax(110px, .55fr);
  gap: 12px;
  margin-bottom: 14px;
}

.fp-salei-presentation-summary > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #dbe7ef;
  border-radius: 14px;
  background: #f8fafc;
}

.fp-salei-presentation-summary small,
.fp-salei-presentation-summary strong {
  display: block;
  line-height: 1.15;
}

.fp-salei-presentation-summary small {
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-salei-presentation-summary strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-salei-presentation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fp-salei-presentation-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 86px;
  padding: 14px;
  border: 1px solid #cfe1ea;
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.fp-salei-presentation-option:hover,
.fp-salei-presentation-option:focus {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 18px 38px rgba(15, 118, 110, .14);
  outline: 0;
  transform: translateY(-2px);
}

.fp-salei-presentation-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 17px;
}

.fp-salei-presentation-option.is-blister .fp-salei-presentation-icon {
  background: #ede9fe;
  color: #6d28d9;
}

.fp-salei-presentation-option.is-box .fp-salei-presentation-icon {
  background: #dcfce7;
  color: #15803d;
}

.fp-salei-presentation-info {
  min-width: 0;
}

.fp-salei-presentation-info small,
.fp-salei-presentation-info strong {
  display: block;
  line-height: 1.12;
}

.fp-salei-presentation-info small {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-salei-presentation-info strong {
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 950;
}

.fp-salei-presentation-factor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef6f8;
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
}

.fp-salei-presentation-option.is-disabled {
  cursor: not-allowed;
  opacity: .48;
  filter: grayscale(.18);
}

.fp-salei-presentation-option.is-disabled:hover,
.fp-salei-presentation-option.is-disabled:focus {
  border-color: #cfe1ea;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
  transform: none;
}

@media (max-width: 767.98px) {
  .fp-salei-presentation-summary,
  .fp-salei-presentation-grid {
    grid-template-columns: 1fr;
  }

  .fp-salei-presentation-option {
    min-height: 74px;
  }
}

/* POS: selector de presentaciones por teclado 2026 */
.fp-pos-product-card.is-key-active {
  outline: 3px solid rgba(99, 102, 241, .55);
  outline-offset: 3px;
  box-shadow: 0 18px 42px rgba(99, 102, 241, .22), 0 0 0 1px rgba(99, 102, 241, .24);
  transform: translateY(-3px);
}

.fp-pos-product-card.is-key-active .fp-pos-product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(99, 102, 241, .08), rgba(14, 165, 233, .06));
  pointer-events: none;
}

.fp-pos-empty-result {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  color: #64748b;
  text-align: center;
}

.fp-pos-empty-result i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: #eef2ff;
  color: #6366f1;
  font-size: 18px;
}

.fp-pos-empty-result strong,
.fp-pos-empty-result small {
  display: block;
}

.fp-pos-empty-result strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.fp-pos-empty-result small {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 750;
}

#posPresentationModal .modal-dialog {
  max-width: 624px;
}

.fp-pos-presentation-modal {
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}

.fp-pos-presentation-modal .modal-header {
  align-items: center;
  min-height: 76px;
  padding: 18px 20px;
  border: 0;
  background: #1677f2;
  color: #ffffff;
}

.fp-pos-presentation-modal .modal-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-pos-presentation-modal .close {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 13px;
  color: rgba(255, 255, 255, .86);
  opacity: 1;
  text-shadow: none;
}

.fp-pos-presentation-modal .close:hover {
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
}

.fp-pos-presentation-modal .modal-body {
  padding: 20px;
  background: #ffffff;
}

.fp-pos-presentation-product {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 21px;
  padding: 13px 16px;
  border: 1px solid #7dd3fc;
  border-radius: 6px;
  background: #cff5ff;
  color: #075985;
}

.fp-pos-presentation-product > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: #0369a1;
}

.fp-pos-presentation-product strong,
.fp-pos-presentation-product small {
  display: block;
}

.fp-pos-presentation-product strong {
  color: #075267;
  font-size: 1.32rem;
  font-weight: 950;
  line-height: 1.18;
  text-transform: uppercase;
}

.fp-pos-presentation-product small {
  margin-top: 8px;
  color: #075985;
  font-size: 1.02rem;
  font-weight: 750;
}

.fp-pos-presentation-question {
  margin: 0 0 18px;
  color: #5b6470;
  font-size: 1.2rem;
  font-weight: 750;
}

.fp-pos-presentation-options {
  display: grid;
  gap: 10px;
}

.fp-pos-presentation-option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 88px;
  padding: 14px 20px;
  border: 1px solid #8792a0;
  border-radius: 9px;
  background: #ffffff;
  color: #5b6470;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.fp-pos-presentation-option:hover,
.fp-pos-presentation-option:focus {
  border-color: #00c4e8;
  box-shadow: 0 14px 34px rgba(14, 165, 233, .14);
  outline: 0;
  transform: translateY(-1px);
}

.fp-pos-presentation-option-icon {
  display: grid;
  place-items: center;
  color: #6b7280;
  font-size: 22px;
}

.fp-pos-presentation-option-copy strong,
.fp-pos-presentation-option-copy small {
  display: block;
}

.fp-pos-presentation-option-copy strong {
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 1.45rem;
  font-weight: 950;
}

.fp-pos-presentation-option-copy small {
  color: #5f6670;
  font-size: 1.12rem;
  font-weight: 700;
}

.fp-pos-presentation-option > b {
  min-width: 98px;
  padding: 6px 12px;
  border-radius: 7px;
  background: #6b7280;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 950;
  text-align: center;
}

.fp-pos-presentation-option.is-blister {
  border-color: #02c7f2;
}

.fp-pos-presentation-option.is-blister .fp-pos-presentation-option-icon,
.fp-pos-presentation-option.is-blister .fp-pos-presentation-option-copy strong {
  color: #06b6d4;
}

.fp-pos-presentation-option.is-blister > b {
  background: #22c7e8;
  color: #00111a;
}

.fp-pos-presentation-option.is-box {
  border-color: #f5b400;
}

.fp-pos-presentation-option.is-box .fp-pos-presentation-option-icon,
.fp-pos-presentation-option.is-box .fp-pos-presentation-option-copy strong {
  color: #f5b400;
}

.fp-pos-presentation-option.is-box > b {
  background: #f7b500;
  color: #0f172a;
}

.fp-pos-presentation-option.is-disabled {
  cursor: not-allowed;
  opacity: .46;
  filter: grayscale(.25);
}

.fp-pos-presentation-option.is-disabled:hover,
.fp-pos-presentation-option.is-disabled:focus {
  border-color: #8792a0;
  box-shadow: none;
  transform: none;
}

.fp-pos-presentation-special {
  grid-template-columns: minmax(0, 1fr) 106px 108px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 12px 10px;
  border: 1px solid #22c55e;
  border-radius: 8px;
  background: #ecfdf3;
}

.fp-pos-presentation-special strong,
.fp-pos-presentation-special small {
  display: block;
}

.fp-pos-presentation-special strong {
  color: #15803d;
  font-size: 1.02rem;
  font-weight: 950;
}

.fp-pos-presentation-special small {
  margin-top: 14px;
  color: #5f6670;
  font-size: .92rem;
  font-weight: 700;
}

.fp-pos-presentation-special input {
  min-height: 38px;
  border-color: #d6dde8;
  border-radius: 6px;
  color: #1f2937;
  font-size: 1.02rem;
  font-weight: 850;
  text-align: center;
}

.fp-pos-presentation-special button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: #168345;
  color: #ffffff;
  font-weight: 950;
}

@media (max-width: 575.98px) {
  #posPresentationModal .modal-dialog {
    max-width: calc(100% - 16px);
    margin: .5rem auto;
  }

  .fp-pos-presentation-modal .modal-title {
    font-size: 1.22rem;
  }

  .fp-pos-presentation-product strong {
    font-size: 1.05rem;
  }

  .fp-pos-presentation-option {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .fp-pos-presentation-option > b {
    grid-column: 2;
    justify-self: start;
  }

  .fp-pos-presentation-special {
    grid-template-columns: 1fr;
  }
}

/* Ventai: modal de presentaciones estilo POS 2026 */
#salePresentationModal .modal-dialog {
  max-width: 624px;
}

.fp-venta-presentation-modal {
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}

.fp-venta-presentation-modal .modal-header {
  align-items: center;
  min-height: 76px;
  padding: 18px 20px;
  border: 0;
  background: #1677f2;
  color: #ffffff;
}

.fp-venta-presentation-modal .modal-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-venta-presentation-modal .close {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 13px;
  color: rgba(255, 255, 255, .86);
  opacity: 1;
  text-shadow: none;
}

.fp-venta-presentation-modal .close:hover {
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
}

.fp-venta-presentation-modal .modal-body {
  padding: 20px;
  background: #ffffff;
}

.fp-venta-presentation-product {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 21px;
  padding: 13px 16px;
  border: 1px solid #7dd3fc;
  border-radius: 6px;
  background: #cff5ff;
  color: #075985;
}

.fp-venta-presentation-product > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: #0369a1;
}

.fp-venta-presentation-product strong,
.fp-venta-presentation-product small {
  display: block;
}

.fp-venta-presentation-product strong {
  color: #075267;
  font-size: 1.32rem;
  font-weight: 950;
  line-height: 1.18;
  text-transform: uppercase;
}

.fp-venta-presentation-product small {
  margin-top: 8px;
  color: #075985;
  font-size: 1.02rem;
  font-weight: 750;
}

.fp-venta-presentation-question {
  margin: 0 0 18px;
  color: #5b6470;
  font-size: 1.2rem;
  font-weight: 750;
}

.fp-venta-presentation-options {
  display: grid;
  gap: 10px;
}

.fp-venta-presentation-option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 88px;
  padding: 14px 20px;
  border: 1px solid #8792a0;
  border-radius: 9px;
  background: #ffffff;
  color: #5b6470;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.fp-venta-presentation-option:hover,
.fp-venta-presentation-option:focus {
  border-color: #00c4e8;
  box-shadow: 0 14px 34px rgba(14, 165, 233, .14);
  outline: 0;
  transform: translateY(-1px);
}

.fp-venta-presentation-option-icon {
  display: grid;
  place-items: center;
  color: #6b7280;
  font-size: 22px;
}

.fp-venta-presentation-option-copy strong,
.fp-venta-presentation-option-copy small {
  display: block;
}

.fp-venta-presentation-option-copy strong {
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 1.45rem;
  font-weight: 950;
}

.fp-venta-presentation-option-copy small {
  color: #5f6670;
  font-size: 1.12rem;
  font-weight: 700;
}

.fp-venta-presentation-option > b {
  min-width: 98px;
  padding: 6px 12px;
  border-radius: 7px;
  background: #6b7280;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 950;
  text-align: center;
}

.fp-venta-presentation-option.is-blister {
  border-color: #02c7f2;
}

.fp-venta-presentation-option.is-blister .fp-venta-presentation-option-icon,
.fp-venta-presentation-option.is-blister .fp-venta-presentation-option-copy strong {
  color: #06b6d4;
}

.fp-venta-presentation-option.is-blister > b {
  background: #22c7e8;
  color: #00111a;
}

.fp-venta-presentation-option.is-box {
  border-color: #f5b400;
}

.fp-venta-presentation-option.is-box .fp-venta-presentation-option-icon,
.fp-venta-presentation-option.is-box .fp-venta-presentation-option-copy strong {
  color: #f5b400;
}

.fp-venta-presentation-option.is-box > b {
  background: #f7b500;
  color: #0f172a;
}

.fp-venta-presentation-option.is-disabled {
  cursor: not-allowed;
  opacity: .46;
  filter: grayscale(.25);
}

.fp-venta-presentation-option.is-disabled:hover,
.fp-venta-presentation-option.is-disabled:focus {
  border-color: #8792a0;
  box-shadow: none;
  transform: none;
}

.fp-venta-presentation-special {
  grid-template-columns: minmax(0, 1fr) 106px 108px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 12px 10px;
  border: 1px solid #22c55e;
  border-radius: 8px;
  background: #ecfdf3;
}

.fp-venta-presentation-special strong,
.fp-venta-presentation-special small {
  display: block;
}

.fp-venta-presentation-special strong {
  color: #15803d;
  font-size: 1.02rem;
  font-weight: 950;
}

.fp-venta-presentation-special small {
  margin-top: 14px;
  color: #5f6670;
  font-size: .92rem;
  font-weight: 700;
}

.fp-venta-presentation-special input {
  min-height: 38px;
  border-color: #d6dde8;
  border-radius: 6px;
  color: #1f2937;
  font-size: 1.02rem;
  font-weight: 850;
  text-align: center;
}

.fp-venta-presentation-special button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: #168345;
  color: #ffffff;
  font-weight: 950;
}

@media (max-width: 575.98px) {
  #salePresentationModal .modal-dialog {
    max-width: calc(100% - 16px);
    margin: .5rem auto;
  }

  .fp-venta-presentation-modal .modal-title {
    font-size: 1.22rem;
  }

  .fp-venta-presentation-product strong {
    font-size: 1.05rem;
  }

  .fp-venta-presentation-option {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .fp-venta-presentation-option > b {
    grid-column: 2;
    justify-self: start;
  }

  .fp-venta-presentation-special {
    grid-template-columns: 1fr;
  }
}

/* Ventai: detalle de venta compacto 2026 */
.fp-salei-cart .fp-salei-panel-head {
  padding-bottom: 10px;
}

.fp-salei-selected {
  padding: 6px 8px;
}

.fp-salei-selected table {
  border-collapse: separate;
  border-spacing: 0 6px;
  margin-bottom: 0;
}

.fp-salei-detail-head {
  grid-template-columns: 2.45fr .42fr .48fr .62fr .72fr .72fr .82fr;
  gap: 6px;
  font-size: 10px;
}

.fp-salei-selected #grilla tr {
  box-shadow: 0 4px 12px rgba(15, 23, 42, .045);
}

.fp-salei-selected #grilla td {
  padding: 6px 7px;
}

.fp-salei-selected #grilla tr td:first-child {
  min-width: 600px;
}

.fp-salei-selected #grilla td:last-child {
  width: 38px;
  padding-left: 4px;
  padding-right: 6px;
  text-align: center;
}

.fp-salei-selected #grilla td:first-child > .row {
  align-items: center;
  margin-right: -3px;
  margin-left: -3px;
}

.fp-salei-selected #grilla td:first-child > .row > [class*="col-"] {
  padding-right: 3px;
  padding-left: 3px;
}

.fp-salei-selected #grilla textarea,
.fp-salei-selected #grilla input,
.fp-salei-selected #grilla .form-control,
.fp-salei-selected #grilla .campo {
  min-height: 26px;
  height: 26px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.fp-salei-selected #grilla textarea,
.fp-salei-selected #grilla textarea.campo,
.fp-salei-selected #grilla textarea.form-control {
  min-height: 34px;
  height: 34px;
  max-height: 40px;
  margin-bottom: 4px;
  padding: 4px 7px;
  overflow: hidden;
  resize: none;
}

.fp-salei-selected #grilla .form-check {
  display: flex;
  align-items: center;
  min-height: 26px;
  margin: 0;
  padding-left: 1.05rem;
}

.fp-salei-selected #grilla .form-check-input {
  width: 12px;
  height: 12px;
  min-height: 12px;
  margin-top: 0;
  margin-left: -1.05rem;
  padding: 0;
}

.fp-salei-selected #grilla .form-check-label {
  max-width: 86px;
  color: #475569;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
}

.fp-salei-selected #grilla .porcentajen {
  padding-right: 4px;
  padding-left: 4px;
}

.fp-salei-selected #grilla .elimina,
.fp-salei-selected #grilla a[onclick*="mostrarReceta"] {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 7px;
  font-size: 11px;
}

.fp-salei-selected #grilla a[onclick*="mostrarReceta"] {
  margin-bottom: 4px !important;
}

@media (max-width: 1199.98px) {
  .fp-salei-selected #grilla tr td:first-child {
    min-width: 540px;
  }

  .fp-salei-detail-head {
    grid-template-columns: 2.15fr .4fr .46fr .6fr .7fr .7fr .78fr;
  }
}

/* Buscador de producto con accion lateral 2026 */
.fp-salei-product-search-line,
.fp-pos-search-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.fp-salei-product-search-line .fp-salei-input,
.fp-pos-search-line .fp-salei-input {
  min-width: 0;
}

.fp-salei-search-button,
.fp-pos-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 148px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(15, 118, 110, .18);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.fp-pos-search-button {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  box-shadow: 0 12px 24px rgba(99, 102, 241, .2);
}

.fp-salei-search-button:hover,
.fp-pos-search-button:hover,
.fp-salei-search-button:focus,
.fp-pos-search-button:focus {
  color: #ffffff;
  outline: 0;
  filter: saturate(1.05);
  transform: translateY(-1px);
}

.fp-salei-search-button i,
.fp-pos-search-button i {
  font-size: 13px;
}

@media (max-width: 575.98px) {
  .fp-salei-product-search-line,
  .fp-pos-search-line {
    grid-template-columns: 1fr;
  }

  .fp-salei-search-button,
  .fp-pos-search-button {
    width: 100%;
    min-height: 38px;
  }
}

/* Ventai: catalogo de productos compacto 2026 */
.fp-salei-products {
  padding: 6px 8px;
}

.fp-salei-products table {
  border-collapse: separate;
  border-spacing: 0 5px;
  margin-bottom: 0;
}

.fp-salei-products thead th {
  padding: 5px 7px;
  font-size: 10px;
  line-height: 1.15;
}

.fp-salei-products tbody tr {
  box-shadow: 0 4px 10px rgba(15, 23, 42, .04);
}

.fp-salei-products tbody td {
  padding: 5px 7px;
  font-size: 11px;
  line-height: 1.18;
}

.fp-salei-products tbody tr td:first-child {
  min-width: 255px;
}

.fp-salei-products .fp-salei-product-name {
  gap: 2px;
}

.fp-salei-products .fp-salei-product-name strong {
  display: -webkit-box;
  overflow: hidden;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fp-salei-products .fp-salei-product-name small {
  margin-top: 2px;
  color: #64748b;
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1.1;
}

.fp-salei-products .fp-salei-product-meta {
  gap: 3px;
  margin-top: 4px;
}

.fp-salei-products .fp-salei-product-meta span {
  padding: 2px 5px;
  font-size: 8.5px;
  line-height: 1;
}

.fp-salei-products .fp-salei-bonus {
  min-width: 24px;
  padding: 2px 5px;
  font-size: 10px;
}

.fp-salei-products .fp-salei-stock {
  min-width: 34px;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 10.5px;
  line-height: 1;
}

.fp-salei-products .fp-salei-price {
  min-width: 46px;
  min-height: 24px;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  font-size: 10.5px;
  line-height: 1;
  box-shadow: 0 5px 10px rgba(15, 118, 110, .12);
}

.fp-salei-products .badge-precio {
  padding: 1px 4px;
  border-radius: 5px;
  font-size: 8px;
  line-height: 1.05;
}

#tblproducto tr.is-key-active > td {
  box-shadow: inset 3px 0 0 #0f766e;
}

@media (max-width: 1199.98px) {
  .fp-salei-products tbody tr td:first-child {
    min-width: 220px;
  }

  .fp-salei-products tbody td {
    padding: 4px 6px;
  }

  .fp-salei-products .fp-salei-product-name strong {
    font-size: 11px;
  }
}

/* Cotizacioni: vista moderna 2026 */
.fp-quotei-header .fp-invoice-hero {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  gap: 16px;
  border: 1px solid rgba(20, 184, 166, .18);
  background: linear-gradient(135deg, #0f766e 0%, #0b4f68 52%, #102a43 100%);
  box-shadow: 0 20px 45px rgba(15, 23, 42, .16);
}

.fp-quotei-header .fp-invoice-hero::after {
  position: absolute;
  right: 22px;
  bottom: -42px;
  width: 190px;
  height: 190px;
  border: 30px solid rgba(255, 255, 255, .07);
  border-radius: 999px;
  content: "";
}

.fp-quotei-header .fp-invoice-hero-main,
.fp-quotei-header .fp-quote-hero-panel,
.fp-quotei-header .fp-quote-hero-actions {
  position: relative;
  z-index: 1;
}

.fp-quotei-header .fp-invoice-hero-main span,
.fp-quotei-page .fp-quote-card .fp-invoice-card-head > div > span {
  background: rgba(20, 184, 166, .14);
  color: #ccfbf1;
}

.fp-quotei-header .fp-invoice-hero-main h1,
.fp-quotei-header .fp-invoice-hero-main p {
  color: #ffffff;
}

.fp-quotei-header .fp-invoice-action.is-light {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .11);
  color: #ffffff;
}

.fp-quotei-header .fp-invoice-action.is-primary,
.fp-quotei-page .fp-quote-submit {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, .24);
}

.fp-quotei-header .fp-quote-hero-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 10px;
  min-width: 470px;
}

.fp-quotei-header .fp-quote-hero-panel div,
.fp-quotei-page .fp-quote-card-metrics > div,
.fp-quotei-page .fp-quote-total-card,
.fp-quotei-page .fp-quote-credit-box {
  border: 1px solid rgba(219, 231, 239, .92);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .065);
}

.fp-quotei-header .fp-quote-hero-panel div {
  padding: 12px;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: none;
}

.fp-quotei-header .fp-quote-hero-panel small,
.fp-quotei-header .fp-quote-hero-panel strong,
.fp-quotei-page .fp-quote-card-metrics small,
.fp-quotei-page .fp-quote-card-metrics strong,
.fp-quotei-page .fp-quote-total-card small,
.fp-quotei-page .fp-quote-total-card strong {
  display: block;
}

.fp-quotei-header .fp-quote-hero-panel small {
  color: rgba(255, 255, 255, .74);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-quotei-header .fp-quote-hero-panel strong {
  margin-top: 5px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
}

.fp-quotei-header .fp-quote-hero-panel .is-total strong {
  color: #5eead4;
}

.fp-quotei-page {
  background: #f5f8fb;
}

.fp-quotei-page .fp-quote-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.fp-quotei-page .fp-quote-form {
  margin-bottom: 0;
}

.fp-quotei-page .fp-quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(440px, .94fr);
  gap: 14px;
}

.fp-quotei-page .fp-quote-card {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .075);
}

.fp-quotei-page .fp-quote-card > .fp-invoice-card-head {
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid #e2edf3;
}

.fp-quotei-page .fp-quote-card .fp-invoice-card-head h2 {
  color: #0f172a;
  font-size: 18px;
}

.fp-quotei-page .fp-quote-card .fp-invoice-card-head p {
  color: #64748b;
}

.fp-quotei-page .fp-quote-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(78px, 1fr));
  gap: 8px;
  min-width: 180px;
}

.fp-quotei-page .fp-quote-card-metrics > div {
  padding: 9px 10px;
  background: #f8fafc;
}

.fp-quotei-page .fp-quote-card-metrics small,
.fp-quotei-page .fp-quote-total-card small {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-quotei-page .fp-quote-card-metrics strong,
.fp-quotei-page .fp-quote-total-card strong {
  margin-top: 3px;
  color: #0f766e;
  font-size: 17px;
  font-weight: 950;
}

.fp-quotei-page .fp-quote-search-grid {
  display: grid;
  grid-template-columns: minmax(170px, .34fr) minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px 4px;
}

.fp-quotei-page .fp-quote-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px 10px;
}

.fp-quotei-page .fp-quote-hints span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #e2edf3;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.fp-quotei-page .fp-quote-table-wrap {
  margin: 0 14px 14px;
  padding: 8px;
  border: 1px solid #e2edf3;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-quotei-page .fp-quote-products,
.fp-quotei-page .fp-quote-selected {
  height: 406px;
  overflow: auto;
}

.fp-quotei-page .fp-quote-selected {
  position: relative;
}

.fp-quotei-page .fp-quote-table-wrap table {
  border-collapse: separate;
  border-spacing: 0 6px;
}

.fp-quotei-page .fp-quote-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  border: 0;
  background: #eef7f6;
  color: #0f766e;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fp-quotei-page .fp-quote-table-wrap tbody td {
  border-top: 0;
  border-bottom: 0;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  vertical-align: middle;
}

.fp-quotei-page .fp-quote-table-wrap tbody tr {
  box-shadow: 0 5px 14px rgba(15, 23, 42, .045);
}

.fp-quotei-page .fp-quote-table-wrap tbody tr:hover td {
  background: #fbfefe;
}

.fp-quotei-page .fp-quote-product-row.is-out td,
.fp-quotei-page .fp-quote-products tbody tr[style*="red"] td {
  background: #fff5f5;
}

.fp-quotei-page .fp-quote-code,
.fp-quotei-page .fp-quote-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 7px;
  background: #edf6f5;
  color: #0f766e;
  font-size: 10.5px;
  font-weight: 950;
}

.fp-quotei-page .fp-quote-stock.is-empty {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-quotei-page .fp-quote-product-name,
.fp-quotei-page .fp-quote-products tbody td:nth-child(2) > a:not(.btn) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #0f172a;
  font-weight: 900;
}

.fp-quotei-page .fp-quote-product-name strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fp-quotei-page .fp-quote-product-name small {
  color: #64748b;
  font-size: 9.5px;
  font-weight: 800;
}

.fp-quotei-page .fp-quote-product-name:hover,
.fp-quotei-page .fp-quote-products tbody td:nth-child(2) > a:not(.btn):hover {
  color: #0f766e;
}

.fp-quotei-page .fp-quote-price,
.fp-quotei-page .fp-quote-products tbody .btn {
  position: relative;
  min-width: 48px;
  min-height: 25px;
  padding: 3px 7px !important;
  border: 0;
  border-radius: 6px !important;
  color: #ffffff !important;
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(15, 118, 110, .12);
}

.fp-quotei-page .fp-quote-price.is-unit,
.fp-quotei-page .fp-quote-products tbody .btn-info { background: #0284c7 !important; }
.fp-quotei-page .fp-quote-price.is-blister,
.fp-quotei-page .fp-quote-products tbody .btn-primary { background: #4f46e5 !important; }
.fp-quotei-page .fp-quote-price.is-box,
.fp-quotei-page .fp-quote-products tbody .btn-success { background: #16a34a !important; }

.fp-quotei-page .fp-quote-products .badge-precio {
  padding: 1px 4px;
  border-radius: 5px;
  font-size: 8px;
  line-height: 1;
}

.fp-quotei-page .fp-quote-total-card {
  min-width: 165px;
  padding: 10px 12px;
  background: #ecfdf5;
  border-color: #99f6e4;
}

.fp-quotei-page .fp-quote-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) .42fr .48fr .56fr .62fr;
  gap: 6px;
  align-items: center;
}

.fp-quotei-page .fp-quote-empty {
  position: absolute;
  inset: 58px 8px 8px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: rgba(248, 250, 252, .94);
  color: #64748b;
  text-align: center;
}

.fp-quotei-page .fp-quote-empty i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 18px;
}

.fp-quotei-page .fp-quote-empty strong,
.fp-quotei-page .fp-quote-empty small {
  display: block;
}

.fp-quotei-page .fp-quote-empty strong {
  color: #0f172a;
  font-weight: 950;
}

.fp-quotei-page .fp-quote-empty small {
  margin-top: 4px;
  font-weight: 750;
}

.fp-quotei-page .fp-quote-selected #grilla td {
  padding: 7px;
}

.fp-quotei-page .fp-quote-selected #grilla td:first-child {
  min-width: 520px;
}

.fp-quotei-page .fp-quote-selected #grilla textarea,
.fp-quotei-page .fp-quote-selected #grilla input,
.fp-quotei-page .fp-quote-selected #grilla .campo,
.fp-quotei-page .fp-quote-selected #grilla .form-control {
  min-height: 28px;
  padding: 3px 7px;
  border: 1px solid #dbe7ef;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.fp-quotei-page .fp-quote-selected #grilla textarea,
.fp-quotei-page .fp-quote-selected #grilla textarea.campo {
  min-height: 42px;
  margin-bottom: 5px;
  resize: none;
}

.fp-quotei-page .fp-quote-delete,
.fp-quotei-page .fp-quote-selected #grilla .elimina,
.fp-quotei-page .fp-quote-selected #grilla .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 12px;
}

.fp-quotei-page .fp-quote-delete:hover,
.fp-quotei-page .fp-quote-selected #grilla .elimina:hover,
.fp-quotei-page .fp-quote-selected #grilla .btn-danger:hover {
  background: #dc2626;
  color: #ffffff;
}

.fp-quotei-page .fp-quote-total-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .28fr);
  gap: 10px;
  align-items: center;
  margin: 0 14px 14px;
  padding: 10px;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background: #ecfdf5;
}

.fp-quotei-page .fp-quote-total-row span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-quotei-page .fp-quote-total-row input {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.fp-quotei-page .fp-quote-conditions {
  margin-top: 14px;
}

.fp-quotei-page .fp-quote-condition-grid {
  display: grid;
  grid-template-columns: minmax(140px, .35fr) minmax(140px, .35fr) minmax(0, 1fr) minmax(190px, .42fr) minmax(190px, auto);
  gap: 12px;
  align-items: end;
  padding: 14px;
}

.fp-quotei-page .fp-quote-condition-grid .fp-salei-field.is-client {
  grid-column: span 2;
}

.fp-quotei-page .fp-quote-credit-box {
  align-self: stretch;
  padding: 10px 12px;
  background: #f8fafc;
}

.fp-quotei-page .fp-quote-credit-box .custom-control-label {
  color: #0f172a;
  font-weight: 900;
}

.fp-quotei-page .fp-quote-credit-box small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.25;
}

.fp-quotei-page .fp-quote-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: stretch;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform .16s ease, box-shadow .16s ease;
}

.fp-quotei-page .fp-quote-submit:hover,
.fp-quotei-page .fp-quote-submit:focus {
  color: #ffffff;
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 118, 110, .28);
}

.fp-quotei-page .fp-quote-modal {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.fp-quotei-page .fp-quote-modal .modal-header {
  border: 0;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
}

.fp-quotei-page .fp-quote-modal .modal-title {
  color: #ffffff;
  font-weight: 950;
}

.fp-quotei-page .fp-quote-modal .close {
  color: #ffffff;
  opacity: .9;
  text-shadow: none;
}

@media (max-width: 1199.98px) {
  .fp-quotei-header .fp-invoice-hero {
    flex-direction: column;
  }

  .fp-quotei-header .fp-quote-hero-panel {
    min-width: 0;
  }

  .fp-quotei-page .fp-quote-layout {
    grid-template-columns: 1fr;
  }

  .fp-quotei-page .fp-quote-condition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-quotei-page .fp-quote-condition-grid .fp-salei-field.is-client {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .fp-quotei-header .fp-quote-hero-panel,
  .fp-quotei-page .fp-quote-card-metrics,
  .fp-quotei-page .fp-quote-search-grid,
  .fp-quotei-page .fp-quote-condition-grid,
  .fp-quotei-page .fp-quote-total-row {
    grid-template-columns: 1fr;
  }

  .fp-quotei-page .fp-quote-products,
  .fp-quotei-page .fp-quote-selected {
    height: 340px;
  }

  .fp-quotei-page .fp-quote-card > .fp-invoice-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-quotei-page .fp-quote-condition-grid .fp-salei-field.is-client {
    grid-column: auto;
  }

  .fp-quotei-page .fp-quote-selected #grilla td:first-child {
    min-width: 430px;
  }

  .fp-quotei-page .fp-quote-total-row input {
    text-align: left;
  }
}

/* Ventai: rediseño limpio profesional 2026 */
.fp-salei-v2-header {
  padding-top: 10px;
}

.fp-salei-v2-header .fp-invoice-hero {
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10, 44, 82, 0.96), rgba(13, 72, 102, 0.92)),
    radial-gradient(circle at 88% 14%, rgba(20, 184, 166, 0.24), transparent 34%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
}

.fp-salei-v2-header .fp-salei-hero-main h1 {
  color: #ffffff;
  font-weight: 800;
}

.fp-salei-v2-header .fp-salei-hero-main p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.fp-salei-v2-header .fp-salei-hero-chips b,
.fp-salei-v2-header .fp-salei-hero-panel,
.fp-salei-v2-header .fp-invoice-action.is-light {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.fp-salei-v2-header .fp-invoice-action.is-primary {
  background: #14b8a6;
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.3);
}

.fp-salei-v2-page {
  background: #f4f7fb;
}

.fp-salei-v2-page .fp-salei-card {
  overflow: visible;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.fp-salei-v2-page .fp-invoice-card-head {
  align-items: center;
  gap: 14px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.fp-salei-v2-page .fp-invoice-card-head > div:first-child span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-salei-v2-page .fp-invoice-card-head h2 {
  margin: 4px 0 3px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
}

.fp-salei-v2-page .fp-invoice-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.fp-salei-v2-page .fp-salei-live {
  min-width: 360px;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
}

.fp-salei-v2-page .fp-salei-live > div {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.fp-salei-v2-page .fp-salei-flow {
  padding: 14px 18px 8px;
  background: #ffffff;
}

.fp-salei-v2-page .fp-salei-flow-step {
  min-height: 56px;
  border-radius: 8px;
}

.fp-salei-v2-command {
  margin: 0 18px 12px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 8px;
  background: #f0fdfa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.fp-salei-v2-command .fp-salei-command-metric {
  border-color: rgba(20, 184, 166, 0.18);
  background: #ffffff;
}

.fp-salei-v2-command .fp-salei-command-metric span {
  color: #0f766e;
}

.fp-salei-v2-command .fp-salei-command-metric strong {
  color: #0f172a;
  font-size: 13px;
}

.fp-salei-v2-command .fp-salei-command-metric small {
  color: #64748b;
}

.fp-salei-v2-command .fp-salei-command-search {
  border-radius: 8px;
  background: #14b8a6;
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.25);
}

.fp-salei-v2-page .fp-salei-body {
  padding: 4px 18px 18px;
}

.fp-salei-v2-page .fp-salei-workspace {
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  gap: 14px;
  align-items: stretch;
}

.fp-salei-v2-page .fp-salei-panel {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.fp-salei-v2-page .fp-salei-panel-head {
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: #ffffff;
}

.fp-salei-v2-page .fp-salei-panel-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f766e;
}

.fp-salei-v2-page .fp-salei-panel-head h3 {
  color: #0f172a;
  font-size: 17px;
}

.fp-salei-v2-page .fp-salei-catalog-summary > div,
.fp-salei-v2-page .fp-salei-panel-badge,
.fp-salei-v2-page .fp-salei-checkout-summary > div {
  border-color: rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: #f8fafc;
}

.fp-salei-v2-page .fp-salei-search-grid,
.fp-salei-v2-page .fp-salei-form-grid {
  gap: 10px;
}

.fp-salei-v2-page .fp-salei-field label {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.fp-salei-v2-page .fp-salei-field .form-control,
.fp-salei-v2-page .fp-salei-field select,
.fp-salei-v2-page .fp-salei-input,
.fp-salei-v2-page .input-group .form-control,
.fp-salei-v2-page .input-group-text {
  border-color: #dbe4ef;
  border-radius: 8px;
  box-shadow: none;
}

.fp-salei-v2-page .fp-salei-field .form-control:focus,
.fp-salei-v2-page .fp-salei-input:focus-within {
  border-color: rgba(20, 184, 166, 0.7);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.fp-salei-v2-page .fp-salei-products,
.fp-salei-v2-page .fp-salei-selected {
  min-height: 315px;
  height: min(48vh, 440px);
  border-radius: 8px;
}

.fp-salei-v2-page .fp-salei-products table thead th,
.fp-salei-v2-page .fp-salei-selected table thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
}

.fp-salei-v2-page .fp-salei-products tbody td {
  border-top: 1px solid #eef2f7;
  background: #ffffff;
}

.fp-salei-v2-page .fp-salei-product-name strong {
  color: #0f172a;
}

.fp-salei-v2-page .fp-salei-price {
  border-radius: 8px;
}

.fp-salei-v2-page .fp-salei-cart .fp-salei-panel-head {
  background: #ffffff;
}

.fp-salei-v2-page .fp-salei-selected {
  background: #f8fafc;
}

.fp-salei-v2-page .fp-salei-empty-cart {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
}

.fp-salei-v2-page .fp-salei-totals {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.fp-salei-v2-page .fp-salei-totals > div {
  border-radius: 8px;
}

.fp-salei-v2-page .fp-salei-totals input {
  min-width: 116px;
  font-size: 20px;
}

.fp-salei-v2-page .fp-salei-checkout {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 14px;
  margin-top: 14px;
}

.fp-salei-v2-page .fp-salei-switches {
  gap: 8px;
  padding-top: 10px;
}

.fp-salei-v2-page .custom-switch {
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-salei-v2-page .fp-salei-checkout-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fp-salei-v2-page .fp-salei-client,
.fp-salei-v2-page .fp-salei-payment-panel,
.fp-salei-v2-page .fp-salei-tax-panel,
.fp-salei-v2-page .fp-salei-credit {
  border-color: rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: #f8fafc;
}

.fp-salei-v2-page .fp-salei-submit {
  min-height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.fp-salei-v2-page .fp-salei-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 1199.98px) {
  .fp-salei-v2-page .fp-salei-workspace,
  .fp-salei-v2-page .fp-salei-checkout {
    grid-template-columns: 1fr;
  }

  .fp-salei-v2-page .fp-salei-live {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .fp-salei-v2-header .fp-invoice-hero,
  .fp-salei-v2-page .fp-salei-card {
    border-radius: 8px;
  }

  .fp-salei-v2-page .fp-invoice-card-head {
    padding: 14px;
  }

  .fp-salei-v2-page .fp-invoice-card-head h2 {
    font-size: 21px;
  }

  .fp-salei-v2-page .fp-salei-flow,
  .fp-salei-v2-page .fp-salei-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fp-salei-v2-command {
    margin-left: 12px;
    margin-right: 12px;
  }

  .fp-salei-v2-page .fp-salei-products,
  .fp-salei-v2-page .fp-salei-selected {
    height: auto;
    max-height: 420px;
  }

  .fp-salei-v2-page .fp-salei-checkout-summary {
    grid-template-columns: 1fr;
  }
}

/* Cliente: directorio moderno profesional 2026 */
.fp-client-header {
  padding-top: 10px;
}

.fp-client-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .34fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(20, 184, 166, .2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10, 44, 82, .96), rgba(13, 72, 102, .92)),
    radial-gradient(circle at 86% 16%, rgba(20, 184, 166, .22), transparent 34%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .13);
}

.fp-client-hero-main span,
.fp-client-toolbar > div:first-child span,
.fp-client-form-hero span,
.fp-client-form-card-head span,
.fp-client-modal .modal-header span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #14b8a6;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-client-hero-main h1 {
  margin: 4px 0;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
}

.fp-client-hero-main p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.fp-client-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  gap: 8px;
}

.fp-client-hero-metrics > div {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
}

.fp-client-hero-metrics small {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-client-hero-metrics strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 950;
}

.fp-client-action-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #14b8a6;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(20, 184, 166, .28);
}

.fp-client-action-main:hover,
.fp-client-action-main:focus {
  color: #ffffff;
  outline: 0;
  transform: translateY(-1px);
}

.fp-client-page {
  background: #f4f7fb;
}

.fp-client-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.fp-client-shell {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
}

.fp-client-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .46fr);
  gap: 16px;
  align-items: end;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.fp-client-toolbar h2 {
  margin: 4px 0 3px;
  color: #0f172a;
  font-size: 23px;
  font-weight: 900;
}

.fp-client-toolbar p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.fp-client-search label,
.fp-client-field label {
  margin-bottom: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-client-search-line,
.fp-client-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 9px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
}

.fp-client-search-line:focus-within,
.fp-client-input:focus-within {
  border-color: rgba(20, 184, 166, .7);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.fp-client-search-line > i,
.fp-client-input > i {
  color: #14b8a6;
  font-size: 13px;
}

.fp-client-search-line input,
.fp-client-input input {
  min-width: 0;
  height: 37px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

.fp-client-search-line button,
.fp-client-form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  min-width: 31px;
  height: 31px;
  border: 0;
  border-radius: 7px;
  background: #e0f2fe;
  color: #0284c7;
}

.fp-client-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 18px;
}

.fp-client-summary > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-client-summary i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #0f766e;
}

.fp-client-summary span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-client-summary strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.fp-client-table-wrap {
  height: 510px;
  margin: 0 18px 18px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-client-table {
  border-collapse: separate;
  border-spacing: 0 6px;
  margin: 0;
}

.fp-client-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  border: 0;
  background: #eef7f6;
  color: #0f766e;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fp-client-table tbody td {
  border-top: 0;
  border-bottom: 0;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 750;
  vertical-align: middle;
}

.fp-client-table tbody tr td:first-child {
  border-radius: 8px 0 0 8px;
}

.fp-client-table tbody tr td:last-child {
  border-radius: 0 8px 8px 0;
}

.fp-client-table tbody tr {
  box-shadow: 0 6px 16px rgba(15, 23, 42, .045);
}

.fp-client-table tbody tr:hover td {
  background: #fbfefe;
}

.fp-client-code,
.fp-client-doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 7px;
  background: #edf6f5;
  color: #0f766e;
  font-size: 10.5px;
  font-weight: 950;
}

.fp-client-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 230px;
}

.fp-client-name > span {
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-client-name strong,
.fp-client-name small {
  display: block;
}

.fp-client-name strong {
  display: -webkit-box;
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fp-client-name small,
.fp-client-muted {
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 800;
}

.fp-client-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fp-client-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
}

.fp-client-action.is-edit {
  background: #fef3c7;
  color: #b45309;
}

.fp-client-action.is-points {
  background: #e0f2fe;
  color: #0284c7;
}

.fp-client-action.is-delete {
  background: #fee2e2;
  color: #dc2626;
}

.fp-client-action:hover,
.fp-client-action:focus {
  color: #ffffff;
  outline: 0;
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-client-action.is-edit:hover { background: #d97706; }
.fp-client-action.is-points:hover { background: #0284c7; }
.fp-client-action.is-delete:hover { background: #dc2626; }

.fp-client-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 24px;
  color: #64748b;
  text-align: center;
}

.fp-client-empty i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0284c7;
}

.fp-client-empty strong {
  color: #0f172a;
  font-weight: 950;
}

.fp-client-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.fp-client-modal .modal-header {
  align-items: center;
  border: 0;
  background: linear-gradient(135deg, #0a2c52, #0f766e);
  color: #ffffff;
}

.fp-client-modal .modal-header h4 {
  margin: 3px 0 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.fp-client-modal .modal-header .close {
  color: #ffffff;
  opacity: .9;
  text-shadow: none;
}

.fp-client-modal .modal-body {
  padding: 0;
  background: #f4f7fb;
}

.fp-client-form {
  margin: 0;
}

.fp-client-form-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-client-form-hero h3 {
  margin: 4px 0 3px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

.fp-client-form-hero p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.fp-client-form-status {
  padding: 10px 12px;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background: #ecfdf5;
}

.fp-client-form-status small,
.fp-client-form-status strong {
  display: block;
}

.fp-client-form-status small {
  color: #0f766e;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-client-form-status strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.fp-client-form-grid {
  display: grid;
  grid-template-columns: minmax(280px, .42fr) minmax(0, .58fr);
  gap: 12px;
  padding: 14px 18px 4px;
}

.fp-client-form-card {
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
}

.fp-client-form-card.is-location,
.fp-client-form-card.is-contact {
  grid-column: span 2;
}

.fp-client-form-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}

.fp-client-form-card-head small {
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 800;
}

.fp-client-form-row.is-document,
.fp-client-location-grid,
.fp-client-contact-grid {
  display: grid;
  gap: 10px;
}

.fp-client-form-row.is-document {
  grid-template-columns: minmax(110px, .34fr) minmax(0, .66fr);
}

.fp-client-location-grid,
.fp-client-contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-client-contact-grid {
  grid-template-columns: minmax(190px, .35fr) minmax(0, .65fr);
}

.fp-client-field {
  margin-bottom: 10px;
}

.fp-client-field:last-child {
  margin-bottom: 0;
}

.fp-client-field .form-control {
  min-height: 38px;
  border-color: #dbe4ef;
  border-radius: 8px;
  box-shadow: none;
}

.fp-client-field .form-control:focus {
  border-color: rgba(20, 184, 166, .7);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.fp-client-input .form-control {
  min-height: 37px;
}

.fp-client-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px 18px;
}

.fp-client-form-save,
.fp-client-form-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-client-form-save {
  border: 0;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .2);
}

.fp-client-form-cancel {
  border: 1px solid #fecaca;
  background: #ffffff;
  color: #dc2626;
}

@media (max-width: 1199.98px) {
  .fp-client-hero,
  .fp-client-toolbar,
  .fp-client-form-grid {
    grid-template-columns: 1fr;
  }

  .fp-client-form-card.is-location,
  .fp-client-form-card.is-contact {
    grid-column: auto;
  }
}

@media (max-width: 767.98px) {
  .fp-client-hero,
  .fp-client-shell,
  .fp-client-modal .modal-content {
    border-radius: 8px;
  }

  .fp-client-hero {
    padding: 14px;
  }

  .fp-client-hero-metrics,
  .fp-client-summary,
  .fp-client-form-row.is-document,
  .fp-client-location-grid,
  .fp-client-contact-grid,
  .fp-client-form-hero {
    grid-template-columns: 1fr;
  }

  .fp-client-toolbar,
  .fp-client-summary,
  .fp-client-form-grid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fp-client-table-wrap {
    height: auto;
    max-height: 520px;
    margin-left: 12px;
    margin-right: 12px;
  }

  .fp-client-name {
    min-width: 210px;
  }

  .fp-client-form-footer {
    flex-direction: column-reverse;
  }

  .fp-client-form-save,
  .fp-client-form-cancel {
    width: 100%;
  }
}

/* Despacho: modulo logistico moderno 2026 */
.fp-dispatch-header,
.fp-dispatch-form-header {
  padding-top: 10px;
}

.fp-dispatch-hero,
.fp-dispatch-form-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .34fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(20, 184, 166, .2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10, 44, 82, .96), rgba(13, 72, 102, .92)),
    radial-gradient(circle at 86% 16%, rgba(20, 184, 166, .22), transparent 34%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .13);
}

.fp-dispatch-hero-main span,
.fp-dispatch-form-main span,
.fp-dispatch-toolbar > div:first-child span,
.fp-dispatch-consult-head span,
.fp-dispatch-modal .modal-header span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #14b8a6;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-dispatch-hero-main h1,
.fp-dispatch-form-main h1 {
  margin: 4px 0;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
}

.fp-dispatch-hero-main p,
.fp-dispatch-form-main p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.fp-dispatch-hero-metrics,
.fp-dispatch-form-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 8px;
}

.fp-dispatch-form-metrics {
  grid-template-columns: repeat(2, minmax(92px, 1fr));
}

.fp-dispatch-hero-metrics > div,
.fp-dispatch-form-metrics > div {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
}

.fp-dispatch-hero-metrics small,
.fp-dispatch-form-metrics small {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-dispatch-hero-metrics strong,
.fp-dispatch-form-metrics strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 950;
}

.fp-dispatch-action-main,
.fp-dispatch-form-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #14b8a6;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(20, 184, 166, .28);
}

.fp-dispatch-form-back {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: none;
}

.fp-dispatch-action-main:hover,
.fp-dispatch-action-main:focus,
.fp-dispatch-form-back:hover,
.fp-dispatch-form-back:focus {
  color: #ffffff;
  outline: 0;
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-dispatch-page,
.fp-dispatch-form-page {
  background: #f4f7fb;
}

.fp-dispatch-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.fp-dispatch-shell,
.fp-dispatch-form-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
}

.fp-dispatch-form-card {
  border-top: 0 !important;
}

.fp-dispatch-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, .52fr);
  gap: 16px;
  align-items: end;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.fp-dispatch-toolbar h2 {
  margin: 4px 0 3px;
  color: #0f172a;
  font-size: 23px;
  font-weight: 900;
}

.fp-dispatch-toolbar p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.fp-dispatch-filter {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0;
}

.fp-dispatch-field label,
.fp-dispatch-form-page label {
  margin-bottom: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-dispatch-field .form-control,
.fp-dispatch-form-page .form-control,
.fp-dispatch-form-page select,
.fp-dispatch-modal .form-control,
.fp-dispatch-modal select {
  min-height: 38px;
  border-color: #dbe4ef;
  border-radius: 8px;
  box-shadow: none;
}

.fp-dispatch-field .form-control:focus,
.fp-dispatch-form-page .form-control:focus,
.fp-dispatch-modal .form-control:focus {
  border-color: rgba(20, 184, 166, .7);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.fp-dispatch-filter-button,
.fp-dispatch-save,
.fp-dispatch-add-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .18);
}

.fp-dispatch-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 18px;
}

.fp-dispatch-summary > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-dispatch-summary i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #0f766e;
}

.fp-dispatch-summary span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-dispatch-summary strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.fp-dispatch-table-wrap {
  margin: 0 18px 18px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-dispatch-table {
  border-collapse: separate;
  border-spacing: 0 6px;
  margin: 0;
}

.fp-dispatch-table thead th,
.fp-dispatch-products-table thead th,
.fp-dispatch-consult-table thead th,
.fp-dispatch-modal table thead th {
  border: 0;
  background: #eef7f6;
  color: #0f766e;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fp-dispatch-table tbody td,
.fp-dispatch-products-table tbody td,
.fp-dispatch-consult-table tbody td,
.fp-dispatch-modal table tbody td {
  border-top: 0;
  border-bottom: 0;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 750;
  vertical-align: middle;
}

.fp-dispatch-table tbody tr,
.fp-dispatch-products-table tbody tr,
.fp-dispatch-consult-table tbody tr,
.fp-dispatch-modal table tbody tr {
  box-shadow: 0 6px 16px rgba(15, 23, 42, .045);
}

.fp-dispatch-table tbody tr:hover td,
.fp-dispatch-products-table tbody tr:hover td,
.fp-dispatch-consult-table tbody tr:hover td,
.fp-dispatch-modal table tbody tr:hover td {
  background: #fbfefe;
}

.fp-dispatch-code,
.fp-dispatch-number,
.fp-dispatch-downloads a,
.fp-dispatch-downloads .fp-dispatch-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 950;
}

.fp-dispatch-code,
.fp-dispatch-number {
  background: #edf6f5;
  color: #0f766e;
}

.fp-dispatch-date strong,
.fp-dispatch-date small {
  display: block;
}

.fp-dispatch-date strong {
  color: #0f172a;
  font-size: 11px;
  font-weight: 950;
}

.fp-dispatch-date small {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
}

.fp-dispatch-client {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 230px;
}

.fp-dispatch-client > span {
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-dispatch-client strong {
  display: -webkit-box;
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fp-dispatch-status {
  min-width: 82px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.fp-dispatch-downloads,
.fp-dispatch-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.fp-dispatch-downloads a:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-dispatch-downloads .is-xml { background: #dcfce7; color: #15803d; }
.fp-dispatch-downloads .is-pdf { background: #dbeafe; color: #2563eb; }
.fp-dispatch-downloads .is-cdr { background: #e0f2fe; color: #0284c7; }
.fp-dispatch-downloads .fp-dispatch-muted { background: #f1f5f9; color: #94a3b8; }

.fp-dispatch-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
}

.fp-dispatch-action.is-view {
  background: #e0f2fe;
  color: #0284c7;
}

.fp-dispatch-action.is-send {
  background: #ede9fe;
  color: #6d28d9;
}

.fp-dispatch-action:hover,
.fp-dispatch-action:focus {
  color: #ffffff;
  outline: 0;
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-dispatch-action.is-view:hover { background: #0284c7; }
.fp-dispatch-action.is-send:hover { background: #6d28d9; }

.fp-dispatch-form-body {
  background: #ffffff;
}

.fp-dispatch-form-page .alert {
  border: 0;
  border-radius: 8px;
}

.fp-dispatch-guide-form .row {
  row-gap: 4px;
}

.fp-dispatch-form-page fieldset {
  margin-bottom: 12px !important;
  padding: 12px 14px !important;
  border: 1px solid #dbe4ef !important;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-dispatch-form-page fieldset legend {
  width: auto;
  margin-bottom: 8px;
  padding: 4px 9px !important;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-dispatch-form-page fieldset h6 {
  margin: 4px 0 10px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.fp-dispatch-form-page .custom-switch {
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-dispatch-add-product {
  background: #14b8a6;
}

.fp-dispatch-products-table {
  border-collapse: separate;
  border-spacing: 0 6px;
}

.fp-dispatch-products-table input,
.fp-dispatch-products-table select,
.fp-dispatch-products-table textarea,
.fp-dispatch-products-table .form-control,
.fp-dispatch-products-table .campo {
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid #dbe4ef;
  border-radius: 7px;
  color: #334155;
  font-size: 11px;
}

.fp-dispatch-save {
  min-width: 150px;
  min-height: 42px;
}

.fp-dispatch-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.fp-dispatch-modal .modal-header {
  align-items: center;
  border: 0;
  background: linear-gradient(135deg, #0a2c52, #0f766e);
  color: #ffffff;
}

.fp-dispatch-modal .modal-header h5,
.fp-dispatch-modal .modal-title {
  margin: 3px 0 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.fp-dispatch-modal .modal-header .close {
  color: #ffffff;
  opacity: .9;
  text-shadow: none;
}

.fp-dispatch-modal .modal-body {
  background: #f4f7fb;
}

.fp-dispatch-modal .table-responsive {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-dispatch-modal .btn-success,
.fp-dispatch-modal .btn-primary {
  border: 0;
  border-radius: 7px;
  font-weight: 900;
}

.fp-dispatch-modal #tbldescripcion {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}

.fp-dispatch-consult {
  padding: 16px;
}

.fp-dispatch-consult-alert {
  border: 0;
  border-radius: 8px;
}

.fp-dispatch-consult-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .45fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-dispatch-consult-head h3 {
  margin: 4px 0 3px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
}

.fp-dispatch-consult-head p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.fp-dispatch-consult-metrics,
.fp-dispatch-consult-info {
  display: grid;
  gap: 8px;
}

.fp-dispatch-consult-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-dispatch-consult-info {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}

.fp-dispatch-consult-metrics > div,
.fp-dispatch-consult-info > div {
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-dispatch-consult-metrics small,
.fp-dispatch-consult-info small {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-dispatch-consult-metrics strong,
.fp-dispatch-consult-info strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.fp-dispatch-consult-table {
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-dispatch-consult-table td strong,
.fp-dispatch-consult-table td small {
  display: block;
}

.fp-dispatch-consult-table td small {
  margin-top: 3px;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 750;
}

.fp-dispatch-consult-table td span,
.fp-dispatch-consult-table td b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 7px;
  background: #edf6f5;
  color: #0f766e;
  font-size: 10.5px;
  font-weight: 950;
}

.fp-dispatch-consult-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.fp-dispatch-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #ffffff;
  color: #dc2626;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 1199.98px) {
  .fp-dispatch-hero,
  .fp-dispatch-form-hero,
  .fp-dispatch-toolbar,
  .fp-dispatch-consult-head {
    grid-template-columns: 1fr;
  }

  .fp-dispatch-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-dispatch-filter-button {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .fp-dispatch-hero,
  .fp-dispatch-form-hero,
  .fp-dispatch-shell,
  .fp-dispatch-form-card,
  .fp-dispatch-modal .modal-content {
    border-radius: 8px;
  }

  .fp-dispatch-hero,
  .fp-dispatch-form-hero {
    padding: 14px;
  }

  .fp-dispatch-hero-metrics,
  .fp-dispatch-form-metrics,
  .fp-dispatch-summary,
  .fp-dispatch-filter,
  .fp-dispatch-consult-metrics,
  .fp-dispatch-consult-info {
    grid-template-columns: 1fr;
  }

  .fp-dispatch-filter-button {
    grid-column: auto;
  }

  .fp-dispatch-toolbar,
  .fp-dispatch-summary {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fp-dispatch-table-wrap {
    margin-left: 12px;
    margin-right: 12px;
  }

  .fp-dispatch-client {
    min-width: 220px;
  }

  .fp-dispatch-form-page fieldset {
    padding: 10px !important;
  }
}

/* DataTables responsive controls 2026 */
.dataTables_wrapper {
  width: 100%;
  overflow-x: clip;
}

.dataTables_wrapper .row:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 10px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.dataTables_wrapper .dataTables_length select {
  width: auto;
  min-width: 74px;
  max-width: 110px;
  min-height: 34px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #0f172a;
  box-shadow: none;
}

.dataTables_wrapper .dataTables_filter {
  display: flex;
  justify-content: flex-end;
}

.dataTables_wrapper .dataTables_filter label {
  justify-content: flex-end;
}

.dataTables_wrapper .dataTables_filter input {
  flex: 1 1 260px;
  width: min(100%, 360px) !important;
  max-width: 360px;
  min-width: 0;
  min-height: 34px;
  margin-left: 0 !important;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #0f172a;
  box-shadow: none;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: rgba(20, 184, 166, .7);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

@media (max-width: 767.98px) {
  .dataTables_wrapper .row:first-child > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    justify-content: center;
    text-align: center;
  }

  .dataTables_wrapper .dataTables_length label,
  .dataTables_wrapper .dataTables_filter label {
    justify-content: center;
  }

  .dataTables_wrapper .dataTables_filter input {
    flex-basis: 100%;
    width: 100% !important;
    max-width: 420px;
  }
}

/* Solicitud compra: modulo moderno 2026 */
.fp-request-header,
.fp-request-form-header {
  padding-top: 8px;
}

.fp-request-hero,
.fp-request-form-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr) auto;
  align-items: stretch;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(14, 165, 233, .18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(2, 132, 199, .92), rgba(15, 23, 42, .96)),
    radial-gradient(circle at top right, rgba(20, 184, 166, .32), transparent 34%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.fp-request-hero-main span,
.fp-request-form-main span,
.fp-request-card-head span,
.fp-request-section-title span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #99f6e4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fp-request-hero-main h4,
.fp-request-form-main h4 {
  margin: 4px 0 3px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.fp-request-hero-main p,
.fp-request-form-main p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.45;
}

.fp-request-hero-metrics,
.fp-request-form-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fp-request-form-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fp-request-hero-metrics > div,
.fp-request-form-metrics > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .09);
}

.fp-request-hero-metrics small,
.fp-request-form-metrics small {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-request-hero-metrics strong,
.fp-request-form-metrics strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.fp-request-new,
.fp-request-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #14b8a6;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 22px rgba(20, 184, 166, .25);
}

.fp-request-back {
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.fp-request-new:hover,
.fp-request-back:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
}

.fp-request-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.fp-request-breadcrumb span,
.fp-request-breadcrumb strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fp-request-breadcrumb strong {
  color: #0f766e;
}

.fp-request-page,
.fp-request-form-page {
  padding-bottom: 18px;
  background: #f4f7fb;
}

.fp-request-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.fp-request-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fp-request-summary > div,
.fp-request-card,
.fp-request-form-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.fp-request-summary > div {
  padding: 13px;
}

.fp-request-summary span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-request-summary strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.fp-request-summary small {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 750;
}

.fp-request-card {
  overflow: hidden;
}

.fp-request-card-head,
.fp-request-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.fp-request-card-head span,
.fp-request-section-title span {
  color: #0f766e;
}

.fp-request-card-head h5,
.fp-request-section-title h5 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.fp-request-card-head small {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.fp-request-filter {
  display: grid;
  grid-template-columns: minmax(170px, .22fr) minmax(170px, .22fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 14px 16px;
  background: #f8fafc;
}

.fp-request-filter label,
.fp-request-provider-field label,
.fp-request-date-field label,
.fp-request-modal-section > label,
.fp-request-modal-fields label span {
  display: block;
  margin: 0 0 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-request-filter .form-control,
.fp-request-form-page .form-control,
.fp-request-form-page select {
  min-height: 36px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #0f172a;
  font-size: 13px;
  box-shadow: none;
}

.fp-request-filter .form-control:focus,
.fp-request-form-page .form-control:focus,
.fp-request-form-page select:focus {
  border-color: rgba(20, 184, 166, .72);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.fp-request-filter-button,
.fp-request-product-button,
.fp-request-save-button,
.fp-request-modal-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .18);
}

.fp-request-product-button,
.fp-request-save-button,
.fp-request-modal-add {
  background: #14b8a6;
  box-shadow: 0 10px 18px rgba(20, 184, 166, .18);
}

.fp-request-table-wrap {
  padding: 8px 14px 16px;
}

.fp-request-table {
  margin-bottom: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 6px !important;
}

.fp-request-table thead th,
.fp-request-products-table thead th {
  border: 0 !important;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-request-table tbody tr,
.fp-request-products-table tbody tr {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
}

.fp-request-table tbody td,
.fp-request-products-table tbody td {
  vertical-align: middle;
  border-color: #edf2f7 !important;
  color: #334155;
  font-size: 12.5px;
}

.fp-request-code strong,
.fp-request-provider strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.fp-request-code small,
.fp-request-provider small {
  display: block;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 800;
}

.fp-request-date {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border-radius: 7px;
  background: #eef6ff;
  color: #075985;
  font-size: 12px;
  font-weight: 850;
}

.fp-request-provider {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 230px;
}

.fp-request-provider > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ecfeff;
  color: #0891b2;
}

.fp-request-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-request-status.is-pending {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-request-status.is-done {
  background: #dcfce7;
  color: #15803d;
}

.fp-request-status.is-cancelled {
  background: #fee2e2;
  color: #dc2626;
}

.fp-request-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fp-request-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
}

.fp-request-action.is-convert {
  background: #eff6ff;
  color: #2563eb;
}

.fp-request-action.is-print {
  background: #ecfdf5;
  color: #059669;
}

.fp-request-action.is-cancel {
  background: #fef2f2;
  color: #dc2626;
}

.fp-request-action.is-muted {
  background: #f1f5f9;
  color: #94a3b8;
}

.fp-request-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .36fr);
  gap: 12px;
  margin-bottom: 12px;
}

.fp-request-form-card {
  padding: 14px;
}

.fp-request-provider-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .25fr);
  gap: 12px;
  align-items: end;
}

.fp-request-section-title {
  grid-column: 1 / -1;
}

.fp-request-provider-field .input-group {
  flex-wrap: nowrap;
}

.fp-request-input-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 36px;
  border: 0;
  color: #ffffff;
}

.fp-request-input-btn.is-search {
  background: #2563eb;
}

.fp-request-input-btn.is-add {
  background: #14b8a6;
  border-radius: 0 8px 8px 0;
}

.fp-request-guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fp-request-guide-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.fp-request-guide-list > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.fp-request-guide-list i {
  color: #0f766e;
}

.fp-request-products-card {
  overflow: hidden;
  padding: 0;
}

.fp-request-products-wrap {
  position: relative;
  min-height: 410px;
  padding: 12px 14px 4px;
  background: #f8fafc;
}

.fp-request-empty-state {
  position: absolute;
  inset: 72px 18px auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #64748b;
  pointer-events: none;
}

.fp-request-empty-state i {
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 30px;
}

.fp-request-empty-state strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.fp-request-empty-state span {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 750;
}

.fp-request-products-table {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

.fp-request-products-table .campo {
  width: 100%;
  min-height: 34px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 750;
  resize: vertical;
}

.fp-request-products-table textarea.campo {
  min-height: 50px;
  padding: 7px 9px;
}

.fp-request-products-table input.campo {
  padding: 4px 8px;
}

.fp-request-products-table .elimina {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
}

.fp-request-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-request-cancel-link,
.fp-request-modal-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #ffffff;
  color: #dc2626;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-request-cancel-link:hover {
  color: #dc2626;
}

.fp-request-modal {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.fp-request-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-request-modal-head.is-blue {
  border-bottom: 0;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.fp-request-modal-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-request-modal-head.is-blue span {
  color: rgba(255, 255, 255, .82);
}

.fp-request-modal-head h4,
.fp-request-modal-head h5 {
  margin: 1px 0 0;
  color: #0f172a;
  font-weight: 950;
}

.fp-request-modal-head.is-blue h4,
.fp-request-modal-head.is-blue h5 {
  color: #ffffff;
}

.fp-request-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: inherit;
  opacity: .86;
}

.fp-request-modal-head.is-blue .fp-request-modal-close {
  color: #ffffff;
}

.fp-request-modal-section {
  margin-bottom: 12px;
}

.fp-request-search-field {
  position: relative;
}

.fp-request-search-field .input-group-text {
  border: 1px solid #dbe4ef;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #f8fafc;
  color: #2563eb;
}

.fp-request-suggest-list {
  position: absolute;
  z-index: 1051;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  width: 100%;
  max-height: 300px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .18);
}

.fp-request-suggest-list dl {
  margin: 0;
}

.fp-request-suggest-list a {
  display: block;
  border-bottom: 1px solid #edf2f7;
  color: #0f172a;
}

.fp-request-suggest-list dt {
  margin: 0 !important;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 850;
}

.fp-request-suggest-list a:hover {
  background: #eef6ff;
  color: #075985;
}

.fp-request-modal-fields {
  display: grid;
  grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-request-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 1199.98px) {
  .fp-request-hero,
  .fp-request-form-hero,
  .fp-request-form-grid,
  .fp-request-provider-card {
    grid-template-columns: 1fr;
  }

  .fp-request-filter,
  .fp-request-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-request-filter-button {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .fp-request-hero,
  .fp-request-form-hero {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .fp-request-hero-metrics,
  .fp-request-form-metrics,
  .fp-request-filter,
  .fp-request-summary,
  .fp-request-modal-fields {
    grid-template-columns: 1fr;
  }

  .fp-request-filter-button {
    grid-column: auto;
  }

  .fp-request-card-head,
  .fp-request-products-head,
  .fp-request-form-actions,
  .fp-request-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-request-card-head small {
    text-align: left;
  }

  .fp-request-new,
  .fp-request-back,
  .fp-request-product-button,
  .fp-request-save-button,
  .fp-request-cancel-link,
  .fp-request-modal-add,
  .fp-request-modal-cancel {
    width: 100%;
  }

  .fp-request-products-wrap {
    min-height: 360px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .fp-request-empty-state {
    inset: 82px 12px auto;
  }

  .fp-request-provider {
    min-width: 210px;
  }
}

/* Proveedor: modal moderno profesional 2026 */
.fp-provider-modal-shell {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .26);
}

.fp-provider-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dbe4ef;
  background: linear-gradient(135deg, #0f766e, #0f172a);
}

.fp-provider-modal-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #99f6e4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-provider-modal-head h4,
.fp-provider-modal-head h5 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.fp-provider-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #ffffff;
  opacity: .9;
}

.fp-provider-modal-body {
  padding: 14px;
}

.fp-provider-form {
  color: #0f172a;
}

.fp-provider-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(239, 246, 255, .94)),
    #ffffff;
}

.fp-provider-intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-size: 17px;
  box-shadow: 0 12px 22px rgba(15, 118, 110, .2);
}

.fp-provider-intro span {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-provider-intro strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
}

.fp-provider-intro small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.fp-provider-section {
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.fp-provider-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.fp-provider-section-title span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-provider-section-title small {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.fp-provider-grid {
  display: grid;
  gap: 10px;
}

.fp-provider-grid-doc {
  grid-template-columns: minmax(110px, .18fr) minmax(190px, .28fr) minmax(0, 1fr);
}

.fp-provider-grid-location {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-provider-grid-contact {
  grid-template-columns: minmax(160px, .34fr) minmax(0, 1fr);
}

.fp-provider-grid-contact-person {
  grid-template-columns: minmax(0, 1fr) minmax(160px, .28fr) minmax(0, .42fr);
}

.fp-provider-full {
  grid-column: 1 / -1;
}

.fp-provider-form label {
  display: block;
  min-width: 0;
  margin: 0;
}

.fp-provider-form label > span {
  display: block;
  margin: 0 0 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-provider-form .form-control,
.fp-provider-form select {
  min-height: 37px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background-color: #ffffff;
  color: #0f172a;
  font-size: 13px;
  box-shadow: none;
}

.fp-provider-form .form-control:focus,
.fp-provider-form select:focus {
  border-color: rgba(20, 184, 166, .72);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.fp-provider-document-group {
  flex-wrap: nowrap;
}

.fp-provider-document-group .form-control {
  border-radius: 8px 0 0 8px;
}

.fp-provider-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 37px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .18);
}

.fp-provider-actions {
  position: sticky;
  bottom: -14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 -14px -14px;
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
}

.fp-provider-save,
.fp-provider-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-provider-save {
  border: 0;
  background: #14b8a6;
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(20, 184, 166, .2);
}

.fp-provider-cancel {
  border: 1px solid #fecaca;
  background: #ffffff;
  color: #dc2626;
}

.fp-provider-form #mensajeerror:not(:empty) {
  margin-bottom: 10px;
}

.fp-provider-page-head {
  padding-top: 10px;
}

.fp-provider-page {
  padding-bottom: 22px;
}

.fp-provider-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #0f766e 58%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
}

.fp-provider-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-provider-hero h4 {
  margin: 3px 0 4px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-provider-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 750;
}

.fp-provider-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 22px rgba(15, 23, 42, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}

.fp-provider-primary-btn:hover {
  color: #0f766e;
  transform: translateY(-1px);
}

.fp-provider-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.fp-provider-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.fp-provider-kpi {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.fp-provider-kpi span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-provider-kpi span i {
  color: #0f766e;
}

.fp-provider-kpi strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
}

.fp-provider-kpi small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.fp-provider-kpi.is-total {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

.fp-provider-kpi.is-soft {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.fp-provider-panel {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-provider-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fp-provider-panel-head span {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-provider-panel-head h5 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-provider-breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
}

.fp-provider-breadcrumb b {
  color: #0f766e;
}

.fp-provider-table-wrap {
  overflow: hidden;
  border: 1px solid #edf2f7;
  border-radius: 8px;
}

.fp-provider-table {
  margin-bottom: 0 !important;
}

.fp-provider-table thead th {
  border: 0 !important;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  vertical-align: middle !important;
}

.fp-provider-table tbody td {
  color: #334155;
  font-size: 12px;
  vertical-align: middle !important;
}

.fp-provider-row-id,
.fp-provider-doc,
.fp-provider-person {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.fp-provider-doc {
  background: #eff6ff;
  color: #1d4ed8;
}

.fp-provider-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 220px;
}

.fp-provider-name > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
}

.fp-provider-name strong,
.fp-provider-contact strong,
.fp-provider-search-name strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.fp-provider-name small,
.fp-provider-contact small {
  display: block;
  max-width: 260px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-provider-address,
.fp-provider-search-address {
  display: block;
  max-width: 360px;
  overflow: hidden;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-provider-actions-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fp-provider-action,
.fp-provider-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  transition: transform .18s ease;
}

.fp-provider-action:hover,
.fp-provider-select-btn:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-provider-action.is-edit {
  background: #f59e0b;
}

.fp-provider-action.is-delete {
  background: #ef4444;
}

.fp-provider-select-btn {
  background: #14b8a6;
  box-shadow: 0 10px 18px rgba(20, 184, 166, .18);
}

.fp-provider-search {
  display: grid;
  gap: 12px;
}

.fp-provider-search-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(239, 246, 255, .94)), #ffffff;
}

.fp-provider-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(37, 99, 235, .18);
}

.fp-provider-search-head span {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-provider-search-head strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.fp-provider-search-head small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.fp-provider-search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
}

.fp-provider-search-box i {
  color: #2563eb;
}

.fp-provider-search-box .form-control {
  min-height: 36px;
  border: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.fp-provider-search-table-wrap {
  max-height: 500px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-provider-search-table {
  margin-bottom: 0 !important;
}

.fp-provider-search-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  border: 0;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-provider-search-table td {
  color: #334155;
  font-size: 12px;
  vertical-align: middle !important;
}

.fp-provider-search-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.fp-provider-search-footer {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 991.98px) {
  .fp-provider-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-provider-grid-doc,
  .fp-provider-grid-location,
  .fp-provider-grid-contact,
  .fp-provider-grid-contact-person {
    grid-template-columns: 1fr;
  }

  .fp-provider-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-provider-section-title small {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .fp-provider-hero,
  .fp-provider-panel-head,
  .fp-provider-search-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-provider-primary-btn,
  .fp-provider-kpis,
  .fp-provider-search-footer .fp-provider-cancel {
    width: 100%;
  }

  .fp-provider-kpis {
    grid-template-columns: 1fr;
  }

  .fp-provider-modal-shell {
    border-radius: 8px;
  }

  .fp-provider-intro {
    align-items: flex-start;
  }

  .fp-provider-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .fp-provider-save,
  .fp-provider-cancel {
    width: 100%;
  }
}

/* Orden de compra: rediseño moderno profesional 2026 */
.fp-oc-header,
.fp-oc-form-header {
  padding-top: 8px;
}

.fp-oc-hero,
.fp-oc-form-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr) auto;
  align-items: stretch;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(14, 165, 233, .18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .96), rgba(15, 23, 42, .97)),
    radial-gradient(circle at top right, rgba(37, 99, 235, .28), transparent 34%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.fp-oc-hero-main span,
.fp-oc-form-main span,
.fp-oc-card-head span,
.fp-oc-section-title span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #99f6e4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-oc-hero-main h4,
.fp-oc-form-main h4 {
  margin: 4px 0 3px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.fp-oc-hero-main p,
.fp-oc-form-main p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.45;
}

.fp-oc-hero-metrics,
.fp-oc-form-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fp-oc-form-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fp-oc-hero-metrics > div,
.fp-oc-form-metrics > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .09);
}

.fp-oc-hero-metrics small,
.fp-oc-form-metrics small {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-oc-hero-metrics strong,
.fp-oc-form-metrics strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.fp-oc-new,
.fp-oc-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #14b8a6;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 22px rgba(20, 184, 166, .25);
}

.fp-oc-back {
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.fp-oc-new:hover,
.fp-oc-back:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
}

.fp-oc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.fp-oc-breadcrumb span,
.fp-oc-breadcrumb strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fp-oc-breadcrumb strong {
  color: #0f766e;
}

.fp-oc-page,
.fp-oc-form-page {
  padding-bottom: 18px;
  background: #f4f7fb;
}

.fp-oc-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.fp-oc-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fp-oc-summary > div,
.fp-oc-card,
.fp-oc-form-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.fp-oc-summary > div {
  padding: 13px;
}

.fp-oc-summary span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-oc-summary strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.05;
}

.fp-oc-summary small {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 750;
}

.fp-oc-card,
.fp-oc-products-card {
  overflow: hidden;
}

.fp-oc-card-head,
.fp-oc-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.fp-oc-card-head span,
.fp-oc-section-title span {
  color: #0f766e;
}

.fp-oc-card-head h5,
.fp-oc-section-title h5 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.fp-oc-card-head small {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.fp-oc-filter {
  display: grid;
  grid-template-columns: minmax(170px, .22fr) minmax(170px, .22fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 14px 16px;
  background: #f8fafc;
}

.fp-oc-filter label,
.fp-oc-form label,
.fp-oc-product-form label {
  display: block;
  min-width: 0;
  margin: 0;
}

.fp-oc-filter label > span,
.fp-oc-form label > span,
.fp-oc-product-form label > span,
.fp-oc-tax-switch .custom-control-label {
  display: block;
  margin: 0 0 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-oc-filter .form-control,
.fp-oc-form .form-control,
.fp-oc-form select,
.fp-oc-product-form .form-control,
.fp-oc-product-form select {
  min-height: 37px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #0f172a;
  font-size: 13px;
  box-shadow: none;
}

.fp-oc-filter .form-control:focus,
.fp-oc-form .form-control:focus,
.fp-oc-form select:focus,
.fp-oc-product-form .form-control:focus,
.fp-oc-product-form select:focus {
  border-color: rgba(20, 184, 166, .72);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.fp-oc-filter-button,
.fp-oc-add-product,
.fp-oc-save-button,
.fp-oc-product-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .18);
}

.fp-oc-add-product,
.fp-oc-save-button,
.fp-oc-product-add {
  background: #14b8a6;
  box-shadow: 0 10px 18px rgba(20, 184, 166, .18);
}

input.fp-oc-save-button {
  width: auto;
  cursor: pointer;
}

.fp-oc-table-wrap {
  padding: 8px 14px 16px;
}

.fp-oc-table,
.fp-oc-products-table {
  margin-bottom: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 6px !important;
}

.fp-oc-table thead th,
.fp-oc-products-table thead th,
.fp-oc-consult-table thead th {
  border: 0 !important;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-oc-table tbody tr,
.fp-oc-products-table tbody tr {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
}

.fp-oc-table tbody td,
.fp-oc-products-table tbody td {
  vertical-align: middle;
  border-color: #edf2f7 !important;
  color: #334155;
  font-size: 12.5px;
}

.fp-oc-date,
.fp-oc-money {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 9px;
  border-radius: 7px;
  background: #eef6ff;
  color: #075985;
  font-size: 12px;
  font-weight: 850;
}

.fp-oc-money {
  background: #ecfdf5;
  color: #047857;
}

.fp-oc-doc strong,
.fp-oc-provider strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.fp-oc-doc small,
.fp-oc-provider small {
  display: block;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 800;
}

.fp-oc-provider {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 240px;
}

.fp-oc-provider > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ecfeff;
  color: #0891b2;
}

.fp-oc-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-oc-status.is-pending {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-oc-status.is-done {
  background: #dcfce7;
  color: #15803d;
}

.fp-oc-status.is-cancelled {
  background: #fee2e2;
  color: #dc2626;
}

.fp-oc-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fp-oc-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
}

.fp-oc-action.is-view {
  background: #f0f9ff;
  color: #0284c7;
}

.fp-oc-action.is-print {
  background: #ecfdf5;
  color: #059669;
}

.fp-oc-action.is-convert {
  background: #eff6ff;
  color: #2563eb;
}

.fp-oc-action.is-cancel {
  background: #fef2f2;
  color: #dc2626;
}

.fp-oc-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .38fr);
  gap: 12px;
  margin-bottom: 12px;
}

.fp-oc-form-card {
  padding: 14px;
}

.fp-oc-section-title {
  margin-bottom: 10px;
}

.fp-oc-provider-field .input-group {
  flex-wrap: nowrap;
}

.fp-oc-input-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 37px;
  border: 0;
  color: #ffffff;
}

.fp-oc-input-btn.is-search {
  background: #2563eb;
}

.fp-oc-input-btn.is-add {
  background: #14b8a6;
  border-radius: 0 8px 8px 0;
}

.fp-oc-options-grid {
  display: grid;
  grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.fp-oc-tax-switch {
  min-height: 37px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-oc-tax-switch small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.fp-oc-products-card {
  padding: 0;
}

.fp-oc-note-field {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-oc-products-wrap {
  position: relative;
  min-height: 360px;
  padding: 12px 14px 6px;
  background: #f8fafc;
}

.fp-oc-empty-state {
  position: absolute;
  inset: 82px 18px auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #64748b;
  pointer-events: none;
}

.fp-oc-empty-state i {
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 30px;
}

.fp-oc-empty-state strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.fp-oc-empty-state span {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 750;
}

.fp-oc-products-table {
  position: relative;
  z-index: 2;
}

.fp-oc-products-table .campo {
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 750;
}

.fp-oc-products-table .input-group {
  flex-wrap: nowrap;
}

.fp-oc-products-table .badge-precio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  border-radius: 0 8px 8px 0;
  background: #ecfeff;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
}

.fp-oc-products-table .eliminac {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
}

.fp-oc-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-oc-totals input {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.fp-oc-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-oc-cancel-link,
.fp-oc-modal-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  padding: 0 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #ffffff;
  color: #dc2626;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-oc-cancel-link:hover,
.fp-oc-modal-cancel:hover {
  color: #dc2626;
}

.fp-oc-modal {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .26);
}

.fp-oc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dbe4ef;
  background: linear-gradient(135deg, #0f766e, #0f172a);
}

.fp-oc-modal-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #99f6e4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-oc-modal-head h5 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.fp-oc-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #ffffff;
  opacity: .9;
}

.fp-oc-consult-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(239, 246, 255, .95));
}

.fp-oc-consult-head span:first-child,
.fp-oc-product-intro span,
.fp-oc-stock-title span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-oc-consult-head h5 {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
}

.fp-oc-consult-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.fp-oc-consult-metrics > div,
.fp-oc-consult-note,
.fp-oc-stock-box {
  padding: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-oc-consult-metrics small,
.fp-oc-consult-note small,
.fp-oc-stock-title small {
  display: block;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-oc-consult-metrics strong,
.fp-oc-consult-note strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.fp-oc-consult-table {
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-oc-consult-table td strong,
.fp-oc-consult-table td span,
.fp-oc-consult-table td b {
  font-size: 12.5px;
}

.fp-oc-consult-table td span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 7px;
  background: #edf6f5;
  color: #0f766e;
  font-weight: 900;
}

.fp-oc-consult-footer,
.fp-oc-product-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.fp-oc-product-intro {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(239, 246, 255, .95));
}

.fp-oc-product-intro strong {
  display: block;
  margin-top: 3px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.fp-oc-product-intro small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.fp-oc-product-section,
.fp-oc-product-grid,
.fp-oc-stock-box {
  margin-bottom: 12px;
}

.fp-oc-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fp-oc-product-grid.is-amounts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-oc-product-grid.is-stock {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 10px 0 0;
}

.fp-oc-product-search {
  position: relative;
}

.fp-oc-product-search .input-group-text {
  border: 1px solid #dbe4ef;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #f8fafc;
  color: #2563eb;
}

.fp-oc-suggest-list {
  position: absolute;
  z-index: 1051;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  width: 100%;
  max-height: 300px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .18);
}

.fp-oc-suggest-list dl {
  margin: 0;
}

.fp-oc-suggest-list a {
  display: block;
  border-bottom: 1px solid #edf2f7;
  color: #0f172a;
}

.fp-oc-suggest-list dt {
  margin: 0 !important;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 850;
}

.fp-oc-suggest-list a:hover {
  background: #eef6ff;
  color: #075985;
}

.fp-oc-product-add {
  min-width: 130px;
}

.fp-oc-product-form #mensajeerror:not(:empty) {
  margin-bottom: 10px;
}

@media (max-width: 1199.98px) {
  .fp-oc-hero,
  .fp-oc-form-hero,
  .fp-oc-form-grid {
    grid-template-columns: 1fr;
  }

  .fp-oc-filter,
  .fp-oc-summary,
  .fp-oc-consult-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-oc-filter-button {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .fp-oc-hero,
  .fp-oc-form-hero {
    padding: 14px;
  }

  .fp-oc-hero-metrics,
  .fp-oc-form-metrics,
  .fp-oc-filter,
  .fp-oc-summary,
  .fp-oc-options-grid,
  .fp-oc-totals,
  .fp-oc-consult-metrics,
  .fp-oc-product-grid,
  .fp-oc-product-grid.is-amounts,
  .fp-oc-product-grid.is-stock {
    grid-template-columns: 1fr;
  }

  .fp-oc-filter-button {
    grid-column: auto;
  }

  .fp-oc-card-head,
  .fp-oc-products-head,
  .fp-oc-form-actions,
  .fp-oc-consult-head,
  .fp-oc-product-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-oc-card-head small {
    text-align: left;
  }

  .fp-oc-new,
  .fp-oc-back,
  .fp-oc-add-product,
  .fp-oc-save-button,
  .fp-oc-cancel-link,
  .fp-oc-product-add,
  .fp-oc-modal-cancel {
    width: 100%;
  }

  .fp-oc-products-wrap {
    min-height: 330px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .fp-oc-empty-state {
    inset: 86px 12px auto;
  }

  .fp-oc-provider {
    min-width: 210px;
  }
}

/* Compra mercaderia: rediseño moderno profesional 2026 */
.fp-buy-header,
.fp-buy-form-header {
  padding-top: 8px;
}

.fp-buy-hero,
.fp-buy-form-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr) auto;
  align-items: stretch;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(14, 165, 233, .18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(2, 132, 199, .95), rgba(15, 23, 42, .97)),
    radial-gradient(circle at top right, rgba(20, 184, 166, .3), transparent 34%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.fp-buy-hero-main span,
.fp-buy-form-main span,
.fp-buy-card-head span,
.fp-buy-section-title span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #99f6e4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-buy-hero-main h4,
.fp-buy-form-main h4 {
  margin: 4px 0 3px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.fp-buy-hero-main p,
.fp-buy-form-main p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.45;
}

.fp-buy-hero-metrics,
.fp-buy-form-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fp-buy-form-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fp-buy-hero-metrics > div,
.fp-buy-form-metrics > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .09);
}

.fp-buy-hero-metrics small,
.fp-buy-form-metrics small {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-buy-hero-metrics strong,
.fp-buy-form-metrics strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.fp-buy-hero-actions {
  display: grid;
  align-content: center;
  gap: 8px;
}

.fp-buy-new,
.fp-buy-import,
.fp-buy-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #14b8a6;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 22px rgba(20, 184, 166, .25);
}

.fp-buy-import,
.fp-buy-back {
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.fp-buy-new:hover,
.fp-buy-import:hover,
.fp-buy-back:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
}

.fp-buy-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.fp-buy-breadcrumb span,
.fp-buy-breadcrumb strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fp-buy-breadcrumb strong {
  color: #0f766e;
}

.fp-buy-page,
.fp-buy-form-page {
  padding-bottom: 18px;
  background: #f4f7fb;
}

.fp-buy-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.fp-buy-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fp-buy-summary > div,
.fp-buy-card,
.fp-buy-form-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.fp-buy-summary > div {
  padding: 13px;
}

.fp-buy-summary span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-buy-summary strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.05;
}

.fp-buy-summary small {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 750;
}

.fp-buy-card,
.fp-buy-products-card {
  overflow: hidden;
}

.fp-buy-card-head,
.fp-buy-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.fp-buy-card-head span,
.fp-buy-section-title span {
  color: #0f766e;
}

.fp-buy-card-head h5,
.fp-buy-section-title h5 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.fp-buy-card-head small {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.fp-buy-filter {
  display: grid;
  grid-template-columns: minmax(170px, .22fr) minmax(170px, .22fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 14px 16px;
  background: #f8fafc;
}

.fp-buy-filter label,
.fp-buy-form label,
.fp-buy-product-form label {
  display: block;
  min-width: 0;
  margin: 0;
}

.fp-buy-filter label > span,
.fp-buy-form label > span,
.fp-buy-product-form label > span,
.fp-buy-switch-panel .custom-control-label {
  display: block;
  margin: 0 0 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-buy-filter .form-control,
.fp-buy-form .form-control,
.fp-buy-form select,
.fp-buy-product-form .form-control,
.fp-buy-product-form select {
  min-height: 37px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #0f172a;
  font-size: 13px;
  box-shadow: none;
}

.fp-buy-filter .form-control:focus,
.fp-buy-form .form-control:focus,
.fp-buy-form select:focus,
.fp-buy-product-form .form-control:focus,
.fp-buy-product-form select:focus {
  border-color: rgba(20, 184, 166, .72);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.fp-buy-filter-button,
.fp-buy-add-product,
.fp-buy-new-product,
.fp-buy-save-button,
.fp-buy-product-add,
.fp-buy-calc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .18);
}

.fp-buy-add-product,
.fp-buy-save-button,
.fp-buy-product-add {
  background: #14b8a6;
  box-shadow: 0 10px 18px rgba(20, 184, 166, .18);
}

.fp-buy-new-product {
  background: #0ea5e9;
}

input.fp-buy-save-button {
  width: auto;
  cursor: pointer;
}

.fp-buy-table-wrap {
  padding: 8px 14px 16px;
}

.fp-buy-table,
.fp-buy-products-table {
  margin-bottom: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 6px !important;
}

.fp-buy-table thead th,
.fp-buy-products-table thead th,
.fp-buy-consult-table thead th {
  border: 0 !important;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-buy-table tbody tr,
.fp-buy-products-table tbody tr {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
}

.fp-buy-table tbody td,
.fp-buy-products-table tbody td {
  vertical-align: middle;
  border-color: #edf2f7 !important;
  color: #334155;
  font-size: 12.5px;
}

.fp-buy-date,
.fp-buy-money {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 9px;
  border-radius: 7px;
  background: #eef6ff;
  color: #075985;
  font-size: 12px;
  font-weight: 850;
}

.fp-buy-money {
  background: #ecfdf5;
  color: #047857;
}

.fp-buy-doc strong,
.fp-buy-provider strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.fp-buy-doc small,
.fp-buy-provider small {
  display: block;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 800;
}

.fp-buy-provider {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 240px;
}

.fp-buy-provider > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ecfeff;
  color: #0891b2;
}

.fp-buy-status,
.fp-buy-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-buy-status.is-pending {
  background: #e0f2fe;
  color: #0369a1;
}

.fp-buy-status.is-done,
.fp-buy-pay.is-paid {
  background: #dcfce7;
  color: #15803d;
}

.fp-buy-status.is-cancelled {
  background: #fee2e2;
  color: #dc2626;
}

.fp-buy-pay.is-debt {
  background: #fef3c7;
  color: #b45309;
}

.fp-buy-pay.is-muted,
.fp-buy-consult-table td span.is-muted {
  background: #f1f5f9;
  color: #64748b;
}

.fp-buy-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fp-buy-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
}

.fp-buy-action.is-view { background: #f0f9ff; color: #0284c7; }
.fp-buy-action.is-edit { background: #fff7ed; color: #ea580c; }
.fp-buy-action.is-stock { background: #f1f5f9; color: #475569; }
.fp-buy-action.is-regularize { background: #f0fdfa; color: #0f766e; }
.fp-buy-action.is-pay { background: #eff6ff; color: #2563eb; }
.fp-buy-action.is-print { background: #ecfdf5; color: #059669; }
.fp-buy-action.is-cancel { background: #fef2f2; color: #dc2626; }

.fp-buy-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .34fr);
  gap: 12px;
  margin-bottom: 12px;
}

.fp-buy-form-card {
  padding: 14px;
}

.fp-buy-doc-grid {
  display: grid;
  grid-template-columns: minmax(170px, .34fr) minmax(110px, .2fr) minmax(130px, .22fr) minmax(160px, .24fr);
  gap: 10px;
}

.fp-buy-section-title {
  margin-bottom: 10px;
}

.fp-buy-switch-panel {
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-buy-switch-panel small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.fp-buy-provider-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .3fr) auto;
  gap: 10px;
  align-items: end;
}

.fp-buy-provider-grid .input-group,
.fp-buy-products-table .input-group {
  flex-wrap: nowrap;
}

.fp-buy-input-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 37px;
  border: 0;
  color: #ffffff;
}

.fp-buy-input-btn.is-search {
  background: #2563eb;
}

.fp-buy-input-btn.is-add {
  background: #14b8a6;
  border-radius: 0 8px 8px 0;
}

.fp-buy-product-buttons {
  display: flex;
  gap: 8px;
}

.fp-buy-products-card {
  padding: 0;
}

.fp-buy-note-field {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-buy-products-wrap {
  position: relative;
  min-height: 360px;
  padding: 12px 14px 6px;
  background: #f8fafc;
}

.fp-buy-empty-state {
  position: absolute;
  inset: 82px 18px auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #64748b;
  pointer-events: none;
}

.fp-buy-empty-state i {
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 30px;
}

.fp-buy-empty-state strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.fp-buy-empty-state span {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 750;
}

.fp-buy-products-table {
  position: relative;
  z-index: 2;
}

.fp-buy-products-table .campo {
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 750;
  resize: vertical;
}

.fp-buy-products-table textarea.campo {
  min-height: 48px;
}

.fp-buy-products-table .badge-precio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  border-radius: 0 8px 8px 0;
  background: #ecfeff;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
}

.fp-buy-products-table .eliminac {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
}

.fp-buy-totals {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-buy-totals input {
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
}

.fp-buy-payment-bar {
  display: grid;
  grid-template-columns: minmax(150px, .18fr) minmax(240px, .28fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.fp-buy-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.fp-buy-cancel-link,
.fp-buy-modal-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  padding: 0 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #ffffff;
  color: #dc2626;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-buy-cancel-link:hover,
.fp-buy-modal-cancel:hover {
  color: #dc2626;
}

.fp-buy-modal {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .26);
}

.fp-buy-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dbe4ef;
  background: linear-gradient(135deg, #0284c7, #0f172a);
}

.fp-buy-modal-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #bae6fd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-buy-modal-head h5 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.fp-buy-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #ffffff;
  opacity: .9;
}

.fp-buy-consult-head,
.fp-buy-product-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(239, 246, 255, .95));
}

.fp-buy-consult-head span:first-child,
.fp-buy-product-intro span,
.fp-buy-product-xml-title span,
.fp-buy-print-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-buy-consult-head h5,
.fp-buy-print-head h5 {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
}

.fp-buy-consult-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.fp-buy-consult-metrics > div,
.fp-buy-consult-note,
.fp-buy-product-xml,
.fp-buy-stock-box,
.fp-buy-lot-box,
.fp-buy-price-box {
  padding: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-buy-consult-metrics small,
.fp-buy-consult-note small,
.fp-buy-product-xml-title small {
  display: block;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 850;
  text-transform: uppercase;
}

.fp-buy-consult-metrics strong,
.fp-buy-consult-note strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.fp-buy-consult-table {
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-buy-consult-table td strong,
.fp-buy-consult-table td span,
.fp-buy-consult-table td b,
.fp-buy-consult-table td small {
  font-size: 12.5px;
}

.fp-buy-consult-table td span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 7px;
  background: #edf6f5;
  color: #0f766e;
  font-weight: 900;
}

.fp-buy-consult-table td small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-weight: 750;
}

.fp-buy-consult-footer,
.fp-buy-product-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.fp-buy-print-head {
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(239, 246, 255, .95));
}

.fp-buy-print-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fp-buy-print-option {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.fp-buy-print-option i {
  color: #0284c7;
  font-size: 28px;
}

.fp-buy-print-option strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.fp-buy-print-option small {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.fp-buy-product-intro {
  margin-bottom: 12px;
}

.fp-buy-product-intro {
  justify-content: flex-start;
}

.fp-buy-product-intro strong {
  display: block;
  margin-top: 3px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.fp-buy-product-intro small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.fp-buy-product-xml,
.fp-buy-product-section,
.fp-buy-product-grid,
.fp-buy-stock-box,
.fp-buy-lot-box,
.fp-buy-price-box {
  margin-bottom: 12px;
}

.fp-buy-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fp-buy-product-grid.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-buy-product-grid.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.fp-buy-product-grid.is-price {
  grid-template-columns: minmax(150px, .3fr) minmax(190px, .4fr) auto;
  align-items: end;
}

.fp-buy-product-full {
  margin-top: 10px !important;
}

.fp-buy-product-help {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 10px;
}

.fp-buy-product-help span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #075985;
  font-size: 10.5px;
  font-weight: 850;
}

.fp-buy-product-search {
  position: relative;
}

.fp-buy-product-search .input-group-text,
.fp-buy-product-form .input-group-text {
  border: 1px solid #dbe4ef;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #f8fafc;
  color: #2563eb;
  font-size: 12px;
}

.fp-buy-suggest-list {
  position: absolute;
  z-index: 1051;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  width: 100%;
  max-height: 300px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .18);
}

.fp-buy-suggest-list dl {
  margin: 0;
}

.fp-buy-suggest-list a {
  display: block;
  border-bottom: 1px solid #edf2f7;
  color: #0f172a;
}

.fp-buy-suggest-list dt {
  margin: 0 !important;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 850;
}

.fp-buy-suggest-list a:hover {
  background: #eef6ff;
  color: #075985;
}

.fp-buy-product-add {
  min-width: 130px;
}

.fp-buy-product-form #mensajeerror:not(:empty) {
  margin-bottom: 10px;
}

@media (max-width: 1199.98px) {
  .fp-buy-hero,
  .fp-buy-form-hero,
  .fp-buy-form-grid,
  .fp-buy-provider-grid,
  .fp-buy-payment-bar {
    grid-template-columns: 1fr;
  }

  .fp-buy-filter,
  .fp-buy-summary,
  .fp-buy-consult-metrics,
  .fp-buy-doc-grid,
  .fp-buy-print-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-buy-filter-button {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .fp-buy-hero,
  .fp-buy-form-hero {
    padding: 14px;
  }

  .fp-buy-hero-metrics,
  .fp-buy-form-metrics,
  .fp-buy-filter,
  .fp-buy-summary,
  .fp-buy-doc-grid,
  .fp-buy-totals,
  .fp-buy-consult-metrics,
  .fp-buy-print-grid,
  .fp-buy-product-grid,
  .fp-buy-product-grid.is-three,
  .fp-buy-product-grid.is-four,
  .fp-buy-product-grid.is-price {
    grid-template-columns: 1fr;
  }

  .fp-buy-filter-button {
    grid-column: auto;
  }

  .fp-buy-card-head,
  .fp-buy-products-head,
  .fp-buy-form-actions,
  .fp-buy-consult-head,
  .fp-buy-product-actions,
  .fp-buy-product-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-buy-card-head small {
    text-align: left;
  }

  .fp-buy-new,
  .fp-buy-import,
  .fp-buy-back,
  .fp-buy-add-product,
  .fp-buy-new-product,
  .fp-buy-save-button,
  .fp-buy-cancel-link,
  .fp-buy-product-add,
  .fp-buy-modal-cancel,
  .fp-buy-calc-button {
    width: 100%;
  }

  .fp-buy-products-wrap {
    min-height: 330px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .fp-buy-empty-state {
    inset: 86px 12px auto;
  }

  .fp-buy-provider {
    min-width: 210px;
  }
}

/* Compra XML: importacion moderna 2026 */
.fp-buy-import-page {
  min-height: calc(100vh - 150px);
}

.fp-buy-import-hero .fp-buy-form-metrics strong {
  font-size: 18px;
}

.fp-buy-import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fp-buy-import-summary > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.fp-buy-import-summary > div.is-ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.fp-buy-import-summary > div.is-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.fp-buy-import-summary span,
.fp-buy-import-counter {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-buy-import-summary strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-buy-import-summary small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-buy-import-provider-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-buy-import-provider-note.is-ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.fp-buy-import-provider-note.is-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.fp-buy-import-provider-note i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  color: #0f766e;
}

.fp-buy-import-provider-note.is-warning i {
  color: #b45309;
}

.fp-buy-import-provider-note strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.fp-buy-import-provider-note small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.fp-buy-import-counter {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #075985;
}

.fp-buy-import-products {
  min-height: 420px;
}

.fp-buy-import-table td {
  vertical-align: middle !important;
}

.fp-buy-import-table .text-danger {
  border-color: #fecaca;
  background: #fff7f7;
}

.fp-buy-import-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fp-buy-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
}

.fp-buy-row-action.is-link {
  background: #2563eb;
}

.fp-buy-row-action.is-new {
  background: #14b8a6;
}

.fp-buy-upload-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(270px, .34fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .09);
}

.fp-buy-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #0284c7;
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 14px 24px rgba(2, 132, 199, .2);
}

.fp-buy-upload-copy span {
  display: inline-flex;
  align-items: center;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-buy-upload-copy h5 {
  margin: 3px 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.fp-buy-upload-copy p {
  max-width: 620px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.fp-buy-file-drop {
  position: relative;
  display: flex !important;
  min-height: 118px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 !important;
  padding: 14px;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
}

.fp-buy-file-drop:hover {
  border-color: #14b8a6;
  background: #f0fdfa;
}

.fp-buy-file-drop i {
  color: #2563eb;
  font-size: 26px;
}

.fp-buy-file-drop strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.fp-buy-file-drop small {
  max-width: 230px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-buy-file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.fp-buy-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #14b8a6;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 20px rgba(20, 184, 166, .2);
}

@media (max-width: 1199.98px) {
  .fp-buy-import-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-buy-upload-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .fp-buy-file-drop,
  .fp-buy-upload-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .fp-buy-import-summary,
  .fp-buy-upload-card {
    grid-template-columns: 1fr;
  }

  .fp-buy-upload-icon {
    width: 48px;
    height: 48px;
  }

  .fp-buy-upload-button {
    width: 100%;
  }
}

/* Gasto: rediseño moderno profesional 2026 */
.fp-exp-header-wrap {
  padding-top: 12px;
}

.fp-exp-page {
  padding-bottom: 22px;
}

.fp-exp-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #14b8a6 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
}

.fp-exp-hero h4 {
  margin: 3px 0 4px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-exp-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 750;
}

.fp-exp-eyebrow,
.fp-exp-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-exp-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fp-exp-primary-btn,
.fp-exp-secondary-btn,
.fp-exp-filter-btn,
.fp-exp-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fp-exp-primary-btn {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 12px 22px rgba(15, 23, 42, .18);
}

.fp-exp-secondary-btn {
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
}

.fp-exp-primary-btn:hover,
.fp-exp-secondary-btn:hover,
.fp-exp-filter-btn:hover,
.fp-exp-save-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-exp-primary-btn:hover {
  color: #0f766e;
}

.fp-exp-secondary-btn:hover,
.fp-exp-filter-btn:hover,
.fp-exp-save-btn:hover {
  color: #ffffff;
}

.fp-exp-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.fp-exp-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.fp-exp-kpi {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.fp-exp-kpi span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-exp-kpi span i {
  color: #2563eb;
}

.fp-exp-kpi strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.fp-exp-kpi small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.fp-exp-kpi.is-total {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.fp-exp-kpi.is-warning {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.fp-exp-kpi.is-muted {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.fp-exp-kpi.is-warning span i {
  color: #d97706;
}

.fp-exp-kpi.is-muted span i {
  color: #64748b;
}

.fp-exp-panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-exp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fp-exp-panel-head span {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-exp-panel-head h5 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-exp-breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
}

.fp-exp-breadcrumb b,
.fp-exp-breadcrumb a {
  color: #0f766e;
}

.fp-exp-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px)) auto;
  align-items: end;
  gap: 10px;
}

.fp-exp-filter label,
.fp-exp-field {
  display: block;
  margin: 0;
}

.fp-exp-filter label span,
.fp-exp-field span {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.fp-exp-filter .form-control,
.fp-exp-field .form-control,
.fp-exp-provider-picker .form-control,
.fp-exp-money-input .form-control {
  min-height: 38px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.fp-exp-filter .form-control:focus,
.fp-exp-field .form-control:focus,
.fp-exp-provider-picker .form-control:focus,
.fp-exp-money-input .form-control:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.fp-exp-filter-btn,
.fp-exp-save-btn {
  background: #14b8a6;
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(20, 184, 166, .18);
}

.fp-exp-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #eef6ff;
  color: #075985;
  font-size: 12px;
  font-weight: 850;
}

.fp-exp-count strong {
  font-size: 16px;
  font-weight: 950;
}

.fp-exp-table-wrap {
  border: 1px solid #edf2f7;
  border-radius: 8px;
}

.fp-exp-table {
  margin-bottom: 0 !important;
}

.fp-exp-table thead th {
  border: 0 !important;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  vertical-align: middle !important;
}

.fp-exp-table tbody td {
  color: #334155;
  font-size: 12px;
  vertical-align: middle !important;
}

.fp-exp-date,
.fp-exp-money {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 900;
}

.fp-exp-money.is-pending {
  background: #fffbeb;
  color: #b45309;
}

.fp-exp-doc strong,
.fp-exp-provider strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.fp-exp-doc small,
.fp-exp-provider small {
  display: block;
  max-width: 420px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-exp-status,
.fp-exp-detail-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 950;
}

.fp-exp-status.is-paid,
.fp-exp-detail-state.is-paid {
  background: #dcfce7;
  color: #15803d;
}

.fp-exp-status.is-open,
.fp-exp-detail-state.is-open {
  background: #fffbeb;
  color: #b45309;
}

.fp-exp-status.is-cancelled,
.fp-exp-detail-state.is-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.fp-exp-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fp-exp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
}

.fp-exp-action:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-exp-action.is-view {
  background: #0284c7;
}

.fp-exp-action.is-edit {
  background: #f59e0b;
}

.fp-exp-action.is-pay {
  background: #14b8a6;
}

.fp-exp-action.is-cancel {
  background: #ef4444;
}

.fp-exp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fp-exp-provider-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.fp-exp-provider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef6ff;
  color: #2563eb;
}

.fp-exp-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
}

.fp-exp-inline-btn.is-search {
  background: #2563eb;
}

.fp-exp-inline-btn.is-new {
  background: #14b8a6;
}

.fp-exp-total-panel {
  position: sticky;
  top: 82px;
}

.fp-exp-money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
}

.fp-exp-money-input b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  border-right: 1px solid #e2e8f0;
  color: #0f766e;
  font-size: 13px;
  font-weight: 950;
}

.fp-exp-money-input .form-control {
  border: 0 !important;
  background: transparent;
}

.fp-exp-tax-card,
.fp-exp-payment-summary,
.fp-exp-detail-totals {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.fp-exp-tax-card div,
.fp-exp-payment-summary div,
.fp-exp-detail-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-exp-tax-card span,
.fp-exp-payment-summary span,
.fp-exp-detail-totals span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.fp-exp-tax-card strong,
.fp-exp-payment-summary strong,
.fp-exp-detail-totals strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.fp-exp-tax-card .is-total,
.fp-exp-detail-totals .is-total {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.fp-exp-payment-summary .is-pending {
  border-color: #fde68a;
  background: #fffbeb;
}

.fp-exp-payment-summary .is-pending strong {
  color: #b45309;
}

.fp-exp-payment-summary .is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.fp-exp-payment-summary .is-ok strong {
  color: #15803d;
}

.fp-exp-payment-note,
.fp-exp-payment-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-exp-payment-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.fp-exp-payment-note i {
  color: #64748b;
  margin-top: 2px;
}

.fp-exp-payment-note strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.fp-exp-payment-note small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.fp-exp-save-btn {
  width: 100%;
  margin-top: 14px;
}

.fp-exp-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.fp-exp-modal .modal-header {
  align-items: center;
  padding: 15px 18px;
  border-bottom: 0;
  background: #0f172a;
  color: #ffffff;
}

.fp-exp-modal .modal-title {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.fp-exp-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12) !important;
  color: #ffffff !important;
  opacity: 1;
}

.fp-exp-modal .modal-body {
  padding: 18px;
  background: #f8fafc;
}

.fp-exp-modal-detail {
  display: grid;
  gap: 12px;
}

.fp-exp-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff 0%, #ccfbf1 100%);
  border: 1px solid #bae6fd;
}

.fp-exp-detail-hero.is-payments {
  background: linear-gradient(135deg, #eef6ff 0%, #ecfdf5 100%);
}

.fp-exp-detail-hero span {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-exp-detail-hero h5 {
  margin: 4px 0 2px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.fp-exp-detail-hero p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
}

.fp-exp-detail-hero > strong {
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  white-space: nowrap;
}

.fp-exp-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fp-exp-detail-item,
.fp-exp-detail-note {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-exp-detail-item span,
.fp-exp-detail-note span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-exp-detail-item strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.fp-exp-detail-note p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.fp-exp-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
}

.fp-exp-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.fp-exp-modal-table-wrap {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-exp-modal-table {
  margin-bottom: 0 !important;
}

.fp-exp-modal-table thead th {
  border: 0;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-exp-modal-table td {
  color: #334155;
  font-size: 12px;
  vertical-align: middle !important;
}

.fp-exp-pay-method span {
  display: block;
  color: #0f172a;
  font-weight: 900;
}

.fp-exp-pay-method small {
  display: block;
  color: #64748b;
  font-size: 11px;
}

.fp-exp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 74px;
  color: #64748b;
  font-weight: 800;
}

.fp-exp-modal-footer {
  display: flex;
  justify-content: flex-end;
}

.fp-exp-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 1199.98px) {
  .fp-exp-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-exp-total-panel {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .fp-exp-hero,
  .fp-exp-panel-head,
  .fp-exp-detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-exp-hero-actions,
  .fp-exp-primary-btn,
  .fp-exp-secondary-btn,
  .fp-exp-filter-btn,
  .fp-exp-save-btn {
    width: 100%;
  }

  .fp-exp-summary,
  .fp-exp-filter,
  .fp-exp-form-grid,
  .fp-exp-provider-picker,
  .fp-exp-detail-grid,
  .fp-exp-payment-summary,
  .fp-exp-detail-totals {
    grid-template-columns: 1fr;
  }

  .fp-exp-provider-picker {
    gap: 10px;
  }

  .fp-exp-provider-icon,
  .fp-exp-inline-btn {
    width: 100%;
  }

  .fp-exp-doc small,
  .fp-exp-provider small {
    max-width: 220px;
  }
}

/* Pagos: rediseño moderno profesional 2026 */
.fp-pay-header-wrap {
  padding-top: 10px;
}

.fp-pay-page {
  padding-bottom: 22px;
}

.fp-pay-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #14b8a6 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
}

.fp-pay-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-pay-hero h4 {
  margin: 3px 0 4px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-pay-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 750;
}

.fp-pay-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fp-pay-primary-btn,
.fp-pay-secondary-btn,
.fp-pay-filter-btn,
.fp-pay-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fp-pay-primary-btn {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 12px 22px rgba(15, 23, 42, .18);
}

.fp-pay-secondary-btn {
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
}

.fp-pay-primary-btn:hover,
.fp-pay-secondary-btn:hover,
.fp-pay-filter-btn:hover,
.fp-pay-save-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-pay-primary-btn:hover {
  color: #0f766e;
}

.fp-pay-secondary-btn:hover,
.fp-pay-filter-btn:hover,
.fp-pay-save-btn:hover {
  color: #ffffff;
}

.fp-pay-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.fp-pay-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  padding: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .06);
}

.fp-pay-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.fp-pay-tabs a:hover {
  color: #0f766e;
  text-decoration: none;
}

.fp-pay-tabs a.active {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 118, 110, .16);
}

.fp-pay-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.fp-pay-kpi {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.fp-pay-kpi span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-pay-kpi span i {
  color: #2563eb;
}

.fp-pay-kpi strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.fp-pay-kpi small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.fp-pay-kpi.is-total {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.fp-pay-kpi.is-soft {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

.fp-pay-kpi.is-warning {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.fp-pay-kpi.is-warning span i {
  color: #d97706;
}

.fp-pay-panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-pay-panel-head,
.fp-pay-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fp-pay-panel-head span,
.fp-pay-history-head span {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-pay-panel-head h5,
.fp-pay-history-head h5 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-pay-breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
}

.fp-pay-breadcrumb b,
.fp-pay-breadcrumb a {
  color: #0f766e;
}

.fp-pay-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px)) auto;
  align-items: end;
  gap: 10px;
}

.fp-pay-filter label,
.fp-pay-field {
  display: block;
  margin: 0;
}

.fp-pay-filter label span,
.fp-pay-field span {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.fp-pay-filter .form-control,
.fp-pay-field .form-control,
.fp-pay-field select,
.fp-pay-money-input .form-control {
  min-height: 38px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.fp-pay-filter .form-control:focus,
.fp-pay-field .form-control:focus,
.fp-pay-field select:focus,
.fp-pay-money-input .form-control:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.fp-pay-filter-btn,
.fp-pay-save-btn {
  background: #14b8a6;
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(20, 184, 166, .18);
}

.fp-pay-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #eef6ff;
  color: #075985;
  font-size: 12px;
  font-weight: 850;
}

.fp-pay-count strong {
  font-size: 16px;
  font-weight: 950;
}

.fp-pay-table-wrap {
  overflow: hidden;
  border: 1px solid #edf2f7;
  border-radius: 8px;
}

.fp-pay-table {
  margin-bottom: 0 !important;
}

.fp-pay-table thead th {
  border: 0 !important;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  vertical-align: middle !important;
}

.fp-pay-table tbody td {
  color: #334155;
  font-size: 12px;
  vertical-align: middle !important;
}

.fp-pay-row-id,
.fp-pay-date,
.fp-pay-doc,
.fp-pay-method,
.fp-pay-support,
.fp-pay-person {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.fp-pay-doc {
  background: #eff6ff;
  color: #1d4ed8;
}

.fp-pay-method {
  background: #ecfdf5;
  color: #0f766e;
}

.fp-pay-support {
  max-width: 170px;
  overflow: hidden;
  background: #f0fdf4;
  color: #15803d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-pay-support.is-empty {
  background: #f8fafc;
  color: #64748b;
}

.fp-pay-provider strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.fp-pay-provider small {
  display: block;
  max-width: 420px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-pay-money,
.fp-pay-balance {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.fp-pay-balance {
  color: #b45309;
}

.fp-pay-age {
  display: grid;
  gap: 2px;
}

.fp-pay-age span {
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.fp-pay-age small {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.fp-pay-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  transition: transform .18s ease;
}

.fp-pay-action:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-pay-action.is-pay {
  background: #14b8a6;
  box-shadow: 0 10px 18px rgba(20, 184, 166, .18);
}

.fp-pay-register-panel {
  position: sticky;
  top: 82px;
}

.fp-pay-document-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, .28fr);
  gap: 12px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff 0%, #ccfbf1 100%);
}

.fp-pay-document-main span,
.fp-pay-document-total span {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-pay-document-main strong,
.fp-pay-document-total strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.fp-pay-document-main small {
  display: block;
  margin-top: 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
}

.fp-pay-document-total {
  text-align: right;
}

.fp-pay-progress-card {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.fp-pay-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.fp-pay-progress-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.fp-pay-progress-head strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.fp-pay-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
}

.fp-pay-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.fp-pay-history-table thead th {
  background: #0f172a;
  color: #ffffff;
}

.fp-pay-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 74px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.fp-pay-register-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.fp-pay-register-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-pay-register-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.fp-pay-register-summary strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.fp-pay-register-summary .is-pending {
  border-color: #fde68a;
  background: #fffbeb;
}

.fp-pay-register-summary .is-pending strong {
  color: #b45309;
}

.fp-pay-register-summary .is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.fp-pay-register-summary .is-ok strong {
  color: #15803d;
}

.fp-pay-money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
}

.fp-pay-money-input b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  border-right: 1px solid #e2e8f0;
  color: #0f766e;
  font-size: 13px;
  font-weight: 950;
}

.fp-pay-money-input .form-control {
  border: 0 !important;
  background: transparent;
}

.fp-pay-field {
  margin-bottom: 12px;
}

.fp-pay-save-btn {
  width: 100%;
  margin-top: 4px;
}

.fp-pay-save-btn:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.fp-pay-done-note {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
}

.fp-pay-done-note i {
  color: #16a34a;
  margin-top: 2px;
}

.fp-pay-done-note strong {
  display: block;
  color: #14532d;
  font-size: 12px;
  font-weight: 950;
}

.fp-pay-done-note small {
  display: block;
  color: #166534;
  font-size: 11px;
  font-weight: 750;
}

.fp-pay-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.fp-pay-modal .modal-header {
  align-items: center;
  padding: 15px 18px;
  border-bottom: 0;
  background: #0f172a;
  color: #ffffff;
}

.fp-pay-modal .modal-header span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-pay-modal .modal-title {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.fp-pay-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12) !important;
  color: #ffffff !important;
  opacity: 1;
}

.fp-pay-modal .modal-body {
  padding: 18px;
  background: #f8fafc;
}

@media (max-width: 1199.98px) {
  .fp-pay-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-pay-register-panel {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .fp-pay-hero,
  .fp-pay-panel-head,
  .fp-pay-history-head,
  .fp-pay-document-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-pay-hero-actions,
  .fp-pay-primary-btn,
  .fp-pay-secondary-btn,
  .fp-pay-filter-btn,
  .fp-pay-save-btn,
  .fp-pay-tabs {
    width: 100%;
  }

  .fp-pay-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-pay-tabs a,
  .fp-pay-hero-actions a {
    justify-content: center;
  }

  .fp-pay-kpis,
  .fp-pay-filter,
  .fp-pay-document-card {
    grid-template-columns: 1fr;
  }

  .fp-pay-document-total {
    text-align: left;
  }

  .fp-pay-provider small {
    max-width: 220px;
  }
}

/* Egreso: rediseño moderno profesional 2026 */
.fp-out-header-wrap {
  padding-top: 10px;
}

.fp-out-page {
  padding-bottom: 22px;
}

.fp-out-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #14b8a6 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
}

.fp-out-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-out-hero h4 {
  margin: 3px 0 4px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-out-hero p {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 750;
}

.fp-out-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fp-out-primary-btn,
.fp-out-filter-btn,
.fp-out-save-btn,
.fp-out-cancel-btn,
.fp-out-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fp-out-primary-btn {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 12px 22px rgba(15, 23, 42, .18);
}

.fp-out-primary-btn:hover,
.fp-out-filter-btn:hover,
.fp-out-save-btn:hover,
.fp-out-cancel-btn:hover,
.fp-out-export:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-out-primary-btn:hover {
  color: #0f766e;
}

.fp-out-filter-btn:hover,
.fp-out-save-btn:hover,
.fp-out-export:hover {
  color: #ffffff;
}

.fp-out-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.fp-out-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.fp-out-kpi {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.fp-out-kpi span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-out-kpi span i {
  color: #2563eb;
}

.fp-out-kpi strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.fp-out-kpi small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.fp-out-kpi.is-total {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.fp-out-kpi.is-soft {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

.fp-out-panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-out-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fp-out-panel-head span {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-out-panel-head h5 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-out-breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
}

.fp-out-breadcrumb b {
  color: #0f766e;
}

.fp-out-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 230px)) auto minmax(190px, auto);
  align-items: end;
  gap: 10px;
}

.fp-out-filter label,
.fp-out-form label {
  display: block;
  min-width: 0;
  margin: 0;
}

.fp-out-filter label span,
.fp-out-form label > span {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-out-filter .form-control,
.fp-out-form .form-control,
.fp-out-form select,
.fp-out-money-input .form-control {
  min-height: 38px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.fp-out-filter .form-control:focus,
.fp-out-form .form-control:focus,
.fp-out-form select:focus,
.fp-out-money-input .form-control:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.fp-out-filter-btn,
.fp-out-save-btn {
  background: #14b8a6;
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(20, 184, 166, .18);
}

.fp-out-export-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.fp-out-export.is-pdf {
  background: #ef4444;
  color: #ffffff;
}

.fp-out-export.is-excel {
  background: #16a34a;
  color: #ffffff;
}

.fp-out-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #eef6ff;
  color: #075985;
  font-size: 12px;
  font-weight: 850;
}

.fp-out-count strong {
  font-size: 16px;
  font-weight: 950;
}

.fp-out-table-wrap {
  overflow: hidden;
  border: 1px solid #edf2f7;
  border-radius: 8px;
}

.fp-out-table {
  margin-bottom: 0 !important;
}

.fp-out-table thead th {
  border: 0 !important;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  vertical-align: middle !important;
}

.fp-out-table tbody td {
  color: #334155;
  font-size: 12px;
  vertical-align: middle !important;
}

.fp-out-row-id,
.fp-out-date,
.fp-out-doc,
.fp-out-type,
.fp-out-method {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.fp-out-doc {
  background: #eff6ff;
  color: #1d4ed8;
}

.fp-out-type {
  background: #fff7ed;
  color: #c2410c;
}

.fp-out-method {
  background: #ecfdf5;
  color: #0f766e;
}

.fp-out-reason strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.fp-out-reason small {
  display: block;
  max-width: 420px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-out-money {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.fp-out-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  transition: transform .18s ease;
}

.fp-out-action:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-out-action.is-delete {
  background: #ef4444;
}

.fp-out-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.fp-out-modal .modal-header {
  align-items: center;
  padding: 15px 18px;
  border-bottom: 0;
  background: #0f172a;
  color: #ffffff;
}

.fp-out-modal .modal-header span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-out-modal .modal-title {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.fp-out-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12) !important;
  color: #ffffff !important;
  opacity: 1;
}

.fp-out-modal .modal-body {
  padding: 16px;
  background: #f8fafc;
}

.fp-out-form {
  color: #0f172a;
}

.fp-out-form-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(239, 246, 255, .94)),
    #ffffff;
}

.fp-out-form-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-size: 17px;
  box-shadow: 0 12px 22px rgba(15, 118, 110, .2);
}

.fp-out-form-intro span {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-out-form-intro strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
}

.fp-out-form-intro small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.fp-out-form-section {
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.fp-out-form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.fp-out-form-title span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-out-form-title small {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.fp-out-form-grid {
  display: grid;
  grid-template-columns: minmax(190px, .34fr) minmax(160px, .28fr) minmax(170px, .28fr);
  gap: 10px;
}

.fp-out-form-grid.is-payment {
  grid-template-columns: minmax(180px, .38fr) minmax(0, 1fr);
}

.fp-out-form-full {
  display: block;
}

.fp-out-money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
}

.fp-out-money-input b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  border-right: 1px solid #e2e8f0;
  color: #0f766e;
  font-size: 13px;
  font-weight: 950;
}

.fp-out-money-input .form-control {
  border: 0 !important;
  background: transparent;
}

.fp-out-form-actions {
  position: sticky;
  bottom: -16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 -16px -16px;
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
}

.fp-out-cancel-btn {
  border: 1px solid #fecaca;
  background: #ffffff;
  color: #dc2626;
}

.fp-out-cancel-btn:hover {
  color: #dc2626;
}

.fp-out-form #mensajeerror:not(:empty) {
  margin-bottom: 10px;
}

@media (max-width: 1199.98px) {
  .fp-out-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-out-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-out-filter-btn,
  .fp-out-export-actions {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .fp-out-hero,
  .fp-out-panel-head,
  .fp-out-form-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-out-hero-actions,
  .fp-out-primary-btn,
  .fp-out-filter-btn,
  .fp-out-export-actions,
  .fp-out-export,
  .fp-out-save-btn,
  .fp-out-cancel-btn {
    width: 100%;
  }

  .fp-out-kpis,
  .fp-out-filter,
  .fp-out-form-grid,
  .fp-out-form-grid.is-payment {
    grid-template-columns: 1fr;
  }

  .fp-out-export-actions,
  .fp-out-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-out-form-intro {
    align-items: flex-start;
  }

  .fp-out-form-title small {
    text-align: left;
  }

  .fp-out-reason small {
    max-width: 220px;
  }
}

/* Ingreso: rediseño moderno profesional 2026 */
.fp-in-header-wrap {
  padding-top: 10px;
}

.fp-in-page {
  padding-bottom: 22px;
}

.fp-in-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #0f766e 56%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
}

.fp-in-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-in-hero h4 {
  margin: 3px 0 4px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-in-hero p {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 750;
}

.fp-in-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fp-in-primary-btn,
.fp-in-filter-btn,
.fp-in-save-btn,
.fp-in-cancel-btn,
.fp-in-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fp-in-primary-btn {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 12px 22px rgba(15, 23, 42, .18);
}

.fp-in-primary-btn:hover,
.fp-in-filter-btn:hover,
.fp-in-save-btn:hover,
.fp-in-cancel-btn:hover,
.fp-in-export:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-in-primary-btn:hover {
  color: #0f766e;
}

.fp-in-filter-btn:hover,
.fp-in-save-btn:hover,
.fp-in-export:hover {
  color: #ffffff;
}

.fp-in-alert {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.fp-in-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.fp-in-kpi {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.fp-in-kpi span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-in-kpi span i {
  color: #0f766e;
}

.fp-in-kpi strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.fp-in-kpi small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.fp-in-kpi.is-total {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

.fp-in-kpi.is-soft {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.fp-in-panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-in-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fp-in-panel-head span {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-in-panel-head h5 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-in-breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
}

.fp-in-breadcrumb b {
  color: #0f766e;
}

.fp-in-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 230px)) auto minmax(190px, auto);
  align-items: end;
  gap: 10px;
}

.fp-in-filter label,
.fp-in-form label {
  display: block;
  min-width: 0;
  margin: 0;
}

.fp-in-filter label span,
.fp-in-form label > span {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-in-filter .form-control,
.fp-in-form .form-control,
.fp-in-form select,
.fp-in-money-input .form-control {
  min-height: 38px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.fp-in-filter .form-control:focus,
.fp-in-form .form-control:focus,
.fp-in-form select:focus,
.fp-in-money-input .form-control:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.fp-in-filter-btn,
.fp-in-save-btn {
  background: #14b8a6;
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(20, 184, 166, .18);
}

.fp-in-export-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.fp-in-export.is-pdf {
  background: #ef4444;
  color: #ffffff;
}

.fp-in-export.is-excel {
  background: #16a34a;
  color: #ffffff;
}

.fp-in-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 12px;
  font-weight: 850;
}

.fp-in-count strong {
  font-size: 16px;
  font-weight: 950;
}

.fp-in-table-wrap {
  overflow: hidden;
  border: 1px solid #edf2f7;
  border-radius: 8px;
}

.fp-in-table {
  margin-bottom: 0 !important;
}

.fp-in-table thead th {
  border: 0 !important;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  vertical-align: middle !important;
}

.fp-in-table tbody td {
  color: #334155;
  font-size: 12px;
  vertical-align: middle !important;
}

.fp-in-row-id,
.fp-in-date,
.fp-in-doc,
.fp-in-type,
.fp-in-method {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.fp-in-doc {
  background: #eff6ff;
  color: #1d4ed8;
}

.fp-in-type {
  background: #ecfdf5;
  color: #0f766e;
}

.fp-in-method {
  background: #eef6ff;
  color: #075985;
}

.fp-in-reason strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.fp-in-reason small {
  display: block;
  max-width: 420px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-in-money {
  color: #0f766e;
  font-size: 13px;
  font-weight: 950;
}

.fp-in-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  transition: transform .18s ease;
}

.fp-in-action:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-in-action.is-delete {
  background: #ef4444;
}

.fp-in-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.fp-in-modal .modal-header {
  align-items: center;
  padding: 15px 18px;
  border-bottom: 0;
  background: #0f172a;
  color: #ffffff;
}

.fp-in-modal .modal-header span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-in-modal .modal-title {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.fp-in-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12) !important;
  color: #ffffff !important;
  opacity: 1;
}

.fp-in-modal .modal-body {
  padding: 16px;
  background: #f8fafc;
}

.fp-in-form {
  color: #0f172a;
}

.fp-in-form-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(239, 246, 255, .94)),
    #ffffff;
}

.fp-in-form-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-size: 17px;
  box-shadow: 0 12px 22px rgba(15, 118, 110, .2);
}

.fp-in-form-intro span {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-in-form-intro strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
}

.fp-in-form-intro small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.fp-in-form-section {
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.fp-in-form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.fp-in-form-title span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-in-form-title small {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.fp-in-form-grid {
  display: grid;
  grid-template-columns: minmax(190px, .34fr) minmax(160px, .28fr) minmax(170px, .28fr);
  gap: 10px;
}

.fp-in-form-grid.is-payment {
  grid-template-columns: minmax(180px, .38fr) minmax(0, 1fr);
}

.fp-in-form-full {
  display: block;
}

.fp-in-money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
}

.fp-in-money-input b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  border-right: 1px solid #e2e8f0;
  color: #0f766e;
  font-size: 13px;
  font-weight: 950;
}

.fp-in-money-input .form-control {
  border: 0 !important;
  background: transparent;
}

.fp-in-form-actions {
  position: sticky;
  bottom: -16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 -16px -16px;
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
}

.fp-in-cancel-btn {
  border: 1px solid #fecaca;
  background: #ffffff;
  color: #dc2626;
}

.fp-in-cancel-btn:hover {
  color: #dc2626;
}

.fp-in-form #mensajeerror:not(:empty) {
  margin-bottom: 10px;
}

@media (max-width: 1199.98px) {
  .fp-in-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-in-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-in-filter-btn,
  .fp-in-export-actions {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .fp-in-hero,
  .fp-in-panel-head,
  .fp-in-form-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-in-hero-actions,
  .fp-in-primary-btn,
  .fp-in-filter-btn,
  .fp-in-export-actions,
  .fp-in-export,
  .fp-in-save-btn,
  .fp-in-cancel-btn {
    width: 100%;
  }

  .fp-in-kpis,
  .fp-in-filter,
  .fp-in-form-grid,
  .fp-in-form-grid.is-payment {
    grid-template-columns: 1fr;
  }

  .fp-in-export-actions,
  .fp-in-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fp-in-form-intro {
    align-items: flex-start;
  }

  .fp-in-form-title small {
    text-align: left;
  }

  .fp-in-reason small {
    max-width: 220px;
  }
}

/* Caja medio pago: rediseño moderno profesional 2026 */
.fp-cpay-header-wrap {
  padding-top: 10px;
}

.fp-cpay-page {
  padding-bottom: 22px;
}

.fp-cpay-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #14b8a6 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
}

.fp-cpay-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-cpay-hero h4 {
  margin: 3px 0 4px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-cpay-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 750;
}

.fp-cpay-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fp-cpay-primary-btn,
.fp-cpay-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fp-cpay-primary-btn {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 12px 22px rgba(15, 23, 42, .18);
}

.fp-cpay-filter-btn {
  background: #14b8a6;
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(20, 184, 166, .18);
}

.fp-cpay-primary-btn:hover,
.fp-cpay-filter-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.fp-cpay-primary-btn:hover {
  color: #0f766e;
}

.fp-cpay-filter-btn:hover {
  color: #ffffff;
}

.fp-cpay-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.fp-cpay-kpi {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.fp-cpay-kpi span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-cpay-kpi span i {
  color: #2563eb;
}

.fp-cpay-kpi strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.fp-cpay-kpi small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.fp-cpay-kpi.is-total {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

.fp-cpay-kpi.is-total span i {
  color: #0f766e;
}

.fp-cpay-kpi.is-warning {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.fp-cpay-kpi.is-warning span i {
  color: #d97706;
}

.fp-cpay-kpi.is-balance {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.fp-cpay-panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fp-cpay-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fp-cpay-panel-head span {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fp-cpay-panel-head h5 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
}

.fp-cpay-breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
}

.fp-cpay-breadcrumb b {
  color: #0f766e;
}

.fp-cpay-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px)) auto;
  align-items: end;
  gap: 10px;
}

.fp-cpay-filter label {
  display: block;
  min-width: 0;
  margin: 0;
}

.fp-cpay-filter label span {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-cpay-filter .form-control {
  min-height: 38px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.fp-cpay-filter .form-control:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.fp-cpay-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #eef6ff;
  color: #075985;
  font-size: 12px;
  font-weight: 850;
}

.fp-cpay-count strong {
  font-size: 16px;
  font-weight: 950;
}

.fp-cpay-table-wrap,
.fp-cpay-detail-wrap {
  overflow: hidden;
  border: 1px solid #edf2f7;
  border-radius: 8px;
}

.fp-cpay-table,
.fp-cpay-detail-table {
  margin-bottom: 0 !important;
}

.fp-cpay-table thead th,
.fp-cpay-detail-table thead th {
  border: 0 !important;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  vertical-align: middle !important;
}

.fp-cpay-table tbody td,
.fp-cpay-table tfoot td,
.fp-cpay-detail-table tbody td {
  color: #334155;
  font-size: 12px;
  vertical-align: middle !important;
}

.fp-cpay-table tfoot td {
  border-top: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #0f172a;
}

.fp-cpay-method-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.fp-cpay-method-name span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-size: 12px;
}

.fp-cpay-method-name strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.fp-cpay-income {
  color: #0f766e;
  font-weight: 950;
}

.fp-cpay-outcome {
  color: #b45309;
  font-weight: 950;
}

.fp-cpay-balance {
  display: inline-flex;
  justify-content: flex-end;
  min-width: 84px;
  font-weight: 950;
}

.fp-cpay-balance.is-positive {
  color: #0f766e;
}

.fp-cpay-balance.is-negative {
  color: #dc2626;
}

.fp-cpay-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.fp-cpay-tabs .nav-item {
  margin: 0;
}

.fp-cpay-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.fp-cpay-tab.active,
.fp-cpay-tab:hover {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.fp-cpay-tab-content {
  min-height: 280px;
}

.fp-cpay-method-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fp-cpay-method-summary div {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.fp-cpay-method-summary span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-cpay-method-summary strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.fp-cpay-method-summary .is-positive {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.fp-cpay-method-summary .is-positive strong {
  color: #0f766e;
}

.fp-cpay-method-summary .is-negative {
  border-color: #fecaca;
  background: #fff7f7;
}

.fp-cpay-method-summary .is-negative strong {
  color: #dc2626;
}

.fp-cpay-row-id,
.fp-cpay-date,
.fp-cpay-doc,
.fp-cpay-type {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.fp-cpay-doc {
  background: #eff6ff;
  color: #1d4ed8;
}

.fp-cpay-type {
  background: #ecfdf5;
  color: #0f766e;
}

.fp-cpay-person strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.fp-cpay-person small {
  display: block;
  max-width: 330px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-cpay-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 84px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.fp-cpay-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.fp-cpay-modal .modal-header {
  align-items: center;
  padding: 15px 18px;
  border-bottom: 0;
  background: #0f172a;
  color: #ffffff;
}

.fp-cpay-modal .modal-header span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.fp-cpay-modal .modal-title {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.fp-cpay-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12) !important;
  color: #ffffff !important;
  opacity: 1;
}

.fp-cpay-modal .modal-body {
  padding: 18px;
  background: #f8fafc;
}

@media (max-width: 1199.98px) {
  .fp-cpay-kpis,
  .fp-cpay-method-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fp-cpay-hero,
  .fp-cpay-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-cpay-hero-actions,
  .fp-cpay-primary-btn,
  .fp-cpay-filter-btn {
    width: 100%;
  }

  .fp-cpay-kpis,
  .fp-cpay-filter,
  .fp-cpay-method-summary {
    grid-template-columns: 1fr;
  }

  .fp-cpay-tabs {
    padding-bottom: 6px;
  }

  .fp-cpay-person small {
    max-width: 220px;
  }
}

/* Global responsive hardening 2026 */
.fp-responsive-app,
.fp-responsive-app * {
  box-sizing: border-box;
}

.fp-responsive-app .content-wrapper,
.fp-responsive-app .content,
.fp-responsive-app .container-fluid,
.fp-responsive-app .card,
.fp-responsive-app .modal-content,
.fp-responsive-app .row > [class*="col-"],
.fp-responsive-app .input-group,
.fp-responsive-app .btn-group,
.fp-responsive-app .table-responsive,
.fp-responsive-app .dataTables_wrapper {
  min-width: 0;
}

.fp-responsive-app input,
.fp-responsive-app select,
.fp-responsive-app textarea,
.fp-responsive-app .form-control,
.fp-responsive-app .custom-select,
.fp-responsive-app .select2-container {
  max-width: 100%;
}

.fp-responsive-app textarea.form-control {
  min-height: 86px;
  resize: vertical;
}

.fp-responsive-app .fp-auto-responsive-table {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--fp-app-border, #e2e8f0);
  border-radius: 8px;
}

.fp-responsive-app .fp-auto-responsive-table > table {
  margin-bottom: 0;
}

.fp-responsive-app .table td,
.fp-responsive-app .table th {
  overflow-wrap: anywhere;
}

.fp-responsive-app .table .btn,
.fp-responsive-app .table button,
.fp-responsive-app .table a[class*="btn"],
.fp-responsive-app .table [class*="-action"] {
  white-space: nowrap;
}

.fp-responsive-app .modal-dialog-scrollable .modal-body,
.fp-responsive-app .modal-body {
  overflow-x: hidden;
}

.fp-responsive-app .modal-body .table-responsive,
.fp-responsive-app .modal-body .fp-auto-responsive-table {
  max-height: min(58vh, 520px);
  overflow: auto;
}

.fp-responsive-app .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
}

.fp-responsive-app .select2-container--default .select2-selection--single .select2-selection__rendered {
  min-width: 0;
  overflow: hidden;
  padding-right: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-responsive-app .select2-container--default .select2-selection--multiple .select2-selection__choice {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-responsive-app .swal2-popup {
  border-radius: 8px !important;
}

@media (max-width: 1199.98px) {
  .fp-responsive-app .container-fluid {
    padding-right: 12px;
    padding-left: 12px;
  }

  .fp-responsive-app [class*="-hero"],
  .fp-responsive-app [class*="-toolbar"],
  .fp-responsive-app [class*="-filterbar"],
  .fp-responsive-app [class*="-filters"],
  .fp-responsive-app [class*="-actions"] {
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  .fp-responsive-app .content-wrapper {
    min-height: calc(100vh - 54px);
  }

  .fp-responsive-app .card-header,
  .fp-responsive-app .modal-header,
  .fp-responsive-app [class*="-card-head"],
  .fp-responsive-app [class*="-panel-head"],
  .fp-responsive-app [class*="-products-head"] {
    gap: 10px;
  }

  .fp-responsive-app .dataTables_wrapper {
    overflow: visible;
  }

  .fp-responsive-app .dataTables_wrapper > .row {
    margin-right: 0;
    margin-left: 0;
  }

  .fp-responsive-app .dataTables_wrapper > .row > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
  }

  .fp-responsive-app .dt-buttons {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  html,
  body.fp-responsive-app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .fp-responsive-app .container-fluid {
    padding-right: 8px;
    padding-left: 8px;
  }

  .fp-responsive-app .content-wrapper {
    padding-top: 0;
  }

  .fp-responsive-app .card-header,
  .fp-responsive-app [class*="-card-head"],
  .fp-responsive-app [class*="-panel-head"],
  .fp-responsive-app [class*="-products-head"],
  .fp-responsive-app [class*="-toolbar"],
  .fp-responsive-app [class*="-actions"],
  .fp-responsive-app [class*="-filterbar"],
  .fp-responsive-app [class*="-filters"] {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .fp-responsive-app [class*="-hero"] {
    overflow: hidden;
  }

  .fp-responsive-app .form-control,
  .fp-responsive-app .custom-select,
  .fp-responsive-app select.form-control,
  .fp-responsive-app textarea.form-control,
  .fp-responsive-app input.form-control {
    width: 100%;
    min-height: 40px;
    font-size: 16px;
  }

  .fp-responsive-app .input-group {
    width: 100%;
    flex-wrap: nowrap;
  }

  .fp-responsive-app .input-group-prepend,
  .fp-responsive-app .input-group-append {
    flex: 0 0 auto;
  }

  .fp-responsive-app .input-group > .form-control,
  .fp-responsive-app .input-group > .custom-select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .fp-responsive-app .btn,
  .fp-responsive-app button,
  .fp-responsive-app input[type="submit"],
  .fp-responsive-app input[type="button"] {
    max-width: 100%;
  }

  .fp-responsive-app .btn:not(.btn-xs):not(.btn-link),
  .fp-responsive-app button:not(.close):not(.navbar-toggler):not([class*="page-link"]) {
    min-height: 40px;
  }

  .fp-responsive-app .modal-footer,
  .fp-responsive-app .form-actions,
  .fp-responsive-app [class*="-form-actions"],
  .fp-responsive-app [class*="-modal-actions"],
  .fp-responsive-app [class*="-footer-actions"] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .fp-responsive-app .modal-footer > *,
  .fp-responsive-app .form-actions > *,
  .fp-responsive-app [class*="-form-actions"] > *,
  .fp-responsive-app [class*="-modal-actions"] > *,
  .fp-responsive-app [class*="-footer-actions"] > * {
    flex: 1 1 160px;
  }

  .fp-responsive-app .btn-group {
    width: auto;
    flex-wrap: wrap;
    gap: 6px;
  }

  .fp-responsive-app .btn-group > .btn {
    border-radius: 7px !important;
  }

  .fp-responsive-app .table-responsive,
  .fp-responsive-app .fp-auto-responsive-table {
    width: 100%;
    max-height: 58vh;
    overflow: auto;
    border: 1px solid var(--fp-app-border, #e2e8f0);
  }

  .fp-responsive-app .table td,
  .fp-responsive-app .table th {
    padding: .5rem .55rem;
  }

  .fp-responsive-app .dataTables_wrapper .row:first-child,
  .fp-responsive-app .dataTables_wrapper .row:last-child {
    row-gap: 8px;
  }

  .fp-responsive-app .dataTables_wrapper .dataTables_length,
  .fp-responsive-app .dataTables_wrapper .dataTables_filter,
  .fp-responsive-app .dataTables_wrapper .dataTables_info,
  .fp-responsive-app .dataTables_wrapper .dataTables_paginate,
  .fp-responsive-app .dataTables_wrapper .dt-buttons {
    width: 100%;
  }

  .fp-responsive-app .dataTables_wrapper .dataTables_length label,
  .fp-responsive-app .dataTables_wrapper .dataTables_filter label {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .fp-responsive-app .dataTables_wrapper .dataTables_length select,
  .fp-responsive-app .dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    font-size: 16px;
  }

  .fp-responsive-app .dt-buttons .btn {
    flex: 1 1 120px;
  }

  .fp-responsive-app .pagination {
    justify-content: center !important;
  }

  .fp-responsive-app .page-link {
    min-width: 36px;
    text-align: center;
  }

  .fp-responsive-app .modal {
    padding-right: 0 !important;
  }

  .fp-responsive-app .modal-dialog,
  .fp-responsive-app .modal-dialog.modal-sm,
  .fp-responsive-app .modal-dialog.modal-lg,
  .fp-responsive-app .modal-dialog.modal-xl {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin: 8px auto !important;
  }

  .fp-responsive-app .modal-header {
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .fp-responsive-app .modal-title {
    max-width: calc(100vw - 88px);
    overflow-wrap: anywhere;
    font-size: 1rem;
    line-height: 1.2;
  }

  .fp-responsive-app .modal-body {
    padding: 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .fp-responsive-app .modal .close {
    flex: 0 0 auto;
  }

  .fp-responsive-app .select2-container {
    width: 100% !important;
  }

  .fp-responsive-app .select2-dropdown {
    max-width: calc(100vw - 16px);
  }

  .fp-responsive-app .swal2-popup {
    width: calc(100vw - 24px) !important;
    max-width: 420px !important;
    padding: 1rem !important;
  }

  .fp-responsive-app .fp-topbar-actions {
    overflow: hidden;
  }
}

@media (max-width: 575.98px) {
  .fp-responsive-app .container-fluid {
    padding-right: 6px;
    padding-left: 6px;
  }

  .fp-responsive-app .content {
    padding-right: 0;
    padding-left: 0;
  }

  .fp-responsive-app .card {
    border-radius: 8px;
  }

  .fp-responsive-app .card-header,
  .fp-responsive-app .card-body {
    padding-right: 12px;
    padding-left: 12px;
  }

  .fp-responsive-app .modal-footer > *,
  .fp-responsive-app .form-actions > *,
  .fp-responsive-app [class*="-form-actions"] > *,
  .fp-responsive-app [class*="-modal-actions"] > *,
  .fp-responsive-app [class*="-footer-actions"] > * {
    flex-basis: 100%;
  }

  .fp-responsive-app .btn-group {
    width: 100%;
  }

  .fp-responsive-app .btn-group > .btn {
    flex: 1 1 auto;
  }

  .fp-responsive-app .table-responsive,
  .fp-responsive-app .fp-auto-responsive-table {
    max-height: 62vh;
  }

  .fp-responsive-app .table td,
  .fp-responsive-app .table th {
    font-size: .78rem;
  }

  .fp-responsive-app .dataTables_wrapper .dataTables_info {
    text-align: center !important;
  }
}

@media (max-width: 420px) {
  .fp-responsive-app .navbar-nav .nav-link {
    min-width: 30px;
    padding-right: .25rem;
    padding-left: .25rem;
  }

  .fp-responsive-app .fp-user-button {
    min-width: 36px;
    padding: 4px;
  }

  .fp-responsive-app .fp-user-avatar {
    width: 28px;
    height: 28px;
  }
}

/* Contraido layout polish 2026 */
body.fp-shell-collapsed {
  --fp-contraido-bg: #f5f8fc;
  --fp-contraido-surface: #ffffff;
  --fp-contraido-surface-soft: #f8fafc;
  --fp-contraido-border: #dbe5f0;
  --fp-contraido-text: #0f172a;
  --fp-contraido-muted: #64748b;
  --fp-contraido-accent: #0f766e;
  --fp-contraido-accent-soft: #e6fffb;
  --fp-contraido-blue: #2563eb;
  --fp-contraido-sidebar: #06172a;
  --fp-contraido-sidebar-2: #0a2a41;
  --fp-contraido-sidebar-line: rgba(255, 255, 255, .1);
  --fp-contraido-sidebar-text: #eef6ff;
  --fp-contraido-sidebar-muted: #a8bbd0;
  background: var(--fp-contraido-bg);
  color: var(--fp-contraido-text);
}

body.fp-shell-collapsed .wrapper {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .08), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, var(--fp-contraido-bg) 100%);
}

body.fp-shell-collapsed .fp-topbar {
  min-height: 58px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 1px solid var(--fp-contraido-border) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  backdrop-filter: blur(14px);
  color: var(--fp-contraido-text) !important;
}

body.fp-shell-collapsed .fp-topbar .navbar-nav {
  align-items: center;
  gap: 7px;
}

body.fp-shell-collapsed .fp-topbar .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0 !important;
  border: 1px solid #e3eaf4;
  border-radius: 11px;
  background: #fff;
  color: #475569 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

body.fp-shell-collapsed .fp-topbar .nav-link:hover,
body.fp-shell-collapsed .fp-topbar .nav-link:focus {
  background: var(--fp-contraido-accent-soft);
  border-color: rgba(15, 118, 110, .28);
  color: var(--fp-contraido-accent) !important;
  transform: translateY(-1px);
}

body.fp-shell-collapsed .fp-shell-toggle {
  background: linear-gradient(135deg, #eff6ff, #ecfeff) !important;
  border-color: #c7d2fe !important;
  color: var(--fp-contraido-blue) !important;
}

body.fp-shell-collapsed .fp-topbar .navbar-badge {
  top: -7px !important;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 2px 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: .62rem;
  line-height: 1;
}

body.fp-shell-collapsed .fp-topbar-logo .nav-link,
body.fp-shell-collapsed .fp-topbar-logo-wide .nav-link {
  width: auto;
  min-width: 42px;
  padding: 5px 9px !important;
}

body.fp-shell-collapsed .fp-topbar-logo img,
body.fp-shell-collapsed .fp-topbar-logo-wide img {
  width: auto !important;
  max-width: 88px;
  max-height: 28px;
  object-fit: contain;
}

body.fp-shell-collapsed .fp-topbar-logo-wide img {
  max-width: 108px;
}

body.fp-shell-collapsed .fp-topbar-identity {
  max-width: 390px;
  margin-left: 10px;
  padding: 6px 11px 6px 7px;
  border: 1px solid #e4ebf4;
  border-radius: 14px;
  background: var(--fp-contraido-surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

body.fp-shell-collapsed .fp-topbar-identity-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fp-contraido-accent), var(--fp-contraido-blue));
  color: #fff;
}

body.fp-shell-collapsed .fp-topbar-identity small,
body.fp-shell-collapsed .fp-topbar-identity strong,
body.fp-shell-collapsed .fp-topbar-identity em {
  color: var(--fp-contraido-text);
}

body.fp-shell-collapsed .fp-topbar-identity small {
  color: var(--fp-contraido-muted);
}

body.fp-shell-collapsed .fp-topbar-identity em {
  color: var(--fp-contraido-muted);
  border-left-color: var(--fp-contraido-border);
}

body.fp-shell-collapsed .fp-user-menu {
  display: flex;
  align-items: center;
}

body.fp-shell-collapsed .fp-user-button {
  min-height: 38px;
  max-width: 230px;
  padding: 4px 12px 4px 5px;
  border: 1px solid #dbe5f0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  color: var(--fp-contraido-text);
  box-shadow: 0 9px 22px rgba(15, 23, 42, .05);
}

body.fp-shell-collapsed .fp-user-button:hover,
body.fp-shell-collapsed .fp-user-button:focus {
  border-color: rgba(37, 99, 235, .28);
  color: var(--fp-contraido-blue);
}

body.fp-shell-collapsed .fp-user-avatar {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--fp-contraido-blue), #7c3aed);
  color: #fff;
}

body.fp-shell-collapsed .fp-user-name {
  max-width: 150px;
  color: inherit;
}

body.fp-shell-collapsed .fp-user-dropdown {
  margin-top: 10px;
  border: 1px solid var(--fp-contraido-border);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, .15);
}

body.fp-shell-collapsed .fp-sidebar,
body.fp-shell-collapsed [class*=sidebar-dark-].fp-sidebar {
  background:
    linear-gradient(180deg, rgba(20, 184, 166, .11) 0%, transparent 22rem),
    linear-gradient(180deg, var(--fp-contraido-sidebar) 0%, var(--fp-contraido-sidebar-2) 100%) !important;
  box-shadow: 14px 0 36px rgba(2, 6, 23, .18);
}

body.fp-shell-collapsed .fp-sidebar .sidebar {
  padding: 8px 8px 14px;
}

body.fp-shell-collapsed .fp-sidebar .brand-link {
  min-height: 60px;
  padding: 10px 12px !important;
  border-bottom: 1px solid var(--fp-contraido-sidebar-line) !important;
  color: var(--fp-contraido-sidebar-text) !important;
}

body.fp-shell-collapsed .fp-brand-logo {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11);
}

body.fp-shell-collapsed .fp-brand-logo img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

body.fp-shell-collapsed .fp-brand-copy strong {
  color: #fff;
  letter-spacing: 0;
}

body.fp-shell-collapsed .fp-brand-copy small {
  color: var(--fp-contraido-sidebar-muted);
}

body.fp-shell-collapsed .fp-menu-head.fp-menu-head-logo {
  padding: 9px;
  border-bottom: 1px solid var(--fp-contraido-sidebar-line) !important;
}

body.fp-shell-collapsed .fp-menu-logo-full {
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
}

body.fp-shell-collapsed .fp-menu-logo-full img {
  max-width: 160px;
  max-height: 34px;
  object-fit: contain;
}

body.fp-shell-collapsed .fp-menu-context {
  min-width: 0;
  margin-top: 7px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
}

body.fp-shell-collapsed .fp-menu-context strong {
  color: #fff !important;
  font-size: .82rem;
}

body.fp-shell-collapsed .fp-menu-context span,
body.fp-shell-collapsed .fp-menu-context i {
  color: var(--fp-contraido-sidebar-muted) !important;
}

body.fp-shell-collapsed .fp-menu-search {
  height: 38px;
  margin: 10px 6px 8px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
}

body.fp-shell-collapsed .fp-menu-search input {
  color: #fff;
  font-size: .82rem;
}

body.fp-shell-collapsed .fp-menu-search input::placeholder {
  color: rgba(238, 246, 255, .62);
}

body.fp-shell-collapsed .fp-menu-search > i,
body.fp-shell-collapsed .fp-menu-search button {
  color: var(--fp-contraido-sidebar-muted);
}

body.fp-shell-collapsed .fp-sidebar-nav {
  margin-top: 8px !important;
}

body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar > .nav-item {
  margin-bottom: 4px;
}

body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar .nav-link {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 11px;
  color: var(--fp-contraido-sidebar-muted) !important;
}

body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar .nav-link p,
body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar .nav-link .nav-icon,
body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar .nav-link .right,
body.fp-shell-collapsed [class*=sidebar-dark-].fp-sidebar .sidebar a {
  color: var(--fp-contraido-sidebar-muted) !important;
}

body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link .nav-icon {
  width: 24px;
  min-width: 24px;
  margin-right: 10px;
  text-align: center;
}

body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link:hover,
body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link {
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
}

body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link:hover p,
body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link:hover .nav-icon,
body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link p,
body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link .nav-icon {
  color: #fff !important;
}

body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link.active,
body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link.active {
  background: linear-gradient(135deg, var(--fp-contraido-accent), var(--fp-contraido-blue)) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .24);
}

body.fp-shell-collapsed .fp-sidebar-nav .nav-treeview {
  margin: 4px 0 6px 22px;
  padding: 3px 0 3px 8px;
  border-left: 1px solid rgba(255, 255, 255, .12) !important;
}

body.fp-shell-collapsed .fp-sidebar-nav .nav-treeview > .nav-item > .nav-link {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: .82rem;
}

body.fp-shell-collapsed .fp-sidebar-nav .nav-treeview > .nav-item > .nav-link:hover,
body.fp-shell-collapsed .fp-sidebar-nav .nav-treeview > .nav-item > .nav-link.active {
  background: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
}

body.fp-shell-collapsed .content-wrapper.fp-content-wrapper {
  min-height: calc(100vh - 58px);
  background: transparent;
  border-top-left-radius: 18px;
}

body.fp-shell-collapsed .fp-footer {
  border-top: 1px solid var(--fp-contraido-border) !important;
  background: rgba(255, 255, 255, .92) !important;
  color: var(--fp-contraido-muted);
}

@media (min-width: 768px) {
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) {
    width: 4.6rem !important;
  }

  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused {
    width: 264px !important;
  }

  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .brand-link {
    justify-content: center;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-brand-copy,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-menu-head-logo,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-menu-search,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-sidebar-nav .nav-sidebar .nav-link p,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-sidebar-nav .nav-sidebar .right {
    display: none !important;
  }

  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link {
    justify-content: center;
    width: 42px;
    margin: 0 auto 6px;
    padding-right: 0;
    padding-left: 0;
  }

  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:not(:hover):not(.sidebar-focused) .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link .nav-icon {
    margin-right: 0;
  }

  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-brand-copy,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-brand-copy,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-menu-head-logo,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-menu-head-logo,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-menu-search,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-menu-search,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-sidebar-nav .nav-sidebar .nav-link p,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .nav-link p,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-sidebar-nav .nav-sidebar .right,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .right {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit !important;
  }

  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar:hover .fp-sidebar-nav .nav-sidebar .nav-link p,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-sidebar.fp-sidebar.sidebar-focused .fp-sidebar-nav .nav-sidebar .nav-link p {
    max-width: 184px;
    white-space: normal;
  }

  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .content-wrapper.fp-content-wrapper,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-header,
  body.fp-shell-collapsed.sidebar-mini.sidebar-collapse .main-footer {
    margin-left: 4.6rem !important;
  }
}

@media (max-width: 991.98px) {
  body.fp-shell-collapsed .fp-topbar {
    padding-right: 10px;
    padding-left: 10px;
  }

  body.fp-shell-collapsed .fp-topbar-logo-wide,
  body.fp-shell-collapsed .fp-topbar-logo {
    display: none;
  }

  body.fp-shell-collapsed .fp-user-name {
    max-width: 110px;
  }
}

@media (max-width: 767.98px) {
  body.fp-shell-collapsed .fp-topbar {
    min-height: 54px;
    gap: 6px;
  }

  body.fp-shell-collapsed .fp-topbar .nav-link {
    width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 10px;
  }

  body.fp-shell-collapsed .fp-topbar-actions {
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.fp-shell-collapsed .fp-topbar-actions::-webkit-scrollbar {
    display: none;
  }

  body.fp-shell-collapsed .fp-user-button {
    min-width: 38px;
    padding: 4px;
  }

  body.fp-shell-collapsed .fp-user-name,
  body.fp-shell-collapsed .fp-user-button::after {
    display: none;
  }

  body.fp-shell-collapsed .main-sidebar.fp-sidebar {
    width: 264px !important;
  }

  body.fp-shell-collapsed .content-wrapper.fp-content-wrapper,
  body.fp-shell-collapsed .main-header,
  body.fp-shell-collapsed .main-footer {
    margin-left: 0 !important;
  }

  body.fp-shell-collapsed .content-wrapper.fp-content-wrapper {
    border-top-left-radius: 0;
  }

  body.fp-shell-collapsed .fp-footer {
    padding: 10px 12px;
    text-align: center;
  }
}

/* Blanco layout polish 2026 */
.fp-blank-layout {
  --fp-blank-bg: #ffffff;
  --fp-blank-soft: #f8fafc;
  --fp-blank-border: #dbe5f0;
  --fp-blank-text: #0f172a;
  --fp-blank-muted: #64748b;
  --fp-blank-accent: #0f766e;
  --fp-blank-blue: #2563eb;
  --fp-blank-danger: #dc2626;
  --fp-blank-warning: #d97706;
  width: 100%;
  max-width: 100%;
  color: var(--fp-blank-text);
  font-size: .92rem;
  line-height: 1.45;
}

.fp-blank-layout,
.fp-blank-layout * {
  box-sizing: border-box;
}

.fp-blank-surface {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 2px;
  background: transparent;
}

.fp-blank-layout h1,
.fp-blank-layout h2,
.fp-blank-layout h3,
.fp-blank-layout h4,
.fp-blank-layout h5,
.fp-blank-layout h6 {
  color: var(--fp-blank-text);
  font-weight: 800;
  letter-spacing: 0;
}

.fp-blank-layout label,
.fp-blank-layout .col-form-label {
  margin-bottom: 5px;
  color: #334155;
  font-size: .79rem;
  font-weight: 700;
}

.fp-blank-layout .form-control,
.fp-blank-layout .custom-select,
.fp-blank-layout select.form-control,
.fp-blank-layout textarea.form-control,
.fp-blank-layout input.form-control {
  min-height: 38px;
  border: 1px solid var(--fp-blank-border);
  border-radius: 10px;
  background-color: #fff;
  color: var(--fp-blank-text);
  font-size: .9rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .03);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.fp-blank-layout textarea.form-control {
  min-height: 88px;
  resize: vertical;
}

.fp-blank-layout .form-control:focus,
.fp-blank-layout .custom-select:focus,
.fp-blank-layout select.form-control:focus,
.fp-blank-layout textarea.form-control:focus,
.fp-blank-layout input.form-control:focus {
  border-color: rgba(37, 99, 235, .48);
  box-shadow: 0 0 0 .18rem rgba(37, 99, 235, .12);
}

.fp-blank-layout .form-control[readonly],
.fp-blank-layout .form-control:disabled,
.fp-blank-layout .custom-select:disabled {
  background-color: #f1f5f9;
  color: var(--fp-blank-muted);
}

.fp-blank-layout .input-group {
  align-items: stretch;
}

.fp-blank-layout .input-group-text {
  min-height: 38px;
  border-color: var(--fp-blank-border);
  background: var(--fp-blank-soft);
  color: var(--fp-blank-muted);
  font-weight: 700;
}

.fp-blank-layout .input-group > .form-control:not(:first-child),
.fp-blank-layout .input-group > .custom-select:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.fp-blank-layout .input-group > .form-control:not(:last-child),
.fp-blank-layout .input-group > .custom-select:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.fp-blank-layout .select2-container {
  width: 100% !important;
}

.fp-blank-layout .select2-container--default .select2-selection--single,
.fp-blank-layout .select2-container--default .select2-selection--multiple {
  min-height: 38px;
  border: 1px solid var(--fp-blank-border);
  border-radius: 10px;
  background: #fff;
}

.fp-blank-layout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--fp-blank-text);
  line-height: 36px;
}

.fp-blank-layout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
}

.fp-blank-layout .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  max-width: 100%;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.fp-blank-layout .btn:hover,
.fp-blank-layout .btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .1);
}

.fp-blank-layout .btn-sm,
.fp-blank-layout .btn-group-sm > .btn {
  min-height: 32px;
  border-radius: 9px;
  font-size: .8rem;
}

.fp-blank-layout .btn-primary,
.fp-blank-layout .btn-info,
.fp-blank-layout .bg-info,
.fp-blank-layout .bg-primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--fp-blank-blue), #14b8a6) !important;
  color: #fff !important;
}

.fp-blank-layout .btn-success,
.fp-blank-layout .bg-success,
.fp-blank-layout .bg-teal {
  border-color: transparent !important;
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #fff !important;
}

.fp-blank-layout .btn-danger,
.fp-blank-layout .bg-danger {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--fp-blank-danger), #ef4444) !important;
  color: #fff !important;
}

.fp-blank-layout .btn-warning,
.fp-blank-layout .bg-warning {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--fp-blank-warning), #f59e0b) !important;
  color: #111827 !important;
}

.fp-blank-layout .btn-secondary,
.fp-blank-layout .bg-secondary {
  border-color: #cbd5e1 !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
}

.fp-blank-layout .btn-outline-primary,
.fp-blank-layout .btn-outline-info {
  border-color: rgba(37, 99, 235, .32);
  background: #fff;
  color: var(--fp-blank-blue);
}

.fp-blank-layout .btn-outline-danger {
  border-color: rgba(220, 38, 38, .32);
  background: #fff;
  color: var(--fp-blank-danger);
}

.fp-blank-layout .card {
  border: 1px solid var(--fp-blank-border);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}

.fp-blank-layout .card-header {
  border-bottom: 1px solid var(--fp-blank-border);
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #fff 0%, var(--fp-blank-soft) 100%);
  color: var(--fp-blank-text);
}

.fp-blank-layout .card-title {
  color: var(--fp-blank-text);
  font-weight: 800;
}

.fp-blank-layout .card-body {
  padding: 16px;
}

.fp-blank-layout .table-responsive,
.fp-blank-layout .fp-auto-responsive-table {
  width: 100%;
  border: 1px solid var(--fp-blank-border);
  border-radius: 12px;
  background: #fff;
  overflow: auto;
}

.fp-blank-layout .table {
  width: 100%;
  margin-bottom: 0;
  color: var(--fp-blank-text);
}

.fp-blank-layout .table thead th {
  border-bottom: 1px solid var(--fp-blank-border);
  background: var(--fp-blank-soft);
  color: #334155;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-blank-layout .table td,
.fp-blank-layout .table th {
  vertical-align: middle;
  padding: .55rem .65rem;
  border-top-color: #edf2f7;
}

.fp-blank-layout .table-hover tbody tr:hover {
  background-color: #f8fbff;
}

.fp-blank-layout .badge {
  border-radius: 999px;
  padding: .35rem .55rem;
  font-weight: 800;
}

.fp-blank-layout .alert {
  border: 1px solid var(--fp-blank-border);
  border-radius: 12px;
  box-shadow: none;
}

.fp-blank-layout .dataTables_wrapper .row {
  row-gap: 10px;
}

.fp-blank-layout .dataTables_wrapper .dataTables_filter input,
.fp-blank-layout .dataTables_wrapper .dataTables_length select {
  border-radius: 10px;
  border-color: var(--fp-blank-border);
}

.fp-blank-layout .pagination .page-link {
  border-color: var(--fp-blank-border);
  color: var(--fp-blank-blue);
}

.fp-blank-layout .pagination .page-item.active .page-link {
  border-color: var(--fp-blank-blue);
  background: var(--fp-blank-blue);
  color: #fff;
}

.fp-blank-layout hr {
  border-top-color: var(--fp-blank-border);
}

@media (max-width: 767.98px) {
  .fp-blank-layout {
    font-size: .88rem;
  }

  .fp-blank-surface {
    padding: 0;
  }

  .fp-blank-layout .row {
    row-gap: 10px;
  }

  .fp-blank-layout .form-control,
  .fp-blank-layout .custom-select,
  .fp-blank-layout select.form-control,
  .fp-blank-layout textarea.form-control,
  .fp-blank-layout input.form-control {
    min-height: 40px;
    font-size: 16px;
  }

  .fp-blank-layout .btn {
    width: 100%;
    min-height: 40px;
  }

  .fp-blank-layout .btn-group,
  .fp-blank-layout .form-actions,
  .fp-blank-layout [class*="-actions"] {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .fp-blank-layout .btn-group > .btn,
  .fp-blank-layout .form-actions > .btn,
  .fp-blank-layout [class*="-actions"] > .btn {
    flex: 1 1 150px;
  }

  .fp-blank-layout .card-body {
    padding: 12px;
  }

  .fp-blank-layout .table td,
  .fp-blank-layout .table th {
    padding: .48rem .5rem;
    font-size: .78rem;
  }
}

/* Modal Datos de la Venta: medios de pago */
.fp-sale-payment-modal {
  --fp-sale-pay-text: #0f172a;
  --fp-sale-pay-muted: #64748b;
  --fp-sale-pay-border: #dbe5f0;
  --fp-sale-pay-soft: #f8fafc;
  --fp-sale-pay-primary: #2563eb;
  --fp-sale-pay-teal: #0f766e;
  --fp-sale-pay-green: #059669;
  --fp-sale-pay-amber: #d97706;
  width: 100%;
  color: var(--fp-sale-pay-text);
}

.fp-sale-payment-modal .form-control {
  font-weight: 700;
}

.fp-sale-payment-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--fp-sale-pay-border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(15, 118, 110, .08)),
    #fff;
}

.fp-sale-payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--fp-sale-pay-primary), var(--fp-sale-pay-teal));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

.fp-sale-payment-title {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fp-sale-payment-title span,
.fp-sale-payment-title small {
  overflow: hidden;
  color: var(--fp-sale-pay-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-sale-payment-title span {
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-sale-payment-title strong {
  overflow: hidden;
  color: var(--fp-sale-pay-text);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-sale-payment-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
}

.fp-sale-payment-status.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-sale-payment-status.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-sale-payment-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.fp-sale-payment-kpi {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--fp-sale-pay-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.fp-sale-payment-kpi span {
  display: block;
  color: var(--fp-sale-pay-muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-sale-payment-kpi strong {
  display: block;
  margin-top: 4px;
  color: var(--fp-sale-pay-text);
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
}

.fp-sale-payment-kpi.is-total {
  border-color: rgba(37, 99, 235, .22);
  background: #eff6ff;
}

.fp-sale-payment-kpi.is-paid,
.fp-sale-payment-kpi.is-clear {
  border-color: rgba(5, 150, 105, .2);
  background: #ecfdf5;
}

.fp-sale-payment-kpi.is-warning {
  border-color: rgba(217, 119, 6, .24);
  background: #fffbeb;
}

.fp-sale-payment-kpi.is-count {
  background: var(--fp-sale-pay-soft);
}

.fp-sale-payment-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.fp-sale-payment-meta > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e7edf5;
  border-radius: 12px;
  background: var(--fp-sale-pay-soft);
}

.fp-sale-payment-meta span {
  display: block;
  color: var(--fp-sale-pay-muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-sale-payment-meta strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--fp-sale-pay-text);
  font-size: .9rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-sale-payment-section {
  margin-top: 14px;
  border: 1px solid var(--fp-sale-pay-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.fp-sale-payment-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--fp-sale-pay-border);
  background: linear-gradient(180deg, #fff, var(--fp-sale-pay-soft));
}

.fp-sale-payment-section-head div {
  display: grid;
  gap: 2px;
}

.fp-sale-payment-section-head span,
.fp-sale-payment-section-head small {
  color: var(--fp-sale-pay-muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fp-sale-payment-section-head strong {
  color: var(--fp-sale-pay-text);
  font-size: .95rem;
  font-weight: 900;
}

.fp-sale-payment-list {
  display: grid;
  gap: 0;
}

.fp-sale-payment-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid #edf2f7;
}

.fp-sale-payment-row:last-child {
  border-bottom: 0;
}

.fp-sale-payment-row-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 900;
}

.fp-sale-payment-row-main,
.fp-sale-payment-row-amount {
  min-width: 0;
}

.fp-sale-payment-row label {
  display: block;
  margin-bottom: 5px;
  color: #334155;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-sale-payment-row-main small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--fp-sale-pay-muted);
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-sale-payment-money {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
}

.fp-sale-payment-money span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--fp-sale-pay-border);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: var(--fp-sale-pay-primary);
  color: #fff;
  font-weight: 900;
}

.fp-sale-payment-money .form-control {
  border-radius: 0 10px 10px 0;
  text-align: right;
}

.fp-sale-payment-empty {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  color: var(--fp-sale-pay-muted);
}

.fp-sale-payment-empty i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #eff6ff;
  color: var(--fp-sale-pay-primary);
}

.fp-sale-payment-empty strong {
  display: block;
  color: var(--fp-sale-pay-text);
  font-weight: 900;
}

.fp-sale-payment-empty span {
  display: block;
  color: var(--fp-sale-pay-muted);
}

.fp-sale-payment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.fp-sale-payment-actions .btn {
  min-width: 145px;
}

.fp-sale-payment-cancel {
  border: 1px solid #fecaca !important;
  background: #fff !important;
  color: #b91c1c !important;
}

.fp-sale-payment-save {
  border: 0 !important;
  background: linear-gradient(135deg, var(--fp-sale-pay-primary), var(--fp-sale-pay-teal)) !important;
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .fp-sale-payment-hero,
  .fp-sale-payment-row {
    grid-template-columns: 1fr;
  }

  .fp-sale-payment-icon,
  .fp-sale-payment-status,
  .fp-sale-payment-row-number {
    justify-self: start;
  }

  .fp-sale-payment-summary,
  .fp-sale-payment-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-sale-payment-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-sale-payment-row-main small,
  .fp-sale-payment-title span,
  .fp-sale-payment-title strong,
  .fp-sale-payment-title small {
    white-space: normal;
  }

  .fp-sale-payment-actions {
    flex-direction: column-reverse;
  }

  .fp-sale-payment-actions .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .fp-sale-payment-summary,
  .fp-sale-payment-meta {
    grid-template-columns: 1fr;
  }
}

/* Modal Opciones Impresion */
.fp-print-options-modal {
  --fp-print-text: #0f172a;
  --fp-print-muted: #64748b;
  --fp-print-border: #dbe5f0;
  --fp-print-soft: #f8fafc;
  --fp-print-blue: #2563eb;
  --fp-print-teal: #0f766e;
  --fp-print-violet: #6d28d9;
  --fp-print-amber: #d97706;
  color: var(--fp-print-text);
}

.fp-print-options-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--fp-print-border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(15, 118, 110, .08)),
    #fff;
}

.fp-print-options-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--fp-print-blue), var(--fp-print-teal));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

.fp-print-options-title {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fp-print-options-title span,
.fp-print-options-title small {
  overflow: hidden;
  color: var(--fp-print-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-print-options-title span {
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-print-options-title strong {
  overflow: hidden;
  color: var(--fp-print-text);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-print-options-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
}

.fp-print-options-status.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-print-options-status.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.fp-print-options-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.fp-print-options-summary > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--fp-print-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.fp-print-options-summary span {
  display: block;
  color: var(--fp-print-muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-print-options-summary strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--fp-print-text);
  font-size: .96rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-print-options-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding: 0 2px;
}

.fp-print-options-head div {
  display: grid;
  gap: 2px;
}

.fp-print-options-head span,
.fp-print-options-head small {
  color: var(--fp-print-muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-print-options-head strong {
  color: var(--fp-print-text);
  font-size: .98rem;
  font-weight: 900;
}

.fp-print-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.fp-print-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--fp-print-border);
  border-radius: 14px;
  background: #fff;
  color: var(--fp-print-text);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fp-print-option:hover,
.fp-print-option:focus {
  color: var(--fp-print-text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .12);
}

.fp-print-option:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--fp-print-blue);
}

.fp-print-option.is-teal:before {
  background: var(--fp-print-teal);
}

.fp-print-option.is-violet:before {
  background: var(--fp-print-violet);
}

.fp-print-option.is-amber:before {
  background: var(--fp-print-amber);
}

.fp-print-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #eff6ff;
  color: var(--fp-print-blue);
  font-size: 1rem;
}

.fp-print-option.is-teal .fp-print-option-icon {
  background: #ecfdf5;
  color: var(--fp-print-teal);
}

.fp-print-option.is-violet .fp-print-option-icon {
  background: #f3e8ff;
  color: var(--fp-print-violet);
}

.fp-print-option.is-amber .fp-print-option-icon {
  background: #fffbeb;
  color: var(--fp-print-amber);
}

.fp-print-option-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding-right: 28px;
}

.fp-print-option-copy strong {
  color: var(--fp-print-text);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.fp-print-option-copy em {
  color: #334155;
  font-size: .84rem;
  font-style: normal;
  font-weight: 900;
}

.fp-print-option-copy small {
  color: var(--fp-print-muted);
  font-size: .78rem;
  line-height: 1.25;
}

.fp-print-option-size {
  grid-column: 2;
  justify-self: start;
  align-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--fp-print-soft);
  color: var(--fp-print-muted);
  font-size: .72rem;
  font-weight: 900;
}

.fp-print-option-open {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--fp-print-soft);
  color: var(--fp-print-muted);
  font-size: .72rem;
}

.fp-print-options-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
  background: #eff6ff;
  color: #1e40af;
  font-size: .82rem;
  font-weight: 700;
}

.fp-print-options-note i {
  margin-top: 2px;
}

.fp-print-options-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.fp-print-options-close {
  min-width: 130px;
  border: 1px solid #fecaca !important;
  background: #fff !important;
  color: #b91c1c !important;
}

@media (max-width: 767.98px) {
  .fp-print-options-hero {
    grid-template-columns: 1fr;
  }

  .fp-print-options-icon,
  .fp-print-options-status {
    justify-self: start;
  }

  .fp-print-options-summary,
  .fp-print-options-grid {
    grid-template-columns: 1fr;
  }

  .fp-print-options-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-print-options-title span,
  .fp-print-options-title strong,
  .fp-print-options-title small {
    white-space: normal;
  }

  .fp-print-options-actions .btn {
    width: 100%;
  }
}

/* Modal Consulta de Documento */
.fp-document-query-modal {
  --fp-doc-text: #0f172a;
  --fp-doc-muted: #64748b;
  --fp-doc-border: #dbe5f0;
  --fp-doc-soft: #f8fafc;
  --fp-doc-blue: #2563eb;
  --fp-doc-teal: #0f766e;
  --fp-doc-green: #059669;
  --fp-doc-red: #dc2626;
  --fp-doc-amber: #d97706;
  color: var(--fp-doc-text);
}

.fp-document-query-alert {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 12px 13px;
  border: 1px solid var(--fp-doc-border);
  border-radius: 14px;
  background: #fff;
}

.fp-document-query-alert i {
  margin-top: 2px;
  font-size: 1rem;
}

.fp-document-query-alert strong {
  display: block;
  color: var(--fp-doc-text);
  font-weight: 900;
}

.fp-document-query-alert span {
  display: block;
  color: var(--fp-doc-muted);
  font-size: .86rem;
  line-height: 1.35;
}

.fp-document-query-alert.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.fp-document-query-alert.is-success i {
  color: var(--fp-doc-green);
}

.fp-document-query-alert.is-danger {
  border-color: #fecaca;
  background: #fef2f2;
}

.fp-document-query-alert.is-danger i {
  color: var(--fp-doc-red);
}

.fp-document-query-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--fp-doc-border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(15, 118, 110, .08)),
    #fff;
}

.fp-document-query-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--fp-doc-blue), var(--fp-doc-teal));
  color: #fff;
  font-size: 1.08rem;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .2);
}

.fp-document-query-modal.is-related .fp-document-query-icon {
  background: linear-gradient(135deg, #7c3aed, var(--fp-doc-blue));
}

.fp-document-query-title {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fp-document-query-title span,
.fp-document-query-title small {
  overflow: hidden;
  color: var(--fp-doc-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-document-query-title span {
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-document-query-title strong {
  overflow: hidden;
  color: var(--fp-doc-text);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-document-query-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
}

.fp-document-query-status.is-success {
  background: #dcfce7;
  color: #166534;
}

.fp-document-query-status.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.fp-document-query-status.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.fp-document-query-summary,
.fp-document-query-meta,
.fp-document-query-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.fp-document-query-summary > div,
.fp-document-query-meta > div,
.fp-document-query-totals > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--fp-doc-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.fp-document-query-summary > div.is-total,
.fp-document-query-totals > div.is-total {
  border-color: rgba(37, 99, 235, .22);
  background: #eff6ff;
}

.fp-document-query-summary span,
.fp-document-query-meta span,
.fp-document-query-totals span {
  display: block;
  color: var(--fp-doc-muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-document-query-summary strong,
.fp-document-query-meta strong,
.fp-document-query-totals strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--fp-doc-text);
  font-size: .96rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-document-query-reason {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
}

.fp-document-query-reason i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  color: var(--fp-doc-blue);
}

.fp-document-query-reason span {
  display: block;
  color: #1d4ed8;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-document-query-reason strong {
  display: block;
  color: #1e3a8a;
  font-weight: 900;
}

.fp-document-query-section {
  margin-top: 14px;
  border: 1px solid var(--fp-doc-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.fp-document-query-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--fp-doc-border);
  background: linear-gradient(180deg, #fff, var(--fp-doc-soft));
}

.fp-document-query-section-head div {
  display: grid;
  gap: 2px;
}

.fp-document-query-section-head span,
.fp-document-query-section-head small {
  color: var(--fp-doc-muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-document-query-section-head strong {
  color: var(--fp-doc-text);
  font-size: .98rem;
  font-weight: 900;
}

.fp-document-query-table-wrap {
  border: 0 !important;
  border-radius: 0 !important;
}

.fp-document-query-table {
  min-width: 720px;
  margin-bottom: 0;
}

.fp-document-query-table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--fp-doc-border);
  background: var(--fp-doc-soft);
  color: #334155;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fp-document-query-table td,
.fp-document-query-table th {
  vertical-align: middle;
  padding: .65rem .7rem;
  border-top-color: #edf2f7;
}

.fp-document-query-product {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.fp-document-query-product strong {
  color: var(--fp-doc-text);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.25;
}

.fp-document-query-product small {
  color: var(--fp-doc-muted);
  font-size: .75rem;
  line-height: 1.25;
}

.fp-document-query-unit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: .72rem;
  font-weight: 900;
}

.fp-document-query-empty {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  color: var(--fp-doc-muted);
}

.fp-document-query-empty i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #eff6ff;
  color: var(--fp-doc-blue);
}

.fp-document-query-empty strong {
  display: block;
  color: var(--fp-doc-text);
  font-weight: 900;
}

.fp-document-query-empty span {
  display: block;
  color: var(--fp-doc-muted);
}

.fp-document-query-totals {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fp-document-query-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.fp-document-query-close {
  min-width: 130px;
  border: 1px solid #fecaca !important;
  background: #fff !important;
  color: #b91c1c !important;
}

@media (max-width: 767.98px) {
  .fp-document-query-hero {
    grid-template-columns: 1fr;
  }

  .fp-document-query-icon,
  .fp-document-query-status {
    justify-self: start;
  }

  .fp-document-query-summary,
  .fp-document-query-meta,
  .fp-document-query-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-document-query-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fp-document-query-title span,
  .fp-document-query-title strong,
  .fp-document-query-title small {
    white-space: normal;
  }

  .fp-document-query-actions .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .fp-document-query-summary,
  .fp-document-query-meta,
  .fp-document-query-totals,
  .fp-document-query-reason {
    grid-template-columns: 1fr;
  }
}

/* FacturaPlus global palette 2026: sample-inspired professional system */
:root {
  --fp-brand-blue: #1473f9;
  --fp-brand-blue-dark: #0d57c8;
  --fp-brand-blue-soft: #eaf3ff;
  --fp-brand-cyan: #10c4e9;
  --fp-brand-cyan-soft: #d8f7ff;
  --fp-brand-green: #169653;
  --fp-brand-green-dark: #0f7a43;
  --fp-brand-green-soft: #eaf9ef;
  --fp-brand-amber: #ffb700;
  --fp-brand-amber-soft: #fff5d6;
  --fp-brand-slate: #6c7883;
  --fp-brand-slate-dark: #3f4b55;
  --fp-brand-ink: #063a4a;
  --fp-brand-text: #1f2f3a;
  --fp-brand-muted: #657783;
  --fp-brand-border: #d7e6ee;
  --fp-brand-surface: #ffffff;
  --fp-brand-bg: #f4f9fc;
  --fp-brand-danger: #e95757;
  --fp-brand-danger-soft: #fff0f0;
}

body,
.content-wrapper,
.fp-responsive-app .content-wrapper,
.fp-shell .content-wrapper.fp-content-wrapper,
.fp-module-shell .fp-module-content-wrapper,
body.fp-shell-collapsed .content-wrapper.fp-content-wrapper {
  background:
    radial-gradient(circle at 0% 0%, rgba(16, 196, 233, .10), transparent 24rem),
    linear-gradient(180deg, #f8fcff 0%, var(--fp-brand-bg) 100%) !important;
  color: var(--fp-brand-text);
}

a,
.text-primary {
  color: var(--fp-brand-blue);
}

a:hover {
  color: var(--fp-brand-blue-dark);
}

.fp-sidebar,
[class*=sidebar-dark-].fp-sidebar,
body.fp-shell-collapsed .fp-sidebar,
body.fp-shell-collapsed [class*=sidebar-dark-].fp-sidebar {
  --fp-sidebar-bg: #061c2f;
  --fp-sidebar-panel: #08243c;
  --fp-sidebar-hover: rgba(20, 115, 249, .16);
  --fp-sidebar-active-bg: linear-gradient(90deg, var(--fp-brand-blue), var(--fp-brand-cyan));
  --fp-sidebar-border: rgba(216, 247, 255, .12);
  --fp-sidebar-text: #eefaff;
  --fp-sidebar-soft: #c5dbe8;
  --fp-sidebar-muted: #8aa7b8;
  --fp-sidebar-accent: var(--fp-brand-cyan);
  background: var(--fp-sidebar-bg) !important;
}

.fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link.active,
.fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link.active,
.sidebar-dark-primary .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link.active,
body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar > .nav-item > .nav-link.active,
body.fp-shell-collapsed .fp-sidebar-nav .nav-sidebar > .nav-item.menu-open > .nav-link.active {
  background: linear-gradient(90deg, var(--fp-brand-blue), var(--fp-brand-cyan)) !important;
  box-shadow: 0 10px 20px rgba(20, 115, 249, .22) !important;
}

.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link.active,
.fp-sidebar-nav .nav-treeview > .nav-item > .nav-link:hover,
body.fp-shell-collapsed .fp-sidebar-nav .nav-treeview > .nav-item > .nav-link.active,
body.fp-shell-collapsed .fp-sidebar-nav .nav-treeview > .nav-item > .nav-link:hover {
  background: rgba(16, 196, 233, .12) !important;
  box-shadow: inset 3px 0 0 var(--fp-brand-cyan) !important;
}

.fp-topbar,
.main-header.navbar {
  border-bottom-color: var(--fp-brand-border) !important;
  background: rgba(255, 255, 255, .94) !important;
  backdrop-filter: blur(12px);
}

.fp-topbar .nav-link,
.main-header .nav-link {
  color: var(--fp-brand-slate-dark) !important;
}

.btn-primary,
.bg-primary,
.badge-primary,
.page-item.active .page-link,
.fp-responsive-app .page-item.active .page-link,
.fp-blank-layout .pagination .page-item.active .page-link,
[class*="fp-"] .page-item.active .page-link {
  border-color: var(--fp-brand-blue) !important;
  background: linear-gradient(135deg, var(--fp-brand-blue), var(--fp-brand-cyan)) !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--fp-brand-blue-dark) !important;
  background: linear-gradient(135deg, var(--fp-brand-blue-dark), #08afd4) !important;
  color: #ffffff !important;
}

.btn-info,
.bg-info,
.badge-info {
  border-color: var(--fp-brand-cyan) !important;
  background: var(--fp-brand-cyan) !important;
  color: var(--fp-brand-ink) !important;
}

.btn-success,
.bg-success,
.badge-success {
  border-color: var(--fp-brand-green) !important;
  background: var(--fp-brand-green) !important;
  color: #ffffff !important;
}

.btn-warning,
.bg-warning,
.badge-warning {
  border-color: var(--fp-brand-amber) !important;
  background: var(--fp-brand-amber) !important;
  color: #17202a !important;
}

.btn-secondary,
.bg-secondary,
.badge-secondary {
  border-color: var(--fp-brand-slate) !important;
  background: var(--fp-brand-slate) !important;
  color: #ffffff !important;
}

.btn-danger,
.bg-danger,
.badge-danger {
  border-color: var(--fp-brand-danger) !important;
  background: var(--fp-brand-danger) !important;
  color: #ffffff !important;
}

.btn-outline-primary,
.page-link,
[class*="fp-"] .page-link {
  border-color: var(--fp-brand-border) !important;
  color: var(--fp-brand-blue) !important;
}

.btn-outline-primary:hover,
.page-link:hover,
[class*="fp-"] .page-link:hover {
  border-color: var(--fp-brand-cyan) !important;
  background: var(--fp-brand-cyan-soft) !important;
  color: var(--fp-brand-ink) !important;
}

.card,
.modal-content,
.fp-responsive-app .card,
.fp-blank-layout .card,
[class*="fp-"][class*="-card"],
[class*="fp-"][class*="-panel"] {
  border-color: var(--fp-brand-border) !important;
  box-shadow: 0 14px 30px rgba(6, 58, 74, .08);
}

.card-header,
.fp-responsive-app .card-header,
.fp-blank-layout .card-header {
  border-bottom-color: var(--fp-brand-border) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%) !important;
  color: var(--fp-brand-ink) !important;
}

.modal-header,
.fp-responsive-app .modal-header,
[class*="fp-"][class*="-modal"] .modal-header,
.fp-salei-presentation-modal .modal-header,
.fp-pos-presentation-modal .modal-header,
.fp-venta-presentation-modal .modal-header {
  border-bottom: 0 !important;
  background: linear-gradient(135deg, var(--fp-brand-blue), var(--fp-brand-blue-dark)) !important;
  color: #ffffff !important;
}

.modal-header .modal-title,
.modal-header h4,
.modal-header h5,
.modal-header small,
.modal-header .close,
[class*="fp-"][class*="-modal"] .modal-header .close {
  color: #ffffff !important;
}

.form-control:focus,
.custom-select:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--fp-brand-cyan) !important;
  box-shadow: 0 0 0 .18rem rgba(16, 196, 233, .18) !important;
}

.form-control,
.custom-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-color: var(--fp-brand-border) !important;
  color: var(--fp-brand-text);
}

.table thead th,
.table thead td,
table.dataTable thead th,
table.dataTable thead td,
.fp-responsive-app table.dataTable thead th {
  border-color: #0b5fcf !important;
  background: linear-gradient(135deg, var(--fp-brand-blue), var(--fp-brand-blue-dark)) !important;
  color: #ffffff !important;
}

.table-hover tbody tr:hover,
table.dataTable tbody tr:hover {
  background: rgba(16, 196, 233, .08) !important;
}

.dataTables_wrapper,
.fp-responsive-app .dataTables_wrapper {
  border-color: var(--fp-brand-border) !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.fp-responsive-app .dataTables_wrapper .dataTables_filter input,
.fp-responsive-app .dataTables_wrapper .dataTables_length select {
  border-color: var(--fp-brand-border) !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--fp-brand-cyan) !important;
  box-shadow: 0 0 0 .18rem rgba(16, 196, 233, .18) !important;
}

.alert-info,
.callout.callout-info {
  border-color: #8fe7f5 !important;
  background: var(--fp-brand-cyan-soft) !important;
  color: var(--fp-brand-ink) !important;
}

.alert-success,
.callout.callout-success {
  border-color: #b8ebcc !important;
  background: var(--fp-brand-green-soft) !important;
  color: #0f6a3b !important;
}

.alert-warning,
.callout.callout-warning {
  border-color: #ffe09a !important;
  background: var(--fp-brand-amber-soft) !important;
  color: #6b4a00 !important;
}

.alert-danger,
.callout.callout-danger {
  border-color: #ffcaca !important;
  background: var(--fp-brand-danger-soft) !important;
  color: #9d2424 !important;
}

.badge-precio,
.fp-product-info-badges span.is-info,
.fp-bvendedor-badge.is-info,
.fp-document-query-unit {
  background: var(--fp-brand-cyan-soft) !important;
  color: var(--fp-brand-ink) !important;
}

.fp-product-info-badges span.is-success,
.fp-bvendedor-badge.is-success {
  background: var(--fp-brand-green-soft) !important;
  color: #0f6a3b !important;
}

.fp-diff-badge.is-warning,
.fp-product-info-badges span.is-warning {
  background: var(--fp-brand-amber-soft) !important;
  color: #6b4a00 !important;
}

.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
  border-color: var(--fp-brand-cyan) !important;
  background: linear-gradient(135deg, var(--fp-brand-blue), var(--fp-brand-cyan)) !important;
  color: #ffffff !important;
}

.small-box,
.info-box {
  border-radius: 12px;
  border: 1px solid var(--fp-brand-border);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(6, 58, 74, .08);
}

.fp-navy-dashboard {
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 196, 233, .18), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(22, 150, 83, .12), transparent 24rem),
    linear-gradient(180deg, #f7fcff 0%, #eef8fc 100%) !important;
  color: var(--fp-brand-text) !important;
}

.fp-navy-shell {
  border-color: rgba(16, 196, 233, .24) !important;
  background:
    linear-gradient(90deg, rgba(20, 115, 249, .045) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(rgba(16, 196, 233, .04) 1px, transparent 1px) 0 0/72px 72px,
    rgba(255, 255, 255, .94) !important;
  box-shadow: 0 24px 70px rgba(6, 58, 74, .12) !important;
}

.fp-navy-title h1,
.fp-navy-panel-head h2,
.fp-navy-income-card strong,
.fp-navy-gauge-inner strong,
.fp-navy-kpi-row strong,
.fp-navy-branch-list strong,
.fp-navy-list strong,
.fp-navy-profit-list strong,
.fp-navy-table strong,
.fp-navy-radial strong {
  color: var(--fp-brand-ink) !important;
}

.fp-navy-title span,
.fp-navy-panel-head span,
.fp-navy-income-card span,
.fp-navy-trend-card span,
.fp-navy-kpi-row span,
.fp-navy-gauge-footer span,
.fp-navy-finance-row span,
.fp-navy-summary-grid span {
  color: var(--fp-brand-blue) !important;
}

.fp-navy-title p,
.fp-navy-income-card small,
.fp-navy-trend-card small,
.fp-navy-kpi-row small,
.fp-navy-branch-list small,
.fp-navy-list small,
.fp-navy-profit-list small,
.fp-navy-table small,
.fp-navy-gauge-inner span,
.fp-navy-gauge-inner small,
.fp-navy-radial span,
.fp-navy-radial-stats span,
.fp-navy-finance-row small {
  color: var(--fp-brand-muted) !important;
}

.fp-navy-filter,
.fp-navy-actions a,
.fp-navy-income-card,
.fp-navy-trend-card,
.fp-navy-panel,
.fp-navy-gauge-card,
.fp-navy-kpi-row article {
  border-color: var(--fp-brand-border) !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 14px 28px rgba(6, 58, 74, .08) !important;
}

.fp-navy-income-card.is-green {
  background: linear-gradient(135deg, var(--fp-brand-cyan-soft), #ffffff) !important;
}

.fp-navy-income-card.is-blue {
  background: linear-gradient(135deg, var(--fp-brand-blue-soft), #ffffff) !important;
}

.fp-navy-income-card.is-purple {
  background: linear-gradient(135deg, #edf2ff, #ffffff) !important;
}

.fp-navy-income-card button,
.fp-navy-panel-head button {
  background: rgba(20, 115, 249, .10) !important;
  color: var(--fp-brand-blue) !important;
}

.fp-navy-bars-mini i,
.fp-navy-branch-list em i,
.fp-navy-profit-list em i {
  background: linear-gradient(90deg, var(--fp-brand-blue), var(--fp-brand-cyan), var(--fp-brand-green)) !important;
}

.fp-navy-gauge-card {
  background: radial-gradient(circle at 50% 45%, #ffffff, #f1fbff 72%, #eaf9ef 100%) !important;
}

.fp-navy-gauge {
  background: conic-gradient(from -125deg, var(--fp-brand-slate) 0 54deg, var(--fp-brand-amber) 54deg 118deg, var(--fp-brand-green) 118deg 214deg, var(--fp-brand-cyan) 214deg 300deg, var(--fp-brand-blue) 300deg 360deg) !important;
  box-shadow: 0 0 0 1px rgba(16, 196, 233, .18), 0 18px 52px rgba(6, 58, 74, .14) !important;
}

.fp-navy-gauge::before {
  background: radial-gradient(circle, #ffffff 0%, #f7fcff 66%, #eaf6fb 100%) !important;
  box-shadow: inset 0 0 28px rgba(20, 115, 249, .08) !important;
}

.fp-navy-gauge::after {
  background: conic-gradient(from -125deg, transparent 0 var(--angle), rgba(247, 252, 255, .78) var(--angle) 360deg) !important;
}

.fp-navy-gauge-footer div,
.fp-navy-finance-row div,
.fp-navy-summary-grid div,
.fp-navy-branch-list div,
.fp-navy-list div,
.fp-navy-profit-list div,
.fp-navy-radial-stats span,
.fp-navy-table td {
  border-color: rgba(20, 115, 249, .10) !important;
  background: rgba(246, 251, 255, .9) !important;
  color: var(--fp-brand-text) !important;
}

.fp-navy-radial {
  background:
    radial-gradient(circle, rgba(255,255,255,.98) 0 34%, transparent 35%),
    conic-gradient(from -90deg, var(--score-color, var(--fp-brand-blue)) 0 var(--score, 0%), rgba(216, 230, 238, .78) var(--score, 0%) 100%) !important;
  box-shadow: inset 0 0 30px rgba(20, 115, 249, .06), 0 16px 38px var(--score-glow, rgba(20,115,249,.18)) !important;
}

.fp-navy-radial::after {
  background: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(16,196,233,.14), 0 0 32px var(--score-glow, rgba(20,115,249,.18)) !important;
}

.fp-navy-table th {
  color: var(--fp-brand-blue) !important;
  background: rgba(216, 247, 255, .7) !important;
}

.fp-navy-page-btn.is-active,
.fp-navy-filter button {
  background: linear-gradient(135deg, var(--fp-brand-blue), var(--fp-brand-cyan)) !important;
  color: #ffffff !important;
}

.fp-navy-status.saludable {
  background: var(--fp-brand-green) !important;
}

.fp-navy-status.bajo {
  background: var(--fp-brand-amber) !important;
  color: #17202a !important;
}

.fp-navy-status.negativo {
  background: var(--fp-brand-danger) !important;
}
