/* Invoice */
.receipt {
    width: 300px;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.invoice {
    width: 550px;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.header {
    text-align: center;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.header p {
    margin: 5px 0;
    font-size: 12px;
    color: #666;
}

.logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.details {
    margin-bottom: 15px;
}

.details p {
    margin: 5px 0;
    font-size: 12px;
    color: #333;
}

.details p strong {
    font-weight: bold;
}

/* align span to right */
.details p span {
    float: right;
}

.db-header {
    text-align: center;
}

.ussd-instructions {
    background-color:rgb(8, 13, 18);
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 15px 0;
}

.ussd-instructions ol {
    padding-left: 20px;
}

.ussd-instructions li {
    margin-bottom: 5px;
}

.items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}


.items td {
    padding: 8px;
    text-align: left;
    font-size: 12px;
    border-bottom: 1px dashed #ccc;
    color: #333;
}

.items th {
    background-color: #333;
    color: #fff;
}

.total {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.footer-1 {
    text-align: center;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 10px;
    color: #666;
}

/* hide ul bullets */
.footer-1 ul {
    list-style-type: none;
    padding: 0;
}

.download {
    text-align: center;
    text-decoration: none;
    background-color: grey;
    font-weight: bold;
    padding: 3px;
}

.download:hover {
    background-color: aquamarine;
}

.brand {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: xx-large;
}

/*  align total to right  */
.total {
    text-align: right;
}

/* make receipt responsive   */

@media (max-width: 600px) {
    .invoice {
        width: 100%;
        padding: 10px;
    }

    .header h2 {
        font-size: 16px;
    }

    .header p {
        font-size: 10px;
    }

    .details p {
        font-size: 10px;
    }

    .items th,
    .items td {
        padding: 5px;
        font-size: 10px;
    }

    .total {
        font-size: 12px;
    }

    .footer-1 {
        font-size: 8px;
    }
}

/* General Dashboard Styles */
.lipila-dashboard {
    font-family: Arial, sans-serif;
    margin: 20px auto;
    padding: 20px;
    max-width: 1200px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.statement{
    padding-left: 20px;
    background: #ffffff;
    border-radius: 8px;
}

.statement span {
    font-size: smaller;
}

.statement .revenue{
    color: orange
}
.statement .costs{
    color: red
}

.statement .balance{
    color: green
}

button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.billing-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.billing-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.billing-card {
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.billing-card h3 {
    margin: 0;
    color: #555;
}

.billing-card p {
    margin: 5px 0 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
}

.billing-card.total-bill {
    background-color: #e6f7e6;
    border: 1px solid #28a745;
}

.billing-card.total-bill h3,
.billing-card.total-bill p {
    color: #28a745;
}

/* Error Pages */

.error-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 50vh;
    text-align: center;
    padding: 0 20px; /* Add some padding for smaller screens */
    background-color: white;
}

.error-page h1 {
    font-size: 5vw; /* Use viewport width for responsive font size */
    margin: 0;
}

.error-page p {
    font-size: 2vw; /* Use viewport width for responsive font size */
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .error-page h1 {
        font-size: 3em; /* Larger font size for larger screens */
    }

    .error-page p {
        font-size: 1.5em; /* Larger font size for larger screens */
    }
}

/* Media query for smaller screens */
@media (max-width: 767px) {
    .error-page h1 {
        font-size: 2em; /* Smaller font size for smaller screens */
    }

    .error-page p {
        font-size: 1.2em; /* Smaller font size for smaller screens */
    }
}

/* Invoice styling */
.header .company{
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.header .tag-line{
    font-size: 1.2em;
    color: #666;
    margin-bottom: 5px;
}

.business-logo {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    float: left; /* Aligns the logo to the left */
    margin-right: 15px; /* Adds spacing between the logo and the header text */
}