html,
body {
    height: 100%;
}

.boton-limpiar {
    margin-top: 25px;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.panel-mesa {
    height: 97px;
}

.btn-cliente {
    margin-top: 15%;
}

.panel-cliente {
    margin: 3px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

.columna-venta-mes {
    width: 50%;
    border-style:solid;
    border-color:black;
    border-width:1px;
}

.btn-venta {
    margin-top: 8px;
    margin-left: 0px;
}

.venta-index {
    background: #f4f6f8;
    margin: -20px -15px 0;
    min-height: calc(100vh - 120px);
    padding: 24px 22px 36px;
}

.venta-shell {
    max-width: 1440px;
    margin: 0 auto;
}

.venta-hero {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d9e1e8;
    border-left: 5px solid #2f7d5a;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(30, 43, 55, 0.08);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, auto) minmax(280px, 1fr);
    margin-bottom: 14px;
    padding: 18px 20px;
}

.venta-hero-main {
    min-width: 0;
}

.venta-title-row {
    align-items: center;
    display: flex;
}

.venta-hero h1 {
    color: #1f2a33;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 4px;
}

.venta-hero p {
    color: #687684;
    font-size: 14px;
    margin: 0;
}

.venta-hero-total {
    background: #1f6f4e;
    border: 1px solid #1f6f4e;
    border-radius: 8px;
    justify-self: center;
    min-width: 220px;
    padding: 12px 18px;
    text-align: center;
}

.venta-hero-total span {
    color: #ffffff;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.venta-hero-total strong {
    color: #ffffff;
    display: block;
    font-size: 24px;
    line-height: 1.15;
}

.venta-dot {
    background: #c7d1da;
    border-radius: 50%;
    display: inline-block;
    height: 5px;
    margin: 0 8px 2px;
    width: 5px;
}

.venta-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.venta-action-primary,
.venta-action-secondary {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    margin: 4px 0 4px 8px;
    min-height: 44px;
    padding: 0 16px;
    text-decoration: none;
}

.venta-action-primary i,
.venta-action-secondary i {
    margin-right: 8px;
}

.venta-action-primary,
.venta-action-primary:focus,
.venta-action-primary:hover {
    background: #2f7d5a;
    color: #ffffff;
}

.venta-action-secondary,
.venta-action-secondary:focus,
.venta-action-secondary:hover {
    background: #ffffff;
    border-color: #cbd5df;
    color: #344250;
}

.venta-action-primary:focus,
.venta-action-secondary:focus,
.venta-card-btn:focus {
    outline: 3px solid rgba(47, 125, 90, 0.24);
    outline-offset: 2px;
}

.venta-dashboard {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 -6px 18px;
}

.venta-metric {
    background: #ffffff;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    min-height: 92px;
    margin: 0 6px 12px;
    padding: 14px 14px 12px;
}

.venta-metric-label {
    color: #6f7c88;
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.venta-metric strong {
    color: #1f2a33;
    display: block;
    font-size: 20px;
    line-height: 1.2;
}

.venta-metric small {
    color: #8a96a3;
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.venta-dashboard-link,
.venta-dashboard-link:focus,
.venta-dashboard-link:hover {
    align-items: center;
    background: #f4f7f9;
    border: 1px solid #dce4eb;
    border-radius: 6px;
    color: #344250;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    margin-top: 10px;
    min-height: 30px;
    padding: 6px 9px;
    text-decoration: none;
}

.venta-save-alert {
    border-radius: 8px;
    margin-bottom: 16px;
}

.venta-active-list {
    background: transparent;
}

.venta-active-grid {
    margin-left: -8px;
    margin-right: -8px;
}

.venta-active-card-item {
    padding-left: 8px;
    padding-right: 8px;
}

.venta-card {
    background: #ffffff;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(30, 43, 55, 0.07);
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    min-height: 298px;
    overflow: hidden;
}

.venta-card-header {
    align-items: flex-start;
    border-top: 4px solid #2f7d5a;
    display: flex;
    justify-content: space-between;
    padding: 14px 14px 10px;
}

.venta-card-label {
    color: #6f7c88;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.venta-card h2 {
    color: #1f2a33;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    word-break: break-word;
}

.venta-card-table {
    background: #fff4de;
    border: 1px solid #f1d7a5;
    border-radius: 6px;
    color: #7b5422;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    margin-left: 10px;
    max-width: 42%;
    padding: 6px 8px;
    text-align: center;
    word-break: break-word;
}

.venta-card-meta {
    border-bottom: 1px solid #edf1f4;
    color: #6f7c88;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    padding: 0 14px 12px;
}

.venta-card-meta span {
    margin: 4px 12px 0 0;
}

.venta-card-meta i {
    color: #2f7d5a;
    margin-right: 5px;
}

.venta-card-items {
    flex: 1 1 auto;
    padding: 12px 14px;
}

.venta-card-item-line {
    align-items: center;
    color: #344250;
    display: flex;
    font-size: 14px;
    justify-content: space-between;
    line-height: 1.25;
    padding: 6px 0;
}

.venta-card-item-line + .venta-card-item-line {
    border-top: 1px solid #edf1f4;
}

.venta-card-item-line span {
    padding-right: 10px;
    word-break: break-word;
}

.venta-card-item-line strong {
    color: #1f2a33;
    flex: 0 0 auto;
}

.venta-card-more {
    color: #6f7c88;
    font-size: 13px;
    font-weight: 700;
    padding-top: 8px;
}

.venta-card-footer {
    border-top: 1px solid #edf1f4;
    padding: 12px 14px 14px;
}

.venta-card-total {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.venta-card-total span {
    color: #6f7c88;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.venta-card-total strong {
    color: #1f2a33;
    font-size: 20px;
}

.venta-card-actions {
    display: flex;
}

.venta-card-btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    display: inline-flex;
    flex: 1 1 0;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 38px;
    padding: 0 10px;
}

.venta-card-btn + .venta-card-btn {
    margin-left: 8px;
}

.venta-card-btn i {
    margin-right: 6px;
}

.venta-card-btn-edit {
    background: #eef3f7;
    color: #344250;
}

.venta-card-btn-close {
    background: #2f7d5a;
    color: #ffffff;
}

.venta-card-btn-edit:hover,
.venta-card-btn-edit:focus {
    background: #dfe8ef;
    color: #1f2a33;
}

.venta-card-btn-close:hover,
.venta-card-btn-close:focus {
    background: #276a4c;
    color: #ffffff;
}

.venta-empty-state {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    color: #50606f;
    display: flex;
    font-size: 18px;
    font-weight: 700;
    justify-content: center;
    margin: 0 8px;
    min-height: 180px;
}

.venta-empty-state i {
    color: #2f7d5a;
    margin-right: 8px;
}

.venta-detail {
    background: #f4f6f8;
    margin: -15px;
    min-height: calc(100vh - 120px);
    padding: 18px;
}

.venta-detail-header {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 16px;
}

.venta-detail-header h1 {
    color: #1f2a33;
    font-size: 26px;
    font-weight: 700;
    margin: 8px 0 4px;
}

.venta-detail-header p {
    color: #687684;
    margin: 0;
}

.venta-detail-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.venta-detail-actions .btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-weight: 700;
    gap: 6px;
}

.venta-detail-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.venta-detail-summary > div,
.venta-detail-note,
.venta-detail-section {
    background: #ffffff;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
}

.venta-detail-summary > div {
    padding: 14px;
}

.venta-detail-summary span,
.venta-detail-note span {
    color: #687684;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.venta-detail-summary strong {
    color: #1f2a33;
    display: block;
    font-size: 19px;
    line-height: 1.2;
}

.venta-detail-note {
    margin-bottom: 14px;
    padding: 14px;
}

.venta-detail-note p {
    color: #1f2a33;
    margin: 0;
}

.venta-detail-section {
    margin-bottom: 14px;
    overflow: hidden;
}

.venta-detail-section-title {
    border-bottom: 1px solid #edf1f4;
    padding: 12px 14px;
}

.venta-detail-section-title h2 {
    color: #1f2a33;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.venta-detail-table {
    margin-bottom: 0;
}

.venta-detail-table > thead > tr > th {
    border-bottom: 1px solid #d9e1e8;
    color: #50606f;
    font-size: 12px;
    text-transform: uppercase;
}

.venta-form {
    background: #f4f6f8;
    margin: -15px;
    padding: 16px;
}

.venta-form-card {
    background: #ffffff;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(30, 43, 55, 0.08);
    overflow: hidden;
}

.operational-page {
    background: #f4f6f8;
    margin: -15px;
    min-height: calc(100vh - 120px);
    padding: 18px;
}

.operational-hero {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d9e1e8;
    border-left: 5px solid #2f7d5a;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(30, 43, 55, 0.08);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 18px 20px;
}

.operational-hero-main {
    min-width: 0;
}

.operational-kicker {
    color: #687684;
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.operational-hero h1 {
    color: #1f2a33;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.operational-hero h1 i {
    color: #2f7d5a;
    margin-right: 8px;
}

.operational-hero p {
    color: #687684;
    margin: 8px 0 0;
}

.operational-hero-stat {
    background: #1f6f4e;
    border: 1px solid #1f6f4e;
    border-radius: 8px;
    min-width: 150px;
    padding: 12px 16px;
    text-align: center;
}

.operational-hero-stat span {
    color: #ffffff;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.operational-hero-stat strong {
    color: #ffffff;
    display: block;
    font-size: 24px;
    line-height: 1.15;
}

.operational-actions,
.operational-card-actions,
.operational-tabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.operational-actions,
.operational-tabs {
    margin-bottom: 14px;
}

.operational-card-actions {
    border-bottom: 1px solid #edf1f4;
    margin: -14px -14px 14px;
    padding: 14px;
}

.operational-card {
    background: #ffffff;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(30, 43, 55, 0.06);
    margin-bottom: 14px;
    padding: 14px;
}

.operational-filter-card {
    background: #ffffff;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    padding: 14px;
}

.operational-filter-card h3 {
    color: #1f2a33;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 14px;
}

.operational-notice {
    align-items: center;
    border: 1px solid #d9e1e8;
    border-radius: 6px;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
}

.operational-notice-info {
    background: #eef6fb;
    border-color: #a9c8dc;
    color: #2f6f9f;
}

.operational-notice-warning {
    background: #fbf3e8;
    border-color: #dfbf95;
    color: #9b6424;
}

.operational-summary-card {
    background: #ffffff;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    padding: 14px;
}

.operational-summary-card span {
    color: #687684;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.operational-summary-card strong {
    color: #1f2a33;
    display: block;
    font-size: 18px;
}

.caja-dashboard-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.cuenta-corriente-layout {
    align-items: flex-start;
}

.status-badge {
    background: #eef2f5;
    border-radius: 999px;
    color: #50606f;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 9px;
}

.status-badge-info {
    background: #eef6fb;
    color: #2f6f9f;
}

.status-badge-success {
    background: #eef8f2;
    color: #1f6f4e;
}

.status-badge-warning {
    background: #fbf3e8;
    color: #9b6424;
}

.status-badge-danger {
    background: #f8eeee;
    color: #9d3939;
}

.amount-cell {
    color: #1f2a33;
    font-weight: 700;
    white-space: nowrap;
}

.operational-card .kv-grid-container,
.operational-card .table-responsive {
    border-radius: 6px;
}

.operational-card .table > thead > tr > th {
    background: #f8fafb;
    border-bottom: 1px solid #d9e1e8;
    color: #50606f;
    font-size: 12px;
    text-transform: uppercase;
}

.venta-form-body {
    padding: 16px;
}

.venta-form-section,
.venta-form-items-panel {
    background: #ffffff;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    margin-bottom: 14px;
}

.venta-form-section {
    padding: 14px 14px 0;
}

.venta-estado-field {
    margin-bottom: 15px;
}

.venta-condicion-field {
    margin-bottom: 15px;
}

.venta-condicion-toggle {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
}

.venta-condicion-option {
    background: #ffffff;
    border: 1px solid #cfd9e2;
    border-radius: 6px;
    color: #50606f;
    font-weight: 700;
    min-height: 34px;
    padding: 6px 10px;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
    width: 100%;
}

.venta-condicion-option:focus {
    outline: none;
}

.venta-condicion-option:focus-visible {
    box-shadow: 0 0 0 3px rgba(122, 92, 165, 0.18);
}

.venta-condicion-contado {
    border-color: #a8cfbc;
    color: #1f6f4e;
}

.venta-condicion-cuenta-corriente {
    border-color: #a9c8dc;
    color: #2f6f9f;
}

.venta-condicion-debcred {
    border-color: #c8b7df;
    color: #7652a6;
}

.venta-condicion-qr {
    border-color: #9fd0dd;
    color: #26758a;
}

.venta-condicion-mixto,
.venta-condicion-otra {
    border-color: #dfbf95;
    color: #9b6424;
}

.venta-condicion-contado:hover {
    background: #eef8f2;
}

.venta-condicion-cuenta-corriente:hover {
    background: #eef6fb;
}

.venta-condicion-debcred:hover {
    background: #f4f0fa;
}

.venta-condicion-qr:hover {
    background: #edf8fb;
}

.venta-condicion-mixto:hover,
.venta-condicion-otra:hover {
    background: #fbf3e8;
}

.venta-condicion-contado.is-active {
    background: #1f6f4e;
    border-color: #1f6f4e;
    color: #ffffff;
}

.venta-condicion-cuenta-corriente.is-active {
    background: #2f6f9f;
    border-color: #2f6f9f;
    color: #ffffff;
}

.venta-condicion-debcred.is-active {
    background: #7652a6;
    border-color: #7652a6;
    color: #ffffff;
}

.venta-condicion-qr.is-active {
    background: #26758a;
    border-color: #26758a;
    color: #ffffff;
}

.venta-condicion-mixto.is-active,
.venta-condicion-otra.is-active {
    background: #9b6424;
    border-color: #9b6424;
    color: #ffffff;
}

.venta-estado-toggle {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.venta-estado-option {
    background: #ffffff;
    border: 1px solid #cfd9e2;
    border-radius: 6px;
    color: #50606f;
    font-weight: 700;
    min-height: 34px;
    padding: 6px 10px;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
    width: 100%;
}

.venta-estado-option:focus {
    outline: none;
}

.venta-estado-option:focus-visible {
    box-shadow: 0 0 0 3px rgba(47, 125, 90, 0.18);
}

.venta-estado-option:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.venta-estado-finalizada {
    border-color: #a8cfbc;
    color: #1f6f4e;
}

.venta-estado-abierta {
    border-color: #a9c8dc;
    color: #2f6f9f;
}

.venta-estado-cancelada {
    border-color: #d7b0b0;
    color: #9d3939;
}

.venta-estado-finalizada:hover {
    background: #eef8f2;
}

.venta-estado-abierta:hover {
    background: #eef6fb;
}

.venta-estado-cancelada:hover {
    background: #f8eeee;
}

.venta-estado-finalizada.is-active {
    background: #1f6f4e;
    border-color: #1f6f4e;
    color: #ffffff;
}

.venta-estado-abierta.is-active {
    background: #2f6f9f;
    border-color: #2f6f9f;
    color: #ffffff;
}

.venta-estado-cancelada.is-active {
    background: #9d3939;
    border-color: #9d3939;
    color: #ffffff;
}

.venta-pago-mixto-panel {
    background: #ffffff;
    border: 1px solid #dce4eb;
    border-left: 5px solid #5c6f82;
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 14px;
}

.venta-pago-mixto-header {
    align-items: center;
    border-bottom: 1px solid #edf1f4;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.venta-pago-mixto-header strong {
    color: #1f2a33;
    font-size: 15px;
}

.venta-pago-mixto-header span {
    color: #687684;
    font-size: 12px;
}

.venta-pago-mixto-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
}

.venta-pago-mixto-card {
    border: 1px solid #dce4eb;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 62px;
    padding: 10px 12px;
}

.venta-pago-mixto-card span {
    color: #687684;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.venta-pago-mixto-card strong {
    color: #1f2a33;
    font-size: 18px;
}

.venta-pago-mixto-total.is-pending {
    background: #eef2f5;
    border-color: #d8e0e7;
}

.venta-pago-mixto-total.is-complete {
    background: #1f6f4e;
    border-color: #1f6f4e;
}

.venta-pago-mixto-total.is-over {
    background: #9d3939;
    border-color: #9d3939;
}

.venta-pago-mixto-total.is-complete span,
.venta-pago-mixto-total.is-complete strong,
.venta-pago-mixto-total.is-over span,
.venta-pago-mixto-total.is-over strong {
    color: #ffffff;
}

.venta-pago-mixto-pendiente {
    background: #f4f6f8;
}

.venta-form-section-header,
.venta-form-items-title {
    align-items: center;
    display: flex;
}

.venta-form-section-header {
    border-bottom: 1px solid #edf1f4;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.venta-form-section-icon {
    align-items: center;
    background: #e8f3ee;
    border-radius: 8px;
    color: #2f7d5a;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 20px;
    height: 42px;
    justify-content: center;
    margin-right: 12px;
    width: 42px;
}

.venta-form h2 {
    color: #1f2a33;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 3px;
}

.venta-form p {
    color: #687684;
    font-size: 13px;
    margin: 0;
}

.venta-form label {
    color: #50606f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.venta-form .form-control,
.venta-form .select2-container--krajee .select2-selection {
    border-color: #cbd5df;
    border-radius: 6px;
    box-shadow: none;
    min-height: 38px;
}

.venta-form .form-control:focus,
.venta-form .select2-container--krajee.select2-container--open .select2-selection {
    border-color: #2f7d5a;
    box-shadow: 0 0 0 3px rgba(47, 125, 90, 0.16);
}

.venta-menu-option {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 74px minmax(0, 1fr);
    line-height: 1.25;
}

.venta-menu-option-code {
    color: #50606f;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 12px;
    font-weight: 700;
}

.venta-menu-option-name {
    color: #1f2a33;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venta-form .has-error .select2-selection {
    border-color: #a94442;
}

.venta-form .btn-success,
.venta-form .btn-success:focus,
.venta-form .btn-success:hover {
    background: #2f7d5a;
    border-color: #2f7d5a;
    color: #ffffff;
}

.venta-form-items-toolbar {
    align-items: center;
    background: #ffffff;
    border-left: 5px solid #2f7d5a;
    display: flex;
    justify-content: space-between;
    padding: 14px;
}

.venta-form-total-box {
    align-items: center;
    background: #22313f;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 58px;
    justify-content: center;
    margin-left: 0;
    min-width: 180px;
    padding: 0 14px;
}

.venta-form-total-box span {
    color: rgba(255, 255, 255, 0.78);
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.venta-form-total-box strong {
    color: #ffffff;
    display: block;
    font-size: 23px;
    line-height: 1.15;
}

.venta-form-total-box strong span {
    color: #ffffff;
    display: inline;
    font-size: inherit;
    text-transform: none;
}

.venta-form-total-box .form-group {
    height: 0;
    margin: 0;
    overflow: hidden;
}

.venta-form-add-btn {
    align-items: center;
    background: #2f7d5a;
    border: 1px solid #2f7d5a;
    border-radius: 6px;
    color: #ffffff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    margin-left: 12px;
    height: 58px;
    min-height: 58px;
    padding: 0 14px;
}

.venta-form-add-btn:focus,
.venta-form-add-btn:hover {
    background: #276a4c;
    border-color: #276a4c;
    color: #ffffff;
    outline: 3px solid rgba(47, 125, 90, 0.24);
    outline-offset: 2px;
}

.venta-form-add-btn i {
    margin-right: 7px;
}

.venta-form-items-body {
    background: #f8fafb;
    border-top: 1px solid #edf1f4;
    padding: 12px;
}

.venta-form-line-item {
    background: #ffffff;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(30, 43, 55, 0.05);
    margin-bottom: 12px;
}

.venta-form-line-body {
    padding: 12px 12px 0;
}

.venta-form-inline-stat {
    align-items: center;
    background: #f4f6f8;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 38px;
    justify-content: center;
    margin-top: 0;
    min-height: 38px;
    padding: 0 8px;
    text-align: center;
}

.venta-form-inline-stat > span {
    color: #6f7c88;
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.venta-form-inline-stat strong {
    color: #1f2a33;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    margin: 0;
    min-height: 100%;
    width: 100%;
}

.venta-form-inline-stat strong span {
    color: #1f2a33;
    display: inline;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
}

.venta-form-inline-stat-total {
    background: #fff4de;
    border-color: #f1d7a5;
}

.venta-form-stepper {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 38px;
    justify-content: space-between;
    margin-top: 25px;
}

.venta-form-stepper .btn-venta {
    align-items: center;
    border-radius: 6px;
    display: flex;
    height: 18px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    width: 38px;
}

.venta-form-remove-btn {
    align-items: center;
    background: #f6e8e8;
    border: 1px solid #e8c6c6;
    border-radius: 6px;
    color: #9d3939;
    display: inline-flex;
    font-size: 18px;
    height: 38px;
    justify-content: center;
    margin-top: 25px;
    width: 38px;
}

.venta-form-remove-btn:focus,
.venta-form-remove-btn:hover {
    background: #e9d3d3;
    color: #7f2929;
    outline: 3px solid rgba(157, 57, 57, 0.18);
    outline-offset: 2px;
}

.venta-form-actions {
    align-items: center;
    border-top: 1px solid #edf1f4;
    display: flex;
    justify-content: flex-end;
    margin: 4px 0 0;
    padding-top: 14px;
}

.venta-form-actions .btn {
    border-radius: 6px;
    font-weight: 700;
    margin-left: 8px;
    min-height: 38px;
    padding-left: 16px;
    padding-right: 16px;
}

.venta-form-actions #cancel {
    float: none !important;
    order: -1;
    margin-left: 0;
    margin-right: auto;
}

.caja-index-actions {
    margin-bottom: 12px;
}

@media (max-width: 1199px) {
    .venta-hero {
        grid-template-columns: minmax(220px, 1fr) minmax(200px, auto);
    }

    .venta-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .venta-dashboard {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .venta-condicion-toggle {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .caja-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .venta-index {
        margin-left: -15px;
        margin-right: -15px;
        padding: 16px 14px 28px;
    }

    .venta-hero {
        align-items: stretch;
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .venta-actions {
        justify-content: stretch;
        margin-top: 14px;
    }

    .venta-action-primary,
    .venta-action-secondary {
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }

    .venta-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .venta-hero-total {
        justify-self: stretch;
        min-width: 0;
    }

    .venta-hero h1 {
        font-size: 24px;
    }

    .venta-detail {
        margin: -15px;
        padding: 12px;
    }

    .venta-detail-header {
        align-items: stretch;
        flex-direction: column;
    }

    .venta-detail-actions {
        flex-wrap: wrap;
        margin-top: 12px;
    }

    .venta-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .venta-pago-mixto-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .venta-pago-mixto-header span {
        margin-top: 4px;
    }

    .venta-pago-mixto-summary {
        grid-template-columns: 1fr;
    }

    .venta-form {
        margin: -15px;
        padding: 12px;
    }

    .venta-form-items-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .venta-form-total-box {
        margin: 0;
        width: 100%;
    }

    .venta-form-add-btn {
        margin: 10px 0 0;
        width: 100%;
    }

    .venta-form-inline-stat,
    .venta-form-stepper,
    .venta-form-remove-btn {
        margin-top: 0;
    }

    .venta-form-stepper {
        align-items: stretch;
        flex-direction: row;
        margin-bottom: 10px;
    }

    .venta-form-stepper .btn-venta {
        flex: 1 1 0;
        margin-right: 6px;
        width: auto;
    }

    .venta-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .venta-form-actions .btn,
    .venta-form-actions #cancel {
        margin: 0 0 8px;
        width: 100%;
    }

    .operational-page {
        margin: -15px;
        padding: 12px;
    }

    .operational-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    .operational-hero-stat {
        min-width: 0;
        width: 100%;
    }

    .operational-actions .btn,
    .operational-card-actions .btn,
    .operational-tabs .btn {
        margin: 0;
        width: 100%;
    }

    .caja-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .venta-condicion-toggle,
    .venta-estado-toggle {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .venta-dashboard,
    .venta-detail-summary {
        grid-template-columns: 1fr;
    }
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}
