﻿
.cash-dark {
    --bg: #05070b;
    --panel: rgba(10, 14, 22, .72);
    --panel2: rgba(10, 14, 22, .55);
    --border: rgba(255, 255, 255, .10);
    --border2: rgba(245, 158, 11, .28);
    --text: rgba(226, 232, 240, 1);
    --muted: rgba(148, 163, 184, 1);
    --muted2: rgba(100, 116, 139, 1);
    --amber: #f59e0b;
    --amber2: rgba(245, 158, 11, .12);
    --sky: #0ea5e9;
    --sky2: rgba(14, 165, 233, .14);
    --emerald: #10b981;
    --emerald2: rgba(16, 185, 129, .14);
    --blue: #3b82f6;
    --blue2: rgba(59, 130, 246, .14);
    --violet: #8b5cf6;
    --violet2: rgba(139, 92, 246, .14);
    color: var(--text);
}

.cash-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
    overflow: hidden;
}

.cash-card--amber {
    border-color: var(--border2);
    background: linear-gradient(90deg, rgba(245,158,11,.10), rgba(0,0,0,.10));
    box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(245,158,11,.08) inset;
}

.cash-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.cash-pill {
    border: 1px solid rgba(245,158,11,.35);
    background: rgba(245,158,11,.10);
    color: rgba(252, 211, 77, 1);
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 10px;
    white-space: nowrap;
}

.cash-ico {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
}

.cash-ico--amber {
    border-color: rgba(245,158,11,.25);
    background: rgba(245,158,11,.10);
}

.cash-ico--sky {
    border-color: rgba(14,165,233,.22);
    background: rgba(14,165,233,.10);
}

.cash-ico--emerald {
    border-color: rgba(16,185,129,.22);
    background: rgba(16,185,129,.10);
}

.cash-ico--blue {
    border-color: rgba(59,130,246,.22);
    background: rgba(59,130,246,.10);
}

.cash-ico--violet {
    border-color: rgba(139,92,246,.22);
    background: rgba(139,92,246,.10);
}

.cash-title {
    font-weight: 800;
}

.cash-muted {
    color: var(--muted);
}

.cash-muted2 {
    color: var(--muted2);
}

.cash-btn {
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: var(--text);
}

    .cash-btn:hover {
        background: rgba(255,255,255,.10);
    }

.cash-btn-primary {
    border-color: rgba(14,165,233,.35);
    background: rgba(14,165,233,.95);
    color: #041019;
    box-shadow: 0 10px 22px rgba(14,165,233,.20);
}

    .cash-btn-primary:hover {
        filter: brightness(1.06);
    }

.cash-kpis {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .cash-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cash-kpis {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.cash-kpi {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(10,14,22,.70), rgba(10,14,22,.45));
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
}

    .cash-kpi .label {
        font-size: 13px;
        color: var(--muted);
    }

    .cash-kpi .value {
        font-size: 26px;
        font-weight: 900;
        letter-spacing: -.02em;
    }

.t-sky {
    color: rgba(56, 189, 248, 1);
}

.t-emerald {
    color: rgba(52, 211, 153, 1);
}

.t-blue {
    color: rgba(96, 165, 250, 1);
}

.t-violet {
    color: rgba(167, 139, 250, 1);
}

.t-amber {
    color: rgba(252, 211, 77, 1);
}

.cash-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
}

.cash-tab {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 12px;
}

    .cash-tab:hover {
        background: rgba(255,255,255,.06);
        color: var(--text);
    }

    .cash-tab.is-active {
        background: rgba(255,255,255,.10);
        color: var(--text);
    }

.cash-badge-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--amber);
    color: #120b02;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(245,158,11,.25);
}

.cash-section {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(10,14,22,.70), rgba(10,14,22,.45));
    box-shadow: 0 28px 80px rgba(0,0,0,.55);
    overflow: hidden;
}

.cash-section-hd {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.cash-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    border-radius: 16px;
}

.cash-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    color: var(--text);
}

.cash-chip--emerald {
    border-color: rgba(16,185,129,.35);
    background: rgba(16,185,129,.12);
    color: rgba(167, 243, 208, 1);
}

