.datepicker .prev:before,.datepicker .next:before {
    top: 8px;
}

.modomovil table.dataTable {
   font-size: 11px !important;
}

.modomovil .tooltablas .btn {
    font-size: 10.5px !important;
}

.modomovil .btn {
    padding: 4px 0.44rem !important;
}

.modomovil div.dataTables_wrapper .btn-icon.btn-sm {
    width: 19px !important;
}

.ui-autocomplete .widget-list-item .widget-list-media.icon {
    width: 35px;
    height: 35px;
    padding: 0;
}
.dataTable tfoot{
display: table-header-group !important; 
}
.noty-panel {
    position: fixed;
    right: -175px;
    top: 150px;
    z-index: 1021;
    background: #fff;
    padding: 15px;
    width: 175px;
    -webkit-transition: right .2s linear;
    -moz-transition: right .2s linear;
    -ms-transition: right .2s linear;
    -o-transition: right .2s linear;
    transition: right .2s linear;
    -webkit-border-radius: 4px 0 0 4px;
    border-radius: 4px 0 0 4px;
}

.noty-panel .notification_title {
    position: relative;
    padding-bottom: 5px;
    font-size: 13px;
    font-weight: bold;
    line-height: 20px;
    color: #1e2736;
    word-wrap: break-word;
}

.noty-panel .notification_entry {
    font-size: 12.5px;
    line-height: 18px;
}


.bodypanelboty a {
    color: unset;
    text-decoration: none;
    background-color: transparent;
}

.bodypanelboty a:hover {
    background-color: #C8C8C8;
}

.noty-panel .notification_date {
    display: inline-block;
    font-size: 11px;
    padding: 4px 0px 0px 0px;
    opacity: .7;
    width: 100%;
    text-align: right;
}

.noty-panel .notification_container {
border-top: 1px solid #EDF0F2;
padding: 5px 0px;
}

.noty-panel.theme-panel-lg .theme-panel-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: scroll;
    margin: 0;
    padding: 20px;
}

.noty-panel.theme-panel-lg {
    top: 0;
    bottom: 0;
    width: 205px;
    right: -230px;
}

.noty-panel.theme-panel-lg {
    top: 0;
    bottom: 0;
    width: 360px;
    right: -360px;
}

.noty-panel.theme-panel-lg.active {
    right: 0;
}

.noty-panel.active {
    right: 0;
    -webkit-box-shadow: 0 5px 25px rgba(0,0,0,.3);
    box-shadow: 0 5px 25px rgba(0,0,0,.3);
}

.noty-panel.theme-panel-lg .theme-collapse-btn {
    top: 30%;
}

.noty-panel .theme-collapse-btn {
    position: absolute;
    left: -30px;
    top: 10%;
    margin-top: -15px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 18px;
    color: #2d353c;
    background: #fff;
    text-align: center;
    -webkit-border-radius: 4px 0 0 4px;
    border-radius: 4px 0 0 4px;
    -webkit-box-shadow: 0 0 15px 0 rgba(0,0,0,.15);
    box-shadow: 0 0 15px 0 rgba(0,0,0,.15);
}

.noty-panel.active .theme-collapse-btn .fa:before {
    content: '\f00d';
}

.td-largo{
white-space:normal !important;
width:100%;
}

.ui-autocomplete .widget-list-item .widget-list-media img {
    max-width: 100%;
    max-height: 100%;
}

.ui-autocomplete .ui-menu-item {
    height: 48px;
}

/* ============================================
   ColombiaWisp - Tools popover (Usuarios -> Herramientas)
   Bootstrap popover: .popover.popover-app / .popover-header-tool-app / .app-tool
   ============================================ */

.popover{
  z-index: 1085;
}

.popover.popover-app{
  border-radius: 18px !important;
  border: 1px solid rgba(var(--cw-accent-rgb), 0.35) !important;
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 22px 70px rgba(2,6,23,0.20) !important;
  overflow: visible;
  position: relative;
  width: 640px;
  max-width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 120px);
}

