body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f9f9f9;
    color: #333;
}

.contract p {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    margin: 0;
    color: #333;
}

.budgeted-title {
    font-family: 'Oswald', sans-serif; /* or 'Anton' for even more condensed look */
    font-weight: 900; /* Black / ExtraBold */
    font-size: 32px; /* matches your screenshot size */
    text-align: left;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    text-transform: uppercase; /* forces all caps */
    letter-spacing: 1px; /* slight spacing for readability */
}

.container {
    max-width: 950px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    margin-bottom: 100px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.content {
    flex: 1;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo h1 {
    font-size: 60px;
    margin: 0;
    color: #000;
    font-weight: bold;
}

.logo p {
    margin: 5px 0;
    font-weight: bold;
}

h2 {
    text-align: center;
    color: #222;
    margin: 20px 0;
}


.info div {
    width: 100%;
    text-align: right
}

.invoice-table-wrapper {
    margin: 0 auto;
    width: 70%;
    max-width: 800px;
}

.budget-table-wrapper {
    margin: 0 auto;
    width: 70%;
    max-width: 800px;
}

/* Centers and limits table width */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0px 0;
}

th, td {
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
}

th {
    background: #eee;
    font-weight: bold;
}

.cost-input {
    width: 100%;
    border: 1px dashed #007bff;
    padding: 6px;
    font-size: 14px;
    text-align: right;
    box-sizing: border-box;
}

.desc-input {
    width: 100%;
    border: 1px dashed #007bff;
    padding: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.total-row {
    font-weight: bold;
    font-size: 16px;
    background: #f0f8ff;
}

.total-row td:first-child {
    text-align: right;
}

.actions {
    text-align: center;
}

.budgeted-title {
    font-weight: bold;
    font-size: 32px;
    font-family: "Devanagari MT";
}

button {
    margin: 5px;
    padding: 8px 12px;
    cursor: pointer;
}

.remove-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
}

.signatures {
    display: flex;
    justify-content: space-between;
    margin: 60px 0 40px;
}

.sig-block {
    width: 48%;
    text-align: center;
}

.sig-line {
    border-top: 3px solid #000;
    height: 1px;
    width: 100%;
    margin: 0 auto 6px;
}

.sig-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.helperNote {
    font-style: italic;
    color: red;
    font-weight: bold;
    font-size: 8px;
}

.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 10px 30px;
    font-size: 11px;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.footer-contact {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-icon {
    font-size: 18px;
    margin-right: 6px;
}

.fill-in:empty::before {
    content: "enter here";
    color: #aaa;
    font-style: italic;
    font-size: 12px;
}

.sig-date {
    text-align: right;
    font-size: 12px;
    margin-right: 0;
}

.sig-date .dotted {
    border-bottom: 1px dotted #000;
    display: inline-block;
    width: 120px;
    margin-left: 8px;
}

.sign {
    width: 45%;
    border-top: 1px solid #000;
    padding-top: 30px;
    text-align: center;
}

.section {
    page-break-inside: avoid;
    margin-bottom: 40px;
    text-align: right;
    text-align: left
}

.terms {
    font-size: 12px;
    text-align: left;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #000;
}

#clientSignDate {
    margin-left: 30px
}

.page-break {
    page-break-before: always;
}

[contenteditable="true"] {
    outline: #007bff 1px solid;
    background-color: rgb(0 0 255 / 10%);
}

.budgeted-note strong {
    font-weight: bold;
    text-underline-style: single
}

.contract-text {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 40px;
}

.contract-text strong {
    font-weight: bold;
}

.contract-text ol {
    list-style-type: decimal;
    margin-left: 20px;
    padding-left: 20px;
}

.contract-text li {
}

.sig-line {
    border-top: 3px solid #000 !important; /* thicker line as in screenshot */
}

.no-print-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #222;
    color: white;
    padding: 12px 20px;
    text-align: center;
    z-index: 999;
    display: flex;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.no-print-actions button {
    padding: 10px 24px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.no-print-actions .print-btn {
    background: #0066cc;
    color: white;
}

.no-print-actions .pdf-btn {
    background: #28a745;
    color: white;
}

.no-print-actions button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

@media print {
    .terms {
        margin-top: auto !important;
    }

    .no-print-actions {
        display: none !important;
    }

    body {
        background: white;
        padding: 0;
    }

    .content {
        flex: 1;
    }

    .container {
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .cost-input, .desc-input {
        border: none;
        background: transparent;
        padding: 0;
    }

    button, .remove-btn {
        display: none !important;
    }

    .no-print {
        display: none;
    }

    [contenteditable="true"] {
        outline: none;
        background-color: rgb(0 0 255 / 10%);
    }

    .invoice-table-wrapper {
        margin: 0 auto !important;
        max-width: 800px !important;
    }

    .budget-table-wrapper {
        margin: 0 auto !important;
        max-width: 800px !important;
    }
}