/*
Theme Name: Farm Boys Work Order Rebuilt
Theme URI: https://www.farmboysgraphics.com/
Author: Farm Boys Graphics
Description: Full-width Farm Boys Graphics work order form theme.
Version: 2.7.4
Requires at least: 5.0
Requires PHP: 7.0
Text Domain: farm-boys-work-order-rebuilt
*/

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    background: #e9ebe6;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

.fbg-site-nav {
    background: #050505;
    border-bottom: 5px solid #76b82a;
}

.fbg-site-nav-inner {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin: 0 auto;
    max-width: 1500px;
    padding: 10px 18px;
    width: 100%;
}

.fbg-site-nav a {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    padding: 10px 14px;
    text-decoration: none;
    text-transform: uppercase;
}

.fbg-site-nav a:hover,
.fbg-site-nav a:focus {
    background: #76b82a;
    color: #050505;
}

.fbg-site-nav .fbg-lock-link {
    border-color: #76b82a;
}

.fbg-page {
    padding: 18px;
}

.fbg-wrap {
    background: #fff;
    border: 1px solid #cfd3ca;
    margin: 0 auto;
    max-width: 1500px;
    padding: 22px;
    width: 100%;
}

.fbg-notice {
    border: 2px solid #111;
    font-weight: 800;
    margin: 0 0 16px;
    padding: 12px;
    text-transform: uppercase;
}

.fbg-notice-success {
    background: #eef8e8;
    border-color: #32740f;
}

.fbg-notice-error {
    background: #fff0f0;
    border-color: #b42318;
}

.fbg-lock-body {
    background: #151714;
}

.fbg-lock-page {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding: 24px;
}

.fbg-lock-card {
    background: #fff;
    border: 1px solid #cfd3ca;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    margin: 0 auto;
    max-width: 460px;
    padding: 30px;
    width: 100%;
}

.fbg-lock-logo {
    display: block;
    height: auto;
    margin: 0 auto 18px;
    max-width: 280px;
    width: 100%;
}

.fbg-lock-card h1 {
    font-size: 34px;
    line-height: 1;
    margin: 0 0 10px;
    text-align: center;
    text-transform: uppercase;
}

.fbg-lock-card p {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 18px;
    text-align: center;
}

.fbg-lock-message {
    background: #eef8e8;
    border: 2px solid #32740f;
    color: #111;
    font-weight: 900;
    margin-bottom: 16px;
    padding: 10px 12px;
    text-transform: uppercase;
}

.fbg-lock-error {
    background: #fff0f0;
    border-color: #b42318;
}

.fbg-lock-form {
    display: grid;
    gap: 10px;
}