.popover.popover-app .popover-header-tool-app{
  padding: 10px 12px;
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--cw-accent-contrast, #0B1220) !important;
  background:
    linear-gradient(90deg, rgba(var(--cw-accent-rgb), 0.92), rgba(var(--cw-accent-rgb), 0.78)) !important;
  border: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popover.popover-app .popover-header-tool-app .close{
  appearance: none;
  border: 0;
  background: rgba(0,0,0,0.08);
  color: var(--cw-accent-contrast, #0B1220) !important;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  line-height: 28px;
  font-size: 16px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.popover.popover-app .popover-header-tool-app .close:hover{
  background: rgba(0,0,0,0.14);
}

/* === Force visibility of the popover close button (.cwisp-popover-close)
   Bootstrap 4 and other inherited styles sometimes hide `.close` inside
   `.popover-header`. These rules make sure the button is always rendered. */
.popover.popover-app .popover-header-tool-app .cwisp-popover-close,
.popover.popover-app .popover-header-tool-app .close.cwisp-popover-close{
  visibility: visible !important;
  display: inline-flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.popover.popover-app .popover-header-tool-app .cwisp-popover-title-text{
  flex: 1 1 auto;
  display: inline-block;
}

/* Close button floating variant (rendered inside .popover-body) */
.popover.popover-app .cwisp-popover-close-float{
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 20 !important;
  visibility: visible !important;
  display: inline-flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.popover.popover-app .popover-body{
  padding: 12px !important;
  overflow: auto;
  max-height: calc(100vh - 190px);
}

/* 2-column layout for Herramientas actions (JS wraps actions into .cwisp-tools-grid) */
.popover.popover-app .cwisp-tools-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 520px){
  .popover.popover-app{
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }
  .popover.popover-app .cwisp-tools-grid{
    grid-template-columns: 1fr;
  }
}

.popover.popover-app .cwisp-tools-grid .btn,
.popover.popover-app .cwisp-tools-grid a{
  margin: 0 !important;
  white-space: normal !important;
  word-break: break-word;
  line-height: 1.15;
  align-items: flex-start !important;
}

.popover.popover-app .cwisp-tools-grid .btn i,
.popover.popover-app .cwisp-tools-grid a i,
.popover.popover-app .cwisp-tools-grid .btn .fa,
.popover.popover-app .cwisp-tools-grid a .fa{
  margin-top: 1px;
}
.popover.popover-app .app-tool .modal-body{
  padding: 0 !important;
}
.popover.popover-app .app-tool label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 900;
  color: rgba(15,23,42,0.62);
  margin: 0 0 8px;
}

/* Turn all actions into a clean vertical list */
.popover.popover-app .app-tool .btn,
.popover.popover-app .app-tool a{
  width: 100% !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px !important;
  margin: 0 0 8px 0 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15,23,42,0.10) !important;
  background: rgba(255,255,255,0.92) !important;
  color: rgba(15,23,42,0.86) !important;
  font-weight: 800;
  text-align: left !important;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
  white-space: nowrap;
}
.popover.popover-app .app-tool .btn:last-child,
.popover.popover-app .app-tool a:last-child{
  margin-bottom: 0 !important;
}
.popover.popover-app .app-tool .btn:hover,
.popover.popover-app .app-tool a:hover{
  transform: translateY(-1px);
  border-color: rgba(var(--cw-accent-rgb), 0.32) !important;
  box-shadow: 0 14px 30px rgba(2,6,23,0.10);
  background: rgba(var(--cw-accent-rgb), 0.08) !important;
}
.popover.popover-app .app-tool .btn i,
.popover.popover-app .app-tool a i,
.popover.popover-app .app-tool .btn .fa,
.popover.popover-app .app-tool a .fa{
  width: 22px;
  text-align: center;
  color: var(--cw-accent) !important;
  opacity: .95;
}

/* Special emphasis for destructive actions */
.popover.popover-app .app-tool .btn.btn-danger,
.popover.popover-app .app-tool .btn.text-danger{
  border-color: rgba(220, 38, 38, 0.22) !important;
  background: rgba(220, 38, 38, 0.06) !important;
}
.popover.popover-app .app-tool .btn.btn-danger:hover,
.popover.popover-app .app-tool .btn.text-danger:hover{
  background: rgba(220, 38, 38, 0.10) !important;
}

/* Popover arrow should match the new border */
.popover.popover-app.bs-popover-left > .arrow::before,
.popover.popover-app.bs-popover-right > .arrow::before,
.popover.popover-app.bs-popover-top > .arrow::before,
.popover.popover-app.bs-popover-bottom > .arrow::before{
  border-left-color: rgba(var(--cw-accent-rgb), 0.35) !important;
  border-right-color: rgba(var(--cw-accent-rgb), 0.35) !important;
  border-top-color: rgba(var(--cw-accent-rgb), 0.35) !important;
  border-bottom-color: rgba(var(--cw-accent-rgb), 0.35) !important;
}

.tagit.ui-widget li.tagit-choice {
    color: #ffffff;
}

.svg-item {
    width: 100%;
    font-size: 16px;
    margin: 0 auto;
    animation: donutfade 1s;
}

@keyframes donutfade {
  /* this applies to the whole svg item wrapper */
    0% {
        opacity: .2;
    }
    100% {
        opacity: 1;
    }
}

.widget-stats .stats-desc, .widget.widget-stats .stats-desc {
    text-align: end;
}

.widget-stats .stats-desc a{
color:#fff;
text-decoration: none;
}

.donut-ring {
    stroke: #00acac;
}

.donut-segment {
    transform-origin: center;
    stroke: #FF6200;
}

.donut-segment-2 {
    stroke: #348fe2;
    animation: donut1 3s;
}

.donut-segment-3 {
    stroke: #d9e021;
    animation: donut2 3s;
}

.donut-segment-4 {
    stroke: #ed1e79;
    animation: donut3 3s;
}

.segment-1{fill:#ccc;}
.segment-2{fill:#348fe2;}
.segment-3{fill:#d9e021;}
.segment-4{fill:#ed1e79;}

.donut-percent {
    animation: donutfadelong 1s;
}

@keyframes donutfadelong {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes donut1 {
    0% {
        stroke-dasharray: 0, 100;
    }
    100% {
        stroke-dasharray: 69, 31;
    }
}

@keyframes donut2 {
    0% {
        stroke-dasharray: 0, 100;
    }
    100% {
        stroke-dasharray: 30, 70;
    }
}

@keyframes donut3{
    0% {
        stroke-dasharray: 0, 100;
    }
    100% {
        stroke-dasharray: 1, 99;
    }
}

.donut-text {
    font-family: Arial, Helvetica, sans-serif;
    fill: #FFF;
}
.donut-text-1 {
    fill: #FFF;
}
.donut-text-2 {
    fill: #d9e021;
}
.donut-text-3 {
    fill: #ed1e79;
}

.donut-label {
    font-size: 0.28em;
    font-weight: 700;
    line-height: 1;
    fill: #000;
    transform: translateY(0.25em);
}

.donut-percent {
    font-size: 0.5em;
    line-height: 1;
    transform: translateY(0.5em);
    font-weight: bold;
}

.donut-data {
    font-size: 3px;
    line-height: 1;
    transform: translateY(0.5em);
    text-align: center;
    text-anchor: middle;
    color:#fff;
    fill: #fff;
    animation: donutfadelong 1s;
}



body .ui-autocomplete.ui-menu .ui-menu-item-wrapper {
    padding: 0px 7px;
display: flex;
text-decoration: none;
}

.ui-autocomplete .widget-list-item .widget-list-title {
    font-size: 12px;
    line-height: 16px;
    margin: 0;
}

.widget-list-content {
    padding-left: 7px !important;
}
	
@media (max-width: 767.98px){
.header .navbar-nav {
    padding-left: 5px;
    padding-right: 5px;
}
}

ul.tagit li.tagit-choice-editable {
    background: #353535!important;
	}
	
.round{
border-radius:20px;
-moz-border-radius:20px;
}

.breadcrumb .breadcrumb-item {
    line-height: 29px;
}

.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content {
    overflow: hidden;
}

.datepicker > div { display: inherit; }

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 5px!important;
}

.stateuser {
    margin-bottom: 2px;
}

#page-content-loader,
#page-content-loaderss{
  /* Legacy rule cleanup:
   * the previous negative margins (e.g. margin-left:-250px) caused the loader
   * to render off-center depending on sidebars/panels. Keep it neutral.
   */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 10000;
  background: transparent;
}

.texto-loader{
top: 50%;
    left: 50%;
    position: absolute;
    margin-left: 30px;
    margin-top: -10px;
    font-size: 13px;
    font-weight: 600;
}

.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    vertical-align: middle;
}

.modal-footer {
    border-top-color: #e2e7eb;
    padding: 12px 14px 10px;
background-color: #e8e9eb;
border-top: 1px solid rgba(0,0,0,0.15);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.modal-content {
border-radius: 6px;
box-shadow: 0 12px 30px 0 rgba(0,0,0,0.5);
}


.modal-backdrop.show {
    opacity: 1;
}
.modal-backdrop {
    background: rgba(0,0,0,0.7);
    background: -ms-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    background: -moz-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    background: -o-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    background: -webkit-gradient(radial, center center, 0, center center, 497, color-stop(0, rgba(0,0,0,0.3)), color-stop(1, rgba(0,0,0,0.7)));
    background: -webkit-radial-gradient(center, ellipse farthest-corner, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    background: radial-gradient(ellipse farthest-corner at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}
.modal-header {
padding: 10px 15px;
font-size: 1.3em;
border-bottom: 1px solid rgba(0,0,0,0.15);
background: #e8e9eb;
}
.modal-title{
color:#232323;
font-size: 15px;
}

.navbar-brand {
padding: 8px;
}

.form-control[readonly]{
    background: #FFF;
}

.select2-container .select2-selection--single, .select2-container--default .select2-selection--multiple {
    min-height: inherit !important;
}

.form-group {
margin-bottom: 8px;
}

.panel-azul>.panel-heading {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #165796;
    background: -webkit-linear-gradient(top, #165796, #13508b);
    background: -moz-linear-gradient(top, #165796, #13508b);
    background: -ms-linear-gradient(top, #165796, #13508b);
    background: -o-linear-gradient(top, #165796, #13508b);
    border-bottom: 3px solid #0B3A68;
	color:#FFF;
}

.panel-azul>.panel-body {
    border: 1px solid #baccde;
    border-top: none;
}
	
.icodialog{
color: #07b6ff;
}


.border-primary{
	border:1px solid #2a72b5;
	border-radius:5px !important;
}

.btn-azul {
    display: inline-block;
    min-width: 6rem;
    padding: 8px 10px;
    border: 1px solid #0070BA;
    border-radius: 1.5rem;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 600 !important;
    text-align: center;
    cursor: pointer;
    background-color: transparent;
    border-color: #0070BA;
    color: #0070BA;
    transition: all 250ms ease;
    -webkit-font-smoothing: antialiased;
	touch-action: manipulation;
	margin-right:10px;
}

.btn-azul:hover{
color:#003087;
background-color:rgba(255,255,255,0.2);
border-color:#003087;
box-shadow:0 0 0 1px #003087 inset;
text-decoration:none !important;
}

.table-striped>tbody>tr:nth-child(odd)>td, .table-striped>tbody>tr:nth-child(odd)>th {
    background: #f2f3f4;
}

.table>tbody>tr>td {
    border-color: #e2e7eb;
    padding: 4px 7px;
}

.modomovil .table>tbody>tr>td{
    padding: 2px 4px;
}


.border-default {
    border: 1px solid #d6d5d5;
    border-radius: 5px !important;
}

#_refresh{
	display: none;
}

.listhead {
    padding: 0px;
    width: 100%;
}
	
table.listhead th {
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #E9F0F2;
    text-align: left;
    line-height: 14px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #D1D7DD;
    color: #002459;
    font-weight: normal;
    white-space: nowrap;
    padding: 4px;
}
	
.panel-default>.panel-heading {
    background: #f5f4f4;
    border-bottom: 1px solid #d2d1d1;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 28px!important;
}

.switchery>small {
    height: 20px;
    width: 20px;
}

.btn.btn-default {
    color: #313131;
    background: #ffffff;
    border-color: #b6c2c9;
}

.filters input {
    width: 100%;
    padding: 3px;
    box-sizing: border-box;
}

.switchery {
    height: 20px;
    width: 35px;
}
.select2-container .select2-selection--single, .select2-container--default .select2-selection--multiple {
    border-color: #d1d5d8!important;
}

.buttons-columnVisibility.active:before {
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-size: inherit;
    content: "\f14a";
    padding-right: 8px;
    
}

.buttons-columnVisibility:before {
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-size: inherit;
   content: "\f0c8";
    padding-right: 8px;
}
.dropdown-menu>.active>a{
    background: #FFF;
	color:#1D1C1C;
}

.dt-bootstrap .dt-buttons a {
    border: 1px solid #e7eaec;
    background: #fff;
    color: #676a6c;
    box-shadow: none;
    padding: 6px 8px;
    font-size: 12px;
}

.dt-bootstrap .dt-buttons a:active {
    border: 1px solid #e7eaec;
    background: #00acac;
    color: #FFF;
    box-shadow: none;
    padding: 6px 8px;
    font-size: 12px;
}

.no-padding{
	padding:0px !important;
}

.btn-group .btn.btn-default:not(.active)+.btn.btn-default, .input-group-btn .btn.btn-default:not(.active)+.btn.btn-default {
border-left-color: #e7eaec;
}

.form-control:focus {
    border: 1px solid #00acac;

}

.grupotabla{
margin-left: 10px;
}

.tooltablas{
position: absolute;
    display: inline-block;
    vertical-align: middle;
}


@media (max-width: 1136px){
.panel-usuarios .dataTables_wrapper.dt-bootstrap .dataTables_filter, .panel-usuarios .dataTables_wrapper.dt-bootstrap4 .dataTables_filter {
    float: right;
	display: block;
    width: 100%;

}
}

table.table-bordered.dataTable th:last-child, table.table-bordered.dataTable th:last-child, table.table-bordered.dataTable td:last-child, table.table-bordered.dataTable td:last-child {
    border-right-width: 1px;
}
div.dataTables_wrapper .btn-icon.btn-sm {
    background: none;
    font-size: 15px;
    height: 20px;
	margin: 0 2px;
	width: auto;
    color: #333 !important;
}

.progress {
    background: #b7b7b7;
    position: relative;
}


div.dataTables_wrapper .btn-icon.btn-sm:hover {
color: #007aff !important;
}

.progress-sm {
    height: 15px !important;
}

.progress-sm .progress-bar {
    line-height: 15px;
    font-size: 11px;
}

.breadcrumb>.active {
    color: #007aff;
}

.select2.select2-container {
    display:inline-block;
}

.grupotabla .select2.select2-container {
margin-left: 5px;
}

.checkbox.checkbox-css label {
    padding-left: 24px;
    margin: 0px 0px 10px 0px;
    position: relative;
}

table.dataTable thead .sorting_desc:after {
    content: "\e114";
}

table.dataTable thead .sorting_asc:after {
    content: "\e113";
}

table.dataTable thead .sorting:after {
    content: "";
}

.invoice-price .invoice-price-left .sub-price {
    display: table-cell;
    vertical-align: middle;
    padding: 0 13px !important;
}

.closemodal{
    position: absolute;
    right: .8em;
    top: 45%;
    width: 10px;
    margin: -10px 0 0 0;
    padding: 0;
    height: 16px;
    background: 0 -16px no-repeat;
    border: 0 none;
    font-size: 18px;
}

.closemodal:hover{
	color:#252525;
}

.invoice-price .invoice-price-left, .invoice-price .invoice-price-right {
    padding: 8px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    position: relative !important;
    vertical-align: middle !important;
}

.invoice>div:not(.invoice-footer) {
    margin-bottom: 0px;
}

.invoice {
    background: #fff;
    padding: 0 10px;
    width: 100%;
}

.alerta-exito .gritter-close {
    color: #176f48 !important;
}

.alerta-exito .gritter-title {
    font-size: 13px!important;
	font-weight:bold !important;
}

.alerta-warning .gritter-bottom,.alerta-warning .gritter-item,.alerta-warning .gritter-top {
 background:rgba(228, 156, 38, 0.85)!important;
}

.alerta-warning .gritter-item p,.alerta-exito .gritter-item p,.alerta-error .gritter-item p {
    color: #FFF;
    font-size: 12px;
}

.alerta-warning .gritter-close {
    color: #176f48 !important;
}

.alerta-warning .gritter-title {
    font-size: 13px!important;
	font-weight:bold !important;
}

/* DataTables Responsive: el "+" de expandir fila NO debe tapar el checkbox
   ni el ID. Lo hacemos pequeño, discreto y anclado en la esquina sup. izq. */
.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before,
.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before {
    background: rgba(0, 0, 0, 0.18) !important;
    border: 0 !important;
    border-radius: 3px !important;
    color: #fff !important;
    top: 2px !important;
    left: 2px !important;
    height: 12px !important;
    width: 12px !important;
    line-height: 12px !important;
    font-size: 11px !important;
    box-shadow: none !important;
    z-index: 1;
    opacity: 0.55;
}

.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before,
.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:before {
    background: #2d8f4f !important;
    opacity: 1;
}

/* Cuando la primera celda tiene un checkbox, empujarlo a la derecha para que
   no quede debajo del "+". */
.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child input[type="checkbox"],
.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child input[type="checkbox"] {
    margin-left: 14px !important;
}


.sidebar .nav>li.nav-profile {
    padding: 20px;
}


.nav.nav-tabs.nav-tabs-inverse>li>a {
 color: #ffffff;
}

.popover{
    width:170px;   
}

.popkbpsdown li:hover,.popkbpsup li:hover{
	cursor:pointer;
	text-decoration:underline;
	color:#0F5D94;
}

.border{
border: 1px solid #eaeaea !important;
border-top: none !important;
}


.btn.btn-icono {
    font-weight: 400;
    color: #333;
    border-color: #DEDEDE;
    background: -moz-linear-gradient(top,#FFF 0,#E8E6E6 100%);
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0,#FFF),color-stop(100%,#E8E6E6));
    background: -webkit-linear-gradient(top,#FFF 0,#E8E6E6 100%);
    background: -o-linear-gradient(top,#FFF 0,#E8E6E6 100%);
    background: -ms-linear-gradient(top,#FFF 0,#E8E6E6 100%);
    background: linear-gradient(top,#FFF 0,#E8E6E6 100%);
}

.btn.btn-azul {
    color: #fff !important;
    background: #348fe2 !important;
    border-color: #348fe2 !important;
}
.btn.btn-azul:hover {
    color: #fff !important;
    background: #2a72b5 !important;
    border-color: #2a72b5 !important;
}

.select2-dropdown {
    border: 1px solid #57a6e2 !important;
    border-top: none !important;
	-webkit-box-shadow: 0px 0px 8px 0px rgba(42,127,232,1);
-moz-box-shadow: 0px 0px 8px 0px rgba(42,127,232,1);
box-shadow: 0px 0px 8px 0px rgba(42,127,232,1);
	color:#555;
    z-index: 1050;
}


.bg-online td{
	background:#defbf8 !important;	
}

.btn.btn-success {
    color: #fff;
    background: #2296f3;
    border-color: #2296f3;
}

.btn.btn-success:hover {
    color: #fff;
    background: #0c5cb3;
    border-color: #0c5cb3;
}

.tooltip-inner {
  background-color: #00acd6 !important;
  /*!important is not necessary if you place custom.css at the end of your css calls. For the purpose of this demo, it seems to be required in SO snippet*/
  color: #fff;
}

.tooltip.top .tooltip-arrow {
  border-top-color: #00acd6;
}

.tooltip.right .tooltip-arrow {
  border-right-color: #00acd6;
}

.tooltip.bottom .tooltip-arrow {
  border-bottom-color: #00acd6;
}

.tooltip.left .tooltip-arrow {
  border-left-color: #00acd6;
}

ul.dt-button-collection.dropdown-menu {
    border: 1px solid rgba(var(--cw-accent-rgb), 0.28) !important;
    border-radius: 14px !important;
    padding: 10px !important;
    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 18px 52px rgba(2,6,23,0.18) !important;
    max-height: 60vh;
    overflow: auto;
    min-width: 220px;
    z-index: 2000;
}

/* DataTables Buttons collection uses <div class="dt-button-collection dropdown-menu"> in some cases */
.dt-button-collection.dropdown-menu{
    border: 1px solid rgba(var(--cw-accent-rgb), 0.28) !important;
    border-radius: 14px !important;
    padding: 10px !important;
    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 18px 52px rgba(2,6,23,0.18) !important;
    max-height: 60vh;
    overflow: auto;
    min-width: 220px;
    z-index: 2000;
}

.dt-button-collection.dropdown-menu .dt-button{
    display: flex !important;
    align-items: center;
    width: 100% !important;
    border: 1px solid rgba(15,23,42,0.10) !important;
    background: rgba(255,255,255,0.92) !important;
    color: rgba(15,23,42,0.86) !important;
    border-radius: 12px !important;
    padding: 8px 10px !important;
    margin: 0 0 8px 0 !important;
    box-shadow: none !important;
}
.dt-button-collection.dropdown-menu .dt-button:last-child{
    margin-bottom: 0 !important;
}
.dt-button-collection.dropdown-menu .dt-button:hover{
    background: rgba(var(--cw-accent-rgb), 0.10) !important;
    border-color: rgba(var(--cw-accent-rgb), 0.30) !important;
}
.dt-button-collection.dropdown-menu .dt-button.active{
    background: rgba(var(--cw-accent-rgb), 0.18) !important;
    border-color: rgba(var(--cw-accent-rgb), 0.40) !important;
}


.label-success {
    background-color: #00acac !important;
}

.label-warning {
    background-color: #f59c1a !important;
}

.label-danger {
    background-color: #ff5b57 !important;
}

.input-group-addon {
    border: 1px solid #ccc;
}



table.table-bordered.dataTable tbody td a {
    cursor: pointer;
	color: #333 !important
		
}


.panel-blue>.panel-heading {
    background:  #2196F3;
    color: #fff;
}

.panel-blue .panel-heading-btn .btn.btn-default {
color: #0c74e6;
    background: #fff;
    border-color: #fff;
}

.panel-blue .panel-heading-btn .btn.btn-default:hover {
	background:#F7F7F7;
	color:#3C3C3C;
}

.panel-blue .panel-heading-btn  .btn-icon.btn-xs {
width: 18px;
    height: 18px;
    font-size: 10px;
    line-height: 18px;
}


.nav.nav-tabs.nav-tabs-inverse>li>a, .nav.nav-tabs.nav-tabs-inverse>li>a:focus, .nav.nav-tabs.nav-tabs-inverse>li>a:hover, .tab-overflow .nav-tabs-inverse .next-button>a, .tab-overflow .nav-tabs-inverse .prev-button>a {
    background: #293a4a;
}

.nav-tabs.nav-tabs-inverse {
    background: #293a4a;
}


table.dataTable thead>tr>th.sorting_asc, table.dataTable thead>tr>th.sorting_desc, table.dataTable thead>tr>th.sorting, table.dataTable thead>tr>td.sorting_asc, table.dataTable thead>tr>td.sorting_desc, table.dataTable thead>tr>td.sorting {
    padding-right: 15px;
text-transform: uppercase;
    font-size: 11px;
}


body #gritter-notice-wrapper .gritter-item-wrapper .gritter-item p {
    color: #FFF;
}

.states{
margin-bottom: 3px;
display: block;
width: 50px;
}

table.dataTable>tbody>tr.child span.dtr-title {
    min-width: 100%;
    font-size: 12px;
}

table.dataTable>tbody>tr.child span.dtr-data {
	display:block;
}

.note.note-error {
background: #f9dcdc;
color: #9e0e0e;
}

.note.note-error  h4{
color: #9e0e0e;
}

.note.note-error .note-icon {
background: #f57573;
color: #fff;
}

.note .note-icon>i {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    margin-top: -28px;
}

.dropdown-item.active, .dropdown-item:active {
    color: #2b2a2a;
    text-decoration: none;
background-color:#fff;
}

.note .note-icon {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80px;
    font-size: 56px;
    line-height: 56px;
    text-align: center;
}

.note .note-icon+.note-content {
    margin-left: 85px;
    font-size: 13px;
}
.note {
    margin-bottom: 20px;
    border-left: 3px solid;
    position: relative;
    border-radius: 4px;
}

.page-header {
    font-size: 21px;
}

.panel-heading .nav-tabs>li>a {
padding: 10px 10px;
    line-height: 20px;
}

legend {
    font-size: 16px;
}

.infouserdara{
margin-bottom: 10px;
width:100% !important;
padding: 3px 0px 3px 4px;
color: #fff;
}

.infouserdara i{
font-size: 30px;
float: left;
}

.infouserdara h4{
font-weight: bold;
    margin: 0;
    color: #fff;
    font-size: 11px;
    text-align: left;
    padding-left: 36px;
	    margin-top: 3px;
white-space: normal;
}

.infouserdara small{
font-weight: 300;
font-size: 11px;
display: block;
text-align: left;
padding-left: 42px;
white-space: normal;
}
 
 .infouserdara h4 small{
font-weight: normal;
    font-size: 10px;
    display: inline-block;
    text-align: unset;
    padding-left: 0px;
	color: #fff;
}

 .infouserdara:hover{
	color: #fff;
}

.border-panel{
    border-left: 1px solid;
    border-right: 1px solid;
    border-bottom: 1px solid;
    border-color: #dcdcdc;
}
	
.panel-default>.panel-heading {
    background-image: -webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);
    background-image: -o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);
    background-image: -webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));
    background-image: linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
    background-repeat: repeat-x;
    border: 1px solid #dcdcdc;
}

.panel-default>.panel-heading .btn-icon.btn-xs {
    width: 23px;
    height: 23px;
    font-size: 11px;
    line-height: 23px;
}

.btn.btn-iconpanel{
    text-shadow: 0 1px 0 #fff;
    background-image: -webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);
    background-image: -o-linear-gradient(top,#fff 0,#e0e0e0 100%);
    background-image: -webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));
    background-image: linear-gradient(to bottom,#fff 0,#e0e0e0 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
    background-repeat: repeat-x;
    border-color: #dbdbdb;
    border-color: #ccc;
	color: #333;
	margin-left: 2px;
	border: 1px solid #ddd;
}


.form-control[disabled], .form-control[readonly] {
    opacity: 9;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    width: 47.9%;
    text-align: center;
    font-size: 13px;
    background-color: #f7f7f7;
    border: 1px solid #c5c5c5;
    color: #000;
    padding: 2px 0px;
}

.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c>* {
    padding-bottom: 10px;
	font-size: 24px;
}

.jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons button {
    font-weight: 600;
}
	
	.jconfirm-content h5{
		color: #fff;
		font-weight: bold;
	font-size: 18px;
	}
.tabgris{
	background:#f5f5f5;
	border-bottom: 1px solid #ddd !important;
}

.tabgris>li>a {
color:#777;
 padding: 7px 7px;
}

.tabgris>li {
margin-top: 4px;
margin-bottom: -1px;
}

.tabgris>li>a>i {
font-size: 13px;
}

    

.tabgris>li {
margin-left: 5px;
}
    
	

.tabgris>li.active>a, .tabgris>li.active>a:hover, .tabgris>li.active>a:focus {
    cursor: default !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-bottom-color: transparent !important;
}

.tabcontent{
	border:1px solid #ddd;	
	border-radius:3px;
}

.nav.nav-tabs.nav-tabs-blue>li>a, .nav.nav-tabs.nav-tabs-blue>li>a:focus, .nav.nav-tabs.nav-tabs-blue>li>a:hover, .tab-overflow .nav-tabs-blue .next-button>a, .tab-overflow .nav-tabs-blue .prev-button>a {
    background: #1c81d2;
}


.sidebar .nav > li.nav-header {
    line-height: 15px;
    font-size: 11px;
    color: rgb(109, 121, 131);
    margin: 0px;
    padding: 8px 20px;
}

.nav.nav-tabs.nav-tabs-blue>li.active>a{
    background: #fff;
}

.sidebar .nav>li.nav-profile .cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(images/cover-sidebar-user.jpg) no-repeat;
    background-size: cover;
}
.sidebar .nav>li.nav-profile .cover.with-shadow:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition: all .2s linear;
    background: rgba(26,34,41,.75);
}

.sidebar .nav>li.nav-profile .image {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
}

.sidebar .nav>li.nav-profile .info small {
    display: block;
    color: rgba(255,255,255,.75);
    font-size: 11px;
    margin-bottom: -5px;
}

.sidebar .nav>li.nav-profile .info {
    font-size: 14px;
    position: relative;
}

.sidebar .nav>li>a .caret {
    margin-top: unset;
}

.sidebar .sub-menu>li>a {
    font-weight: 400;
}


.alert {
    position: relative;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 5px;
	text-align:center
}
.alert-pago {
    background: #fff4b2;
    color: #806d00;
}

.alert-factura {
    background: #c8e9f3;
    color: #255b6c;
}

.alert-corte {
    background: #ffcdcc;
    color: #802d2b;
}

.alert-pantalla {
    background: #c2ddf7;
    color: #1a4772;
}

.alert-sms1 {
    background: #b3e6e6;
    color: #025656;
}

.alert-sms2 {
    background: #ddefc9;
    color: #486626;
}

.alert-sms3 {
    background: #e9edef;
    color: #5b6165;
}
.pppover .popover {
    width: 450px;
	max-width:100%;
}

.pppover .popover-content {
    padding: 9px 14px;
    font-size: 13px;
}


.table-invoice thead th{
background: #f0f3f4 !important;
color: #00535E !important;
padding-top: 10px !important;
font-weight: bold !important;
height: 40px !important;
	text-align: center;
}

.table-invoice tbody textarea.form-control {
    min-height: 34px;
}

.invoice{
display: inline-block;
}


.table-invoice tbody>tr>td{
    vertical-align: top;
	border-top: none;
}

.removeitem{
    line-height: 34px !important;
	    padding: 0px !important;
    padding-top: 7px !important;
	
}
.control-label{
padding-right: 0px;
}

input:-moz-read-only {
cursor:pointer;
}

textarea{
resize: none;
}

input:read-only { 
cursor:pointer;
}

.popover {
    width: 270px;
}

textarea.form-control {
    padding-top: 7px !important;
}

.attached-document .document-file {
    height: 50px;
    background: rgba(0,0,0,.1);
    overflow: hidden;
    text-align: center;
    line-height: 50px;
    font-size: 26px;
}

.btn-app {
    border-radius: 3px;
    position: relative;
    padding: 5px;
    margin: 3px;
    width: 46%;
    height: 37px;
    text-align: center;
    font-size: 11px;
}
	.pingup{
	 color: #27bfad !important;
    font-weight: 600 !important;
	}
	
	.pingdown{
	 color: #ea5454 !important;
    font-weight: 600 !important;
	}
	
	.morris-hover-row-label{
		display: none !important;
	}
	
	.morris-hover.morris-default-style .morris-hover-point {
    font-weight: 600;
}

.top-filter{
background: #f5f5f5;
    padding: 10px;
    margin: -15px;
}


table.dataTable .label {
    font-weight: 700 !important;
    font-size: 8.5px;
    padding: 3px 6px;
}

	.stateup{
		
  height: 20px;
  width: 20px;
  background-color:#2ab583;
  border-radius: 50%;
  display: inline-block;
	}

.btn.btn-lg, .input-group-lg>.input-group-append>.btn, .input-group-lg>.input-group-prepend>.btn {
    font-size: 13px;
    line-height: 24px;
    padding: 10px 16px;
}
	
.select2-container--default .select2-results__group {
    cursor: default;
    display: block;
    padding: 6px;
    text-align: center;
    background: #171617;
    color: #fff !important;
    font-size: 13px;
}

.btnajustes{
margin: 10px 16px;
    height: 170px;
    vertical-align: middle;
    width: 170px;
    border-radius: 50% !important;
    font-size: 12px !important;
    padding: 50px 0px 0px 0px !important;
	}

	.btnajustes i{
    margin-bottom: 8px;
    color: #565656;
    font-size: 36px;
	}
/* El "+" de Responsive se estiliza más arriba (regla consolidada). Esta regla
   vieja solo aplicaba color azul fuerte; la vaciamos para evitar duplicar. */
.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before,
.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before {
    /* hereda de la regla consolidada de arriba */
}

.form-horizontal .col-form-label, .form-horizontal .control-label {
    padding-top: 7px;
    margin-bottom: 2px;
    text-align: right;
}
	
.header .navbar-brand {
    padding: 5px 20px
	}

	.gritter-image i{
	font-size: 45px;
    color: #fff;
	}

	.alerta-loader .gritter-image i{
	font-size: 30px;
    color: #fff;
	}
	
	.alerta-loader .gritter-image {
    width: 35px;
    height: 35px;
    float: left;
}

/* ===========================
   Loader (Gritter) centered
   =========================== */
/* El loader legacy usa `alerta('loader', ...)` (Gritter). Por defecto Gritter aparece en top-right.
   Centramos SOLO el caso `.alerta-loader` para que el spinner quede en el centro al recargar tablas. */
#gritter-notice-wrapper .gritter-item-wrapper.alerta-loader{
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  width: min(420px, calc(100vw - 32px)) !important;
  z-index: 9999 !important;
}

#gritter-notice-wrapper .gritter-item-wrapper.alerta-loader .gritter-item{
  /* evita que el wrapper fijo se sienta “pegado” a un lado por paddings legacy */
  width: 100% !important;
}
	
@keyframes a {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
	
.gritter-close:before, .gritter-light .gritter-close:before {
	font-family:Font Awesome\ 5 Free !important;
content: "\f00d" !important;
    font-size: 16px !important;
    font-weight: 900 !important;
}

.alerta-exito .gritter-bottom,.alerta-exito .gritter-item,.alerta-exito .gritter-top {
background: rgba(23, 152, 137, 0.8)!important;
}

.alerta-error .gritter-bottom,.alerta-error .gritter-item,.alerta-error .gritter-top {
background: rgba(197, 74, 74, 0.8)!important;
}

	
.alerta-exito .gritter-close,.alerta-exito .gritter-light .gritter-close {
    border-left: 1px solid #227975;
}

.alerta-error .gritter-close,.alerta-error .gritter-light .gritter-close {
    border-left: 1px solid #943f3f;
}
	
	
.alerta-exito .gritter-close:before {
    color: #1d5e5f !important
}
	
.alerta-error .gritter-close:before {
    color: #6d1c1c !important;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

.switch input {display:none;}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 1px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.switch .slider.round {
  border-radius: 34px;
}

.switch .slider.round:before {
  border-radius: 50%;
}

	.nav-link.active{
	background: #fff;
    border-bottom: none;
	}
	
	.tkcliente{
	border: 1px solid #cceaff !important;
    padding: 15px 8px !important;
    background: #f7fcff;
    color: #0e0e0e;
	margin-bottom: 10px;
	border-radius: 5px;
	}	
	.tkcliente .pull-left img,.tksoporte .pull-left img,.tknota .pull-left img{
	 border-radius: 40px;
	}
	
	.tksoporte{
    border: 1px solid #dcdcdc !important;
    padding: 15px 8px !important;
    background: #f9f9f9;
    color: #0e0e0e;
    margin-bottom: 10px;
    border-radius: 5px;
	}
	
	.tknota{
	border: 1px dashed #daa5a5 !important;
    padding: 15px 8px !important;
    background: #f7ecec;
    color: #0e0e0e;
    margin-bottom: 10px;
    border-radius: 5px;
	}
	
	
	.linkforce{
	color: #4e4e4e !important;
    font-weight: 600;
    text-decoration: underline;
	}
	
	
	.glyphicon{
		font-weight: 500 !important;
	}
	
	.modalhtml{
		z-index: 99999;
	}	
	
	.modalhtml .modal-body{
		width: 100%;
	}
	
	ul.wysihtml5-toolbar {
    margin: 0;
    padding: 0;
    display: block;
    background: #f5f5f5;
}

.dt-buttons .btn-secondary{
	background: #fff;
    color: #333;
    border-color: #ddd;
}
	
ul.wysihtml5-toolbar>li {
    float: left;
    display: list-item;
    list-style: none;
    margin: 7px 0px 7px 5px;
}

.list-group .ticket-details-children:nth-child(even) {
    background-color: #f2f2f2;
}
	
.list-group-item {
    padding: 6px 10px;
}
	
	.title{
		font-weight: 600;
	}
	
	.tablehover tr:hover{
		cursor: pointer;
	}
	
.ekko-lightbox .close {
opacity: 1;
    color: rgb(255, 255, 255);
    background-color: rgb(25, 25, 25);
    padding: 2px 9px;
    border-radius: 30px;
    border: 2px solid rgb(255, 255, 255);
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 1032;
}
.ekko-lightbox .modal-header {
    padding: 0px;
    height: 0;
	}

.ekko-lightbox	.modal-body{
		width: 100% !important;
		padding: 4px;
	}

.ekko-lightbox .modal-content {
    border-radius: 4px;
    border-top: 0px;
	margin-bottom: 0px;
}
.css-ghzv10 {
position: fixed;
bottom: 0;
  left: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    z-index: 999999990;
}
	
.css-1xamfmm{
display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #027aff;
    color: #fff;
    font-size: 19px;
    position: absolute;
    left: 50%;
    top: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    visibility: visible;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2);
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -webkit-transform: translate(-50%, -50%);
}

.css-1bgbwga{
    width: 30px;
    height: 30px;
    flex: 1;
    margin: 0;
    -webkit-flex: 1;
}

.panel-soporte .popover {
    max-width: 400px !important;
	width: 400px !important;
	    z-index: 1048 !important;
}
	
.panel-soporte .popover-content{
zoom: 70%;
max-height: 600px;
overflow: scroll;
}

.panel-soporte .popover-content #frm-replysoporte,.panel-soporte .popover-content .breadcrumb,.panel-soporte .popover-content .nav-tabs,.panel-soporte .popover-content  .fa-trash{
	display: none;
}
	
	.panel-soporte .popover-content	.pull-left img{
		width: 50px !important;
		height: 50px !important;
	}

	.widget-list-content{
		padding-left: 7px !important;
	}
	
.tachado{text-decoration:line-through;}

.timeline .timeline-time .time {
    line-height: 20px;
    font-size: 16px;
    color: #242a30;
}
	
.attached-document>li .document-name a {
    color: #2d353c;
    font-size: 11px;
}

.widget-stats .stats-number {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 1px;
}

.registered-users-list>li img {
    border-radius: 30px;
    max-width: 50px;
}

/* Widget home: Últimos conectados */
.cwisp-grid-card--conectados {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.cwisp-grid-card--conectados > .panel-heading,
.cwisp-grid-card--conectados > .panel-footer {
    flex-shrink: 0;
}
.cwisp-recent-users-wrap {
    flex: 1;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
ul.cwisp-recent-users {
    list-style: none;
    margin: 0;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 6px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.cwisp-recent-user {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}
.cwisp-recent-user__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 6px;
    min-width: 0;
    height: 100%;
    color: inherit;
    transition: background-color .15s ease;
}
.cwisp-recent-user__link:hover {
    background-color: rgba(0, 0, 0, 0.06);
    text-decoration: none;
}
.panel-inverse .cwisp-recent-user__link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}
.cwisp-recent-user__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.cwisp-recent-user__avatar img,
.cwisp-recent-user__avatar canvas {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    border-radius: 50% !important;
    display: block;
}
.cwisp-recent-user__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    color: #2d353c;
}
.panel-inverse .cwisp-recent-user__name {
    color: #2d353c;
}
.cwisp-recent-user__time {
    font-size: 10px;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    color: #6c757d;
}
.panel-inverse .cwisp-recent-user__time {
    color: #6c757d;
    opacity: 1;
}
	
	#infomikrotik .panel-heading {
    padding: 5px 15px;
	}

.modal-full {
width: 96%;
max-width: 96%;
}

.text-center {
    -ms-flex-pack: center!important;
    justify-content: center!important;
}

.tooltablas .btn{
font-size: 12px !important;
}

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


.invoice .table>tbody>tr>td,.invoice .table>tbody>tr>th,.invoice .table>thead>tr>td,.invoice .table>thead>tr>th {
    border-color: #e2e7eb;
    padding: 4px;
}

.form-control-with-bg .form-control, .form-control.form-control-with-bg {
    background: var(--cw-surface-subtle, #ffffff);
    color: var(--cw-text, inherit);
}


.form-control::placeholder {
color: #e0e0e0;
}


form{
width: 100% !important;
}


.form-material .form-control, .form-material .form-control.focus, .form-material .form-control:focus {
    background-image: -webkit-gradient(linear, left top, left bottom, from(#009efb), to(#009efb)), -webkit-gradient(linear, left top, left bottom, from(#d9d9d9), to(#d9d9d9));
    background-image: -webkit-linear-gradient(#009efb, #009efb), -webkit-linear-gradient(#d9d9d9, #d9d9d9);
    background-image: -o-linear-gradient(#009efb, #009efb), -o-linear-gradient(#d9d9d9, #d9d9d9);
    background-image: linear-gradient(#009efb, #009efb), linear-gradient(#d9d9d9, #d9d9d9);
    border: 0 none;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    float: none;
}

.form-material .form-control {
    background-color: transparent;
    background-position: center bottom, center calc(100% - 1px);
    background-repeat: no-repeat;
    background-size: 0 2px, 100% 1px;
    padding: 0;
    -webkit-transition: background 0s ease-out 0s;
    -o-transition: background 0s ease-out 0s;
    transition: background 0s ease-out 0s;
}

.avatarchat{
border-radius: 50%;
width: 32px;
height: 32px;
}

.avatarimgchat{
border-radius: 50%;
width: 32px;
height: 32px;
}
.namechat{
color:#333 !important;
line-height: 32px;
padding-left: 4px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 150px;
}
.chat-item{
width: 100%;
padding-left: 5px;
padding-top: 2px;
padding-bottom: 2px;
margin-top: 0px !important;
max-height: 36px
}
.chat-item:hover{
background: #eeeeee85;
}

.theme-panel.theme-panel-lg {
    top: 0;
    bottom: 0;
    width: 205px;
    right: -205px;
}

.chat-item small{
    position: relative;
    color: #bdbdbd;
    padding-left: 4px;
    bottom: 14px;
}

.import_number{
    width: 32px;
    height: 32px;
    line-height: 29px;
    border: 2px solid #49a9e0;
    color: #49a9e0;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border-radius: 50%;
    float: left;
    margin-right: 10px;
	background: #fff;
	z-index: 1000;
}

.import_line{ 
height: 90px;
border: 1px solid #49a9e0;
display: block;
position: absolute;
margin-left: 15px;
}

.import_body{
	width: 85%;
	float: left;
	padding-bottom: 15px;
}

.import_body h5{
    color: #49a9e0;
	font-size: 13px;
}

.nav-tabs .nav-item {
    margin-bottom: -1px;
}

#gritter-notice-wrapper {
    width: 371px!important;
    z-index: 1400!important; /* sobre modales (1300); en móvil extra.css achica el ancho */
}

.top-filter .select2-results__option {
    font-size: 10.5px;
}

.ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front{
z-index: 999999;
}


@media (min-width: 992px){
.modal-lg {
    max-width: 900px;
}
}

@media only screen and (max-width: 768px){
.top-filter .select2-container{
    margin: 0 auto 10px;
    display: block !important;
	width: 200px !important;
}
	
.top-filter  div {
    float: none !important;
width: 100% !important;
}
	
	.top-filter{
	    text-align: center;
	}
	
}

@media screen and (max-width: 767px){

.dropdown-menu.media-list>.media {
    display: flex;
}
.dataTables_wrapper.dt-bootstrap .dataTable, .dataTables_wrapper.dt-bootstrap4 .dataTable {
    font-size: 11px;
}
	
	.header .navbar-nav>li.navbar-user{
		float: right !important;
	}
.header .navbar-form .form-control, .header .navbar-form .form-control:focus,.searchbar {
width: 100%!important;
}
	
.searchbar {
display: none;
}
	
	.iconbuscar{
	display: block !important;
	}
	
table.table-bordered.dataTable tbody td a {
    white-space: normal;
}
	
.grupotabla {
margin-bottom: 5px;
}
	
table.dataTable>tbody>tr.child ul.dtr-details {
    text-align: center;
}
	
.modal_herramienta {
  text-align: center;
  padding: 0!important;
}

.modal_herramienta:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -4px;
}

.modal_herramienta .modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}
	
.modal_herramienta .modal-dialog .btn-icon.btn-sm {
background: #fff;
    font-size: 30px;
    border-radius: 20px;
    height: 80px;
    width: 90px;
    float: left;
    line-height: 80px;
    border: 1px solid #34a0d4;
    margin: 5px;
    color: #4e4e4e !important;
}
	
.form-horizontal .col-form-label, .form-horizontal .control-label {
text-align: left;
}
	
.popover {
    width: 300px;
}
	
	.btnbackmovil{
	position: fixed;
		display: block !important;
	}

	.css-ghzv10,#tryhtml2canvas{
		display: none;
	}
	
.widget.widget-stats {
    border-radius: 3px;
    margin: 5px;
	text-align: center;
}
	
.btnajustes {
    margin: 6px 9px;
    height: 140px;
    vertical-align: middle;
    width: 140px;
    border-radius: 50% !important;
    font-size: 10.5px !important;
    padding: 38px 0px 0px 0px !important;
}

.dt-buttons.btn-group>.btn+.btn {
    border-left: none;
    margin-left: 5px;
    border: 1px solid #d9dfe3 !important;
}

.form-group>.col-form-label {
text-align: left !important;
    padding-top: 0 !important;
    padding-left: 10px;
    padding-bottom: 2px !important;
}

	
.allmasivo,.chmasivo{
	display:none;
}


.tooltablas{
    position: inherit;
    display: inline-block;
    vertical-align: middle;
    padding-bottom: 7px;
    width: 100%;
	text-align: center;
}

div.dataTables_wrapper div.dataTables_filter input {
    margin-left: 0;
    display: inline-block;
    width: 100%;
}
	
.h5, h5 {
    font-size: 12px;
}

.page-header {
    font-size: 15px;
}

.table-invoice thead th{
background: #f0f3f4 !important;
color: #00535E !important;
padding-top: 10px !important;
font-weight: bold !important;
height: 40px !important;
}

}

	
@media print {
	
	body{
	    background-color: #fff;
	}
  .print {
    display:block !important;
    visibility:visible !important;
  } 
	
	.attached-document a{
		font-size: 10px !important;
		line-height: 10px;
	}
	
	.attached-document .document-file{
	max-height: 135px;
	}
	
	#content{
	margin-top: -120px;
	margin-left: 0px;
	max-width: auto;
	}	    
	
	.page-header{
		text-align: center;
	}
	
}

/* ===========================
   ColombiaWisp Theme Overrides
   =========================== */
:root{
  --cw-yellow:#FCD116;
  --cw-blue:#348fe2;
  --cw-blue-dark:#2a72b5;
  --cw-blue-rgb:52,143,226;
  --cw-red:#CE1126;
  --cw-ink:#0B1220;
  --cw-bg:#F6F7FB;
}

/* Core accents (sin romper el theme) */
.panel-azul>.panel-heading{
  background: linear-gradient(135deg, var(--cw-blue), var(--cw-blue-dark)) !important;
  border-bottom: 3px solid rgba(252, 209, 22, .85) !important;
}
a.btn-azul:not(.btn),
.btn-azul:not(.btn){
  border-color: var(--cw-blue) !important;
  color: var(--cw-blue) !important;
  background-color: transparent !important;
  border-radius: 14px !important;
  transition: transform 160ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease !important;
}
a.btn-azul:not(.btn):hover,
.btn-azul:not(.btn):hover{
  color: var(--cw-blue-dark) !important;
  border-color: var(--cw-blue-dark) !important;
  background-color: rgba(var(--cw-blue-rgb),0.08) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12) !important;
  transform: translateY(-1px) !important;
}
a.btn-azul:not(.btn):active,
.btn-azul:not(.btn):active{
  transform: translateY(0) !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.10) !important;
}
.btn.btn-azul{
  background-color: var(--cw-blue) !important;
  border-color: var(--cw-blue) !important;
  color: #fff !important;
  border-radius: 14px !important;
  transition: transform 160ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease !important;
}
.btn.btn-azul:hover{
  color: #fff !important;
  background-color: var(--cw-blue-dark) !important;
  border-color: var(--cw-blue-dark) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12) !important;
  transform: translateY(-1px) !important;
}
.btn.btn-azul:active{
  transform: translateY(0) !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.10) !important;
}
.icodialog{ color: var(--cw-yellow) !important; }
.border-primary{ border-color: rgba(var(--cw-blue-rgb),0.35) !important; }

/* Header subtle flag accent */
.header.navbar-default{
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--cw-yellow), var(--cw-blue), var(--cw-red)) 1;
}

