body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: linear-gradient(90deg,#e3ffe2 0%,#fff6e3 100%,#e1eafd 70%);
}
#invoice-container {
    width: 95vw;
    max-width: 820px;
    margin: 30px auto;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 24px 0 rgba(0,0,0,0.12);
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.company-logo {
    width: 104px;
    height: 104px;
    background: #dedede;
    border-radius: 7px;
    color: #757575;
    font-size: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.company-logo img {
    border-radius: 7px;
}
hr {
    margin: 18px 0;
    border: 1px solid #222;
}
.bill-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.bill-to {
    width: 63%;
}
.invoice-details {
    min-width: 193px;
}
.invoice-details label {
    display: block;
}
.invoice-details input[type="text"],
.invoice-details input[type="date"] {
    width: 160px;
    padding: 4px 5px;
    font-size: 16px;
    margin-bottom: 5px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    background: #f6faff;
}
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 16px;
}
.invoice-table th, .invoice-table td {
    border: 1px solid #c2c2c2;
    padding: 10px;
    text-align: left;
}
.invoice-table th {
    background: #eafdff;
}
.invoice-table input[type="text"],
.invoice-table input[type="number"] {
    width: 100%;
    border: none;
    background: #f8f9ff;
    font-size: 16px;
    padding: 4px;
    border-radius: 2px;
}
.amount-in-words {
    font-size: 18px;
    margin: 22px 0;
}
.sign-row {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    font-size: 16px;
}
button {
    margin: 44px auto 0;
    padding: 12px 38px;
    font-size: 16px;
    background: #3e51fa;
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    display: block;
    box-shadow: 0 2px 8px 0 rgba(60,91,140,0.08);
    transition:background .2s;
}
button:hover {
    background: #ffa726;
}

/* Responsive for Mobile */
@media (max-width: 700px) {
    #invoice-container {
        padding: 12px;
        margin: 0;
        font-size: 15px;
    }
    .header {
        flex-direction: column;
        gap: 10px;
    }
    .bill-row {
        flex-direction: column;
    }
    .company-logo {
        width: 90px;
        height: 90px;
        font-size: 15px;
    }
    .invoice-details label,
    .invoice-details input {
        width: 100%;
        min-width: 0;
        font-size: 15px;
    }
    .bill-to, .invoice-details {
        width: 100%;
    }
    .sign-row {
        flex-direction: column;
        gap: 18px;
    }
}

/* Hide inputs & colored UI for print, show text values only! */
@media print {
    body {
        background: white !important;
    }
    #invoice-container {
        box-shadow: none !important;
        background: white !important;
        margin: 0 !important;
        width: 100vw !important;
        padding: 0 !important;
        border-radius: 0;
    }
    input, button {
        display: none !important;
    }
    .print-only {
        display: inline !important;
    }
    .company-logo {
        background: #dedede !important;
        color: #757575 !important;
    }
    .invoice-table th {
        background: #f3f3f3 !important;
    }
}
.print-only { display:none; }
