/* ================= RESET ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: #f4f6f8;
    color: #1f2933;
    padding: 15px;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 820px;
    margin: auto;
    background: #ffffff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ================= HEADINGS ================= */
h2 {
    text-align: center;
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
}

h3 {
    margin: 22px 0 10px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}

/* ================= FORM ================= */
form {
    display: grid;
    gap: 10px;
}

select,
input,
textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

textarea {
    resize: vertical;
    min-height: 70px;
}

/* ================= BUTTON ================= */
button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

/* ================= TABLE ================= */
#todayData {
    margin-top: 12px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

th, td {
    padding: 8px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

th {
    background: #f1f5f9;
    font-weight: 600;
}

/* ================= BADGES ================= */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}

.badge.cash {
    background: #fde68a;
    color: #92400e;
}

.badge.bank {
    background: #bfdbfe;
    color: #1e3a8a;
}

.cr {
    color: #15803d;
    font-weight: 700;
}

.dr {
    color: #b91c1c;
    font-weight: 700;
}

/* ================= MODAL ================= */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    z-index: 999;
}

.modal.show {
    display: flex;
    animation: fadeOut 2.5s forwards;
}

.modal-box {
    background: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.modal.error .modal-box {
    color: #b91c1c;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* ================= MOBILE ================= */




@media (max-width: 480px) {
    .container {
         
        
        padding: 14px;
        
        margin: -15px!important;
        
    }
    h2 {
        font-size: 18px;
    }
    table {
        font-size: 12px;
    }
}