/* ===========================
   Loader (logo animado)
   =========================== */
#page-loader{
  background: radial-gradient(ellipse at center, rgba(11,18,32,0.35) 0%, rgba(11,18,32,0.78) 70%, rgba(11,18,32,0.90) 100%) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#page-loader .spinner{ display:none !important; }

#page-loader .cwisp-page-loader{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.cwisp-loader-stack{
  width: 180px;
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 10px;
  position: relative;
}
.cwisp-loader-stack--sm{
  width: 140px;
  min-height: 140px;
}

.cwisp-loader-ring{
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  border: 3px solid rgba(252,209,22,.18);
  border-top-color: var(--cw-yellow);
  border-right-color: rgba(var(--cw-blue-rgb),.9);
  border-bottom-color: rgba(206,17,38,.9);
  animation: cwisp-spin 1.05s linear infinite;
}
.cwisp-loader-stack--sm .cwisp-loader-ring{
  width: 112px;
  height: 112px;
}

.cwisp-loader-logo{
  width: 92px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
  animation: cwisp-float 1.6s ease-in-out infinite;
}
.cwisp-loader-logo--sm{ width: 76px; }

.cwisp-loader-dots{
  display: flex;
  gap: 7px;
  justify-content: center;
  align-items: center;
}
.cwisp-loader-dots span{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(var(--cw-blue-rgb),.95);
  animation: cwisp-dot 0.95s ease-in-out infinite;
}
.cwisp-loader-dots span:nth-child(2){
  animation-delay: .12s;
  background: rgba(252,209,22,.98);
}
.cwisp-loader-dots span:nth-child(3){
  animation-delay: .24s;
  background: rgba(206,17,38,.98);
}

.cwisp-loader-text{
  font-weight: 700;
  letter-spacing: .2px;
  color: rgba(255,255,255,.92);
  font-size: 12.5px;
}

.cwisp-modal-loader{
  width: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 8px 0;
}
.cwisp-modal-loader .cwisp-loader-text{
  color: rgba(11,18,32,.82);
}

@keyframes cwisp-spin{ to { transform: rotate(360deg); } }
@keyframes cwisp-float{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-4px);} }
@keyframes cwisp-dot{ 0%,100%{ transform: translateY(0); opacity:.55;} 50%{ transform: translateY(-5px); opacity:1;} }

@media (prefers-reduced-motion: reduce){
  .cwisp-loader-ring,
  .cwisp-loader-logo,
  .cwisp-loader-dots span{ animation: none !important; }
  .btn-azul{ transition: none !important; }
}



/* ===========================
   ColombiaWisp Modern UI
   =========================== */

body{ background: var(--cw-bg) !important; }

/* Bootstrap primary -> ColombiaWisp blue */
.btn.btn-primary,
.label.label-primary,
.badge.badge-primary,
.bg-primary{
  background-color: var(--cw-blue) !important;
  border-color: var(--cw-blue) !important;
}
.btn.btn-primary:hover{
  background-color: var(--cw-blue-dark) !important;
  border-color: var(--cw-blue-dark) !important;
  color: #fff !important;
}
.text-primary{ color: var(--cw-blue) !important; }

/* Yellow as highlight accent */
.btn.btn-outline-warning,
.border-warning{ border-color: var(--cw-yellow) !important; }
.text-warning{ color: var(--cw-yellow) !important; }

/* Tabs / active states */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link{
  border-bottom-color: var(--cw-yellow) !important;
}

/* Inputs focus ring */
.form-control:focus,
select:focus,
textarea:focus{
  border-color: rgba(var(--cw-blue-rgb),0.55) !important;
  box-shadow: 0 0 0 3px rgba(252,209,22,0.22) !important;
}



/* ===========================
   ColombiaWisp Soft Cards
   =========================== */
.panel,
.modal-content{
  border-radius: 12px !important;
}
.panel{
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}
.modal-content{
  box-shadow: 0 14px 34px rgba(0,0,0,0.28) !important;
}

/* Micro-interactions */
.btn,
.dropdown-menu,
.navbar-nav>li>a{
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 160ms ease;
}



/* ===========================
   ColombiaWisp Palette Cleanups
   =========================== */

/* Wizard/import UI (antes azul celeste) */
.import_number{
  border-color: var(--cw-blue) !important;
  color: var(--cw-blue) !important;
}
.import_line{
  border-color: rgba(var(--cw-blue-rgb),.35) !important;
}
.import_body h5{
  color: var(--cw-blue) !important;
}



/* ===========================
   ColombiaWisp Loader Unification
   =========================== */

/* Loader dentro de #content (ajax hash router) */
#page-content-loader.cwisp-content-loader{
  width: 100%;
  padding: 56px 0;
  display: grid;
  place-items: center;
}
#page-content-loader .cwisp-loader-text{
  color: rgba(11,18,32,.82);
}

/* Loader inline (tabs ajax) */
.cwisp-inline-loader{
  width: 100%;
  min-height: 140px;
  display: grid;
  place-items: center;
}
.cwisp-inline-loader .cwisp-loader-text{
  color: rgba(11,18,32,.82);
}

/* Panel loader (overlay sobre panel-body) */
.panel.panel-loading .panel-body .panel-loader.cwisp-panel-loader{
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  /* centrar spinner dentro del overlay (por defecto el theme no centra el contenido) */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ===========================
   Ticket preview modal (soporte)
   =========================== */
.cwisp-preview-modal .modal-body{
  background: #f7f9fc;
}
.cwisp-preview-modal .cwisp-preview-content{
  font-size: 13px;
}
.cwisp-preview-modal .cwisp-preview-content .media-list{
  margin-top: 10px;
}
.cwisp-preview-modal .cwisp-preview-content .media{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 12px 12px;
  margin-bottom: 10px;
}
.cwisp-preview-modal .cwisp-preview-content .media .media-heading{
  margin-bottom: 8px;
}
.cwisp-preview-modal .cwisp-preview-content .infotk{
  display: block !important;
}

/* Fallback legacy loader text */
.texto-loader{
  display:none !important;
}



/* ===========================
   ColombiaWisp Loader Minimal
   =========================== */

/* Keep only ring + 3 dots */
.cwisp-loader-logo,
.cwisp-loader-text{ display:none !important; }

.cwisp-loader-stack{
  width: 140px;
  min-height: 140px;
  gap: 12px;
}
.cwisp-loader-stack--sm{
  width: 110px;
  min-height: 110px;
  gap: 10px;
}

.cwisp-loader-ring{
  width: 120px;
  height: 120px;
  border-width: 3px;
}
.cwisp-loader-stack--sm .cwisp-loader-ring{
  width: 96px;
  height: 96px;
}

.cwisp-loader-dots span{
  width: 8px;
  height: 8px;
}



/* ===========================
   ColombiaWisp Loader Centering
   =========================== */

/* .content ya es position: relative en el theme, así que este overlay se centra en el área visible
   (respeta sidebar izquierdo/derecho porque esos son márgenes del contenedor). */
#page-content-loader.cwisp-content-loader{
  position: absolute;
  inset: 0;
  padding: 0 !important;
  display: grid;
  place-items: center;
  z-index: 1020;
}

/* Evita que el padding del content empuje el centro visual */
.content{ padding-top: 20px; }

/* Si #content queda con altura muy chica en pantallas grandes, garantizamos un alto mínimo */
#content{ min-height: calc(100vh - 110px); }



/* ================================
   ColombiaWisp Fullscreen Content Loader
   ================================ */

/* Cuando el router AJAX carga contenido, el theme deja ver márgenes/sidebars.
   Convertimos el loader en overlay FULLSCREEN para que quede centrado al viewport
   y no se vea el panel gris lateral. */
body.page-content-loading #page-content-loader.cwisp-content-loader{
  position: fixed !important;
  inset: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  z-index: 9999 !important;
  background: rgba(255,255,255,0.94) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Evita que algo quede por encima */
