/* =========================================================
   EachInvoice.com – Global Design System
   Blue Menu | White Background | Black Text
   Responsive | Print-safe
========================================================= */

/* -----------------------
   CSS Variables
----------------------- */
:root {
    --blue: #0b57d0;
    --blue-light: #e8f0fe;
    --black: #111111;
    --muted: #5f6368;
    --border: #e6e8ec;
    --bg: #f6f8fb;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 8px 26px rgba(16,24,40,.08);
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
            Roboto, Helvetica, Arial;
}

/* -----------------------
   Reset & Base
----------------------- */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--black);
    font-size: 14px;
    line-height: 1.55;
}

/* -----------------------
   Links & Text
----------------------- */
a {
    color: var(--blue);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    margin: 0 0 10px 0;
    font-weight: 700;
}

p {
    margin: 0 0 10px 0;
    color: var(--black);
}

.text-muted {
    color: var(--muted);
}

/* -----------------------
   Layout Containers
----------------------- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

/* -----------------------
   Top Navigation (Blue)
----------------------- */
.topbar {
    background: var(--blue);
    color: #fff;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .4px;
    color: #fff;
}

.nav {
    display: flex;
    gap: 18px;
}

.nav a {
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
}

.nav a:hover {
    opacity: .9;
}

/* -----------------------
   Buttons
----------------------- */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .15s ease;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}
.btn-primary:hover {
    background: #0846a8;
}

.btn-outline {
    background: transparent;
    border-color: var(--blue);
    color: var(--blue);
}
.btn-outline:hover {
    background: var(--blue-light);
}

/* -----------------------
   Forms
----------------------- */
.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 14px;
    background: #fff;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--blue);
}

/* -----------------------
   Tables
----------------------- */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 13px;
}

th {
    background: var(--blue-light);
    color: var(--muted);
    text-transform: uppercase;
    font-size: 11.5px;
}

td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* -----------------------
   Invoice-Specific
----------------------- */
.invoice-wrapper {
    max-width: 980px;
    margin: 24px auto;
}

.invoice-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.invoice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.invoice-total {
    text-align: right;
    font-size: 15px;
    font-weight: 800;
    color: var(--blue);
}

/* -----------------------
   Utility
----------------------- */
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mb-2 { margin-bottom: 12px; }

/* -----------------------
   Responsive
----------------------- */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .invoice-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------
   Print Rules (Invoices)
----------------------- */
@media print {
    body {
        background: #fff;
    }

    .topbar,
    .nav,
    .btn {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border-radius: 0;
        border: none;
    }
}



.invoice-meta-table {
    width: 100%;
    font-size: 12px;
    color: #5f6368;
}
.invoice-meta-table td:last-child {
    text-align: right;
}












/* ===============================
   Invoice PAID / UNPAID Watermark
   FRONT (Above Content)
================================ */

.invoice-watermark {
    position: fixed;
    bottom: 12%;
    left: -15%;
    width: 130%;

    text-align: center;
    font-size: 150px;
    font-weight: 900;
    letter-spacing: 12px;

    transform: rotate(-30deg);
    opacity: 0.18; /* stronger visibility */

    z-index: 9999; /* 🔥 ABOVE EVERYTHING */
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

/* Paid = Green */
.wm-paid {
    color: #1b5e20;
}

/* Unpaid = Red */
.wm-unpaid {
    color: #b71c1c;
}

/* Ensure invoice content does NOT hide watermark */
.invoice-wrapper,
.invoice-wrapper .card {
    position: relative;
    z-index: 1;
}















.invoice-party-table h4 {
    margin-bottom: 6px;
}
.invoice-party-table td {
    font-size: 14px;
    line-height: 1.6;
}








.invoice-summary-table td {
    font-size: 14px;
    line-height: 1.6;
}
.invoice-summary-table h4 {
    margin-bottom: 6px;
}












