﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    background: #eef2f5;
    color: #222;
}

.app {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f7f9fb;
}

.top-title {
    background: linear-gradient(135deg, #0b6b44, #13965f);
    color: white;
    text-align: center;
    padding: 18px 10px;
    font-size: 20px;
    font-weight: bold;
}

.sub-title {
    font-size: 13px;
    margin-top: 6px;
    font-weight: normal;
}

.login-box {
    margin: 18px;
    padding: 16px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.login-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 14px;
    text-align: center;
}

label {
    display: block;
    margin-top: 12px;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 13px;
}

input {
    width: 100%;
    height: 42px;
    border: 1px solid #c8d0d8;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 15px;
    font-family: Tahoma;
    outline: none;
}

    input:focus {
        border-color: #0b8f59;
    }

button {
    width: 100%;
    height: 42px;
    margin-top: 16px;
    border: none;
    border-radius: 10px;
    background: #0b8f59;
    color: white;
    font-size: 15px;
    font-weight: bold;
    font-family: Tahoma;
    cursor: pointer;
}

    button:active {
        transform: scale(0.98);
    }

.message {
    margin-top: 10px;
    text-align: center;
    color: #b00020;
    font-size: 13px;
}

.hidden {
    display: none;
}

.statement-box {
    padding: 12px;
}

.customer-card {
    background: white;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

.photo-box {
    width: 78px;
    height: 78px;
    min-width: 78px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #0b8f59;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .photo-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: none;
    }

    .photo-box span {
        font-size: 11px;
        color: #555;
    }

.customer-info {
    flex: 1;
}

.customer-no {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.customer-name {
    font-size: 17px;
    font-weight: bold;
    color: #111;
    margin-bottom: 5px;
}

.customer-phone {
    font-size: 13px;
    color: #666;
}

.currency-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 14px 0;
    padding-bottom: 4px;
}

    .currency-buttons button {
        width: auto;
        min-width: 115px;
        height: 36px;
        margin: 0;
        padding: 0 12px;
        background: #d8e3ea;
        color: #222;
        border-radius: 18px;
        font-size: 13px;
        white-space: nowrap;
    }

        .currency-buttons button.active {
            background: #0b8f59;
            color: white;
        }

.summary-card {
    background: white;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    margin-bottom: 12px;
}

    .summary-card div {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        border-bottom: 1px solid #eef0f2;
    }

        .summary-card div:last-child {
            border-bottom: none;
        }

    .summary-card span {
        color: #555;
    }

    .summary-card strong {
        font-size: 15px;
    }

.rows-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.statement-row {
    background: white;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-right: 4px solid #0b8f59;
}

.row-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    margin-bottom: 8px;
}

.row-date {
    color: #333;
    text-align: right;
}

.row-amount,
.row-balance {
    text-align: left;
    font-weight: bold;
}

.plus {
    color: #087c45;
}

.minus {
    color: #c62828;
}

.row-doc {
    font-size: 13px;
    color: #555;
    margin-bottom: 7px;
}

.row-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #222;
    background: #f4f7f9;
    border-radius: 10px;
    padding: 8px;
}

.empty {
    text-align: center;
    color: #777;
    padding: 20px;
}

.logout-btn {
    background: #555;
    margin: 18px 0 8px 0;
}