body.page-content-loading .sidebar,
body.page-content-loading .sidebar-bg,
body.page-content-loading .content,
body.page-content-loading .header{
  filter: none;
}



/* ==============================================
   ColombiaWisp Fullscreen Content Loader (body appended)
   ============================================== */
body.page-content-loading #page-content-loader.cwisp-content-loader{
  position: fixed !important;
  inset: 0 !important;
}

/* ===========================
   ColombiaWisp Modern Sidebar
   =========================== */

:root{
  --cw-side-bg: rgba(10, 15, 24, 0.72);
  --cw-side-bg-2: rgba(10, 15, 24, 0.86);
  --cw-side-border: rgba(255,255,255,0.10);
  --cw-side-text: rgba(255,255,255,0.86);
  --cw-side-muted: rgba(255,255,255,0.62);
}

/* Sidebar surface (glass) */
#sidebar.sidebar{
  background: linear-gradient(180deg, var(--cw-side-bg), var(--cw-side-bg-2)) !important;
  border-right: 1px solid var(--cw-side-border) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sidebar-bg{
  background: linear-gradient(180deg, rgba(10,15,24,0.60), rgba(10,15,24,0.82)) !important;
}

/* Fix: when sidebar is minified (icon-only), keep sidebar-bg at 60px too.
   In this layout, `.sidebar-bg` is a sibling of `#page-container`, so use `~`. */
#page-container.page-sidebar-minified ~ .sidebar-bg,
#page-container.page-sidebar-minified .sidebar-bg{
  width: 60px !important;
}

/* When sidebar is toggled (mobile/off-canvas), hide background bar */
#page-container.page-sidebar-toggled ~ .sidebar-bg,
#page-container.page-sidebar-toggled .sidebar-bg{
  display: none !important;
  width: 0 !important;
}

/* Colombia accent line */
#sidebar.sidebar:before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cw-yellow), var(--cw-blue), var(--cw-red));
  z-index: 2;
}

/* Profile header */
#sidebar .nav-profile{
  position: relative;
  padding: 18px 16px 16px !important;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
#sidebar .nav-profile .cover{
  filter: saturate(1.05) contrast(1.05);
  opacity: 0.40;
}
#sidebar .nav-profile .info{
  color: var(--cw-side-text) !important;
  font-weight: 700;
  letter-spacing: .2px;
}
#sidebar .nav-profile .info small{
  color: var(--cw-side-muted) !important;
  font-weight: 600;
}
#sidebar .nav-profile .image img{
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  border: 2px solid rgba(252,209,22,0.65);
}

/* Section header */
#sidebar .nav-header{
  color: rgba(255,255,255,0.55) !important;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  padding: 14px 18px 8px !important;
}

/* Items */
#sidebar .nav > li > a{
  color: var(--cw-side-text) !important;
  border-radius: 12px;
  margin: 4px 10px;
  padding: 10px 12px;
  transition: background-color 180ms ease, transform 160ms ease, box-shadow 180ms ease;
}
#sidebar .nav > li > a i{
  color: rgba(255,255,255,0.80) !important;
  width: 22px;
  text-align: center;
  margin-right: 8px;
  transition: color 180ms ease, transform 160ms ease;
}

/* Hover */
#sidebar .nav > li > a:hover{
  background: rgba(255,255,255,0.08) !important;
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}
#sidebar .nav > li > a:hover i{
  color: var(--cw-yellow) !important;
  transform: translateY(-1px);
}

/* Active pill + left accent */
#sidebar .nav > li.active > a,
#sidebar .nav > li.has-sub.active > a{
  background: rgba(var(--cw-blue-rgb),0.20) !important;
  box-shadow: 0 14px 26px rgba(0,0,0,0.22);
}
#sidebar .nav > li.active > a:before,
#sidebar .nav > li.has-sub.active > a:before{
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cw-yellow), var(--cw-blue), var(--cw-red));
  opacity: .95;
}
#sidebar .nav > li.active > a i,
#sidebar .nav > li.has-sub.active > a i{
  color: var(--cw-yellow) !important;
}

/* Caret */
#sidebar .nav > li.has-sub > a .caret,
#sidebar .nav > li.has-sub > a b.caret{
  color: rgba(255,255,255,0.55) !important;
}

/* Submenu */
#sidebar .sub-menu{
  background: rgba(255,255,255,0.04) !important;
  border-left: 1px solid rgba(255,255,255,0.08);
  margin: 2px 14px 8px;
  padding: 6px 0;
  border-radius: 12px;
}
#sidebar .sub-menu > li > a{
  color: rgba(255,255,255,0.78) !important;
  padding: 9px 14px 9px 42px;
  border-radius: 10px;
  margin: 2px 8px;
  transition: background-color 180ms ease, transform 160ms ease;
}
#sidebar .sub-menu > li > a:hover{
  background: rgba(255,255,255,0.08) !important;
  transform: translateX(2px);
}

/* Sidebar minify button */
#sidebar .sidebar-minify-btn{
  border-radius: 12px;
  margin: 8px 10px 12px;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}
#sidebar .sidebar-minify-btn:hover{
  background: rgba(255,255,255,0.10) !important;
}

/* Minified state: keep it clean */
.page-sidebar-minified #sidebar .nav > li > a{
  margin: 6px 6px;
  border-radius: 12px;
}
.page-sidebar-minified #sidebar .nav-header{
  display: none;
}

@media (prefers-reduced-motion: reduce){
  #sidebar .nav > li > a,
  #sidebar .nav > li > a i,
  #sidebar .sub-menu > li > a{ transition: none !important; }
}


/* ===========================
   ColombiaWisp Modern Header
   =========================== */

/* Glass header with Colombia accent */
#header.header.navbar-default{
  background: rgba(255,255,255,0.72) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

/* Keep the tricolor line crisp */
#header.header.navbar-default{
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--cw-yellow), var(--cw-blue), var(--cw-red)) 1;
}

/* Brand */
#header .navbar-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px !important;
}
#header .navbar-brand .logo-admin{
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.12));
  transition: transform 180ms ease, filter 180ms ease;
}
#header .navbar-brand:hover .logo-admin{
  transform: translateY(-1px);
  filter: drop-shadow(0 14px 20px rgba(0,0,0,0.16));
}

/* Search pill */
#header .searchbars .navbar-form{
  margin: 0;
}
#header .searchbars .form-group{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
#header .searchbars .form-group:focus-within{
  border-color: rgba(var(--cw-blue-rgb),0.35);
  box-shadow: 0 0 0 3px rgba(252,209,22,0.22), 0 14px 26px rgba(0,0,0,0.07);
  background: rgba(255,255,255,0.78);
}
#header .searchbars input.form-control{
  height: 34px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 8px !important;
  min-width: 240px;
}
#header .searchbars .btn-search{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(var(--cw-blue-rgb),0.08);
  color: var(--cw-blue);
  display: grid;
  place-items: center;
  transition: transform 160ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
#header .searchbars .btn-search:hover{
  background: rgba(var(--cw-blue-rgb),0.14);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}

/* Right-side icon buttons */
#header .navbar-nav.navbar-right > li > a{
  border-radius: 12px;
  margin: 6px 4px;
  background: transparent;
  transition: background-color 180ms ease, transform 160ms ease, box-shadow 180ms ease;
}
#header .navbar-nav.navbar-right > li > a:hover,
#header .navbar-nav.navbar-right > li.open > a{
  background: rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
}

/* Notification badges keep visible */
#header .lbl-notytelegram,
#header .lbl-notyficaction,
#header .lbl-soporte{
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.15));
}

#sidebar .cwisp-messaging-menu > a {
  display: flex;
  align-items: center;
}
#sidebar .cwisp-messaging-menu > a > i {
  order: 1;
  flex: 0 0 auto;
}
#sidebar .cwisp-messaging-menu > a > span {
  order: 2;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}
#sidebar .cwisp-messaging-menu > a > .caret {
  order: 3;
  flex: 0 0 auto;
  float: none !important;
  margin-left: 10px;
}
#sidebar .cwisp-messaging-menu .sub-menu > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
#sidebar .cwisp-badge-wa,
#sidebar .cwisp-badge-wa-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 20px;
  max-width: 44px;
  height: 18px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

@media (max-width: 768px){
  #header .searchbars input.form-control{ min-width: 140px; }
}

@media (prefers-reduced-motion: reduce){
  #header .navbar-brand .logo-admin,
  #header .searchbars .form-group,
  #header .searchbars .btn-search,
  #header .navbar-nav.navbar-right > li > a{
    transition: none !important;
  }
}



/* ===========================
   ColombiaWisp Header Icon Fix
   =========================== */

/* Center the search icon pixel-perfect (FontAwesome baseline can look slightly tilted/off) */
#header .searchbars .btn-search i{
  display: block;
  line-height: 1;
  margin: 0;
  transform: translateY(-0.5px);
}



/* ===========================
   ColombiaWisp Header Height 50px
   =========================== */

#header.header{
  height: 50px !important;
  max-height: 50px !important;
}

#header .navbar-header,
#header .navbar-brand{
  height: 50px !important;
}

#header .navbar-brand{
  padding: 6px 10px !important;
}

#header .navbar-brand .logo-admin{
  height: 30px !important;
  width: auto !important;
}

/* Right nav items compact */
#header .navbar-nav.navbar-right > li > a{
  padding: 10px 8px !important;
  margin: 4px 3px !important;
  line-height: 20px !important;
}

/* Search pill compact */
#header .searchbars .form-group{
  padding: 4px 6px !important;
}
#header .searchbars input.form-control{
  height: 30px !important;
  min-width: 200px;
  font-size: 12px;
}
#header .searchbars .btn-search{
  width: 30px !important;
  height: 30px !important;
}

/* Mobile: allow tighter */
@media (max-width: 768px){
  #header .searchbars input.form-control{ min-width: 120px; }
}



/* ================================
   ColombiaWisp Header Search Button Align
   ================================ */

/* Ensure the magnifier button is perfectly centered */
#header .searchbars .form-group{ align-items: center !important; }
#header .searchbars .btn-search{
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#header .searchbars .btn-search i{
  transform: none !important; /* overrides previous -0.5px tweak */
  line-height: 1 !important;
}



/* ================================
   ColombiaWisp Header Search Button 38px
   ================================ */

#header .searchbars .btn-search{
  width: 38px !important;
  height: 38px !important;
}



/* ============================================
   ColombiaWisp Sidebar Fixed Profile + Native Scroll
   ============================================ */

#sidebar.cwisp-sidebar{
  display: flex;
  flex-direction: column;
  height: 100%;
}

#sidebar.cwisp-sidebar .cwisp-sidebar-profile{
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
}

#sidebar.cwisp-sidebar .cwisp-sidebar-scroll{
  flex: 1 1 auto;
  min-height: 0; /* important for flex overflow */
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}

/* Hide slimScroll bar artifacts if any still get injected */
#sidebar.cwisp-sidebar .slimScrollBar,
#sidebar.cwisp-sidebar .slimScrollRail{
  display: none !important;
}



/* ============================================
   ColombiaWisp Sidebar Scrollbar + Layout Fix
   ============================================ */

/* Remove previous loader layout hacks that can create big empty space */
#content{ min-height: 0 !important; height: auto !important; }
#page-container{ height: auto !important; }

/* Premium scrollbar for the sidebar menu (only) */
#sidebar.cwisp-sidebar .cwisp-sidebar-scroll{
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--cw-accent-rgb),0.70) rgba(255,255,255,0.08);
}
#sidebar.cwisp-sidebar .cwisp-sidebar-scroll::-webkit-scrollbar{
  width: 10px;
}
#sidebar.cwisp-sidebar .cwisp-sidebar-scroll::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  margin: 10px 0;
}
#sidebar.cwisp-sidebar .cwisp-sidebar-scroll::-webkit-scrollbar-thumb{
  background: rgba(var(--cw-accent-rgb), 0.75);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
  box-shadow: 0 10px 18px rgba(0,0,0,0.22);
}
#sidebar.cwisp-sidebar .cwisp-sidebar-scroll::-webkit-scrollbar-thumb:hover{
  background: rgba(var(--cw-accent-rgb), 0.92);
}

/* ============================================
   ColombiaWisp Tables (modern look)
   ============================================ */

table.table,
.table{
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(2,6,23,0.06);
}

.table thead th,
table.table thead th{
  background: linear-gradient(180deg, rgba(var(--cw-accent-rgb),0.18), rgba(var(--cw-accent-rgb),0.06)) !important;
  color: rgba(15,23,42,0.82) !important;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(15,23,42,0.10) !important;
  border-top: 0 !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
}

.table tbody td,
.table tbody th{
  padding: 10px 12px !important;
  border-top: 1px solid rgba(15,23,42,0.06) !important;
  color: rgba(15,23,42,0.78);
  vertical-align: middle !important;
}

.table-sm tbody td,
.table-sm thead th{
  padding: 8px 10px !important;
}

.table-hover tbody tr:hover{
  background: rgba(var(--cw-accent-rgb), 0.08) !important;
}

.table-striped tbody tr:nth-of-type(odd){
  background-color: rgba(2,6,23,0.02) !important;
}

.table a{
  font-weight: 800;
}

/* DataTables polish (Bootstrap integration) */
div.dataTables_wrapper .dataTables_filter input,
div.dataTables_wrapper .dataTables_length select{
  border-radius: 999px !important;
  border: 1px solid rgba(15,23,42,0.12) !important;
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 10px 20px rgba(2,6,23,0.06);
}

div.dataTables_wrapper .dataTables_paginate .paginate_button{
  border-radius: 10px !important;
}

/* DataTables container + buttons + pagination (modern) */
div.dataTables_wrapper.dt-bootstrap > .row:first-child,
div.dataTables_wrapper.dt-bootstrap4 > .row:first-child,
div.dataTables_wrapper.dt-bootstrap > .row:last-child,
div.dataTables_wrapper.dt-bootstrap4 > .row:last-child{
  align-items: center;
  padding: 10px 10px;
  margin-left: 0;
  margin-right: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 10px 24px rgba(2,6,23,0.06);
}

div.dataTables_wrapper.dt-bootstrap > .row:first-child,
div.dataTables_wrapper.dt-bootstrap4 > .row:first-child{
  margin-bottom: 10px;
}
div.dataTables_wrapper.dt-bootstrap > .row:last-child,
div.dataTables_wrapper.dt-bootstrap4 > .row:last-child{
  margin-top: 10px;
}

div.dataTables_wrapper .dataTables_length label,
div.dataTables_wrapper .dataTables_filter label{
  margin: 0;
  font-weight: 800;
  color: rgba(15,23,42,0.70);
}

div.dataTables_wrapper .dataTables_filter input{
  padding: 10px 14px !important;
  height: 38px !important;
}
div.dataTables_wrapper .dataTables_length select{
  height: 38px !important;
  padding: 6px 12px !important;
}

.dt-buttons .btn,
.dt-buttons button,
.dt-buttons a{
  border-radius: 12px !important;
  border: 1px solid rgba(var(--cw-accent-rgb), 0.30) !important;
  background: rgba(var(--cw-accent-rgb), 0.14) !important;
  color: rgba(15,23,42,0.86) !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 18px rgba(2,6,23,0.06) !important;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease !important;
}
.dt-buttons .btn:hover,
.dt-buttons button:hover,
.dt-buttons a:hover{
  background: rgba(var(--cw-accent-rgb), 0.22) !important;
  border-color: rgba(var(--cw-accent-rgb), 0.45) !important;
  transform: translateY(-1px);
}

/* Row action icon buttons (edit/delete/etc) */
div.dataTables_wrapper .btn-icon.btn-sm{
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(15,23,42,0.08) !important;
  background: rgba(255,255,255,0.72) !important;
  box-shadow: 0 10px 18px rgba(2,6,23,0.06);
}
div.dataTables_wrapper .btn-icon.btn-sm:hover{
  color: var(--cw-accent) !important;
  border-color: rgba(var(--cw-accent-rgb), 0.38) !important;
  background: rgba(var(--cw-accent-rgb), 0.12) !important;
}

/* Bootstrap pagination inside DataTables */
div.dataTables_wrapper .pagination{
  margin: 0 !important;
  gap: 6px;
}
div.dataTables_wrapper .pagination .page-link{
  border-radius: 12px !important;
  border: 1px solid rgba(15,23,42,0.10) !important;
  background: rgba(255,255,255,0.85) !important;
  color: rgba(15,23,42,0.78) !important;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(2,6,23,0.06);
}
div.dataTables_wrapper .pagination .page-item.active .page-link{
  background: rgba(var(--cw-accent-rgb), 0.92) !important;
  border-color: rgba(var(--cw-accent-rgb), 0.60) !important;
  color: var(--cw-accent-contrast, #0B1220) !important;
}
div.dataTables_wrapper .pagination .page-item.disabled .page-link{
  opacity: 0.55;
}

table.dataTable{
  border-radius: 14px;
  overflow: hidden;
}

table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc,
table.dataTable thead > tr > th.sorting{
  background-color: transparent !important;
}



/* ============================================
   ColombiaWisp Theme Panel Integration
   ============================================ */

:root{
  --cw-accent: rgb(252, 209, 22);
  --cw-accent-rgb: 252,209,22;
  --cw-accent-contrast: #0B1220;
}

/* ============================================
   Layout fix: when sidebar is collapsed/minified,
   content must expand (no empty gap)
   ============================================ */

/* When user "closes" the sidebar (minified), don't keep an empty gutter.
   Sidebar remains 60px, so content must shift 60px to avoid being covered. */
.page-sidebar-minified #content.content,
#page-container.page-sidebar-minified ~ #content.content{
  margin-left: 60px !important;
}

.page-sidebar-minified #header.header,
#page-container.page-sidebar-minified ~ #header.header{
  margin-left: 60px !important;
}

.page-sidebar-toggled #content.content,
#page-container.page-sidebar-toggled ~ #content.content{
  margin-left: 0 !important; /* mobile/offcanvas */
}

/* (reverted) Sidebar minified should remain visible (icon-only),
   do NOT collapse sidebar to 0px. */

/* Sidebar accent comes from theme selection */
#sidebar.sidebar:before{ background: var(--cw-accent) !important; }
#sidebar .nav-profile .image img{
  border-color: rgba(var(--cw-accent-rgb), 0.65) !important;
}
#sidebar .nav > li > a:hover i{
  color: var(--cw-accent) !important;
}
#sidebar .nav > li.active > a i,
#sidebar .nav > li.has-sub.active > a i{
  color: var(--cw-accent) !important;
}
#sidebar .nav > li.active > a:before,
#sidebar .nav > li.has-sub.active > a:before{
  background: var(--cw-accent) !important;
}
#sidebar .nav > li.active > a,
#sidebar .nav > li.has-sub.active > a{
  background: rgba(var(--cw-accent-rgb), 0.16) !important;
}

#sidebar .nav > li.active > a:before,
#sidebar .nav > li.has-sub.active > a:before{
  background: var(--cw-accent) !important;
}

/* Dark header: show light logo variant */
#header .logo-admin--light{ display: none; }
#header.navbar-inverse .logo-admin--dark{ display: none !important; }
#header.navbar-inverse .logo-admin--light{ display: inline-block !important; }

/* Header accent comes from theme selection */
#header.header{
  border-top: 3px solid var(--cw-accent) !important;
  border-image: none !important;
}
#header.header .searchbars .btn-search{
  background: rgba(var(--cw-accent-rgb), 0.18) !important;
  border-color: rgba(var(--cw-accent-rgb), 0.40) !important;
}
#header.header .searchbars .btn-search:hover{
  background: rgba(var(--cw-accent-rgb), 0.26) !important;
  border-color: rgba(var(--cw-accent-rgb), 0.55) !important;
}
#header.header .searchbars .btn-search i{
  color: var(--cw-accent) !important;
}

/* ============================================
   SweetAlert2 (theme aware)
   ============================================ */