.fbg-lock-form label {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.fbg-lock-form input[type="email"],
.fbg-lock-form input[type="password"],
.fbg-lock-form input[type="text"] {
    border: 2px solid #111;
    font-size: 22px;
    min-height: 54px;
    outline: none;
    padding: 8px 12px;
    width: 100%;
}

.fbg-lock-form input[type="email"]:focus,
.fbg-lock-form input[type="password"]:focus,
.fbg-lock-form input[type="text"]:focus {
    border-color: #32740f;
    box-shadow: 0 0 0 3px rgba(118, 184, 42, 0.22);
}

.fbg-reset-form {
    border-top: 2px solid #d9ded4;
    margin-top: 16px;
    padding-top: 16px;
}

.fbg-lock-form button {
    background: #050505;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    min-height: 54px;
    padding: 14px 20px;
    text-transform: uppercase;
}

.fbg-lock-form button:hover,
.fbg-lock-form button:focus {
    background: #32740f;
}

.fbg-honey,
.fbg-screen-reader {
    clip: rect(0, 0, 0, 0);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.fbg-header {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(320px, 0.85fr) minmax(460px, 1fr);
}

.fbg-logo img {
    display: block;
    height: auto;
    max-width: 100%;
}

.fbg-contact {
    display: grid;
    gap: 6px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 22px;
}

.fbg-contact span::before {
    color: #32740f;
    content: "■";
    display: inline-block;
    font-size: 0.7em;
    margin-right: 10px;
    transform: rotate(45deg);
}

.fbg-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 0.9;
    margin: 0;
    text-transform: uppercase;
}

.fbg-rule {
    border-bottom: 5px solid #76b82a;
    border-top: 5px solid #76b82a;
    height: 16px;
    margin: 20px 0;
}

.fbg-top-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fbg-section {
    border: 2px solid #111;
    margin-top: 14px;
}

.fbg-section-title,
.fbg-item-head {
    background: #050505;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    padding: 9px 14px;
    text-transform: uppercase;
}

.fbg-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.fbg-span-3 {
    grid-column: span 3;
}

.fbg-span-4 {
    grid-column: span 4;
}

.fbg-span-5 {
    grid-column: span 5;
}

.fbg-span-6 {
    grid-column: span 6;
}

.fbg-span-7 {
    grid-column: span 7;
}

.fbg-span-8 {
    grid-column: span 8;
}

.fbg-span-12 {
    grid-column: span 12;
}

.fbg-field {
    border-right: 1px solid #111;
    border-top: 1px solid #111;
    display: grid;
    min-height: 62px;
    padding: 8px 12px;
}

.fbg-field:nth-child(2n),
.fbg-customer-grid .fbg-span-12,
.fbg-customer-grid .fbg-span-3:last-child,
.fbg-customer-grid .fbg-span-7,
.fbg-sign-grid .fbg-span-4,
.fbg-internal-grid .fbg-span-6:nth-child(3),
.fbg-internal-grid .fbg-span-6:nth-child(5) {
    border-right: 0;
}

.fbg-label,
.fbg-field span,
.fbg-choice legend,
.fbg-notes h2 {
    color: #111;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.fbg-field input,
.fbg-cell input,
.fbg-total-input input,
.fbg-money-input input,
.fbg-notes input {
    background: transparent;
    border: 0;
    color: #111;
    font: inherit;
    min-height: 30px;
    outline: none;
    padding: 0;
    width: 100%;
}

.fbg-field input:focus,
.fbg-cell input:focus,
.fbg-total-input input:focus,
.fbg-money-input input:focus,
.fbg-notes input:focus {
    background: #f0f8ec;
    box-shadow: inset 0 -2px 0 #76b82a;
}

.fbg-field input[readonly] {
    font-weight: 900;
}

.fbg-items-section {
    border: 0;
}

.fbg-items-scroll {
    border: 2px solid #111;
    margin-top: 14px;
    overflow-x: auto;
}

.fbg-item-head,
.fbg-item-row {
    display: grid;
    grid-template-columns: 82px 100px minmax(340px, 1fr) 150px 170px 180px;
    min-width: 1120px;
}

.fbg-item-head span {
    border-right: 1px solid #777;
    text-align: center;
}

.fbg-item-head span:last-child {
    border-right: 0;
}

.fbg-item-row {
    border-top: 1px solid #777;
    min-height: 38px;
}

.fbg-item-number,
.fbg-cell {
    align-items: center;
    border-right: 1px solid #777;
    display: flex;
    min-width: 0;
    padding: 4px 10px;
}

.fbg-item-row .fbg-cell:last-child {
    border-right: 0;
}

.fbg-item-number {
    font-size: 20px;
    font-weight: 900;
    justify-content: center;
}

.fbg-money {
    gap: 7px;
}

.fbg-money span[aria-hidden="true"],
.fbg-total-input span,
.fbg-money-input div span {
    font-size: 18px;
    font-weight: 900;
}

.fbg-lower {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(420px, 1fr) 520px;
    margin-top: 12px;
}

.fbg-notes h2 {
    color: #32740f;
    margin: 0 0 6px;
}

.fbg-notes label {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 24px minmax(0, 1fr);
    margin-bottom: 8px;
}

.fbg-notes label span {
    font-size: 13px;
    font-weight: 900;
}

.fbg-notes input {
    border-bottom: 2px solid #888;
}

.fbg-totals {
    border: 2px solid #111;
}

.fbg-total-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 40px;
}

.fbg-total-row > span {
    align-items: center;
    border-bottom: 1px solid #777;
    border-right: 1px solid #777;
    display: flex;
    font-size: 18px;
    font-weight: 900;
    justify-content: flex-end;
    padding: 4px 16px;
    text-transform: uppercase;
}

.fbg-total-row:last-child > span,
.fbg-total-row:last-child .fbg-total-input {
    border-bottom: 0;
}

.fbg-total-grand > span {
    background: #76b82a;
    color: #000;
}

.fbg-total-input {
    align-items: center;
    border-bottom: 1px solid #777;
    display: grid;
    gap: 8px;
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 4px 12px;
}

.fbg-final-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(430px, 0.9fr) minmax(510px, 1fr);
    margin-top: 14px;
}

