.corte-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}

.corte-header {
    padding: 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.corte-header .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.corte-subtitle {
    color: #858585;
    font-size: 1.1rem;
}

.corte-body {
    padding: 2rem;
}

.corte-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.corte-section:first-child {
    padding-top: 0;
}

.corte-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.corte-section-title {
    color: #6c757d;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.corte-label {
    color: #6c757d;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .5rem;
}

.corte-value {
    font-weight: 700;
}

.corte-money-input .input-group-text,
.corte-money-input .form-control {
    border-radius: 12px;
    font-size: 1.1rem;
    padding: .75rem 1rem;
}

.corte-money-input .input-group-text {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: #fff;
    font-weight: 700;
}

.corte-money-input .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.corte-table {
    width: 100%;
}

.corte-table-row {
    display: grid;
    grid-template-columns: 1fr 180px 140px;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 1rem;
}

.corte-table-head {
    color: #6c757d;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .85rem;
}

.corte-table-total {
    border-bottom: 0;
    font-size: 1.15rem;
    font-weight: 700;
}


.corte-summary {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
}

.corte-summary-row{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap: 1.2rem;
}

.corte-summary-label{
    width:60%;
    text-align:right;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight:600;
    color: #495057;
    font-size:0.95rem;
}

.corte-summary-row strong{
    width:30%;
    text-align:right;
    font-size:0.95rem;
    font-weight:700;
}


.corte-summary-row > span {
    color: #495057;
    flex: 1 1 220px;
}

.corte-summary-input {
    width: 30%;
    min-width: 100px;
}

.corte-summary-input > input {
   font-weight:600;
    color: #495057;
    font-size:0.95rem;
}

.corte-summary-total {
    border-top: 1px solid #dee2e6;
    margin-top: .5rem;
    padding-top: 1rem;
    font-size: 1.15rem;
}

.corte-summary-total-label{
    width:60%;
    text-align:right;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight:800;
    color: #373b40;
    font-size:1.25rem;
}

.corte-summary-total-value{
    width:30%;
    font-size: 1.25rem;
    font-weight: 700;
    text-align:right;
}

.corte-diff-ok span,
.corte-diff-ok strong {
    color: #198754;
}

.corte-diff-warning span,
.corte-diff-warning strong {
    color: #fd7e14;
}

.corte-diff-danger span,
.corte-diff-danger strong {
    color: #dc3545;
}

.corte-textarea {
    border-radius: 12px;
}

.corte-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid #e9ecef;
}

.ventas-metodos {
    background: linear-gradient(135deg, #fffdf8 0%, #ffffff 100%);
    border: 1px solid #ece7dc;
    border-radius: 22px;
    padding: 1.25rem;
}

.ventas-metodos-hint {
    color: #8a7d67;
    font-size: .8rem;
    font-weight: 600;
}

.ventas-metodo-card {
    border-radius: 18px;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #ebe6db;
    box-shadow: 0 10px 24px rgba(33, 37, 41, 0.05);
    min-height: 100%;
}

.ventas-metodo-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: .85rem;
    font-size: 1rem;
}

.ventas-metodo-label {
    color: #6c757d;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .35rem;
}

.ventas-metodo-value {
    color: #212529;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
}

.ventas-metodo-card-total {
    background: linear-gradient(135deg, #f8f6ff 0%, #ffffff 100%);
    border-color: #ddd2fb;
}

.venta-card {
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 1.25rem;
    background: #fff;
    height: 100%;
}

.venta-card-label {
    color: #6c757d;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.venta-card-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
}

.venta-card-ops {
    color: #6c757d;
    font-size: .75rem;
}

.venta-card-total {
    background: #f8f9fa;
    border-color: #dee2e6;
}

@media (max-width: 768px) {
    .ventas-metodos {
        padding: 1rem;
    }

    .ventas-metodo-value {
        font-size: 1.6rem;
    }

    .venta-card {
        padding: 1rem;
    }

    .venta-card-amount {
        font-size: 1.45rem;
    }
}

@media (max-width: 768px) {
    .corte-header,
    .corte-body,
    .corte-footer {
        padding: 1.25rem;
    }

    .corte-table-row {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .corte-table-row .text-end {
        text-align: left !important;
    }

    .corte-summary {
        max-width: 100%;
        margin-left: 0;
    }

    .corte-summary-row {
        gap: .5rem;
    }

    .corte-summary-row > span,
    .corte-summary-row strong,
    .corte-summary-total-value {
        flex-basis: 100%;
    }

    .corte-summary-row strong {
        min-width: 0;
    }

    .corte-summary-input {
        width: 50%;
        min-width: 0;
    }
}