.swal2-popup{
  border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(2,6,23,0.24) !important;
}
.swal2-title{
  color: rgba(15,23,42,0.92) !important;
}
.swal2-html-container{
  color: rgba(15,23,42,0.78) !important;
}
.swal2-icon.swal2-warning,
.swal2-icon.swal2-info,
.swal2-icon.swal2-question{
  border-color: rgba(var(--cw-accent-rgb), 0.65) !important;
  color: var(--cw-accent) !important;
}
.swal2-styled{
  border-radius: 12px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 26px rgba(2,6,23,0.16) !important;
}
.swal2-styled.swal2-confirm{
  background: rgba(var(--cw-accent-rgb), 0.95) !important;
  border: 1px solid rgba(var(--cw-accent-rgb), 0.60) !important;
  color: var(--cw-accent-contrast, #0B1220) !important;
}
.swal2-styled.swal2-cancel{
  background: rgba(15,23,42,0.06) !important;
  border: 1px solid rgba(15,23,42,0.10) !important;
  color: rgba(15,23,42,0.80) !important;
}
.swal2-styled:focus{
  box-shadow: 0 0 0 4px rgba(var(--cw-accent-rgb), 0.22) !important;
}

/* SweetAlert v1 (legacy) – also theme aware */
.swal-modal{
  border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(2,6,23,0.24) !important;
}
.swal-button{
  border-radius: 12px !important;
  font-weight: 900 !important;
}
.swal-button--confirm{
  background: rgba(var(--cw-accent-rgb), 0.95) !important;
  color: var(--cw-accent-contrast, #0B1220) !important;
}
.swal-button--cancel{
  background: rgba(15,23,42,0.06) !important;
  color: rgba(15,23,42,0.82) !important;
}

/* ============================================
   jQuery Confirm (jconfirm) - theme aware
   The app uses $.confirm({ theme: 'supervan' })
   ============================================ */
.jconfirm.jconfirm-supervan .jconfirm-bg{
  background-color: rgba(11,18,32,0.88) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.jconfirm.jconfirm-supervan .jconfirm-box{
  background: #353c49 !important;
  border-radius: 18px !important;
  box-shadow: 0 26px 90px rgba(2,6,23,0.55) !important;
}
.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c{
  color: rgba(255,255,255,0.92) !important;
}
.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{
  color: var(--cw-accent) !important;
}
.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content{
  color: rgba(255,255,255,0.86) !important;
}

/* Default buttons in supervan (your dialogs use this) */
.jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons button{
  border-radius: 12px !important;
  background: rgba(var(--cw-accent-rgb), 0.92) !important;
  color: var(--cw-accent-contrast, #0B1220) !important;
  font-weight: 900 !important;
  border: 1px solid rgba(var(--cw-accent-rgb), 0.65) !important;
  box-shadow: 0 14px 26px rgba(2,6,23,0.22) !important;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease !important;
}
.jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons button:hover{
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(2,6,23,0.28) !important;
}
.jconfirm.jconfirm-supervan .cwisp-confirm-lines{
  max-height: 220px;
  margin-top: 14px;
  overflow-y: auto;
}
.jconfirm.jconfirm-supervan .cwisp-confirm-line{
  padding: 3px 0;
  color: rgba(255,255,255,.82);
  font-size: 13px;
}
.jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons button.cwisp-confirm-cancel{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.22) !important;
  color: #fff !important;
}
.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-cwisp-assistant .jconfirm-buttons button:not(.cwisp-confirm-cancel){
  background:#348fe2 !important;
  border-color:#348fe2 !important;
  color:#fff !important;
}

/* ============================================
   ColombiaWisp Home Widgets (Modern Dashboard)
   ============================================ */

.cwisp-home{
  --cw-card-bg: rgba(255,255,255,0.76);
  --cw-card-border: rgba(15,23,42,0.10);
  --cw-card-shadow: 0 14px 32px rgba(2,6,23,0.10);
  --cw-muted: rgba(15,23,42,0.62);
  width: 100%;
  padding: 0 16px;
}
@media (max-width: 767px){
  .cwisp-home{ padding: 0 12px; }
}

/* Slightly tighter gutters inside home for better balance */
.cwisp-home .row{
  margin-left: -10px;
  margin-right: -10px;
}
.cwisp-home [class*="col-"]{
  padding-left: 10px;
  padding-right: 10px;
}

/* Dashboard grid editor (GridStack) */
.cwisp-home-grid-toolbar{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 10px 0 12px;
}
.cwisp-home-grid-toolbar .btn{
  border-radius: 999px !important;
}
.cwisp-home-grid.grid-stack{
  min-height: 420px;
}
.cwisp-home-grid .cwisp-grid-item-content{
  height: 100%;
  overflow: hidden !important; /* override GridStack default overflow:auto */
}
.cwisp-home-grid .cwisp-grid-card{
  height: 100%;
}
.cwisp-home-grid .panel.cwisp-grid-card{
  display: flex;
  flex-direction: column;
}
.cwisp-home-grid .panel.cwisp-grid-card .panel-body{
  flex: 1 1 auto;
  overflow: hidden; /* avoid inner scrollbars; grid minH will auto-fit content */
}
.cwisp-home-grid .panel.cwisp-grid-card .panel-footer{
  flex: 0 0 auto;
}
.cwisp-grid-config-btn{
  display: none;
  float: right;
  margin-top: -2px;
  border-radius: 10px !important;
}
body.cwisp-grid-editing .cwisp-grid-config-btn{
  display: inline-flex;
}
/* hide resize handles unless editing */
body:not(.cwisp-grid-editing) .grid-stack .ui-resizable-handle{
  display: none !important;
}
body.cwisp-grid-editing .cwisp-home-grid.grid-stack{
  outline: 2px dashed rgba(var(--cw-accent-rgb), 0.22);
  outline-offset: 6px;
}

/* Resize handles: left = horizontal, bottom = vertical */
body.cwisp-grid-editing .grid-stack .ui-resizable-handle{
  background: rgba(var(--cw-accent-rgb), 0.14);
  border: 1px solid rgba(var(--cw-accent-rgb), 0.28);
  box-shadow: 0 10px 22px rgba(var(--cw-accent-rgb), 0.12);
  border-radius: 999px;
  z-index: 5;
}
body.cwisp-grid-editing .grid-stack .ui-resizable-e,
body.cwisp-grid-editing .grid-stack .ui-resizable-se,
body.cwisp-grid-editing .grid-stack .ui-resizable-sw,
body.cwisp-grid-editing .grid-stack .ui-resizable-n,
body.cwisp-grid-editing .grid-stack .ui-resizable-ne,
body.cwisp-grid-editing .grid-stack .ui-resizable-nw{
  display: none !important;
}
body.cwisp-grid-editing .grid-stack .ui-resizable-w{
  width: 18px !important;
  height: 64px !important;
  left: -9px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  cursor: ew-resize !important;
}
body.cwisp-grid-editing .grid-stack .ui-resizable-s{
  width: 64px !important;
  height: 18px !important;
  left: 50% !important;
  bottom: -9px !important;
  transform: translateX(-50%) !important;
  cursor: ns-resize !important;
}
body.cwisp-grid-editing .grid-stack .ui-resizable-w:before,
body.cwisp-grid-editing .grid-stack .ui-resizable-s:before{
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: rgba(var(--cw-accent-rgb), 0.20);
}

/* STAT WIDGETS (top 4): misma altura; números grandes sin truncar ni descuadrar */
.cwisp-home > .row.cwisp-home-stats{
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.cwisp-home > .row.cwisp-home-stats > [class*="col-"]{
  display: flex;
}
.cwisp-home > .row.cwisp-home-stats > [class*="col-"] > .widget.widget-stats{
  width: 100%;
  height: 100%;
}
.cwisp-home .widget.widget-stats{
  display: flex;
  gap: 10px;
  align-items: stretch;
  border-radius: 18px !important;
  padding: 14px 14px 12px !important;
  background: var(--cw-card-bg) !important;
  border: 1px solid var(--cw-card-border) !important;
  box-shadow: var(--cw-card-shadow);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  min-height: 148px;
}
.cwisp-home .widget.widget-stats:before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 220px at 10% 0%, rgba(var(--cw-accent-rgb),0.22), transparent 60%),
    radial-gradient(520px 280px at 100% 0%, rgba(var(--cw-blue-rgb),0.10), transparent 55%);
  pointer-events: none;
}
.cwisp-home .widget.widget-stats:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(2,6,23,0.14);
  border-color: rgba(var(--cw-accent-rgb),0.22) !important;
}

.cwisp-home .widget-stats .stats-icon{
  position: relative !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--cw-accent-rgb),0.18) !important;
  color: var(--cw-accent) !important;
  box-shadow: 0 14px 26px rgba(2,6,23,0.10);
}
.cwisp-home .widget-stats .stats-icon i{
  font-size: 18px;
  opacity: 0.95;
}
.cwisp-home .widget-stats .stats-content{
  position: relative;
  z-index: 1;
  padding: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cwisp-home .widget-stats .stats-title{
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.60) !important;
  font-weight: 800;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cwisp-home .widget-stats .stats-number{
  color: rgba(15,23,42,0.92) !important;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(16px, 1.7vw, 26px);
  line-height: 1.15;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
}
.cwisp-home .widget-stats .stats-content > div{
  color: var(--cw-muted) !important;
  font-weight: 600;
}
.cwisp-home .widget-stats .stats-meta,
.cwisp-home .widget-stats .stats-content > div:not(.stats-title):not(.stats-number):not(.stats-progress):not(.stats-desc){
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 12px;
  line-height: 1.3;
  word-break: break-word;
}
.cwisp-home .widget-stats .stats-content > div b{
  color: rgba(15,23,42,0.88);
}
.cwisp-home .widget-stats .stats-progress.progress{
  height: 6px !important;
  border-radius: 999px;
  background: rgba(15,23,42,0.08) !important;
  overflow: hidden;
  margin: 10px 0 8px;
}
.cwisp-home .widget-stats .stats-progress .progress-bar{
  background: rgba(var(--cw-accent-rgb),0.92) !important;
  border-radius: 999px;
}
.cwisp-home .widget-stats .stats-desc a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--cw-accent-rgb),0.14);
  color: rgba(15,23,42,0.86) !important;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  transition: transform 160ms ease, background-color 160ms ease;
}
.cwisp-home .widget-stats .stats-desc a:hover{
  background: rgba(var(--cw-accent-rgb),0.22);
  transform: translateX(2px);
}
.cwisp-home .widget-stats .stats-desc{
  margin-top: auto;
}

/* Sortable polish (prevents deformation while dragging panels) */
.cwisp-sortable-placeholder{
  border: 2px dashed rgba(var(--cw-accent-rgb), 0.35) !important;
  background: rgba(var(--cw-accent-rgb), 0.10) !important;
  border-radius: 18px !important;
  visibility: visible !important;
}
.cwisp-sortable-helper{
  box-shadow: 0 20px 60px rgba(2,6,23,0.22) !important;
  border-radius: 18px !important;
  transform: rotate(0.4deg);
}
body.cwisp-sortable-dragging .panel{
  transition: none !important;
}

/* PANELS -> modern cards */
.cwisp-home .panel{
  border-radius: 18px !important;
  overflow: hidden;
  border: 1px solid var(--cw-card-border) !important;
  background: var(--cw-card-bg) !important;
  box-shadow: var(--cw-card-shadow);
  color: rgba(15,23,42,0.88);
}

/* ============================================
   ColombiaWisp Home Grid - Compact chrome
   (avoid "stretched" headers/footers inside GridStack)
   ============================================ */
.cwisp-home-grid .panel .panel-heading{
  padding: 10px 14px !important;
  flex: 0 0 auto !important; /* prevent legacy theme from stretching header */
  height: auto !important;
  min-height: 0 !important;
  align-items: center;
}
.cwisp-home-grid .panel .panel-title{
  font-size: 13px;
  line-height: 1.2;
}
.cwisp-home-grid .panel .panel-body{
  padding: 10px 14px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
.cwisp-home-grid .panel .panel-footer{
  padding: 10px 14px !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
}
.cwisp-home-grid .list-group .list-group-item{
  padding: 10px 12px !important;
}

.cwisp-home-grid .widget-chart .widget-chart-content{
  padding: 10px 14px !important;
}
.cwisp-home-grid .widget-chart .widget-chart-sidebar{
  padding: 10px 12px !important;
}
.cwisp-home-grid .widget-chart .chart-title{
  margin: 0 0 8px 0 !important;
  font-size: 14px;
  line-height: 1.2;
}
.cwisp-home-grid .widget-chart .chart-title small{
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.85;
}

/* Dark panels inside home (server widget) keep a premium dark card */
.cwisp-home .panel.bg-dark{
  background: rgba(11,18,32,0.88) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.92) !important;
}
.cwisp-home .panel.bg-dark .panel-heading{
  border-bottom-color: rgba(255,255,255,0.10) !important;
}
.cwisp-home .panel.bg-dark .panel-title{
  color: rgba(255,255,255,0.94) !important;
}
.cwisp-home .panel.bg-dark .text-grey{
  color: rgba(255,255,255,0.65) !important;
}
.cwisp-home .panel .panel-heading{
  background: transparent !important;
  border-bottom: 1px solid rgba(15,23,42,0.08) !important;
  padding: 14px 16px !important;
}
.cwisp-home .panel .panel-title{
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(15,23,42,0.92);
}
.cwisp-home .panel .panel-body{
  padding: 14px 16px;
}
.cwisp-home .panel .panel-footer{
  background: transparent !important;
  border-top: 1px solid rgba(15,23,42,0.08) !important;
}

/* List groups inside home */
.cwisp-home .list-group .list-group-item{
  border: 0 !important;
  border-bottom: 1px solid rgba(15,23,42,0.06) !important;
  padding: 12px 14px !important;
  background: transparent !important;
  color: rgba(15,23,42,0.86) !important;
}

/* Facturación section headers */
.cwisp-home .list-group .list-group-item.bg-blue,
.cwisp-home .list-group .list-group-item.bg-info{
  border-radius: 12px !important;
  margin: 10px 10px 8px !important;
  border: 1px solid rgba(var(--cw-accent-rgb),0.22) !important;
  background: linear-gradient(90deg, rgba(var(--cw-accent-rgb),0.22), rgba(var(--cw-accent-rgb),0.10)) !important;
  color: rgba(15,23,42,0.92) !important;
  font-weight: 900;
  letter-spacing: .02em;
}

/* Server list widget polish */
.cwisp-home .widget-list .widget-list-item{
  border: 0 !important;
  border-bottom: 1px solid rgba(15,23,42,0.06) !important;
  padding: 12px 14px !important;
  background: transparent !important;
  transition: background-color 160ms ease;
}
.cwisp-home .panel.bg-dark .widget-list .widget-list-item{
  border-bottom-color: rgba(255,255,255,0.08) !important;
}
.cwisp-home .widget-list .widget-list-item:hover{
  background: rgba(var(--cw-accent-rgb),0.06) !important;
}
.cwisp-home .panel.bg-dark .widget-list .widget-list-item:hover{
  background: rgba(255,255,255,0.06) !important;
}
.cwisp-home .widget-list .widget-list-media.icon i{
  border-radius: 14px !important;
  box-shadow: 0 12px 24px rgba(2,6,23,0.18);
}
.cwisp-home .list-group .list-group-item:last-child{
  border-bottom: 0 !important;
}
.cwisp-home .list-group .badge{
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
}

/* Tables */
.cwisp-home .table{
  border-color: rgba(15,23,42,0.08) !important;
}
.cwisp-home .table thead th{
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.08) !important;
  font-weight: 800;
}
.cwisp-home .table tbody tr:hover{
  background: rgba(var(--cw-accent-rgb),0.06);
}

/* Dark chart widget polish */
.cwisp-home .widget-chart.with-sidebar{
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--cw-card-shadow);
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
}
.cwisp-home .widget-chart.with-sidebar .widget-chart-content{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
.cwisp-home .widget-chart.with-sidebar .widget-chart-content > #chart-trafico-home,
.cwisp-home .widget-chart.with-sidebar .widget-chart-content > .widget-chart-full-width{
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
}
.cwisp-home .widget-chart.with-sidebar .widget-chart-sidebar{
  flex: 0 0 150px !important;
  width: 150px !important;
  max-width: 200px !important;
}
@media (max-width: 991px){
  .cwisp-home .widget-chart.with-sidebar{
    flex-direction: column !important;
  }
  .cwisp-home .widget-chart.with-sidebar .widget-chart-sidebar{
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
  }
}
.cwisp-home .widget-chart .widget-chart-content.bg-dark{
  background: rgba(11,18,32,0.86) !important;
}
.cwisp-home .widget-chart .widget-chart-sidebar.bg-dark-darker{
  background: rgba(11,18,32,0.94) !important;
}

@media (prefers-reduced-motion: reduce){
  .cwisp-home .widget.widget-stats{ transition: none !important; }
  .cwisp-home .widget.widget-stats:hover{ transform: none !important; }
  .cwisp-home .widget-stats .stats-desc a{ transition: none !important; }
}

/* Dark header (navbar-inverse) modern look */
#header.header.navbar-inverse{
  background: rgba(11,18,32,0.72) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}
#header.header.navbar-inverse .searchbars .form-group{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
}
#header.header.navbar-inverse .searchbars input.form-control{
  color: rgba(255,255,255,0.90) !important;
}
#header.header.navbar-inverse .searchbars input.form-control::placeholder{
  color: rgba(255,255,255,0.60);
}
#header.header.navbar-inverse .navbar-nav.navbar-right > li > a{
  color: rgba(255,255,255,0.90) !important;
}
#header.header.navbar-inverse .navbar-nav.navbar-right > li > a:hover,
#header.header.navbar-inverse .navbar-nav.navbar-right > li.open > a{
  background: rgba(255,255,255,0.10);
}

/* =====================================================================
   SmartOLT module + GenieACS panel — ColombiaWisp visual integration
   (Tabs: Acciones, GenieACS, and modals inside OLT configuradas).
   Scope: anything wrapped in .cwisp-smartolt
   ===================================================================== */