.fbg-auth p {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    padding: 10px 12px 4px;
}

.fbg-signature-field {
    gap: 8px;
    min-height: 132px;
}

.fbg-signature-top {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.fbg-signature-clear {
    background: #f0f8ec;
    border: 1px solid #32740f;
    color: #173d08;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    min-height: 28px;
    padding: 5px 10px;
    text-transform: uppercase;
}

.fbg-signature-pad {
    border-bottom: 2px solid #777;
    min-height: 92px;
}

.fbg-signature-pad canvas {
    cursor: crosshair;
    display: block;
    height: 92px;
    touch-action: none;
    width: 100%;
}

.fbg-choice {
    border: 0;
    border-right: 1px solid #111;
    border-top: 1px solid #111;
    margin: 0;
    min-height: 62px;
    padding: 8px 12px;
}

.fbg-choice div {
    display: flex;
    gap: 18px;
    margin-top: 7px;
}

.fbg-choice label {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.fbg-choice input {
    accent-color: #32740f;
    height: 18px;
    width: 18px;
}

.fbg-money-input div {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 24px minmax(0, 1fr);
}

.fbg-thanks {
    color: #32740f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-style: italic;
    margin: 20px 0 12px;
    text-align: center;
}

.fbg-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.fbg-submit,
.fbg-print {
    background: #050505;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    font-weight: 900;
    justify-content: center;
    line-height: 1;
    max-width: 380px;
    min-height: 56px;
    padding: 18px 28px;
    text-transform: uppercase;
    width: 100%;
}

.fbg-print {
    background: #32740f;
}

.fbg-submit:hover,
.fbg-submit:focus,
.fbg-print:hover,
.fbg-print:focus {
    background: #32740f;
}

.fbg-print:hover,
.fbg-print:focus {
    background: #050505;
}

@media (max-width: 1100px) {
    .fbg-header,
    .fbg-lower,
    .fbg-final-grid {
        grid-template-columns: 1fr;
    }

    .fbg-logo {
        margin: 0 auto;
        max-width: 520px;
    }
}

@media (max-width: 680px) {
    .fbg-page {
        padding: 0;
    }

    .fbg-wrap {
        border-left: 0;
        border-right: 0;
        padding: 12px;
    }

    .fbg-title {
        font-size: 48px;
    }

    .fbg-contact {
        font-size: 16px;
    }

    .fbg-top-fields,
    .fbg-grid {
        grid-template-columns: 1fr;
    }

    .fbg-span-3,
    .fbg-span-4,
    .fbg-span-5,
    .fbg-span-6,
    .fbg-span-7,
    .fbg-span-8,
    .fbg-span-12 {
        grid-column: span 1;
    }

    .fbg-field,
    .fbg-choice {
        border-right: 0;
    }

    .fbg-total-row {
        grid-template-columns: 1fr;
    }

    .fbg-total-row > span {
        border-right: 0;
        justify-content: flex-start;
    }

    .fbg-thanks {
        font-size: 34px;
    }

    .fbg-actions {
        flex-direction: column;
    }
}

@media print {
    @page {
        margin: 0.18in;
        size: letter portrait;
    }

    html,
    body {
        background: #fff;
        min-height: 0;
        width: 100%;
    }

    body {
        color: #111;
        font-size: 10px;
        line-height: 1.1;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .fbg-site-nav,
    .fbg-notice,
    .fbg-actions,
    .fbg-signature-clear {
        display: none !important;
    }

    .fbg-page {
        padding: 0;
    }

    .fbg-wrap {
        border: 0;
        max-width: none;
        padding: 0;
        width: 100%;
    }

    .fbg-form {
        width: 100%;
    }

    .fbg-header {
        align-items: start;
        gap: 0.16in;
        grid-template-columns: 2.35in minmax(0, 1fr);
        width: 100%;
    }

    .fbg-logo img {
        max-height: 1.35in;
        object-fit: contain;
        width: 100%;
    }

    .fbg-contact {
        font-size: 10px;
        gap: 2px;
        line-height: 1.1;
        margin-bottom: 5px;
    }

    .fbg-contact span::before {
        margin-right: 4px;
    }

    .fbg-title {
        font-size: 34px;
    }

    .fbg-rule {
        border-bottom-width: 3px;
        border-top-width: 3px;
        height: 8px;
        margin: 6px 0;
    }

    .fbg-section {
        border-width: 1px;
        margin-top: 5px;
        width: 100%;
    }

    .fbg-top-fields,
    .fbg-customer-grid,
    .fbg-sign-grid,
    .fbg-internal-grid {
        width: 100%;
    }

    .fbg-section-title,
    .fbg-item-head {
        font-size: 10px;
        padding: 4px 6px;
    }

    .fbg-field,
    .fbg-choice {
        min-height: 34px;
        padding: 3px 6px;
    }

    .fbg-label,
    .fbg-field span,
    .fbg-choice legend,
    .fbg-notes h2 {
        font-size: 8.5px;
    }

    .fbg-field input,
    .fbg-cell input,
    .fbg-total-input input,
    .fbg-money-input input,
    .fbg-notes input {
        font-size: 10px;
        min-height: 16px;
    }

    .fbg-section,
    .fbg-items-scroll,
    .fbg-totals {
        break-inside: avoid;
    }

    .fbg-items-scroll {
        border-width: 1px;
        margin-top: 5px;
        overflow: visible;
        width: 100%;
    }

    .fbg-item-head,
    .fbg-item-row {
        grid-template-columns: 0.45in 0.55in minmax(0, 1fr) 0.95in 0.95in 1in;
        min-width: 0;
        width: 100%;
    }

    .fbg-item-row {
        min-height: 18px;
    }

    .fbg-item-number,
    .fbg-cell {
        padding: 1px 5px;
    }

    .fbg-item-number,
    .fbg-money span[aria-hidden="true"],
    .fbg-total-input span,
    .fbg-money-input div span {
        font-size: 10px;
    }

    .fbg-lower {
        gap: 0.12in;
        grid-template-columns: minmax(0, 1fr) 2.55in;
        margin-top: 5px;
        width: 100%;
    }

    .fbg-notes h2 {
        margin-bottom: 2px;
    }

    .fbg-notes label {
        gap: 3px;
        grid-template-columns: 14px minmax(0, 1fr);
        margin-bottom: 2px;
    }

    .fbg-notes label span {
        font-size: 8.5px;
    }

    .fbg-notes input {
        border-bottom-width: 1px;
        min-height: 14px;
    }

    .fbg-totals {
        border-width: 1px;
    }

    .fbg-total-row {
        grid-template-columns: 1.05fr 0.95fr;
        min-height: 21px;
    }

    .fbg-total-row > span {
        border-right: 1px solid #777;
        font-size: 10px;
        justify-content: flex-end;
        padding: 2px 5px;
    }

    .fbg-total-input {
        gap: 3px;
        grid-template-columns: 12px minmax(0, 1fr);
        padding: 2px 5px;
    }

    .fbg-final-grid {
        gap: 0.1in;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        margin-top: 5px;
        width: 100%;
    }

    .fbg-auth p {
        font-size: 8.5px;
        line-height: 1.15;
        padding: 4px 6px 2px;
    }

    .fbg-signature-field {
        gap: 2px;
        min-height: 70px;
    }

    .fbg-signature-pad {
        min-height: 42px;
    }

    .fbg-signature-pad canvas {
        height: 42px;
    }

    .fbg-choice div {
        gap: 8px;
        margin-top: 3px;
    }

    .fbg-choice label {
        font-size: 9px;
    }

    .fbg-choice input {
        height: 10px;
        width: 10px;
    }

    .fbg-money-input div {
        gap: 3px;
        grid-template-columns: 12px minmax(0, 1fr);
    }

    .fbg-thanks {
        font-size: 18px;
        margin: 4px 0 0;
    }
}
