.ui-jqdialog-content .form-view-data {
    white-space: normal !important;
}
#tablas .table-bordered>tbody>tr>td {
    padding: 6px !important;
}
.dataTables_info {
    font-size: 13px !important;
}
.paginate_button{
    padding: 0em 0.1em 0em 0em !important;
}
#tabla_resultados thead{
    font-size: 11px;
}
#tabla_resultados thead th{
    text-align: center;
}

.ui-jqgrid tr.jqgrow td {
    font-size: 12px;
}

.ace-spinner {
    width: 100% !important;
}

.loading2 {
    position: fixed;
    z-index: 999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Transparent Overlay */

.loading2:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

/* :not(:required) hides these rules from IE9 and below */

.loading2:not(:required) {
    /* hide "loading2..." text */
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

.loading2:not(:required):after {
    content: '';
    display: block;
    font-size: 10px;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    -webkit-animation: spinner 1500ms infinite linear;
    -moz-animation: spinner 1500ms infinite linear;
    -ms-animation: spinner 1500ms infinite linear;
    -o-animation: spinner 1500ms infinite linear;
    animation: spinner 1500ms infinite linear;
    border-radius: 0.5em;
    -webkit-box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.5) -1.5em 0 0 0, rgba(0, 0, 0, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
    box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
}

@-webkit-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   ESTRUCTURA ESTÁTICA CON LOS COLORES CLÁSICOS ORIGINALES DE ACE ADMIN
   (Cabecera fija + Menú lateral fijo + Scroll solo en Body + Footer sutil fijo)
   ========================================================================== */

body.no-skin {
    height: 100vh !important;
    overflow: hidden !important;
}

body.no-skin #navbar.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    z-index: 1039 !important;
}

body.no-skin #navbar .navbar-brand {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    height: 50px !important;
}

body.no-skin #navbar .navbar-brand h4 {
    margin: 0 !important;
    line-height: 30px !important;
}

body.no-skin #navbar .ace-nav > li,
body.no-skin #navbar .ace-nav > li > a {
    height: 50px !important;
    line-height: 50px !important;
}

body.no-skin #main-container {
    padding-top: 50px !important;
}

body.no-skin #sidebar.sidebar {
    position: fixed !important;
    top: 50px !important;
    bottom: 0 !important;
    left: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    z-index: 1029 !important;
}

body.no-skin #main-container > .main-content.ui-view {
    height: calc(100vh - 50px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 38px !important;
}

/* Pie de página (Footer) sutil y estático abajo */
body.no-skin #footer.footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 190px !important;
    right: 0 !important;
    width: auto !important;
    height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1030 !important;
}

body.no-skin #sidebar.menu-min ~ #footer.footer {
    left: 43px !important;
}

body.no-skin #footer .footer-inner,
body.no-skin #sidebar ~ #footer .footer-inner,
body.no-skin #sidebar.menu-min ~ #footer .footer-inner {
    position: static !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 28px !important;
}

body.no-skin #footer .footer-content {
    position: static !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 28px !important;
    line-height: 26px !important;
    padding: 0 16px !important;
    border-top: 1px solid #d5d5d5 !important;
    background: #f5f5f5 !important;
    text-align: right !important;
    font-size: 11.5px !important;
    color: #555 !important;
}

body.no-skin #footer .footer-brand-link {
    color: #438EB9 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.no-skin #footer .footer-sep {
    margin: 0 6px;
    color: #bbb;
}

body.no-skin #footer .footer-version {
    font-weight: 600;
    color: #393939;
}

@media (max-width: 991px) {
    body.no-skin #footer.footer {
        left: 0 !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   TARJETAS KPI EJECUTIVAS (Colores Clásicos Ace Admin + Bordes Esquinados)
   ========================================================================== */

.dashboard-top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 16px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #438EB9;
    border-radius: 0px !important;
}

.dashboard-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 0px !important;
    background-color: #ffffff;
    border: 1px solid #d5d5d5;
    color: #393939 !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.quick-pill-btn i {
    color: #438EB9;
}

.quick-pill-btn:hover {
    background-color: #438EB9;
    border-color: #438EB9;
    color: #FFF !important;
}

.quick-pill-btn:hover i {
    color: #FFF;
}

.dashboard-session-strip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #555;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 5px 12px;
}

.dashboard-session-strip i {
    color: #438EB9;
    margin-right: 4px;
}

.ace-kpi-row {
    margin-bottom: 8px;
}

.ace-kpi-card {
    background: #ffffff;
    border: 1px solid #dcebf7;
    border-top-width: 3px;
    border-radius: 0px !important;
    margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ace-kpi-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.09);
}

.ace-kpi-card.ace-kpi-blue {
    border-top-color: #438EB9;
}

.ace-kpi-card.ace-kpi-green {
    border-top-color: #629B58;
}

