/* =========================================================
   Facturador FEL - REMAXA
   Tema visual (se carga después de Bootstrap 4)
   ========================================================= */
:root {
  --navy-900: #0b1c44;
  --navy-800: #0f2556;
  --navy-700: #16306b;
  --navy-600: #1e3d84;
  --red-600: #e0222e;
  --red-700: #c3151f;
  --red-50: #fdecee;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --text: #17254a;
  --muted: #6b7794;
  --line: #e6eaf2;
  --line-strong: #d7dde9;
  --green: #12935a;
  --green-50: #e6f6ee;
  --blue: #2557d6;
  --blue-50: #e9effd;
  --amber: #c27803;
  --amber-50: #fdf3e1;
  --gray-50: #eef1f6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 37, 86, .04), 0 4px 18px rgba(15, 37, 86, .06);
  --sidebar-w: 264px;
  --topbar-h: 60px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body { height: 100%; }
body.app {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
a:hover { color: var(--navy-700); text-decoration: none; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- Sidebar ---------- */
.app-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1040;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #c9d3ea; display: flex; flex-direction: column;
  transition: width .2s ease, transform .2s ease;
}
.sb-brand {
  height: var(--topbar-h); display: flex; align-items: center; gap: 12px;
  padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -.2px; white-space: nowrap;
}
.sb-brand:hover { color: #fff; }
.sb-brand img { width: 38px; height: 38px; }
.sb-brand span b { color: var(--red-600); font-weight: 800; }
.sb-search { padding: 18px 18px 6px; }
.sb-search label {
  display: flex; align-items: center; gap: 10px; margin: 0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px; padding: 9px 12px; color: #9fb0d4;
}
.sb-search input {
  background: transparent; border: 0; outline: 0; color: #fff; width: 100%; font-size: 13.5px;
}
.sb-search input::placeholder { color: #9fb0d4; }
.sb-nav { flex: 1; overflow-y: auto; padding: 8px 14px; }
.sb-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: #7f8fb5; padding: 16px 12px 6px; white-space: nowrap;
}
.sb-link {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px; margin: 2px 0;
  color: #c9d3ea; border-radius: 10px; font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s;
}
.sb-link .ico { width: 19px; height: 19px; opacity: .9; }
.sb-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sb-link.active {
  background: rgba(255,255,255,.10); color: #fff;
  box-shadow: inset 3px 0 0 var(--red-600);
}
.sb-user {
  margin: 12px 14px; padding: 12px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
}
.sb-avatar {
  position: relative; width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  background: var(--navy-600); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; text-transform: uppercase;
}
.sb-avatar::after {
  content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px;
  background: #22c55e; border: 2px solid var(--navy-900); border-radius: 50%;
}
.sb-user .who { flex: 1; min-width: 0; line-height: 1.25; }
.sb-user .who strong { color: #fff; display: block; overflow: hidden; text-overflow: ellipsis; }
.sb-user .who small { color: #9fb0d4; }
.sb-user .out { color: #9fb0d4; padding: 6px; border-radius: 8px; display: flex; }
.sb-user .out:hover { color: #fff; background: rgba(255,255,255,.08); }
.sb-foot {
  font-size: 11px; color: #8394bb; text-align: center; padding: 10px 16px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sb-foot b { color: #c9d3ea; }

/* ---------- Main / Topbar ---------- */
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin .2s ease; }
.app-topbar {
  position: sticky; top: 0; z-index: 1030; height: var(--topbar-h);
  background: linear-gradient(90deg, var(--red-700) 0%, var(--red-600) 55%, #d81e2b 100%);
  color: #fff; display: flex; align-items: center; gap: 14px; padding: 0 20px;
  box-shadow: 0 2px 12px rgba(195, 21, 31, .25);
}
.tb-btn {
  background: transparent; border: 0; color: #fff; width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.tb-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.tb-btn:focus { outline: 0; }
.tb-crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tb-crumbs a { color: rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: 6px; }
.tb-crumbs a:hover { color: #fff; }
.tb-crumbs .ico { width: 16px; height: 16px; }
.tb-crumbs .sep { opacity: .6; }
.tb-crumbs strong { font-weight: 700; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.app-content { flex: 1; padding: 28px 28px 40px; }

/* ---------- Encabezado de página ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 26px; font-weight: 800; color: var(--navy-800); margin: 0; letter-spacing: -.4px; }
.page-head h1 strong { font-weight: 800; }
.page-head p { color: var(--muted); margin: 4px 0 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Panel (tarjeta) ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 22px;
}
.panel > .row:first-child { margin-top: 0; }
.panel h2, .panel-title { font-size: 16px; font-weight: 700; color: var(--navy-800); margin: 0 0 14px; }
.panel-sub { color: var(--muted); font-size: 13px; margin: -8px 0 16px; }

/* ---------- Botones ---------- */
.btn {
  font-weight: 600; border-radius: var(--radius-sm); font-size: 13.5px;
  padding: 8px 16px; transition: all .15s; letter-spacing: .1px;
}
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.btn .oi { top: 1px; margin-right: 2px; }
.btn:focus, .btn.focus { box-shadow: 0 0 0 3px rgba(224, 34, 46, .18) !important; }
.btn-primary { background: var(--red-600); border-color: var(--red-600); box-shadow: 0 4px 12px rgba(224,34,46,.25); }
.btn-primary:hover, .btn-primary:not(:disabled):active { background: var(--red-700) !important; border-color: var(--red-700) !important; }
.btn-success { background: var(--green); border-color: var(--green); }
.btn-success:hover { background: #0e7a4a; border-color: #0e7a4a; }
.btn-danger { background: #fff; border-color: #f3c1c5; color: var(--red-700); }
.btn-danger:hover, .btn-danger:not(:disabled):active { background: var(--red-50) !important; border-color: var(--red-600) !important; color: var(--red-700) !important; }
.btn-warning { background: #f59e0b; border-color: #f59e0b; color: #fff !important; }
.btn-warning:hover { background: #d97706; border-color: #d97706; }
.btn-info { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-info:hover { background: var(--navy-800); border-color: var(--navy-800); }
.btn-secondary { background: #fff; border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: var(--gray-50); color: var(--text); border-color: var(--line-strong); }
.btn-light { background: #fff; border-color: var(--line-strong); color: var(--text); }
.btn-light:hover { background: var(--gray-50); }
.btn-outline-primary, .btn-outline-success {
  background: #fff; border-color: var(--line-strong); color: var(--navy-700);
}
.btn-outline-primary:hover, .btn-outline-success:hover,
.btn-outline-primary:not(:disabled):active, .btn-outline-success:not(:disabled):active {
  background: var(--gray-50) !important; color: var(--navy-800) !important; border-color: var(--line-strong) !important;
}
.btn:disabled, .btn.disabled { opacity: .45; box-shadow: none; }
.btn .badge {
  background: rgba(255,255,255,.25); color: inherit; border-radius: 20px;
  padding: 3px 7px; margin-left: 4px; font-weight: 700;
}
.btn-danger .badge { background: var(--red-50); }
.btn .badge:empty { display: none; }

/* Filtro de estados como pestañas segmentadas */
#filtros_estado {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  background: var(--gray-50); border-radius: 12px;
}
#filtros_estado .btn {
  background: transparent !important; border: 0 !important; color: var(--muted) !important;
  border-radius: 9px !important; font-size: 12px; letter-spacing: .3px; padding: 8px 14px;
  box-shadow: none !important; margin: 0 !important; flex: 0 0 auto;
}
#filtros_estado .btn:hover { color: var(--navy-800) !important; }
#filtros_estado .btn.active {
  background: #fff !important; color: var(--navy-800) !important;
  box-shadow: 0 1px 3px rgba(15,37,86,.14) !important;
}

/* Chips de filtros rápidos */
.action-filtro {
  border-radius: 20px !important; background: #fff; border: 1px solid var(--line-strong) !important;
  color: var(--muted) !important; font-size: 11.5px !important; letter-spacing: .3px;
  padding: 5px 12px !important; margin: 0 6px 6px 0 !important;
}
.action-filtro:hover { color: var(--red-700) !important; border-color: #f3c1c5 !important; background: var(--red-50) !important; }

/* Barra de herramientas dentro del panel */
.toolbar-acciones { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 991px) { .toolbar-acciones { justify-content: flex-start; margin-top: 12px; } }
.panel-sep { border-top: 1px solid var(--line); margin: 18px -24px; }

/* ---------- Formularios ---------- */
.form-control, .custom-select {
  border-radius: var(--radius-sm); border-color: var(--line-strong); color: var(--text);
  font-size: 14px; height: calc(1.5em + 1rem + 2px); padding: .5rem .85rem;
}
.form-control-sm, .input-group-sm .form-control { height: calc(1.5em + .6rem + 2px); font-size: 13px; }
.form-control:focus { border-color: #f08b92; box-shadow: 0 0 0 3px rgba(224,34,46,.12); }
#filtro-listado {
  width: min(460px, 70vw) !important; padding-left: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7794' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 13px center;
}
label small, .formulario-productos label { color: var(--muted) !important; font-weight: 600; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
input[type=checkbox] { accent-color: var(--red-600); cursor: pointer; }
.checkbox-1x, .checkbox-2x { transform: none !important; -webkit-transform: none !important; width: 17px; height: 17px; vertical-align: middle; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { color: var(--text); margin-bottom: 0; }
.table-bordered, .table-bordered td, .table-bordered th { border: 0 !important; }
.table thead td, .table thead th {
  background: #f8f9fc; color: var(--muted); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; border-top: 0 !important;
  border-bottom: 1px solid var(--line) !important; padding: 13px 16px; white-space: nowrap; vertical-align: middle;
}
.table td, .table tbody th { padding: 14px 16px; vertical-align: middle; border-top: 1px solid var(--line) !important; }
.table tbody tr:first-child td, .table tbody tr:first-child th { border-top: 0 !important; }
.table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #f8f9fc; }
.table-sm td, .table-sm th { padding: 9px 12px; }
#table-facturas tbody td:nth-child(2) { font-weight: 700; color: var(--navy-800); white-space: nowrap; }
#table-facturas tbody td:first-child, #table-facturas thead td:first-child { width: 44px; }
.trselected, .trselected td { background: #fff3f4 !important; }
.trselected td:first-child { box-shadow: inset 3px 0 0 var(--red-600); }
.thead-dark th { background: var(--navy-800) !important; color: #fff !important; border-color: var(--navy-800) !important; }
tfoot.bg-dark, tfoot.bg-dark th, tfoot.bg-dark td { background: var(--navy-800) !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }

/* Estados (pills) */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-success { background: var(--green-50); color: var(--green); }
.pill-info { background: var(--blue-50); color: var(--blue); }
.pill-danger { background: var(--red-50); color: var(--red-700); }
.pill-warning { background: var(--amber-50); color: var(--amber); }
.pill-muted { background: var(--gray-50); color: var(--muted); }

/* Pie de tabla y paginación */
.table-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px;
}
.table-footer #status-pagination { margin: 0 !important; color: var(--muted) !important; text-align: left !important; }
.paginations { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-pagination {
  margin: 0 !important; background: #fff !important; color: var(--text) !important;
  border: 1px solid var(--line-strong) !important; box-shadow: none !important; font-size: 13px; padding: 7px 14px;
}
.btn-pagination:hover:not(:disabled) { background: var(--gray-50) !important; }
.btn-pagination .oi { font-size: 10px; top: 0; }

/* ---------- Tarjetas, alertas, modales ---------- */
.card { border-radius: 12px; border-color: var(--line); overflow: hidden; margin-bottom: 10px; }
.card-header { background: #fff; border-bottom: 1px solid var(--line); }
.card-header a { color: var(--navy-800); }
.card-header .text-secondary { color: var(--navy-800) !important; }
.alert { border-radius: 12px; border: 1px solid transparent; font-weight: 500; }
.alert-danger { background: var(--red-50); color: var(--red-700); border-color: #f6c9cd; }
.alert-success { background: var(--green-50); color: var(--green); border-color: #bfe7d2; }
.alert-info { background: var(--blue-50); color: var(--blue); border-color: #cfdcfb; }
.modal-content { border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(11,28,68,.25); }
.modal-header { border-bottom-color: var(--line); padding: 18px 24px; }
.modal-title { font-weight: 800; color: var(--navy-800); }
.modal-body { padding: 20px 24px; }
.modal-footer { border-top-color: var(--line); }
.text-info { color: var(--blue) !important; }
.text-danger { color: var(--red-700) !important; }
.text-success { color: var(--green) !important; }

/* ---------- Escritorio ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.dash-welcome {
  grid-column: span 8; position: relative; overflow: hidden; color: #fff; border: 0;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  display: flex; align-items: center; gap: 24px; padding: 28px 30px; margin: 0;
}
.dash-welcome::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,34,46,.35), transparent 70%);
}
.dash-welcome img { width: 92px; height: 92px; position: relative; z-index: 1; }
.dash-welcome h2 { color: #fff; font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.dash-welcome p { color: #c9d3ea; margin: 0; }
.dash-token { grid-column: span 4; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.dash-token .k { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.dash-token .k span.ic {
  width: 36px; height: 36px; border-radius: 10px; background: var(--red-50); color: var(--red-600);
  display: inline-flex; align-items: center; justify-content: center;
}
.dash-token #fecha { font-size: 15px; color: var(--navy-800); font-weight: 700; line-height: 1.5; }
.dash-token #fecha strong { display: inline-block; margin-top: 4px; }
.dash-link {
  grid-column: span 4; margin: 0; display: flex; align-items: center; gap: 16px; color: var(--text);
  transition: transform .15s, box-shadow .15s;
}
.dash-link:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,37,86,.10); }
.dash-link .ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.dash-link .ic .ico { width: 22px; height: 22px; }
.dash-link strong { display: block; color: var(--navy-800); font-size: 15px; }
.dash-link small { color: var(--muted); }
.dash-link .go { margin-left: auto; color: var(--muted); }
@media (max-width: 1199px) { .dash-welcome, .dash-token { grid-column: span 12; } .dash-link { grid-column: span 6; } }
@media (max-width: 767px) { .dash-link { grid-column: span 12; } .dash-welcome { flex-direction: column; text-align: center; } }

/* ---------- Sidebar colapsado / móvil ---------- */
@media (min-width: 992px) {
  body.sb-mini { --sidebar-w: 78px; }
  body.sb-mini .sb-brand span, body.sb-mini .sb-search, body.sb-mini .sb-link span,
  body.sb-mini .sb-label, body.sb-mini .sb-user .who, body.sb-mini .sb-user .out, body.sb-mini .sb-foot { display: none; }
  body.sb-mini .sb-brand { padding: 0; justify-content: center; }
  body.sb-mini .sb-link { justify-content: center; padding: 12px 0; }
  body.sb-mini .sb-user { justify-content: center; padding: 10px 0; }
}
.sb-overlay { display: none; }
@media (max-width: 991px) {
  .app-sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .app-main { margin-left: 0; }
  body.sb-open .app-sidebar { transform: none; }
  body.sb-open .sb-overlay { display: block; position: fixed; inset: 0; background: rgba(11,28,68,.45); z-index: 1035; }
  .app-content { padding: 20px 16px 32px; }
  .panel { padding: 18px 16px; }
  .panel-sep { margin: 16px -16px; }
  .tb-crumbs a span { display: none; }
}

/* =========================================================
   Pantalla de inicio de sesión
   ========================================================= */
body.login {
  font-family: var(--font); min-height: 100vh; margin: 0; color: #fff;
  background: var(--navy-900) url("../images/bg-login.svg") center / cover no-repeat;
  display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
}
body.login::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 0% 100%, rgba(224,34,46,.28), transparent 45%),
              radial-gradient(ellipse at 50% 40%, rgba(11,28,68,.0), rgba(11,28,68,.55) 80%);
}
.login-back {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  color: #dbe3f4; font-size: 14px; margin: 18px 22px; align-self: flex-start;
}
.login-back:hover { color: #fff; }
.login-back .ico { width: 16px; height: 16px; }
.login-wrap { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.form-login { width: 100%; max-width: 330px; text-align: center; }
.login-logo { width: 104px; height: 104px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); margin-bottom: 14px; }
.login-title { font-size: 15px; color: #c9d3ea; font-weight: 500; margin: 0 0 30px; letter-spacing: .2px; }
.login-field {
  display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.28);
  padding: 12px 6px; margin-bottom: 18px; transition: border-color .15s; color: #c9d3ea;
}
.login-field:focus-within { border-color: #fff; color: #fff; }
.login-field input {
  flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-size: 15.5px; min-width: 0;
}
.login-field input::placeholder { color: #b9c4de; }
.login-field input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.login-eye { background: transparent; border: 0; color: #b9c4de; padding: 0; cursor: pointer; display: flex; }
.login-eye:hover { color: #fff; }
.login-eye:focus { outline: 0; }
.btn-login {
  width: 100%; margin-top: 22px; border: 0; border-radius: 30px; padding: 14px; font-size: 15.5px;
  font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #ea2a37 0%, var(--red-700) 100%);
  box-shadow: 0 10px 30px rgba(224,34,46,.45); transition: transform .12s, box-shadow .12s;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(224,34,46,.55); }
.btn-login:disabled { opacity: .7; transform: none; }
.login-msg { min-height: 24px; margin-top: 18px; }
.login-msg .alert { padding: 10px 14px; background: rgba(224,34,46,.16); border: 1px solid rgba(255,120,130,.45); color: #ffd7da; text-align: left; font-size: 13.5px; }
.login-foot { position: relative; z-index: 1; text-align: center; font-size: 12.5px; color: #a9b6d4; padding: 18px; }
.login-foot b { color: #e3e9f6; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Ajustes */
.toolbar-acciones { align-items: flex-start; align-content: flex-start; }
@media (min-width: 1200px) { .toolbar-acciones { justify-content: flex-end; } }
@media (max-width: 1199px) { .toolbar-acciones { justify-content: flex-start; margin-top: 12px; } }
body.login a { text-decoration: none; }
select.form-control { padding-top: 0; padding-bottom: 0; }
.form-control-sm, .input-group-sm .form-control { padding: .25rem .6rem; }
#table-facturas td:nth-child(3) { white-space: nowrap; }
@media (max-width: 991px) {
  .app-sidebar { box-shadow: none; }
  body.sb-open .app-sidebar { box-shadow: 0 0 40px rgba(0,0,0,.3); }
}