.cash-amount {
    font-size: 26px;
    font-weight: 950;
    color: rgba(56, 189, 248, 1);
}

/* helpers */
.minw0 {
    min-width: 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.grid4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 640px) {
    .grid4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}












/*Modal*/
#modalAprobarCobro .modal-content {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background: radial-gradient(circle at top left, rgba(59,130,246,.07), transparent 22%), linear-gradient(180deg,#1b2434 0%,#111827 100%);
    color: #e5e7eb;
}

#modalAprobarCobro .modal-header {
    min-height: auto;
    padding: .55rem .9rem;
    border-bottom: 1px solid rgba(148,163,184,.10);
    background: rgba(17,24,39,.30);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#modalAprobarCobro .modal-footer {
    min-height: auto;
    padding: .6rem .9rem;
    border-top: 1px solid rgba(148,163,184,.10);
    background: rgba(17,24,39,.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#modalAprobarCobro .btn-close {
    filter: invert(1) grayscale(1);
    opacity: .85;
}

.pay-wrap {
    height: calc(100vh - 92px);
}

.pay-col,
.pay-panel {
    height: 100%;
    min-height: 0;
}

.pay-panel {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(148,163,184,.10);
    border-radius: 16px;
    background: rgba(30,41,59,.34);
    overflow: hidden;
}

.pay-panel-head {
    padding: .7rem .8rem;
    border-bottom: 1px solid rgba(148,163,184,.08);
    background: rgba(30,41,59,.24);
}

.pay-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: .75rem;
}

.pay-scroll {
    overflow-y: auto;
    min-height: 0;
}

    .pay-scroll::-webkit-scrollbar {
        width: 7px;
    }

    .pay-scroll::-webkit-scrollbar-thumb {
        background: rgba(148,163,184,.20);
        border-radius: 999px;
    }

.pay-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .32rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(148,163,184,.12);
    background: rgba(51,65,85,.55);
    color: #e5e7eb;
}

.pay-chip-success {
    color: #bbf7d0;
    background: rgba(20,83,45,.24);
    border-color: rgba(34,197,94,.16);
}

.pay-chip-primary {
    color: #bfdbfe;
    background: rgba(30,64,175,.24);
    border-color: rgba(59,130,246,.16);
}

.pay-top {
    padding: .75rem;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.08);
    background: rgba(15,23,42,.30);
}

.pay-label {
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #94a3b8;
}

.pay-total {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: #f8fafc;
}

.pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    font-size: .8rem;
    padding: .13rem 0;
}

    .pay-row span:first-child {
        color: #94a3b8;
    }

.pay-change {
    margin-top: .4rem;
    padding: .55rem .7rem;
    border-radius: 10px;
    background: rgba(20,83,45,.24);
    border: 1px solid rgba(34,197,94,.14);
    color: #dcfce7;
    font-weight: 800;
    font-size: .82rem;
}

.pay-note {
    margin-top: .45rem;
    padding: .55rem .7rem;
    border-radius: 10px;
    font-size: .78rem;
    background: rgba(20,83,45,.14);
    border: 1px solid rgba(34,197,94,.10);
    color: #d1fae5;
}

.pay-voucher {
    padding: .65rem .7rem;
    border-radius: 10px;
    background: rgba(30,64,175,.14);
    border: 1px solid rgba(59,130,246,.12);
}

.pay-title {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: .45rem;
}

.pay-item {
    padding: .65rem .75rem;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.08);
    background: rgba(51,65,85,.26);
    margin-bottom: .42rem;
}

    .pay-item:last-child {
        margin-bottom: 0;
    }

.pay-item-name {
    font-size: .84rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
}

.pay-item-meta {
    margin-top: .14rem;
    font-size: .71rem;
    color: #94a3b8;
}

.pay-item-price {
    font-size: .82rem;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
}

.pay-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
}

.pay-field label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: .3rem;
}

.pay-input {
    width: 100%;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,.12);
    background: rgba(15,23,42,.76);
    color: #f8fafc;
    padding: .5rem .75rem;
    outline: none;
    font-size: .84rem;
}

    .pay-input::placeholder {
        color: #64748b;
    }

    .pay-input:focus {
        border-color: rgba(96,165,250,.38);
        box-shadow: 0 0 0 3px rgba(59,130,246,.10);
    }