.ace-kpi-card.ace-kpi-orange {
    border-top-color: #F89406;
}

.ace-kpi-card.ace-kpi-purple {
    border-top-color: #9585BF;
}

.ace-kpi-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
}

.ace-kpi-info {
    flex: 1;
    min-width: 0;
}

.ace-kpi-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #666;
    margin-bottom: 4px;
}

.ace-kpi-value {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.15;
    color: #2679B5;
    margin-bottom: 4px;
    white-space: nowrap;
}

.ace-kpi-green .ace-kpi-value {
    color: #468847;
}

.ace-kpi-orange .ace-kpi-value {
    color: #E07500;
}

.ace-kpi-purple .ace-kpi-value {
    color: #7E6EB0;
}

.ace-kpi-sub {
    font-size: 12px;
    color: #555;
    font-weight: 600;
}

.ace-kpi-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background-color: #438EB9;
    border-radius: 0px !important;
    margin-left: 12px;
    flex-shrink: 0;
}

.ace-kpi-green .ace-kpi-icon {
    background-color: #629B58;
}

.ace-kpi-orange .ace-kpi-icon {
    background-color: #F89406;
}

.ace-kpi-purple .ace-kpi-icon {
    background-color: #9585BF;
}

.ace-kpi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    background-color: #f7f9fb;
    border-top: 1px solid #edf2f7;
    font-size: 11.5px;
    color: #666;
}

.ace-kpi-footer a {
    color: #438EB9;
    font-weight: 700;
    text-decoration: none;
}

.ace-kpi-footer a:hover {
    text-decoration: underline;
}

.kpi-badge-ok {
    display: inline-block;
    padding: 1px 6px;
    background-color: #82AF6F;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.kpi-badge-warn {
    display: inline-block;
    padding: 1px 6px;
    background-color: #D15B47;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* ==========================================================================
   DISEÑO COMPACTO DE FACTURACIÓN (#/factura_venta) EN 4 COLUMNAS
   ========================================================================== */

.fv-header-box {
    margin-bottom: 10px;
}

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

.fv-fields-grid .col-sm-4 {
    padding-left: 8px;
    padding-right: 8px;
}

.fv-field-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.fv-field-label {
    width: 86px;
    flex-shrink: 0;
    margin: 0 !important;
    padding-right: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #393939;
    text-align: left;
    white-space: nowrap;
}

.fv-field-control {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.fv-field-control .form-control {
    width: 100% !important;
    height: 32px;
    padding: 4px 8px;
}

.fv-field-control .input-group {
    width: 100% !important;
}

.fv-field-control .select2-container {
    width: 100% !important;
}

.fv-logo-card {
    border: 1px solid #dcebf7;
    border-top: 3px solid #438EB9;
    background: #ffffff;
    border-radius: 0px !important;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fv-logo-body {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    overflow: hidden;
    background: #fff;
}

.fv-logo-body img#logo {
    max-width: 100%;
    max-height: 102px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fv-product-entry-bar {
    background-color: #f7f9fb;
    border: 1px solid #dcebf7;
    border-left: 3px solid #438EB9;
    padding: 10px 12px 12px;
    margin-top: 4px;
    border-radius: 0px !important;
}

.fv-product-entry-bar label.control-label {
    font-size: 11.5px;
    color: #2679B5;
    margin-bottom: 4px;
    display: block;
}

.fv-totals-panel {
    background-color: #f9fbfd;
    border: 1px solid #dcebf7;
    border-top: 3px solid #438EB9;
    padding: 10px 12px;
    border-radius: 0px !important;
}

.fv-total-highlight {
    background-color: #edf7ed;
    border: 1px solid #b7dfb9;
    border-left: 4px solid #629B58;
    padding: 8px 10px;
    margin-bottom: 10px;
}

.fv-total-highlight label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: #3c763d;
    margin-bottom: 3px;
    letter-spacing: 0.4px;
}

.fv-total-highlight input#total_pagar {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #2e6b30 !important;
    height: 36px !important;
    text-align: right;
    background-color: #ffffff !important;
    border-color: #9cd09e !important;
}

.fv-summary-row {
    margin-bottom: 5px !important;
}

.fv-summary-row .control-label {
    font-size: 11.5px;
    padding-top: 5px !important;
    color: #444;
}

.fv-summary-row input.form-control {
    height: 28px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    text-align: right;
    padding-top: 2px;
    padding-bottom: 2px;
}

.fv-counts-row,
.fv-cash-row {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #d5e3ef;
}

.fv-counts-row label,
.fv-cash-row label {
    display: block;
    font-size: 11px;
    color: #555;
    margin-bottom: 2px;
}

.fv-counts-row input.form-control {
    height: 28px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.fv-cash-row input.form-control {
    height: 30px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #d36e00 !important;
}
