/* ============================
   GLOBAL
============================ */
body {
    font-family: Arial, sans-serif;
    background: #a7acb3;
    /* soft modern grey */
    margin: 0;
    padding: 20px;
}

/* Main card */
.container {
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

/* Titles */
h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

h2 {
    font-size: 20px;
    margin: 25px 0 10px 0;
    font-weight: 600;
    padding-bottom: 6px;
    border-bottom: 2px solid #eee;
}

.section {
    margin-bottom: 30px;
}

.section h2 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    padding-bottom: 6px;
    border-bottom: 2px solid #eee;
}

/* ============================
   INPUTS
============================ */
input[type="text"],
input[type="number"],
input[type="date"],
textarea {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    font-size: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fafafa;
    transition: 0.2s;
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    border-color: #000;
    background: #fff;
    outline: none;
}

/* ============================
   BUTTONS
============================ */
button {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    cursor: pointer;
    margin: 15px 0;
    transition: 0.2s;
}

button:hover {
    opacity: 0.85;
}

/* ============================
   ITEM ROWS
============================ */
.item-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.item-row input {
    flex: 1;
}

.item-row .remove {
    background: #d9534f;
    padding: 12px;
    max-width: 50px;
    border-radius: 8px;
    font-size: 14px;
}

/* ============================
   TOTAL
============================ */
#total {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
}

/* ============================
   MOBILE
============================ */
@media (max-width: 700px) {

    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    .item-row {
        flex-direction: column;
    }

    .item-row .remove {
        width: 100%;
    }

    button {
        font-size: 18px;
        padding: 18px;
    }
}

#pdfInvoice {
    background: #fff !important;
    padding: 40px !important;
    margin: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body {
    background: #a7acb3;
    padding: 20px;
}

html,
body {
    height: auto !important;
    overflow: visible !important;
}