.pay-summary {
    margin-top: .7rem;
    padding-top: .7rem;
    border-top: 1px solid rgba(148,163,184,.08);
}

.pay-btn {
    height: 36px;
    padding: 0 .9rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    border: 1px solid rgba(148,163,184,.12);
}

.pay-btn-danger {
    background: rgba(127,29,29,.20);
    color: #fecaca;
    border-color: rgba(239,68,68,.12);
}

    .pay-btn-danger:hover {
        background: rgba(153,27,27,.30);
        color: #fff;
    }

.pay-btn-soft {
    background: rgba(51,65,85,.52);
    color: #e5e7eb;
}

    .pay-btn-soft:hover {
        background: rgba(71,85,105,.62);
        color: #fff;
    }

.pay-btn-primary {
    background: linear-gradient(180deg,#2563eb,#1d4ed8);
    color: #fff;
    border-color: rgba(37,99,235,.34);
}

    .pay-btn-primary:hover {
        background: linear-gradient(180deg,#3b82f6,#2563eb);
        color: #fff;
    }

.pay-check.form-check-input {
    width: .95rem;
    height: .95rem;
    margin-top: .14rem;
    border-radius: .28rem;
    border-color: rgba(148,163,184,.22);
    background-color: rgba(15,23,42,.78);
}

    .pay-check.form-check-input:checked {
        background-color: #2563eb;
        border-color: #2563eb;
    }

@media (min-width: 992px) {
    .pay-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pay-field-full {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .pay-wrap {
        height: auto;
    }

    .pay-col {
        height: auto;
    }

    .pay-panel {
        height: auto;
        min-height: 320px;
    }

    .pay-scroll {
        max-height: 38vh;
    }
}








#div-tabs-caja .cash-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px !important;
}

#div-tabs-caja .cash-tab {
    min-height: 38px;
    padding: 7px 13px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#div-tabs-caja .cash-badge-dot {
    min-width: 19px;
    height: 19px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

#div-contenido-tabs-caja .cash-section--compact {
    margin-top: 12px !important;
}

#div-contenido-tabs-caja .cash-section-hd--compact {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
}

#div-contenido-tabs-caja .cash-ico--mini {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

#div-contenido-tabs-caja .cash-body-compact {
    padding: 8px 14px 10px;
}

#div-contenido-tabs-caja .cash-item--line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148,163,184,.10);
}

    #div-contenido-tabs-caja .cash-item--line:last-child {
        border-bottom: none;
    }

#div-contenido-tabs-caja .cash-item-main {
    min-width: 0;
    flex: 1 1 auto;
}

#div-contenido-tabs-caja .cash-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

#div-contenido-tabs-caja .cash-chip {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#div-contenido-tabs-caja .cash-chip--blue {
    background: rgba(59,130,246,.14);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,.22);
}

#div-contenido-tabs-caja .cash-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: rgba(148,163,184,.95);
    line-height: 1.2;
}

#div-contenido-tabs-caja .cash-item-user {
    color: rgba(226,232,240,.95);
    font-weight: 600;
}

#div-contenido-tabs-caja .cash-item-dot {
    opacity: .55;
}

#div-contenido-tabs-caja .cash-item-end {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

#div-contenido-tabs-caja .cash-amount {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    margin: 0;
}

#div-contenido-tabs-caja .cash-btn-review {
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    #div-tabs-caja .cash-tab {
        flex: 1 1 auto;
        justify-content: center;
    }

    #div-contenido-tabs-caja .cash-item--line {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #div-contenido-tabs-caja .cash-item-end {
        justify-content: space-between;
    }

    #div-contenido-tabs-caja .cash-btn-review {
        min-width: 110px;
    }
}

@media (max-width: 575.98px) {
    #div-contenido-tabs-caja .cash-section-hd--compact {
        padding: 9px 12px;
        font-size: 13px;
    }

    #div-contenido-tabs-caja .cash-body-compact {
        padding: 8px 12px 10px;
    }

    #div-contenido-tabs-caja .cash-item-meta {
        font-size: 12px;
    }

    #div-contenido-tabs-caja .cash-amount {
        font-size: 17px;
    }
}