/* ============================================================
   css/selectcashdem.css – View button + denomination modal
   ============================================================ */

/* View button */
.scd-view-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border: none; border-radius: 8px;
    background: linear-gradient(135deg, #8B5E3C, #6B4226);
    color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
    box-shadow: 0 2px 6px rgba(107, 66, 38, .25);
    transition: transform .15s, box-shadow .15s;
}
.scd-view-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(107, 66, 38, .35); }
.scd-view-btn svg { width: 15px; height: 15px; }

/* Overlay */
.scd-overlay {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(30, 20, 12, .55); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.scd-overlay.show { opacity: 1; visibility: visible; }

/* Modal */
.scd-modal {
    width: 100%; max-width: 460px; max-height: 90vh;
    display: flex; flex-direction: column;
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    transform: translateY(20px) scale(.97); transition: transform .25s ease;
}
.scd-overlay.show .scd-modal { transform: none; }

.scd-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 18px 22px; color: #fff;
    background: linear-gradient(135deg, #6B4226, #A0714F);
}
.scd-header h3 { margin: 0; font-size: 18px; }
.scd-sub { margin: 4px 0 0; font-size: 12.5px; opacity: .9; }
.scd-close {
    background: rgba(255,255,255,.15); border: none; color: #fff;
    width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1;
    cursor: pointer; transition: background .15s;
}
.scd-close:hover { background: rgba(255,255,255,.3); }

.scd-body { padding: 16px 22px 22px; overflow-y: auto; }

/* Table */
.scd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.scd-table th {
    text-align: left; padding: 10px 8px; font-size: 12px; text-transform: uppercase;
    letter-spacing: .5px; color: #7A5C48; border-bottom: 2px solid #EADCCF;
}
.scd-table td { padding: 9px 8px; border-bottom: 1px solid #F3EAE2; color: #3E2A1E; }
.scd-table tbody tr:nth-child(even) { background: #FCF8F5; }
.scd-table tbody tr:hover { background: #F7EEE6; }
.scd-table .scd-num { text-align: right; font-variant-numeric: tabular-nums; }
.scd-table .scd-amt { font-weight: 600; }
.scd-zero td { color: #B8A598; }
.scd-zero .scd-amt { font-weight: 400; }

.scd-table tfoot td {
    padding: 12px 8px; font-weight: 700; font-size: 15px;
    background: #F4E9DF; color: #4A2E1C; border-top: 2px solid #D9C3B0;
}
.scd-table tfoot td:last-child { color: #1b5e20; }

/* Chips */
.scd-chip {
    display: inline-block; min-width: 70px; padding: 4px 10px; border-radius: 6px;
    font-weight: 700; font-size: 13px; text-align: center;
}
.scd-bill { background: #E6F4EA; color: #1b5e20; border: 1px solid #B9DFC4; }
.scd-coin { background: #FFF4DB; color: #8A5A00; border: 1px solid #F0D79A; border-radius: 999px; }

/* Recorded cash */
.scd-recorded { margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
.scd-recorded.ok   { background: #E8F5E9; color: #1b5e20; }
.scd-recorded.warn { background: #FFF3E0; color: #B45309; }

.scd-msg { text-align: center; padding: 32px; color: #7A5C48; }
.scd-err { color: #c0392b; }
