
/* customer view*/

/* lipa-mdogo-portal.css */

.lipa-mdogo-portal {
    padding: 30px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: "Segoe UI", Roboto, sans-serif;
}

.lipa-mdogo-portal h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.lipa-mdogo-portal table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fafafa;
}

.lipa-mdogo-portal table.shop_table th,
.lipa-mdogo-portal table.shop_table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
    vertical-align: top;
}

.lipa-mdogo-portal table.shop_table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.lipa-mdogo-portal table.shop_table td a {
    color: #0073aa;
    text-decoration: none;
}

.lipa-mdogo-portal table.shop_table td a:hover {
    text-decoration: underline;
}

.installment-breakdown {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
}

.installment-breakdown li {
    margin-bottom: 6px;
    padding: 4px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.installment-breakdown li:last-child {
    border-bottom: none;
}

.lipa-mdogo-portal .button {
    background-color: #0073aa;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.lipa-mdogo-portal .button:hover {
    background-color: #005177;
}

/* Status Filter */
.lipa-mdogo-status-filter {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border-bottom: 1px solid #ddd;
}

.lipa-mdogo-status-filter li {
    margin-right: 10px;
}

.lipa-mdogo-status-filter li a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    background: #f5f5f5;
    border-radius: 3px 3px 0 0;
}

.lipa-mdogo-status-filter li.active a {
    background: #fff;
    border: 1px solid #ddd;
    border-bottom-color: #fff;
    margin-bottom: -1px;
}

/* Installment Cards */
.installment-card {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 3px;
    background:#ff6600;
}

.installment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.installment-status {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
}

.installment-status.active {
    background: #e6f7ee;
    color: #1e9246;
}

.installment-status.completed {
    background: #f0f0f0;
    color: #777;
}

.installment-status.cancelled {
    background: #f8e0e0;
    color: #e2401c;
}

/* Progress Bar */
.installment-progress {
    margin: 15px 0;
    background: #f5f5f5;
   /* height: 20px;*/
    border-radius: 10px;
    position: relative;
    padding:10px;
}

.progress-bar {
    background: #1e9246;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Payment Schedule */
.installment-schedule ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.installment-schedule li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}

.installment-schedule li.paid {
    color: #1e9246;
}

/* Payment History */
.payment-history table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.payment-history th,
.payment-history td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.payment-history th {
    background: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .installment-header {
        flex-direction: column;
    }
    
    .payment-history table {
        display: block;
        overflow-x: auto;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .lipa-mdogo-portal table.shop_table thead {
        display: none;
    }

    .lipa-mdogo-portal table.shop_table tr {
        display: block;
        margin-bottom: 20px;
        border-bottom: 2px solid #eaeaea;
    }

    .lipa-mdogo-portal table.shop_table td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .lipa-mdogo-portal table.shop_table td:before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .installment-breakdown li {
        flex-direction: column;
        align-items: flex-start;
    }
}