.cwisp-smartolt .nav-tabs{
  border-bottom-color: rgba(var(--cw-accent-rgb), 0.25);
  margin-bottom: 18px;
}
.cwisp-smartolt .nav-tabs .nav-link{
  color: var(--cw-muted, #6b7280);
  border: 1px solid transparent !important;
  border-radius: 10px 10px 0 0 !important;
  padding: 10px 16px;
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.cwisp-smartolt .nav-tabs .nav-link:hover{
  color: var(--cw-accent, #2a72b5);
  background-color: rgba(var(--cw-accent-rgb), 0.06);
  border-bottom-color: rgba(var(--cw-accent-rgb), 0.25) !important;
}
.cwisp-smartolt .nav-tabs .nav-link.active{
  color: var(--cw-accent, #2a72b5);
  background-color: #fff;
  border-color: rgba(var(--cw-accent-rgb), 0.25) !important;
  border-bottom-color: var(--cw-accent, #2a72b5) !important;
}

/* ---------- Cards (status, ACS state, devices table) ---------- */
.cwisp-smartolt .cwisp-card,
.cwisp-smartolt .card{
  background: #fff;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
  margin-bottom: 18px;
  overflow: hidden;
}
.cwisp-smartolt .card-header{
  /* Estilo unificado con paneles/tickets: lo define extra.css */
  padding: 14px 20px;
  font-size: 13.5px;
  font-weight: 800;
}
.cwisp-smartolt .card-body{
  padding: 16px;
}

/* State / status grid (Docker, NBI, devices) */
.cwisp-smartolt .cwisp-state-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 8px 0;
}
.cwisp-smartolt .cwisp-state-cell{
  background: rgba(var(--cw-accent-rgb),0.04);
  border: 1px solid rgba(var(--cw-accent-rgb),0.18);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.cwisp-smartolt .cwisp-state-cell .cwisp-state-label{
  display: block;
  color: var(--cw-muted, #6b7280);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cwisp-smartolt .cwisp-state-cell .cwisp-state-value{
  font-size: 17px;
  font-weight: 800;
  color: var(--cw-ink, #0B1220);
}
.cwisp-smartolt .cwisp-state-cell .cwisp-state-value.text-success{ color: #1f9d55 !important; }
.cwisp-smartolt .cwisp-state-cell .cwisp-state-value.text-danger{  color: var(--cw-red, #CE1126) !important; }
.cwisp-smartolt .cwisp-state-cell .cwisp-state-value.text-warning{  color: #d97706 !important; }
.cwisp-smartolt .cwisp-state-cell .cwisp-state-value.text-muted{    color: var(--cw-muted, #6b7280) !important; }

/* State badge (big icon + label) */
.cwisp-smartolt .cwisp-state-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.04);
}
.cwisp-smartolt .cwisp-state-badge.text-success{ background: rgba(31,157,85,0.12); color: #1f9d55 !important; }
.cwisp-smartolt .cwisp-state-badge.text-danger{  background: rgba(206,17,38,0.12); color: var(--cw-red, #CE1126) !important; }
.cwisp-smartolt .cwisp-state-badge.text-warning{ background: rgba(217,119,6,0.14); color: #d97706 !important; }
.cwisp-smartolt .cwisp-state-badge.text-muted{   background: rgba(15,23,42,0.06); color: var(--cw-muted, #6b7280) !important; }

/* ---------- Buttons ---------- */
.cwisp-smartolt .btn{ border-radius: 10px !important; }
.cwisp-smartolt .btn-sm{ border-radius: 8px !important; }
.cwisp-smartolt .btn-xs{ border-radius: 6px !important; }

/* Primary action = program blue */
.cwisp-smartolt .btn.btn-cwisp-primary{
  background: var(--cw-accent, #2a72b5);
  border-color: var(--cw-accent, #2a72b5);
  color: #fff;
}
.cwisp-smartolt .btn.btn-cwisp-primary:hover{
  background: var(--cw-accent-dark, #1f5688);
  border-color: var(--cw-accent-dark, #1f5688);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
/* Outline button = subtle */
.cwisp-smartolt .btn.btn-cwisp-outline{
  background: transparent;
  border-color: rgba(var(--cw-accent-rgb),0.55);
  color: var(--cw-accent, #2a72b5);
}
.cwisp-smartolt .btn.btn-cwisp-outline:hover{
  background: rgba(var(--cw-accent-rgb),0.08);
  border-color: var(--cw-accent, #2a72b5);
  color: var(--cw-accent-dark, #1f5688);
}
/* Danger (detener / ejecutar) */
.cwisp-smartolt .btn.btn-cwisp-danger{
  background: var(--cw-red, #CE1126);
  border-color: var(--cw-red, #CE1126);
  color: #fff;
}
.cwisp-smartolt .btn.btn-cwisp-danger:hover{
  background: #a50d1d;
  border-color: #a50d1d;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(206,17,38,0.30);
}
/* Success (iniciar / instalar) */
.cwisp-smartolt .btn.btn-cwisp-success{
  background: #1f9d55;
  border-color: #1f9d55;
  color: #fff;
}
.cwisp-smartolt .btn.btn-cwisp-success:hover{
  background: #16793f;
  border-color: #16793f;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(31,157,85,0.30);
}
/* Warning (detener GenieACS) */
.cwisp-smartolt .btn.btn-cwisp-warning{
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}
.cwisp-smartolt .btn.btn-cwisp-warning:hover{
  background: #b35c05;
  border-color: #b35c05;
  color: #fff;
}

/* Group of action buttons */
.cwisp-smartolt .cwisp-actions-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(15,23,42,0.10);
}

/* ---------- Alerts ---------- */
.cwisp-smartolt .alert{
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
  border-left: 4px solid var(--cw-accent, #2a72b5);
  background: rgba(var(--cw-accent-rgb),0.08);
  color: var(--cw-ink, #0B1220);
}
.cwisp-smartolt .alert.alert-info{ border-left-color: var(--cw-accent, #2a72b5); background: rgba(var(--cw-accent-rgb),0.08); }
.cwisp-smartolt .alert.alert-warning{ border-left-color: #d97706; background: rgba(217,119,6,0.10); color: #8a4b04; }
.cwisp-smartolt .alert.alert-danger{ border-left-color: var(--cw-red, #CE1126); background: rgba(206,17,38,0.10); color: #7a0c19; }
.cwisp-smartolt .alert.alert-success{ border-left-color: #1f9d55; background: rgba(31,157,85,0.10); color: #0f5430; }
.cwisp-smartolt .alert b{ color: inherit; }
.cwisp-smartolt .alert code{
  background: rgba(15,23,42,0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}
.cwisp-smartolt .alert ul{ margin: 6px 0 0 0; padding-left: 18px; }

/* ---------- URL / input group ---------- */
.cwisp-smartolt .input-group{
  border-radius: 10px;
  overflow: hidden;
}
.cwisp-smartolt .form-control{
  border-radius: 8px !important;
  border-color: rgba(15,23,42,0.14);
}
.cwisp-smartolt .input-group .form-control{ border-radius: 0 !important; }
.cwisp-smartolt .input-group .btn{
  border-radius: 0 !important;
}
.cwisp-smartolt .input-group > :last-child{ border-top-right-radius: 8px !important; border-bottom-right-radius: 8px !important; }
.cwisp-smartolt .input-group > :first-child{ border-top-left-radius: 8px !important; border-bottom-left-radius: 8px !important; }

/* ---------- Devices table ---------- */
.cwisp-smartolt table.table{
  margin: 0 !important;
  font-size: 12.5px;
}
.cwisp-smartolt table.table thead th{
  /* Estilo unificado: el thead navy lo define extra.css (#content .cwisp-smartolt…). */
  white-space: nowrap;
}
.cwisp-smartolt table.table tbody td{
  padding: 9px 12px;
  vertical-align: middle;
  border-color: rgba(15,23,42,0.06);
}
.cwisp-smartolt table.table tbody tr:hover{
  background: rgba(var(--cw-accent-rgb),0.06);
}
.cwisp-smartolt table.table code{
  background: rgba(var(--cw-accent-rgb),0.10);
  color: var(--cw-accent-dark, #1f5688);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Badges inside cells */
.cwisp-smartolt .badge{
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
}
.cwisp-smartolt .badge-success{ background: #1f9d55 !important; }
.cwisp-smartolt .badge-warning{ background: #d97706 !important; color: #fff !important; }
.cwisp-smartolt .badge-info{    background: rgba(var(--cw-accent-rgb),0.85) !important; color: #fff !important; }
.cwisp-smartolt .badge-default{ background: rgba(15,23,42,0.10) !important; color: var(--cw-muted, #6b7280) !important; }

/* ---------- Log box (install log) ---------- */
.cwisp-smartolt pre{
  background: rgba(11,18,32,0.92) !important;
  color: #d1d5db !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px !important;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Divider ---------- */
.cwisp-smartolt hr{
  border-top: 1px dashed rgba(15,23,42,0.14);
  margin: 16px 0;
}

/* ---------- Empty hint ---------- */
.cwisp-smartolt .cwisp-empty{
  text-align: center;
  color: var(--cw-muted, #6b7280);
  padding: 32px 16px;
  font-size: 13px;
}
.cwisp-smartolt .cwisp-empty i{ font-size: 30px; opacity: .35; margin-bottom: 8px; display: block; }

/* ---------- Tabs: Acciones + bulk actions ---------- */
.cwisp-smartolt .cwisp-tab-acciones{
  padding: 16px;
}
.cwisp-smartolt .cwisp-tab-acciones .btn{ margin-right: 6px; }

/* Bulk actions form (inside modal) */
#modaltmp.cwisp-modal-smartolt .modal-body{ padding: 18px; }
#modaltmp.cwisp-modal-smartolt .modal-footer{
  background: rgba(15,23,42,0.04);
  border-top: 1px solid rgba(15,23,42,0.10);
}
#modaltmp.cwisp-modal-smartolt .modal-title{ color: var(--cw-accent, #2a72b5); font-weight: 700; }
#modaltmp.cwisp-modal-smartolt .control-label{ font-weight: 600; color: var(--cw-ink, #0B1220); }
#modaltmp.cwisp-modal-smartolt .alert-yellow{
  background: rgba(252,209,22,0.18);
  border-left: 4px solid var(--cw-yellow, #FCD116);
  border-radius: 8px;
  color: #6b5500;
}
#modaltmp.cwisp-modal-smartolt .btn-success{
  background: #1f9d55 !important;
  border-color: #1f9d55 !important;
  color: #fff !important;
}
#modaltmp.cwisp-modal-smartolt .btn-info{
  background: rgba(var(--cw-accent-rgb),0.85) !important;
  border-color: var(--cw-accent, #2a72b5) !important;
  color: #fff !important;
}
#modaltmp.cwisp-modal-smartolt .btn-warning{
  background: #d97706 !important;
  border-color: #d97706 !important;
  color: #fff !important;
}
#modaltmp.cwisp-modal-smartolt .btn-danger{
  background: var(--cw-red, #CE1126) !important;
  border-color: var(--cw-red, #CE1126) !important;
  color: #fff !important;
}
#modaltmp.cwisp-modal-smartolt .btn-white{
  background: #fff;
  border-color: rgba(15,23,42,0.16);
  color: var(--cw-ink, #0B1220);
}
#modaltmp.cwisp-modal-smartolt .btn-white:hover{
  background: rgba(15,23,42,0.04);
}

/* ---------- OLT configuradas: rows / status labels ---------- */
.cwisp-smartolt .label.label-success{ background: #1f9d55 !important; }
.cwisp-smartolt .label.label-warning{ background: #d97706 !important; }
.cwisp-smartolt .label.label-danger{  background: var(--cw-red, #CE1126) !important; }
.cwisp-smartolt .label.label-default{ background: rgba(15,23,42,0.10) !important; color: var(--cw-muted, #6b7280) !important; }

/* ---------- Vista dedicada de una OLT ---------- */
.cwisp-olt-view .cwisp-olt-title{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.cwisp-olt-view .cwisp-olt-title-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(var(--cw-accent-rgb),0.10);
}
.cwisp-olt-view .cwisp-olt-title small{
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Diálogos de formulario OLT (jConfirm modern) = mismo look que #modaltmp / Nueva Red.
   Las confirmaciones supervan NO se tocan. */
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-bg{
  background: rgba(0,0,0,0.7) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box{
  display: flex !important;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  padding: 0 !important;
  overflow: hidden;
  color: #172033 !important;
  background: #fff !important;
  border: 1px solid #d8dee9;
  border-radius: 16px !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28) !important;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c{
  flex: 0 0 43.3px;
  display: flex !important;
  align-items: center;
  box-sizing: border-box;
  height: 43.3px;
  margin: 0 !important;
  padding: 10px 15px !important;
  color: #172033 !important;
  text-align: left !important;
  border-bottom: 1px solid #d8dee9;
  background: #f8fafc;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c > *{
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 22.5px !important;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c,
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c .icodialog{
  display: none !important;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-closeIcon{
  top: 10px !important;
  right: 12px !important;
  color: #6b7280 !important;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content-pane{
  flex: 1 1 auto;
  width: 100%;
  margin: 0 !important;
  padding: 15px 16px 10px !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
/* Select2 dropdownParent = body: no cambiar overflow al abrir. */
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-content{
  color: #172033 !important;
  text-align: left;
  margin: 0 !important;
  font-size: 12px;
  line-height: 18px;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .cwisp-olt-form-modal{
  padding-top: 4px;
  padding-bottom: 4px;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .cwisp-olt-form-modal h5{
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #172033;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .cwisp-olt-form-modal .form-group{
  margin-bottom: 12px;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .cwisp-olt-form-modal hr{
  margin: 12px 0;
  border-top-color: #e2e7eb;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .cwisp-olt-grid .row{
  margin-top: 0 !important;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .cwisp-olt-grid .row > [class*="col-"]{
  margin-bottom: 12px;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .cwisp-modal-tabs{
  display: flex;
  gap: 4px;
  position: sticky;
  top: -15px;
  z-index: 4;
  padding-top: 8px;
  border-bottom: 1px solid #d8dee9;
  background: #fff;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .cwisp-modal-tabs > li{
  float: none;
  margin-bottom: -1px;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .cwisp-modal-tabs > li > a{
  display: block;
  margin: 0;
  padding: 8px 12px;
  color: #526070;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .cwisp-modal-tabs > li.active > a{
  color: var(--cw-blue, #2a72b5);
  background: #fff;
  border-color: #d8dee9 #d8dee9 #fff;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content .control-label{
  color: #172033 !important;
  font-weight: 400 !important;
  font-size: 12px;
  padding-top: 7px;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content label:not(.control-label):not(.form-check-label){
  display: block;
  margin-bottom: 4px;
  color: #172033 !important;
  font-weight: 400 !important;
  font-size: 12px;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content .text-muted,
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content .form-text{
  color: #6b7280 !important;
  font-size: 12px;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content .form-control{
  color: #172033 !important;
  background: #fff !important;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  height: 29px;
  min-height: 29px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 16.8px;
  box-shadow: none;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content .form-control:focus{
  border-color: var(--cw-blue, #2a72b5);
  box-shadow: 0 0 0 2px rgba(42,114,181,0.18);
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content textarea.form-control{
  height: auto;
  min-height: 58px;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content .form-control[readonly]{
  background: #fff !important;
  color: #172033 !important;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content .input-group-addon{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 6px 12px;
  color: #2d353c;
  font-size: 14px;
  line-height: 21px;
  background: #d5dbe0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content .select2-container--default .select2-selection--single{
  border: 1px solid #d8dee9 !important;
  border-radius: 8px !important;
  min-height: 29px !important;
  height: 29px !important;
  padding-top: 0;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height: 27px !important;
  font-size: 12px;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content .select2-container--default .select2-selection--single .select2-selection__arrow{
  height: 27px !important;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content .select2-container--default.select2-container--focus .select2-selection--single,
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-content .select2-container--default.select2-container--open .select2-selection--single{
  border-color: var(--cw-blue, #2a72b5) !important;
  box-shadow: 0 0 0 2px rgba(42,114,181,0.18);
}
/* Select2 (sin dropdownParent en jconfirm) appendea el dropdown a <body>.
   .select2-dropdown global es z-index:1050 y .jconfirm es 99999999: sin esto
   el listado abre detrás del diálogo y parece que el select "no abre".
   Mismo tipo de fix que editar servicio (allí se usa dropdownParent en #modaltmp). */
body.cwisp-olt-view-active .select2-container--open{
  z-index: 100000000 !important;
}
body.cwisp-olt-view-active .select2-dropdown{
  z-index: 100000000 !important;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-buttons{
  flex: 0 0 auto;
  float: none !important;
  margin: 0 !important;
  padding: 12px 14px 10px !important;
  text-align: right !important;
  border-top: 1px solid #d8dee9;
  background: #f8fafc;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button{
  margin: 0 0 0 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transform: none !important;
}
/* Primario = btn-azul (como Guardar en Nueva Red) */
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button.btn-azul,
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button.btn-primary,
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button.btn-success{
  min-width: 6rem;
  padding: 8px 10px !important;
  line-height: 19.2px !important;
  color: #fff !important;
  background: var(--cw-blue, #2a72b5) !important;
  border: 1px solid var(--cw-blue, #2a72b5) !important;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button.btn-azul:hover,
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button.btn-primary:hover,
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button.btn-success:hover{
  background: var(--cw-blue-dark, #1e5a8c) !important;
  border-color: var(--cw-blue-dark, #1e5a8c) !important;
}
/* Secundario = Cerrar (btn-white) */
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button.btn-default,
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button.btn-white{
  min-width: 0;
  padding: 5px 10px !important;
  line-height: 16.8px !important;
  color: #212529 !important;
  background: #fff !important;
  border: 1px solid #d5dbe0 !important;
}
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button.btn-default:hover,
body.cwisp-olt-view-active .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button.btn-white:hover{
  background: rgba(15,23,42,0.04) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px){
  .cwisp-smartolt .cwisp-state-grid{ grid-template-columns: 1fr 1fr; }
  .cwisp-smartolt .nav-tabs .nav-link{ padding: 8px 10px; font-size: 12.5px; }
  .cwisp-smartolt .cwisp-actions-bar{ flex-direction: column; align-items: stretch; }
  .cwisp-smartolt .cwisp-actions-bar .btn{ width: 100%; }
  .cwisp-olt-view .cwisp-olt-title small{ width: 100%; }
}

@media (prefers-reduced-motion: reduce){
  .cwisp-smartolt .btn{ transition: none !important; transform: none !important; }
  .cwisp-smartolt .nav-tabs .nav-link{ transition: none !important; }
}

/* =====================================================================
   Inventario Técnico + Kardex + Almacén + Unidades de Medida
   ColombiaWisp visual integration.
   Se aplican sobre las clases existentes (.inv-tec, .panel-kardex-global,
   .panel-almacen-productos, .panel-almacen-accesorios, .um-panel, .conv-panel,
   .calc-panel) para no tener que tocar cada Blade.
   ===================================================================== */

/* ---------- Panels heading (azul corporativo + borde amarillo) ---------- */
.inv-tec > .panel-heading,
.panel-kardex-global > .panel-heading,
.panel-almacen-productos > .panel-heading,
.panel-almacen-accesorios > .panel-heading,
.um-panel > .panel-heading,
.conv-panel > .panel-heading,
.calc-panel > .panel-heading{
  background: linear-gradient(135deg, var(--cw-blue, #348fe2), var(--cw-blue-dark, #2a72b5)) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--cw-yellow, #FCD116) !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 12px 16px;
}
.inv-tec > .panel-heading .panel-title,
.panel-kardex-global > .panel-heading .panel-title,
.panel-almacen-productos > .panel-heading .panel-title,
.panel-almacen-accesorios > .panel-heading .panel-title,
.um-panel > .panel-heading .panel-title,
.conv-panel > .panel-heading .panel-title,
.calc-panel > .panel-heading .panel-title{
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 14px;
  text-transform: uppercase;
}
.inv-tec > .panel-heading .panel-heading-btn .btn,
.panel-kardex-global > .panel-heading .panel-heading-btn .btn,
.panel-almacen-productos > .panel-heading .panel-heading-btn .btn,
.panel-almacen-accesorios > .panel-heading .panel-heading-btn .btn,
.um-panel > .panel-heading .panel-heading-btn .btn,
.conv-panel > .panel-heading .panel-heading-btn .btn,
.calc-panel > .panel-heading .panel-heading-btn .btn{
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.30);
  color: #fff;
}
.inv-tec > .panel-heading .panel-heading-btn .btn:hover,
.panel-kardex-global > .panel-heading .panel-heading-btn .btn:hover,
.panel-almacen-productos > .panel-heading .panel-heading-btn .btn:hover,
.panel-almacen-accesorios > .panel-heading .panel-heading-btn .btn:hover,
.um-panel > .panel-heading .panel-heading-btn .btn:hover,
.conv-panel > .panel-heading .panel-heading-btn .btn:hover,
.calc-panel > .panel-heading .panel-heading-btn .btn:hover{
  background: var(--cw-yellow, #FCD116);
  color: var(--cw-ink, #0B1220);
  border-color: var(--cw-yellow, #FCD116);
}

.inv-tec,
.panel-kardex-global,
.panel-almacen-productos,
.panel-almacen-accesorios,
.um-panel,
.conv-panel,
.calc-panel{
  border: 1px solid rgba(42,114,181,0.18) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06) !important;
  background: #fff;
  /* visible: DataTables scrollX + Select2 del tfoot no deben recortarse */
  overflow: visible;
  margin-bottom: 18px;
}
.inv-tec > .panel-body,
.panel-kardex-global > .panel-body,
.panel-almacen-productos > .panel-body,
.panel-almacen-accesorios > .panel-body,
.um-panel > .panel-body,
.conv-panel > .panel-body,
.calc-panel > .panel-body{
  border-top: 0 !important;
  padding: 14px;
}

.inv-tec table.dataTable thead th,
.panel-kardex-global table.dataTable thead th,
.panel-almacen-productos table.dataTable thead th,
.panel-almacen-accesorios table.dataTable thead th,
.um-panel table.dataTable thead th,
.conv-panel table.dataTable thead th{
  background: linear-gradient(135deg, rgba(52,143,226,0.92), rgba(42,114,181,0.92));
  color: #fff !important;
  border-bottom: 2px solid var(--cw-yellow, #FCD116) !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 10px 12px;
}
/* La regla global de ordenamiento usa fondo transparente !important.
   Restaurar el azul únicamente en Inventario por Técnico y Kárdex. */
.inv-tec table.dataTable thead > tr > th.sorting,
.inv-tec table.dataTable thead > tr > th.sorting_asc,
.inv-tec table.dataTable thead > tr > th.sorting_desc,
.panel-kardex-global table.dataTable thead > tr > th.sorting,
.panel-kardex-global table.dataTable thead > tr > th.sorting_asc,
.panel-kardex-global table.dataTable thead > tr > th.sorting_desc{
  background: linear-gradient(135deg, rgba(var(--cw-accent-rgb),0.92), rgba(var(--cw-accent-rgb),0.72)) !important;
}
.inv-tec table.dataTable tbody td,
.panel-kardex-global table.dataTable tbody td,
.panel-almacen-productos table.dataTable tbody td,
.panel-almacen-accesorios table.dataTable tbody td,
.um-panel table.dataTable tbody td,
.conv-panel table.dataTable tbody td{
  font-size: 12.5px;
  color: var(--cw-ink, #0B1220);
  vertical-align: middle;
}
.inv-tec table.dataTable tbody tr:hover,
.panel-kardex-global table.dataTable tbody tr:hover,
.panel-almacen-productos table.dataTable tbody tr:hover,
.panel-almacen-accesorios table.dataTable tbody tr:hover,
.um-panel table.dataTable tbody tr:hover,
.conv-panel table.dataTable tbody tr:hover{
  background: rgba(252,209,22,0.10) !important;
  transition: background 120ms ease;
}

.um-panel tfoot th.filterhead,
.conv-panel tfoot th.filterhead{
  background: rgba(52,143,226,0.05);
  border-bottom: 1px solid rgba(42,114,181,0.18);
}
.um-panel tfoot .selecttable,
.conv-panel tfoot .selecttable{
  border: 1px solid rgba(42,114,181,0.25) !important;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 12px;
}

.inv-tec .tooltablas .btn,
.panel-kardex-global .tooltablas .btn,
.panel-almacen-productos .tooltablas .btn,
.panel-almacen-accesorios .tooltablas .btn,
.um-panel .tooltablas .btn,
.conv-panel .tooltablas .btn{
  background: linear-gradient(135deg, var(--cw-blue, #348fe2), var(--cw-blue-dark, #2a72b5));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 6px 12px;
  box-shadow: 0 2px 6px rgba(42,114,181,0.20);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.inv-tec .tooltablas .btn:hover,
.panel-kardex-global .tooltablas .btn:hover,
.panel-almacen-productos .tooltablas .btn:hover,
.panel-almacen-accesorios .tooltablas .btn:hover,
.um-panel .tooltablas .btn:hover,
.conv-panel .tooltablas .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42,114,181,0.35);
}

.nav-tabs .nav-link{
  color: #6b7280;
  border: 1px solid transparent !important;
  border-radius: 10px 10px 0 0 !important;
  padding: 10px 16px;
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.nav-tabs .nav-link:hover{
  color: var(--cw-blue-dark, #2a72b5);
  background-color: rgba(52,143,226,0.06);
  border-bottom-color: rgba(52,143,226,0.25) !important;
}
.nav-tabs .nav-link.active{
  color: var(--cw-blue-dark, #2a72b5);
  background-color: #fff;
  border-color: rgba(52,143,226,0.25) !important;
  border-bottom-color: var(--cw-blue-dark, #2a72b5) !important;
}
.nav-tabs .nav-link i{
  color: var(--cw-blue, #348fe2);
  margin-right: 4px;
}

.calc-panel .form-control{
  border: 1px solid rgba(42,114,181,0.25);
  border-radius: 8px;
  padding: 8px 10px;
}
.calc-panel .form-control:focus{
  border-color: var(--cw-blue, #348fe2);
  box-shadow: 0 0 0 3px rgba(52,143,226,0.15);
}
.calc-panel .btn-default.btn-icon{
  background: #fff;
  border: 1px solid rgba(42,114,181,0.25);
  color: var(--cw-blue-dark, #2a72b5);
  border-radius: 8px;
}
.calc-panel .btn-default.btn-icon:hover{
  background: rgba(52,143,226,0.08);
  border-color: var(--cw-blue, #348fe2);
}
.calc-panel .btn-success{
  background: linear-gradient(135deg, #1f9d55, #157a40);
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 14px;
}
.calc-panel #calc-resultado.alert-info{
  background: rgba(52,143,226,0.08);
  border: 1px solid rgba(52,143,226,0.25);
  color: var(--cw-blue-dark, #2a72b5);
  border-radius: 8px;
}
.calc-panel #calc-resultado.alert-success{
  background: rgba(31,157,85,0.10);
  border: 1px solid rgba(31,157,85,0.30);
  color: #157a40;
  border-radius: 8px;
}
.calc-panel #calc-resultado.alert-danger{
  background: rgba(206,17,38,0.08);
  border: 1px solid rgba(206,17,38,0.30);
  color: var(--cw-red, #CE1126);
  border-radius: 8px;
}

/* =====================================================================
   Modals de configuración del Motor de Accounting (IPFIX / FreeRADIUS)
   El HTML vive en #tmp-accounting (plantilla) y se clona a
   #modaltmp.cwisp-modal-accounting al abrir — por eso ambos selectores.
   ===================================================================== */
#tmp-accounting .modal-body,
.cwisp-modal-accounting .modal-body{
  background: #fff;
  padding: 20px;
}
#tmp-accounting > .modal-body > p.text-muted,
.cwisp-modal-accounting .modal-body > p.text-muted{
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}
#tmp-accounting .panel.panel-inverse,
.cwisp-modal-accounting .panel.panel-inverse{
  border: 1px solid rgba(42,114,181,0.18) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06) !important;
  overflow: hidden;
  margin-bottom: 16px;
}
#tmp-accounting .panel.panel-inverse > .panel-heading,
.cwisp-modal-accounting .panel.panel-inverse > .panel-heading{
  background: linear-gradient(135deg, var(--cw-blue, #348fe2), var(--cw-blue-dark, #2a72b5)) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--cw-yellow, #FCD116) !important;
  padding: 12px 16px;
}
#tmp-accounting .panel.panel-inverse > .panel-heading .panel-title,
.cwisp-modal-accounting .panel.panel-inverse > .panel-heading .panel-title{
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 14px;
}
#tmp-accounting .panel.panel-inverse > .panel-heading .panel-title i,
.cwisp-modal-accounting .panel.panel-inverse > .panel-heading .panel-title i{
  color: var(--cw-yellow, #FCD116);
  margin-right: 6px;
}
#tmp-accounting .panel.panel-inverse > .panel-body,
.cwisp-modal-accounting .panel.panel-inverse > .panel-body{
  padding: 0 !important;
  background: #fff;
}

#tmp-accounting .list-group-item,
.cwisp-modal-accounting .list-group-item{
  border: none;
  border-bottom: 1px solid rgba(42,114,181,0.10);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 150ms ease;
  background: #fff;
  color: var(--cw-ink, #0B1220);
}
#tmp-accounting .list-group-item:last-child,
.cwisp-modal-accounting .list-group-item:last-child{
  border-bottom: none;
}
#tmp-accounting .list-group-item:hover,
.cwisp-modal-accounting .list-group-item:hover{
  background: rgba(52,143,226,0.04);
}
#tmp-accounting .list-group-item .step-icon,
.cwisp-modal-accounting .list-group-item .step-icon{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(52,143,226,0.10);
  color: var(--cw-blue-dark, #2a72b5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
#tmp-accounting .list-group-item.step-ok .step-icon,
.cwisp-modal-accounting .list-group-item.step-ok .step-icon{
  background: rgba(31,157,85,0.15);
  color: #1f9d55;
}
#tmp-accounting .list-group-item.step-error .step-icon,
.cwisp-modal-accounting .list-group-item.step-error .step-icon{
  background: rgba(206,17,38,0.12);
  color: var(--cw-red, #CE1126);
}
#tmp-accounting .list-group-item.step-pending .step-icon,
.cwisp-modal-accounting .list-group-item.step-pending .step-icon{
  background: rgba(252,209,22,0.20);
  color: #b78a00;
}
#tmp-accounting .list-group-item .step-content,
.cwisp-modal-accounting .list-group-item .step-content{
  flex: 1;
  font-size: 13px;
  color: var(--cw-ink, #0B1220);
}
#tmp-accounting .list-group-item .step-content strong,
.cwisp-modal-accounting .list-group-item .step-content strong{
  font-weight: 700;
  font-size: 13.5px;
}
#tmp-accounting .list-group-item .step-content small,
.cwisp-modal-accounting .list-group-item .step-content small{
  display: block;
  color: #6b7280;
  font-size: 11.5px;
  margin-top: 2px;
}
#tmp-accounting .list-group-item .step-actions,
.cwisp-modal-accounting .list-group-item .step-actions{
  flex-shrink: 0;
}

#tmp-accounting .step-state,
.cwisp-modal-accounting .step-state{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
#tmp-accounting .step-state.state-ok,
.cwisp-modal-accounting .step-state.state-ok{
  background: rgba(31,157,85,0.12);
  color: #1f9d55;
  border: 1px solid rgba(31,157,85,0.30);
}
#tmp-accounting .step-state.state-error,
.cwisp-modal-accounting .step-state.state-error{
  background: rgba(206,17,38,0.10);
  color: var(--cw-red, #CE1126);
  border: 1px solid rgba(206,17,38,0.30);
}
#tmp-accounting .step-state.state-pending,
.cwisp-modal-accounting .step-state.state-pending{
  background: rgba(252,209,22,0.20);
  color: #b78a00;
  border: 1px solid rgba(252,209,22,0.50);
}

#tmp-accounting .progress,
.cwisp-modal-accounting .progress{
  border-radius: 8px;
  overflow: hidden;
  background: rgba(42,114,181,0.10);
}
#tmp-accounting .progress-bar,
.cwisp-modal-accounting .progress-bar{
  background: linear-gradient(90deg, var(--cw-blue, #348fe2), var(--cw-blue-dark, #2a72b5));
}
#tmp-accounting .install-log,
.cwisp-modal-accounting .install-log{
  background: linear-gradient(180deg, #0d1626, #1a2538) !important;
  color: #d4d4d4 !important;
  border: 1px solid rgba(42,114,181,0.30) !important;
  border-radius: 8px !important;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px !important;
  padding: 12px !important;
  max-height: 200px !important;
}

#tmp-accounting .alert-warning,
.cwisp-modal-accounting .alert-warning{
  background: rgba(252,209,22,0.12);
  border: 1px solid rgba(252,209,22,0.50) !important;
  border-left: 4px solid #b78a00 !important;
  border-radius: 8px;
  color: #6b5100;
}
#tmp-accounting .alert-warning b,
#tmp-accounting .alert-warning strong,
.cwisp-modal-accounting .alert-warning b,
.cwisp-modal-accounting .alert-warning strong{
  color: #4d3d00;
}

.modal-footer .btn-default{
  background: #fff;
  border: 1px solid rgba(42,114,181,0.30);
  color: var(--cw-blue-dark, #2a72b5);
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 14px;
}
.modal-footer .btn-default:hover{
  background: rgba(52,143,226,0.08);
  border-color: var(--cw-blue, #348fe2);
}
.modal-footer .btn-info{
  background: linear-gradient(135deg, var(--cw-blue, #348fe2), var(--cw-blue-dark, #2a72b5));
  border: none;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 14px;
  box-shadow: 0 2px 6px rgba(42,114,181,0.20);
}
.modal-footer .btn-info:hover{
  box-shadow: 0 4px 12px rgba(42,114,181,0.35);
  transform: translateY(-1px);
}
.modal-footer .btn-warning{
  background: linear-gradient(135deg, var(--cw-yellow, #FCD116), #e6b800);
  border: none;
  color: var(--cw-ink, #0B1220);
  border-radius: 8px;
  font-weight: 700;
  padding: 8px 14px;
}
.modal-footer .btn-warning:hover{
  box-shadow: 0 4px 12px rgba(252,209,22,0.50);
  transform: translateY(-1px);
}

.btn-cwisp-retry{
  background: linear-gradient(135deg, var(--cw-yellow, #FCD116), #e6b800) !important;
  color: var(--cw-ink, #0B1220) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(252,209,22,0.40) !important;
  transition: transform 120ms ease, box-shadow 120ms ease !important;
}
.btn-cwisp-retry:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(252,209,22,0.60) !important;
}
.btn-cwisp-retry:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* =====================================================================
   Modal de Accounting (envoltorio .cwisp-modal-accounting)
   Aplica la temática ColombiaWisp al modal que abre "Configurar motor".
   ===================================================================== */
.cwisp-modal-accounting .modal-content{
  border: 1px solid rgba(42,114,181,0.18);
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(2,6,23,0.25);
  overflow: hidden;
  background: #fff;
}
.cwisp-modal-accounting .modal-header{
  background: linear-gradient(135deg, var(--cw-blue, #348fe2), var(--cw-blue-dark, #2a72b5)) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--cw-yellow, #FCD116) !important;
  padding: 14px 18px;
}
.cwisp-modal-accounting .modal-header .modal-title{
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 16px;
}
.cwisp-modal-accounting .modal-header .close{
  color: #fff !important;
  opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.cwisp-modal-accounting .modal-header .close:hover{
  opacity: 1;
  color: var(--cw-yellow, #FCD116) !important;
}
.cwisp-modal-accounting .modal-body{
  background: #fff;
  padding: 20px;
  color: var(--cw-ink, #0B1220);
}
.cwisp-modal-accounting .modal-footer{
  background: #fafbfc;
  border-top: 1px solid rgba(42,114,181,0.12);
  padding: 12px 18px;
}

/* Modo oscuro: el modal de accounting debe leerse bien sin
   quedar blanco-sobre-oscuro por reglas globales de scheme. */
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .modal-content{
  background: var(--cw-surface-panel, #171f2d) !important;
  border-color: rgba(146,168,208,.22) !important;
  color: var(--cw-text, #edf2f8);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .modal-header{
  background: linear-gradient(135deg, var(--cw-blue, #348fe2), var(--cw-blue-dark, #2a72b5)) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--cw-yellow, #FCD116) !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .modal-header .modal-title,
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .modal-header .close{
  color: #fff !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .modal-body{
  background: var(--cw-surface-panel, #171f2d) !important;
  color: var(--cw-text, #edf2f8) !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .modal-footer{
  background: var(--cw-surface-subtle, #202a3a) !important;
  border-top-color: rgba(146,168,208,.18) !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .modal-body > p.text-muted,
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .text-muted{
  color: var(--cw-text-muted, #aeb9c9) !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .panel.panel-inverse{
  background: var(--cw-surface-raised, #263246) !important;
  border-color: rgba(146,168,208,.22) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.35) !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .panel.panel-inverse > .panel-heading{
  background: linear-gradient(135deg, var(--cw-blue, #348fe2), var(--cw-blue-dark, #2a72b5)) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--cw-yellow, #FCD116) !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .panel.panel-inverse > .panel-heading .panel-title{
  color: #fff !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .panel.panel-inverse > .panel-body{
  background: var(--cw-surface-panel, #171f2d) !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .list-group-item{
  background: transparent !important;
  border-bottom-color: rgba(146,168,208,.14) !important;
  color: var(--cw-text, #edf2f8) !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .list-group-item:hover{
  background: rgba(255,255,255,.04) !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .list-group-item .step-content{
  color: var(--cw-text, #edf2f8) !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .list-group-item .step-content strong{
  color: #f3f7ff !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .list-group-item .step-content small{
  color: var(--cw-text-muted, #aeb9c9) !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .list-group-item .step-icon{
  background: rgba(52,143,226,0.18);
  color: #8fc6ff;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .list-group-item.step-ok .step-icon{
  background: rgba(88,201,133,0.18);
  color: #58c985;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .list-group-item.step-error .step-icon{
  background: rgba(255,123,134,0.16);
  color: #ff7b86;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .list-group-item.step-pending .step-icon{
  background: rgba(242,184,75,0.18);
  color: #f2b84b;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .step-state.state-ok{
  background: rgba(88,201,133,0.14);
  color: #58c985;
  border-color: rgba(88,201,133,0.35);
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .step-state.state-error{
  background: rgba(255,123,134,0.14);
  color: #ff7b86;
  border-color: rgba(255,123,134,0.35);
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .step-state.state-pending{
  background: rgba(242,184,75,0.16);
  color: #f2b84b;
  border-color: rgba(242,184,75,0.40);
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .alert-warning{
  background: rgba(242,184,75,0.12) !important;
  border: 1px solid rgba(242,184,75,0.40) !important;
  border-left: 4px solid #f2b84b !important;
  color: #f5e6a8 !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .alert-warning b,
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .alert-warning strong{
  color: #ffe27a !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .alert-warning code,
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .alert-warning li{
  color: #f0e4b0 !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .alert-warning code{
  background: rgba(0,0,0,.35);
  padding: 1px 5px;
  border-radius: 4px;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .progress{
  background: rgba(146,168,208,.14);
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .modal-footer .btn-default{
  background: var(--cw-surface-raised, #263246) !important;
  border-color: rgba(146,168,208,.30) !important;
  color: #d7e0f0 !important;
}
html[data-cwisp-scheme="dark"] .cwisp-modal-accounting .modal-footer .btn-default:hover{
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(146,168,208,.45) !important;
  color: #fff !important;
}

/* =====================================================================
   SmartOLT — Botones Forzar Inform y Copiar URL ACS
   ===================================================================== */
.cwisp-smartolt .cwisp-forze-btn{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px !important;
  border: 1px solid rgba(var(--cw-accent-rgb),0.40) !important;
  background: rgba(var(--cw-accent-rgb),0.06) !important;
  color: var(--cw-accent, #2a72b5) !important;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: .2px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.cwisp-smartolt .cwisp-forze-btn:hover{
  background: rgba(var(--cw-accent-rgb),0.14) !important;
  border-color: var(--cw-accent, #2a72b5) !important;
  color: var(--cw-accent-dark, #1f5688) !important;
  transform: translateY(-1px);
}
.cwisp-smartolt .cwisp-forze-btn:active{ transform: translateY(0); }
.cwisp-smartolt .cwisp-forze-btn i{ font-size: 11px; }

/* Copy URL button: outline with success feedback */
.cwisp-smartolt .cwisp-copy-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px !important;
  font-weight: 700 !important;
  letter-spacing: .3px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .12s ease;
}
.cwisp-smartolt .cwisp-copy-btn:hover{ transform: translateY(-1px); }
.cwisp-smartolt .cwisp-copy-btn.btn-cwisp-success{
  background: #1f9d55 !important;
  border-color: #1f9d55 !important;
  color: #fff !important;
}

/* =====================================================================
   Admin design tokens
   El panel de tema controla --cw-accent* y data-cwisp-scheme.
   Las vistas admin deben consumir estos tokens, no colores de marca fijos.
   ===================================================================== */
:root{
  --cw-surface-page: #f4f6fa;
  --cw-surface-panel: #ffffff;
  --cw-surface-subtle: #f8fafc;
  --cw-surface-raised: #ffffff;
  --cw-text: #172033;
  --cw-text-muted: #667085;
  --cw-border: #d8dee9;
  --cw-input-border: #c3ccd9;
  --cw-shadow: 0 12px 32px rgba(15,23,42,.10);
  --cw-focus-ring: rgba(var(--cw-accent-rgb),.24);
  --cw-success: #18864b;
  --cw-success-rgb: 24,134,75;
  --cw-warning: #a86500;
  --cw-warning-rgb: 168,101,0;
  --cw-danger: #c53645;
  --cw-danger-rgb: 197,54,69;
  --cw-info: #236fae;
  --cw-info-rgb: 35,111,174;
  --cw-on-dark: #ffffff;
  --cw-login-muted: #d7dde7;
  --cw-login-field-bg: rgba(0,0,0,.52);
  --cw-login-field-border: rgba(255,255,255,.16);
  --cw-login-overlay: rgba(0,0,0,.42);
  --cw-radius-sm: 8px;
  --cw-radius: 12px;
  --cw-radius-lg: 16px;
}

:root[data-cwisp-scheme="dark"]{
  --cw-surface-page: #0f1520;
  --cw-surface-panel: #171f2d;
  --cw-surface-subtle: #202a3a;
  --cw-surface-raised: #263246;
  --cw-text: #edf2f8;
  --cw-text-muted: #aeb9c9;
  --cw-border: #344156;
  --cw-input-border: #42506a;
  --cw-border-strong: #4a5872;
  --cw-shadow: 0 16px 38px rgba(0,0,0,.34);
  --cw-focus-ring: rgba(var(--cw-accent-rgb),.32);
  --cw-success: #58c985;
  --cw-success-rgb: 88,201,133;
  --cw-warning: #f2b84b;
  --cw-warning-rgb: 242,184,75;
  --cw-danger: #ff7b86;
  --cw-danger-rgb: 255,123,134;
  --cw-info: #75bfff;
  --cw-info-rgb: 117,191,255;
}

html[data-cwisp-scheme] body,
html[data-cwisp-scheme] #content.content{
  background: var(--cw-surface-page) !important;
  color: var(--cw-text);
}
html[data-cwisp-scheme] .panel,
html[data-cwisp-scheme] .modal-content,
html[data-cwisp-scheme] .dropdown-menu,
html[data-cwisp-scheme] .popover,
html[data-cwisp-scheme] .theme-panel-content,
html[data-cwisp-scheme] .list-group-item,
html[data-cwisp-scheme] .card{
  background-color: var(--cw-surface-panel) !important;
  border-color: var(--cw-border) !important;
  color: var(--cw-text);
}
html[data-cwisp-scheme] .panel,
html[data-cwisp-scheme] .modal-content,
html[data-cwisp-scheme] .card{
  border-radius: var(--cw-radius-lg) !important;
  box-shadow: var(--cw-shadow);
}
html[data-cwisp-scheme] .panel-heading,
html[data-cwisp-scheme] .panel-footer,
html[data-cwisp-scheme] .modal-header,
html[data-cwisp-scheme] .modal-footer,
html[data-cwisp-scheme] .card-header,
html[data-cwisp-scheme] .card-footer{
  background: var(--cw-surface-subtle) !important;
  border-color: var(--cw-border) !important;
  color: var(--cw-text) !important;
}
html[data-cwisp-scheme] .panel-inverse > .panel-heading{
  background: linear-gradient(135deg, rgba(var(--cw-accent-rgb),.22), rgba(var(--cw-accent-rgb),.08)) !important;
  border-bottom: 2px solid var(--cw-accent) !important;
}
html[data-cwisp-scheme] .panel-title,
html[data-cwisp-scheme] .modal-title,
html[data-cwisp-scheme] label,
html[data-cwisp-scheme] legend,
html[data-cwisp-scheme] h1,
html[data-cwisp-scheme] h2,
html[data-cwisp-scheme] h3,
html[data-cwisp-scheme] h4,
html[data-cwisp-scheme] h5,
html[data-cwisp-scheme] h6{
  color: var(--cw-text);
}
html[data-cwisp-scheme] .text-muted,
html[data-cwisp-scheme] .text-grey,
html[data-cwisp-scheme] .text-grey-darker,
html[data-cwisp-scheme] small{
  color: var(--cw-text-muted) !important;
}

html[data-cwisp-scheme] .form-control,
html[data-cwisp-scheme] .custom-select,
html[data-cwisp-scheme] .input-group-text,
html[data-cwisp-scheme] .select2-container--default .select2-selection--single,
html[data-cwisp-scheme] .select2-container--default .select2-selection--multiple,
html[data-cwisp-scheme] .select2-dropdown{
  background-color: var(--cw-surface-raised) !important;
  border-color: var(--cw-border) !important;
  color: var(--cw-text) !important;
}
html[data-cwisp-scheme] .form-control::placeholder{ color: var(--cw-text-muted) !important; }
html[data-cwisp-scheme] .form-control:focus,
html[data-cwisp-scheme] .custom-select:focus,
html[data-cwisp-scheme] .select2-container--focus .select2-selection{
  border-color: var(--cw-accent) !important;
  box-shadow: 0 0 0 3px var(--cw-focus-ring) !important;
}
html[data-cwisp-scheme] .select2-results__option{ color: var(--cw-text) !important; }
html[data-cwisp-scheme="dark"] .select2-results__option{ color: #eef2fa !important; }
html[data-cwisp-scheme] .select2-results__option--highlighted{
  background: rgba(var(--cw-accent-rgb),.18) !important;
  color: var(--cw-text) !important;
}
html[data-cwisp-scheme="dark"] .select2-results__option--highlighted{
  color: #ffffff !important;
}

html[data-cwisp-scheme] .btn,
html[data-cwisp-scheme] .btn-azul{
  border-radius: var(--cw-radius-sm) !important;
}
html[data-cwisp-scheme] .btn-primary,
html[data-cwisp-scheme] .btn-theme,
html[data-cwisp-scheme] .btn.btn-azul{
  background: var(--cw-accent) !important;
  border-color: var(--cw-accent) !important;
  color: var(--cw-accent-contrast) !important;
}
html[data-cwisp-scheme] .btn-success{
  background: var(--cw-success) !important;
  border-color: var(--cw-success) !important;
  color: var(--cw-surface-panel) !important;
}
html[data-cwisp-scheme] .btn-default,
html[data-cwisp-scheme] .btn-secondary,
html[data-cwisp-scheme] .btn-light{
  background: var(--cw-surface-raised) !important;
  border-color: var(--cw-border) !important;
  color: var(--cw-text) !important;
}
html[data-cwisp-scheme] .btn-danger{
  background: var(--cw-danger) !important;
  border-color: var(--cw-danger) !important;
  color: var(--cw-surface-panel) !important;
}
html[data-cwisp-scheme] .badge-primary,
html[data-cwisp-scheme] .label-theme{ background: var(--cw-accent) !important; color: var(--cw-accent-contrast) !important; }
html[data-cwisp-scheme] .badge-success,
html[data-cwisp-scheme] .label-success{ background: var(--cw-success) !important; }
html[data-cwisp-scheme] .badge-warning,
html[data-cwisp-scheme] .label-warning{ background: var(--cw-warning) !important; }
html[data-cwisp-scheme] .badge-danger,
html[data-cwisp-scheme] .label-danger{ background: var(--cw-danger) !important; }
html[data-cwisp-scheme] .badge-info,
html[data-cwisp-scheme] .label-info{ background: var(--cw-info) !important; }

html[data-cwisp-scheme] .table,
html[data-cwisp-scheme] table.dataTable{ color: var(--cw-text) !important; }
html[data-cwisp-scheme] .table td,
html[data-cwisp-scheme] .table th,
html[data-cwisp-scheme] table.dataTable td,
html[data-cwisp-scheme] table.dataTable th{ border-color: var(--cw-border) !important; }
html[data-cwisp-scheme] .table thead th,
html[data-cwisp-scheme] table.dataTable thead th{
  background: rgba(var(--cw-accent-rgb),.13) !important;
  color: var(--cw-text) !important;
}
html[data-cwisp-scheme] .table-striped tbody tr:nth-of-type(odd),
html[data-cwisp-scheme] .table-hover tbody tr:hover{
  background-color: var(--cw-surface-subtle) !important;
}
html[data-cwisp-scheme] .nav-tabs,
html[data-cwisp-scheme] .nav-tabs .nav-link{ border-color: var(--cw-border) !important; }
html[data-cwisp-scheme] .nav-tabs .nav-link{ color: var(--cw-text-muted) !important; }
html[data-cwisp-scheme] .nav-tabs .nav-link.active{
  background: var(--cw-surface-panel) !important;
  color: var(--cw-text) !important;
  border-bottom-color: var(--cw-accent) !important;
}

/* Pasarelas: un patrón reutilizable para tarjetas de proveedor. */
.cwisp-gateway-card,
.gateway-card,
.pasarela-card{
  background: var(--cw-surface-panel) !important;
  border: 1px solid var(--cw-border) !important;
  border-radius: var(--cw-radius) !important;
  box-shadow: var(--cw-shadow);
  color: var(--cw-text) !important;
}
.cwisp-gateway-card.is-active,
.gateway-card.is-active,
.pasarela-card.is-active{
  border-color: var(--cw-accent) !important;
  box-shadow: 0 0 0 3px var(--cw-focus-ring), var(--cw-shadow);
}

/* Preview fiel del login y fondo compartido con el sidebar. */
.cwisp-login-preview{
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-lg);
  background: var(--cw-surface-subtle) center/cover no-repeat;
  box-shadow: var(--cw-shadow);
}
.cwisp-login-preview::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
}
.cwisp-login-preview__card{
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(350px, calc(100% - 32px));
  padding: 22px;
  transform: translate(-50%,-50%);
  border-radius: var(--cw-radius);
  background: rgba(12,18,28,.76);
  box-shadow: 0 20px 50px rgba(0,0,0,.32);
}
.cwisp-login-preview__logo{ display: block; max-width: 240px; max-height: 58px; margin: 0 auto 18px; }
.cwisp-login-preview__field{
  height: 42px;
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--cw-radius-sm);
  background: rgba(0,0,0,.34);
  color: rgba(255,255,255,.78);
}
.cwisp-login-preview__button{
  margin-top: 14px;
  padding: 11px;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-accent);
  color: var(--cw-accent-contrast);
  font-weight: 700;
  text-align: center;
}
.imgsidebarlogin{
  background-color: var(--cw-surface-subtle) !important;
  background-position: center !important;
  background-size: cover !important;
}

/* =====================================================================
   Admin visual contract
   Hotspot is the reference for listings; Theme owns the primary accent.
   This block intentionally lives last to resolve old Color Admin rules.
   ===================================================================== */

/* Preserve the original circular Ajustes launcher. The generic theme button
   radius must never flatten these tiles into square cards. */
html[data-cwisp-scheme] #content .btnajustes,
#content .btnajustes{
  width: 170px;
  height: 170px;
  padding: 50px 0 0 !important;
  border-radius: 50% !important;
  border: 1px solid var(--cw-border) !important;
  background: var(--cw-surface-panel) !important;
  color: var(--cw-text) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.10);
  overflow: hidden;
}
html[data-cwisp-scheme] #content .btnajustes i,
#content .btnajustes i{
  color: var(--cw-accent) !important;
}
html[data-cwisp-scheme] #content .btnajustes:hover,
#content .btnajustes:hover{
  border-color: var(--cw-accent) !important;
  background: rgba(var(--cw-accent-rgb),.09) !important;
  box-shadow: 0 0 0 4px var(--cw-focus-ring), 0 16px 34px rgba(15,23,42,.14);
  transform: translateY(-2px);
}
@media (max-width: 767px){
  html[data-cwisp-scheme] #content .btnajustes,
  #content .btnajustes{
    width: 140px;
    height: 140px;
    padding-top: 38px !important;
  }
}

/* Rounded surfaces are part of the program identity. */
html[data-cwisp-scheme] #content .panel,
html[data-cwisp-scheme] #content .card,
html[data-cwisp-scheme] .modal-content{
  border-radius: var(--cw-radius-lg) !important;
  overflow: hidden;
}
html[data-cwisp-scheme] #content .widget,
html[data-cwisp-scheme] #content .alert,
html[data-cwisp-scheme] .modal .alert,
html[data-cwisp-scheme] .popover,
html[data-cwisp-scheme] .dropdown-menu{
  border-radius: var(--cw-radius) !important;
}
html[data-cwisp-scheme] #content .form-control,
html[data-cwisp-scheme] #content .custom-select,
html[data-cwisp-scheme] #content .select2-selection,
html[data-cwisp-scheme] .modal .form-control,
html[data-cwisp-scheme] .modal .custom-select,
html[data-cwisp-scheme] .modal .select2-selection{
  border-radius: var(--cw-radius-sm) !important;
}

/* DataTables: one visual language for Hotspot and every admin listing. */
#content div.dataTables_wrapper table.dataTable{
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid var(--cw-border) !important;
  border-radius: var(--cw-radius) !important;
  overflow: hidden;
  background: var(--cw-surface-panel) !important;
  box-shadow: var(--cw-shadow);
}
#content div.dataTables_wrapper table.dataTable thead th,
#content div.dataTables_wrapper table.dataTable thead th.sorting,
#content div.dataTables_wrapper table.dataTable thead th.sorting_asc,
#content div.dataTables_wrapper table.dataTable thead th.sorting_desc{
  background: linear-gradient(
    180deg,
    rgba(var(--cw-accent-rgb),.20),
    rgba(var(--cw-accent-rgb),.08)
  ) !important;
  color: var(--cw-text) !important;
  border-color: var(--cw-border) !important;
  font-weight: 800;
}
#content div.dataTables_wrapper table.dataTable tbody td{
  background-color: transparent;
  color: var(--cw-text);
  border-color: var(--cw-border) !important;
}
#content div.dataTables_wrapper table.dataTable tbody tr:nth-of-type(odd){
  background: var(--cw-surface-subtle) !important;
}
#content div.dataTables_wrapper table.dataTable tbody tr:hover{
  background: rgba(var(--cw-accent-rgb),.09) !important;
}
#content div.dataTables_wrapper .dataTables_filter input,
#content div.dataTables_wrapper .dataTables_length select{
  border-radius: 999px !important;
  border-color: var(--cw-border) !important;
  background: var(--cw-surface-raised) !important;
  color: var(--cw-text) !important;
}
#content div.dataTables_wrapper .tooltablas,
#content div.dataTables_wrapper.dt-bootstrap > .row:first-child,
#content div.dataTables_wrapper.dt-bootstrap4 > .row:first-child,
#content div.dataTables_wrapper.dt-bootstrap > .row:last-child,
#content div.dataTables_wrapper.dt-bootstrap4 > .row:last-child{
  border-radius: var(--cw-radius) !important;
}
#content div.dataTables_wrapper .pagination .page-link{
  border-radius: var(--cw-radius-sm) !important;
  background: var(--cw-surface-raised) !important;
  border-color: var(--cw-border) !important;
  color: var(--cw-text) !important;
}
#content div.dataTables_wrapper .pagination .page-item.active .page-link{
  background: var(--cw-accent) !important;
  border-color: var(--cw-accent) !important;
  color: var(--cw-accent-contrast) !important;
}

/* Primary actions follow the color selected in Theme. In this legacy UI,
   btn-success and btn-info are predominantly CRUD actions, not statuses. */
html[data-cwisp-scheme] #content .btn-accent,
html[data-cwisp-scheme] #content .btn-primary,
html[data-cwisp-scheme] #content .btn-info,
html[data-cwisp-scheme] #content .btn-azul,
html[data-cwisp-scheme] #content .btn-success,
html[data-cwisp-scheme] #content .tooltablas .btn:not(.btn-danger):not(.btn-warning),
html[data-cwisp-scheme] .modal .btn-accent,
html[data-cwisp-scheme] .modal .btn-primary,
html[data-cwisp-scheme] .modal .btn-info,
html[data-cwisp-scheme] .modal .btn-azul,
html[data-cwisp-scheme] .modal .btn-success{
  background: var(--cw-accent) !important;
  border-color: var(--cw-accent) !important;
  color: var(--cw-accent-contrast) !important;
  border-radius: var(--cw-radius-sm) !important;
}
html[data-cwisp-scheme] #content .btn-accent:hover,
html[data-cwisp-scheme] #content .btn-primary:hover,
html[data-cwisp-scheme] #content .btn-info:hover,
html[data-cwisp-scheme] #content .btn-azul:hover,
html[data-cwisp-scheme] #content .btn-success:hover,
html[data-cwisp-scheme] #content .tooltablas .btn:not(.btn-danger):not(.btn-warning):hover,
html[data-cwisp-scheme] .modal .btn-accent:hover,
html[data-cwisp-scheme] .modal .btn-primary:hover,
html[data-cwisp-scheme] .modal .btn-info:hover,
html[data-cwisp-scheme] .modal .btn-azul:hover,
html[data-cwisp-scheme] .modal .btn-success:hover{
  background: var(--cw-accent-dark, var(--cw-accent)) !important;
  border-color: var(--cw-accent-dark, var(--cw-accent)) !important;
  color: var(--cw-accent-contrast) !important;
  transform: translateY(-1px);
}
html[data-cwisp-scheme] #content .btn-white,
html[data-cwisp-scheme] #content .btn-default,
html[data-cwisp-scheme] .modal .btn-white,
html[data-cwisp-scheme] .modal .btn-default{
  border-radius: var(--cw-radius-sm) !important;
}

/* Explicit semantic success remains green. */
html[data-cwisp-scheme] .btn-semantic-success,
html[data-cwisp-scheme] .btn-cwisp-success,
html[data-cwisp-scheme] .calc-panel .btn-success{
  background: var(--cw-success) !important;
  border-color: var(--cw-success) !important;
  color: #fff !important;
}

/* Tareas segmented controls: active and inactive both consume Theme. */
html[data-cwisp-scheme] #content .radio-group .btn-primary.not-active{
  background: var(--cw-surface-panel) !important;
  border-color: rgba(var(--cw-accent-rgb),.48) !important;
  color: var(--cw-accent) !important;
  box-shadow: none !important;
}

/* Modern tabs used by accounting and router/customer editors. */
.cwisp-contabilidad .nav-tabs,
.cwisp-contabilidad .nav-tabs-inverse,
.cwisp-editor-tabs .nav-tabs,
.cwisp-editor-tabs .nav-tabs-inverse{
  padding: 6px 6px 0;
  border: 1px solid var(--cw-border) !important;
  border-radius: var(--cw-radius) var(--cw-radius) 0 0 !important;
  background: var(--cw-surface-subtle) !important;
}
.cwisp-contabilidad .nav-tabs .nav-link,
.cwisp-contabilidad .nav-tabs-inverse .nav-link,
.cwisp-editor-tabs .nav-tabs .nav-link,
.cwisp-editor-tabs .nav-tabs-inverse .nav-link{
  border-radius: var(--cw-radius-sm) var(--cw-radius-sm) 0 0 !important;
  background: transparent !important;
  color: var(--cw-text-muted) !important;
}
.cwisp-contabilidad .nav-tabs .nav-link:hover,
.cwisp-contabilidad .nav-tabs-inverse .nav-link:hover,
.cwisp-editor-tabs .nav-tabs .nav-link:hover,
.cwisp-editor-tabs .nav-tabs-inverse .nav-link:hover{
  background: rgba(var(--cw-accent-rgb),.09) !important;
  color: var(--cw-accent) !important;
}
.cwisp-contabilidad .nav-tabs .nav-link.active,
.cwisp-contabilidad .nav-tabs-inverse .nav-link.active,
.cwisp-editor-tabs .nav-tabs .nav-link.active,
.cwisp-editor-tabs .nav-tabs-inverse .nav-link.active{
  background: var(--cw-surface-panel) !important;
  color: var(--cw-text) !important;
  border-color: var(--cw-border) !important;
  border-bottom: 3px solid var(--cw-accent) !important;
}
.cwisp-contabilidad .panel,
.cwisp-contabilidad .panel-body,
.cwisp-contabilidad .border,
.cwisp-editor-tabs .panel,
.cwisp-editor-tabs .panel-body,
.cwisp-editor-tabs .border{
  border-color: var(--cw-border) !important;
}

/* Must remain after the neutral .btn-white contract above. */
html[data-cwisp-scheme] #content .btnajustes.btn-white,
#content .btnajustes.btn-white{
  border-radius: 50% !important;
}

/* Legacy inventory panels declared white titles for an old blue heading.
   The theme now supplies a light accent surface, so title/icons must use the
   scheme text color to keep contrast in every selected accent. */
html[data-cwisp-scheme] #content .inv-tec > .panel-heading .panel-title,
html[data-cwisp-scheme] #content .panel-kardex-global > .panel-heading .panel-title,
html[data-cwisp-scheme] #content .panel-almacen-productos > .panel-heading .panel-title,
html[data-cwisp-scheme] #content .panel-almacen-accesorios > .panel-heading .panel-title,
html[data-cwisp-scheme] #content .um-panel > .panel-heading .panel-title,
html[data-cwisp-scheme] #content .conv-panel > .panel-heading .panel-title,
html[data-cwisp-scheme] #content .calc-panel > .panel-heading .panel-title,
html[data-cwisp-scheme] #content .inv-tec > .panel-heading .panel-title i,
html[data-cwisp-scheme] #content .panel-kardex-global > .panel-heading .panel-title i,
html[data-cwisp-scheme] #content .panel-almacen-productos > .panel-heading .panel-title i,
html[data-cwisp-scheme] #content .panel-almacen-accesorios > .panel-heading .panel-title i,
html[data-cwisp-scheme] #content .um-panel > .panel-heading .panel-title i,
html[data-cwisp-scheme] #content .conv-panel > .panel-heading .panel-title i,
html[data-cwisp-scheme] #content .calc-panel > .panel-heading .panel-title i{
  color: var(--cw-text) !important;
}

/* DataTables Bootstrap markup keeps the number inside an <a> whose default
   block line-height displaced it vertically. Center both numbers and arrows. */
#content div.dataTables_wrapper .pagination .page-item{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#content div.dataTables_wrapper .pagination .page-link{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  line-height: 1 !important;
  text-align: center !important;
}
