body.login_admin,
body.customers_login {
    min-height: 100vh;
    position: relative;
    /* Remove themed background image; keep a neutral base color instead */
    background: #f5f5f5;
}

/* ============================================
   Emerald Logistics Estimate Redesign
   Scoped to estimate container only. Core Perfex fields/JS remain unchanged.
   ============================================ */
.accounting-template.estimate.gozo-estimate-redesign {
    --gozo-bg: #f9f9f6;
    --gozo-card: #ffffff;
    --gozo-soft: #f1f3ef;
    --gozo-soft-2: #eeeeeb;
    --gozo-green: #006e25;
    --gozo-green-2: #159947;
    --gozo-text: #102016;
    --gozo-muted: #5f6f61;
    --gozo-border: rgba(110, 123, 107, .18);
    background: var(--gozo-bg);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 28px;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-topbar {
    position: sticky;
    top: 121px;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 26px;
    background: rgba(249, 249, 246, .92);
    border-bottom: 1px solid var(--gozo-border);
    backdrop-filter: blur(12px);
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .01em;
    color: #004018;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-subtitle {
    display: inline-flex;
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--gozo-soft-2);
    color: var(--gozo-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-save,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-save-more > .btn {
    background: var(--gozo-green);
    border-color: var(--gozo-green);
    box-shadow: 0 10px 24px rgba(0, 110, 37, .18);
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-cancel {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--gozo-text);
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-main-body,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-body,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-body {
    padding: 28px 26px;
    background: transparent;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-main-body > .row,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-body,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-body {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-card,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-card,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-card {
    background: var(--gozo-card);
    border: 1px solid var(--gozo-border);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(16, 32, 22, .035);
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-card {
    padding: 24px;
    margin-bottom: 22px;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-card-title,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-section-title {
    margin: 0 0 20px;
    color: #003f19;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-card-title i {
    margin-right: 8px;
    color: var(--gozo-green);
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-meta-card .tw-ml-3 {
    margin-left: 0 !important;
}

.accounting-template.estimate.gozo-estimate-redesign .form-group label,
.accounting-template.estimate.gozo-estimate-redesign .control-label {
    color: var(--gozo-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.accounting-template.estimate.gozo-estimate-redesign .form-control,
.accounting-template.estimate.gozo-estimate-redesign .bootstrap-select .dropdown-toggle,
.accounting-template.estimate.gozo-estimate-redesign .tagsinput {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--gozo-soft);
    color: var(--gozo-text) !important;
    box-shadow: none;
}

.accounting-template.estimate.gozo-estimate-redesign textarea.form-control {
    min-height: 96px;
    background: var(--gozo-soft);
}

.accounting-template.estimate.gozo-estimate-redesign .form-control:focus,
.accounting-template.estimate.gozo-estimate-redesign .bootstrap-select .dropdown-toggle:focus {
    border: 0;
    box-shadow: 0 0 0 3px rgba(0, 110, 37, .14);
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-address-grid p.bold {
    color: var(--gozo-text);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.accounting-template.estimate.gozo-estimate-redesign address {
    min-height: 98px;
    border: 0;
    background: var(--gozo-soft);
    color: #55645a;
    border-radius: 11px;
}

.accounting-template.estimate.gozo-estimate-redesign .edit_shipping_billing_info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    color: var(--gozo-green);
    background: rgba(0, 110, 37, .08);
    border-radius: 9px;
}

.accounting-template.estimate.gozo-estimate-redesign .hr-panel-separator {
    display: none;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-card {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card {
    grid-column: 2;
    min-width: 0;
    width: 100%;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-card,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-card {
    padding: 22px;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accounting-template.estimate.gozo-estimate-redesign .show_quantity_as_wrapper {
    display: none;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-table-wrapper {
    margin: 0;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-table-wrapper > .form-group:first-child {
    margin-top: -54px;
    margin-bottom: 14px;
    text-align: right;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-table-wrapper .load-from-commodity,
.accounting-template.estimate.gozo-estimate-redesign .goods-table-wrapper .load-from-invoice {
    display: none !important;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-table-wrapper .btn-group {
    justify-content: flex-end;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-table-wrapper .btn-info,
.accounting-template.estimate.gozo-estimate-redesign .goods-table-wrapper .btn-success,
.accounting-template.estimate.gozo-estimate-redesign .goods-table-wrapper .btn-default {
    background: #fff;
    border: 1px solid rgba(0, 110, 37, .18);
    color: var(--gozo-green);
    box-shadow: 0 5px 12px rgba(16, 32, 22, .04);
}

.accounting-template.estimate.gozo-estimate-redesign .goods-hot-shell {
    border-color: var(--gozo-border);
    border-radius: 14px;
    background: #fff;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-hot-help {
    background: #fbfcfa;
    color: var(--gozo-muted);
    border-top: 1px solid var(--gozo-border);
}

.accounting-template.estimate.gozo-estimate-redesign .goods-hot-enabled .handsontable th {
    background: #f3f4f1;
    color: #5b675c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-hot-enabled .handsontable td {
    color: #172033;
    font-size: 14px;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-hot-enabled .handsontable td.goods-hot-row-filled {
    background: #edf8f0 !important;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-hot-enabled .handsontable td.goods-hot-row-empty {
    background: #f7f8f6 !important;
    color: #7a857c !important;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-hot-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 9px;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-hot-copy {
    background: #eef7f0;
    color: var(--gozo-green);
}

.accounting-template.estimate.gozo-estimate-redesign .goods-hot-delete {
    background: #fff1f1;
    color: #ba1a1a;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-table-wrapper > .form-group.mtop15 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 0;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-table-wrapper > .form-group.mtop15 .add-goods-row {
    width: min(320px, 100%);
    border: 1px dashed rgba(0, 110, 37, .35);
    background: rgba(0, 110, 37, .04);
    color: var(--gozo-green);
}

.accounting-template.estimate.gozo-estimate-redesign .goods-view-raw {
    color: var(--gozo-green) !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card {
    position: sticky;
    top: 140px;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table.text-right {
    margin: 0;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table.text-right td {
    border-color: rgba(110, 123, 107, .12);
    padding: 14px 0;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table.text-right tr:last-child td {
    color: #004018;
    font-size: 24px;
    font-weight: 900;
}

.accounting-template.estimate.gozo-estimate-redesign #discount-total {
    max-width: 150px;
    margin-left: auto;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-body {
    display: grid;
    grid-template-columns: minmax(0, calc(100% - 388px)) 360px;
    gap: 28px;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-card {
    grid-column: 1;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-bottom-toolbar {
    display: none;
}

.gozo-estimate-page-title {
    display: none;
}

.accounting-template.estimate.gozo-estimate-redesign #removed-items {
    display: none;
}

@media (max-width: 1199px) {
    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-body,
    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-body {
        grid-template-columns: 1fr;
    }

    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-card,
    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card {
        grid-column: 1;
    }

    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-topbar {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }

    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-actions,
    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-actions .btn {
        width: 100%;
    }

    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-actions {
        display: flex;
    }

    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-main-body,
    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-body,
    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-body {
        padding: 18px 14px;
    }

    .accounting-template.estimate.gozo-estimate-redesign .goods-table-wrapper > .form-group:first-child {
        margin-top: 0;
        text-align: left;
    }
}

/* Compact estimate container spacing. Keep at file end to override prior redesign spacing. */
.accounting-template.estimate.gozo-estimate-redesign {
    padding-bottom: 20px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-topbar {
    padding: 14px 22px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-main-body,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-body,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-body {
    padding: 20px 22px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-main-body > .row,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-body,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-body {
    gap: 20px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-card,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-card,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-card {
    padding: 18px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-card {
    margin-bottom: 20px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card {
    padding: 22px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table tr:first-child {
    margin-top: 12px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table td {
    padding: 12px 0 !important;
}

.accounting-template.estimate.gozo-estimate-redesign .form-group {
    margin-bottom: 14px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-selected-customer-name {
    margin-top: 10px !important;
    padding: 10px 12px !important;
}

/* Estimate input-group spacing fix: keep grouped fields readable instead of merged borders. */
.accounting-template.estimate.gozo-estimate-redesign .input-group {
    align-items: stretch !important;
    border-collapse: separate !important;
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
}

.accounting-template.estimate.gozo-estimate-redesign .input-group .form-control,
.accounting-template.estimate.gozo-estimate-redesign .input-group-addon {
    border: 1px solid rgba(129, 145, 132, .20) !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 14px rgba(16, 32, 22, .04) !important;
    min-height: 44px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .input-group .form-control {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.accounting-template.estimate.gozo-estimate-redesign .input-group-addon {
    align-items: center !important;
    background: #f8fbf9 !important;
    color: #0f172a !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    font-weight: 800 !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 18px !important;
    white-space: nowrap !important;
    width: auto !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-number-card .input-group-addon:first-child {
    min-width: 76px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-number-card .input-group-addon:last-child {
    min-width: 124px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .input-group.date .input-group-addon {
    min-width: 58px !important;
    padding: 0 16px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card #discount-total {
    display: flex !important;
    gap: 8px !important;
    max-width: none !important;
    width: 220px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card #discount-total .form-control {
    flex: 1 1 120px !important;
    min-width: 110px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card #discount-total .input-group-addon {
    min-width: 70px !important;
    padding: 0 14px !important;
}

/* Invoice form container redesign. Scoped to invoice only. */
.accounting-template.invoice.gozo-invoice-redesign {
    background: #fbfcf8 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-bottom: 20px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-main-body,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-items-body,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-notes-body {
    padding: 20px 22px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-primary-grid {
    display: grid !important;
    align-items: start !important;
    grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr) !important;
    gap: 20px !important;
    margin: 0 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-primary-grid:before,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-primary-grid:after,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-items-body:before,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-items-body:after,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-notes-body:before,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-notes-body:after {
    content: none !important;
    display: none !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-primary-col,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-secondary-col {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-primary-col {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-secondary-col {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-card,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-items-card,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-notes-card {
    background: #fff !important;
    border: 1px solid rgba(16, 24, 40, 0.10) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.06) !important;
    padding: 18px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-card + .gozo-invoice-card {
    margin-top: 20px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-card-title,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-section-title {
    color: #004b1f !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    line-height: 1.3 !important;
    margin: 0 0 18px !important;
    text-transform: uppercase !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-card-title i {
    color: #00843d !important;
    margin-right: 8px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .tw-ml-3 {
    margin-left: 0 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .form-group {
    margin-bottom: 14px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .form-group label,
.accounting-template.invoice.gozo-invoice-redesign .control-label {
    color: #14231a !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
}

.accounting-template.invoice.gozo-invoice-redesign .form-control,
.accounting-template.invoice.gozo-invoice-redesign .bootstrap-select .dropdown-toggle,
.accounting-template.invoice.gozo-invoice-redesign .tagsinput {
    background: #f1f3ef !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: #111827 !important;
    min-height: 42px !important;
}

.accounting-template.invoice.gozo-invoice-redesign textarea.form-control {
    min-height: 92px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .form-control:focus,
.accounting-template.invoice.gozo-invoice-redesign .bootstrap-select .dropdown-toggle:focus {
    border-color: rgba(0, 132, 61, 0.30) !important;
    box-shadow: 0 0 0 3px rgba(0, 132, 61, 0.10) !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-selected-invoice-customer-name {
    background: #f2f7f2 !important;
    border: 1px solid rgba(0, 132, 61, 0.16) !important;
    border-radius: 14px !important;
    margin: 10px 0 18px !important;
    padding: 10px 12px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-selected-invoice-customer-name .gozo-selected-customer-label {
    color: #657268 !important;
    display: block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.10em !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-selected-invoice-customer-name strong {
    color: #005a24 !important;
    display: block !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.accounting-template.invoice.gozo-invoice-redesign address {
    background: #f1f3ef !important;
    border-radius: 12px !important;
    color: #536055 !important;
    line-height: 1.55 !important;
    min-height: 96px !important;
    padding: 14px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .edit_shipping_billing_info {
    align-items: center !important;
    background: #eaf8ee !important;
    border-radius: 8px !important;
    color: #00843d !important;
    display: inline-flex !important;
    height: 30px !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    width: 30px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .hr-panel-separator {
    border-color: rgba(16, 24, 40, 0.08) !important;
    margin: 0 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-items-body {
    display: grid !important;
    align-items: start !important;
    gap: 20px !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.38fr) !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-items-card {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-items-card > .row {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 0 0 14px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .show_quantity_as_wrapper {
    float: none !important;
    margin-left: auto !important;
    padding: 0 !important;
    width: auto !important;
}

.accounting-template.invoice.gozo-invoice-redesign .goods-table-wrapper > .form-group:first-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-end !important;
}

.accounting-template.invoice.gozo-invoice-redesign .goods-table-wrapper .load-from-commodity,
.accounting-template.invoice.gozo-invoice-redesign .goods-table-wrapper .load-from-invoice {
    display: none !important;
}

.accounting-template.invoice.gozo-invoice-redesign .goods-table-wrapper .btn-info,
.accounting-template.invoice.gozo-invoice-redesign .goods-table-wrapper .btn-success,
.accounting-template.invoice.gozo-invoice-redesign .goods-table-wrapper .btn-default {
    border-radius: 10px !important;
    font-weight: 700 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .goods-hot-shell,
.accounting-template.invoice.gozo-invoice-redesign .goods-hot-table {
    min-height: 320px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .goods-hot-enabled .handsontable th {
    background: #f4f6f3 !important;
    color: #657268 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.accounting-template.invoice.gozo-invoice-redesign .goods-hot-enabled .handsontable td {
    color: #111827 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .goods-hot-enabled .handsontable td.goods-hot-row-filled {
    background: #edf8f0 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .goods-hot-enabled .handsontable td.goods-hot-row-empty {
    background: #f7f8f6 !important;
    color: #7a857c !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card {
    align-self: start !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

.accounting-template.invoice.gozo-invoice-redesign #removed-items,
.accounting-template.invoice.gozo-invoice-redesign #billed-tasks,
.accounting-template.invoice.gozo-invoice-redesign #billed-expenses {
    display: none !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .col-md-12 {
    float: none !important;
    padding: 0 !important;
    width: 100% !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .table,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .table tbody,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .table tr {
    display: block !important;
    width: 100% !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .table tr {
    align-items: center !important;
    border-top: 1px solid rgba(16, 24, 40, 0.08) !important;
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 14px 0 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .table td {
    border: 0 !important;
    display: block !important;
    padding: 0 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card #discount_area td:first-child .row,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card tr td:first-child .row {
    align-items: center !important;
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    margin: 0 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card tr td:first-child .col-md-7,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card tr td:first-child .col-md-5 {
    float: none !important;
    padding: 0 !important;
    width: auto !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card #discount-total,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card input[name="adjustment"] {
    max-width: 170px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .subtotal,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .discount-total,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .adjustment,
.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .total {
    color: #4b5563 !important;
    font-size: 15px !important;
    text-align: right !important;
    white-space: nowrap !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .table.text-right tr:last-child td {
    color: #004b1f !important;
    font-size: 24px !important;
    font-weight: 900 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-notes-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-bottom-toolbar .btn-primary {
    background: #007a32 !important;
    border-color: #007a32 !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 30px rgba(0, 122, 50, 0.18) !important;
    font-weight: 800 !important;
}

@media (max-width: 1200px) {
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-primary-grid,
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-items-body {
        grid-template-columns: 1fr !important;
    }

    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-primary-col,
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-secondary-col,
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-items-card,
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}

@media (max-width: 768px) {
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-main-body,
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-items-body,
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-notes-body {
        padding: 16px 14px !important;
    }

    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-card,
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-items-card,
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card,
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-notes-card {
        padding: 16px !important;
    }

    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .table tr {
        grid-template-columns: 1fr !important;
    }

    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .subtotal,
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .discount-total,
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .adjustment,
    .accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card .total {
        text-align: left !important;
    }
}

/* Compact estimate container spacing. Keep last to override prior redesign spacing. */
.accounting-template.estimate.gozo-estimate-redesign {
    padding-bottom: 20px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-topbar {
    padding: 14px 22px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-main-body,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-body,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-body {
    padding: 20px 22px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-main-body > .row,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-body,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-body {
    gap: 20px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-card,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-card,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-card {
    padding: 18px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-card {
    margin-bottom: 20px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card {
    padding: 22px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table tr:first-child {
    margin-top: 12px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table td {
    padding: 12px 0 !important;
}

.accounting-template.estimate.gozo-estimate-redesign .form-group {
    margin-bottom: 14px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-selected-customer-name {
    margin-top: 10px !important;
    padding: 10px 12px !important;
}

body.login_admin .authentication-form-wrapper,
body.login_admin .company-logo,
body.customers_login .panel_s,
body.customers_login .col-md-4,
body.customers_login .col-md-4 *,
body.customers_login .col-md-4 .panel-body {
    position: relative;
    z-index: 1;
}

body.customers_login .panel_s {
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

body.login_admin .tw-bg-white {
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.admin #header {
    position: relative;
    z-index: 1400;
}

.header-profile-toggle {
    display: block;
    padding: 10px !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.header-profile-toggle:hover,
.header-profile-toggle:focus {
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.profile-dropdown {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    padding: 8px 0;
}

.profile-dropdown li > a {
    padding: 10px 18px;
    display: block;
    color: #0f172a;
}

.profile-dropdown li > a:hover {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
}
.bm-mega-list > li > a:hover {
    color: #00b14f;
}

.bm-mega-list ul {
    list-style: disc;
    margin: 4px 0 4px 18px;
    padding: 0;
}

.bm-mega-list ul li a {
    font-weight: 400;
    color: #475569;
    font-size: 13px;
}

.bm-mega-list ul li a:hover {
    color: #00b14f;
}

@media (max-width: 1199px) {
    #bm-top-nav-wrapper {
        display: block !important;
    }
    body.bm-top-nav-active #menu {
        display: none !important;
    }
    body.bm-top-nav-active #wrapper {
        margin-left: 0 !important;
    }
}

/* ============================================
   Home Client Style for Estimate & Invoice Forms
   ============================================ */

/* Main Panel Container - Card Style */
.accounting-template.estimate .panel_s,
.accounting-template.invoice .panel_s {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 20px;
}

.accounting-template.estimate .panel-body,
.accounting-template.invoice .panel-body {
    padding: 24px;
}

/* Form Groups - Spacing and Typography */
.accounting-template.estimate .form-group,
.accounting-template.invoice .form-group {
    margin-bottom: 20px;
}

.accounting-template.estimate .form-group label,
.accounting-template.invoice .form-group label,
.accounting-template.estimate .control-label,
.accounting-template.invoice .control-label {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Input Fields - Rounded, Clean Borders */
.accounting-template.estimate .form-control,
.accounting-template.invoice .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    /* padding: 10px 14px; */
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    transition: all 0.2s ease;
}

.accounting-template.estimate .form-control:focus,
.accounting-template.invoice .form-control:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    outline: none;
}

.accounting-template.estimate textarea.form-control,
.accounting-template.invoice textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Input Groups */
.accounting-template.estimate .input-group-addon,
.accounting-template.invoice .input-group-addon {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #0f172a;
    font-weight: 600;
}

.accounting-template.estimate .input-group .form-control:first-child,
.accounting-template.invoice .input-group .form-control:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.accounting-template.estimate .input-group .form-control:last-child,
.accounting-template.invoice .input-group .form-control:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Primary Buttons - Green Style */
.accounting-template.estimate .btn-primary,
.accounting-template.invoice .btn-primary,
.accounting-template.estimate .btn-tr.btn-primary,
.accounting-template.invoice .btn-tr.btn-primary {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.accounting-template.estimate .btn-primary:hover,
.accounting-template.invoice .btn-primary:hover,
.accounting-template.estimate .btn-tr.btn-primary:hover,
.accounting-template.invoice .btn-tr.btn-primary:hover {
    background: #16a34a;
    border-color: #16a34a;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.accounting-template.estimate .btn-primary:active,
.accounting-template.invoice .btn-primary:active,
.accounting-template.estimate .btn-tr.btn-primary:active,
.accounting-template.invoice .btn-tr.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

/* Success Buttons */
.accounting-template.estimate .btn-success,
.accounting-template.invoice .btn-success {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.accounting-template.estimate .btn-success:hover,
.accounting-template.invoice .btn-success:hover {
    background: #16a34a;
    border-color: #16a34a;
}

/* Info Buttons */
.accounting-template.estimate .btn-info,
.accounting-template.invoice .btn-info {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.accounting-template.estimate .btn-info:hover,
.accounting-template.invoice .btn-info:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Default/Secondary Buttons */
.accounting-template.estimate .btn-default,
.accounting-template.invoice .btn-default {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.accounting-template.estimate .btn-default:hover,
.accounting-template.invoice .btn-default:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Danger Buttons */
.accounting-template.estimate .btn-danger,
.accounting-template.invoice .btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.accounting-template.estimate .btn-danger:hover,
.accounting-template.invoice .btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Button Groups */
.accounting-template.estimate .btn-group .btn,
.accounting-template.invoice .btn-group .btn {
    margin-right: 8px;
}

.accounting-template.estimate .btn-group .btn:last-child,
.accounting-template.invoice .btn-group .btn:last-child {
    margin-right: 0;
}

/* Select/Dropdown Styling */
.accounting-template.estimate .selectpicker,
.accounting-template.invoice .selectpicker,
.accounting-template.estimate .bootstrap-select .dropdown-toggle,
.accounting-template.invoice .bootstrap-select .dropdown-toggle {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a !important;
}

.accounting-template.estimate .bootstrap-select .filter-option,
.accounting-template.invoice .bootstrap-select .filter-option,
.accounting-template.estimate .bootstrap-select .filter-option-inner,
.accounting-template.invoice .bootstrap-select .filter-option-inner {
    color: #0f172a !important;
}

.accounting-template.estimate .bootstrap-select .dropdown-toggle .filter-option,
.accounting-template.invoice .bootstrap-select .dropdown-toggle .filter-option {
    color: #0f172a !important;
}

.accounting-template.estimate .bootstrap-select .dropdown-toggle:focus,
.accounting-template.invoice .bootstrap-select .dropdown-toggle:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    outline: none;
}

/* Ensure select text is visible in all states */
.accounting-template.estimate select.form-control,
.accounting-template.invoice select.form-control,
.accounting-template.estimate .bootstrap-select,
.accounting-template.invoice .bootstrap-select {
    color: #0f172a !important;
}

.accounting-template.estimate .bootstrap-select.btn .filter-option,
.accounting-template.invoice .bootstrap-select.btn .filter-option {
    color: #0f172a !important;
}

/* Address Blocks */
.accounting-template.estimate address,
.accounting-template.invoice address {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    margin: 0;
    font-style: normal;
    line-height: 1.6;
    color: #475569;
}

.accounting-template.estimate address .bold,
.accounting-template.invoice address .bold {
    font-weight: 700;
    color: #0f172a;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Edit Icon for Address */
.accounting-template.estimate .edit_shipping_billing_info,
.accounting-template.invoice .edit_shipping_billing_info {
    color: #22c55e;
    font-size: 16px;
    transition: all 0.2s ease;
}

.accounting-template.estimate .edit_shipping_billing_info:hover,
.accounting-template.invoice .edit_shipping_billing_info:hover {
    color: #16a34a;
    transform: scale(1.1);
}

/* Goods Table Styling */
.accounting-template.estimate .goods-table-wrapper,
.accounting-template.invoice .goods-table-wrapper {
    margin: 20px 0;
}

.accounting-template.estimate .goods-table-wrapper .btn-group,
.accounting-template.invoice .goods-table-wrapper .btn-group {
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.accounting-template.estimate .goods-table-wrapper .btn-group .btn,
.accounting-template.invoice .goods-table-wrapper .btn-group .btn {
    margin-right: 0;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.accounting-template.estimate .goods-table-wrapper .btn-sm,
.accounting-template.invoice .goods-table-wrapper .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
}

.accounting-template.estimate .table.items,
.accounting-template.invoice .table.items {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.accounting-template.estimate .table.items thead th,
.accounting-template.invoice .table.items thead th {
    background: #22c55e;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 14px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.accounting-template.estimate .table.items tbody td,
.accounting-template.invoice .table.items tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.accounting-template.estimate .table.items tbody tr:last-child td,
.accounting-template.invoice .table.items tbody tr:last-child td {
    border-bottom: none;
}

.accounting-template.estimate .table.items tbody tr:hover,
.accounting-template.invoice .table.items tbody tr:hover {
    background: #f8fafc;
}

.accounting-template.estimate .table.items tfoot td,
.accounting-template.invoice .table.items tfoot td {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
    padding: 14px;
    border-top: 2px solid #e2e8f0;
}

/* Totals Table */
.accounting-template.estimate .table.text-right,
.accounting-template.invoice .table.text-right {
    border: none;
    margin-top: 20px;
}

.accounting-template.estimate .table.text-right td,
.accounting-template.invoice .table.text-right td {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.accounting-template.estimate .table.text-right tr:last-child td,
.accounting-template.invoice .table.text-right tr:last-child td {
    border-bottom: none;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    padding-top: 16px;
}

.accounting-template.estimate .table.text-right .bold,
.accounting-template.invoice .table.text-right .bold {
    font-weight: 700;
    color: #0f172a;
}

/* Radio Buttons */
.accounting-template.estimate .radio,
.accounting-template.invoice .radio {
    margin-right: 16px;
}

.accounting-template.estimate .radio input[type="radio"]:checked + label,
.accounting-template.invoice .radio input[type="radio"]:checked + label {
    color: #22c55e;
    font-weight: 600;
}

/* Checkboxes */
.accounting-template.estimate .checkbox,
.accounting-template.invoice .checkbox {
    margin-bottom: 12px;
}

/* Tags Input */
.accounting-template.estimate .tagsinput,
.accounting-template.invoice .tagsinput {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
}

.accounting-template.estimate .tagsinput .tag,
.accounting-template.invoice .tagsinput .tag {
    background: #22c55e;
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    margin: 4px;
}

/* HR Separators */
.accounting-template.estimate .hr-panel-separator,
.accounting-template.invoice .hr-panel-separator {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 24px 0;
}

/* Bottom Toolbar */
.accounting-template.estimate .btn-bottom-toolbar,
.accounting-template.invoice .btn-bottom-toolbar {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 20px 24px;
    margin-top: 20px;
    border-radius: 0 0 16px 16px;
}

/* Dropdown Menus */
.accounting-template.estimate .dropdown-menu,
.accounting-template.invoice .dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    padding: 8px 0;
}

.accounting-template.estimate .dropdown-menu li a,
.accounting-template.invoice .dropdown-menu li a {
    padding: 10px 18px;
    color: #0f172a;
    transition: all 0.2s ease;
}

.accounting-template.estimate .dropdown-menu li a:hover,
.accounting-template.invoice .dropdown-menu li a:hover {
    background: #f8fafc;
    color: #22c55e;
}

/* Modal Styling */
.accounting-template.estimate .modal-content,
.accounting-template.invoice .modal-content {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.accounting-template.estimate .modal-header,
.accounting-template.invoice .modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
}

.accounting-template.estimate .modal-body,
.accounting-template.invoice .modal-body {
    padding: 24px;
}

.accounting-template.estimate .modal-footer,
.accounting-template.invoice .modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 20px 24px;
    border-radius: 0 0 16px 16px;
}

/* Show Quantity As Radio Buttons */
.accounting-template.estimate .show_quantity_as_wrapper,
.accounting-template.invoice .show_quantity_as_wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.accounting-template.estimate .show_quantity_as_wrapper span,
.accounting-template.invoice .show_quantity_as_wrapper span {
    font-weight: 600;
    color: #0f172a;
    margin-right: 12px;
}

/* Items Section */
.accounting-template.estimate .home-client-items-section,
.accounting-template.invoice .home-client-items-section {
    background: #fff;
}

/* Bottom Toolbar Enhancement */
.accounting-template.estimate .home-client-toolbar,
.accounting-template.invoice .home-client-toolbar {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 20px 24px;
    margin-top: 20px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.04);
}

/* Input Group Enhancements */
.accounting-template.estimate .input-group .form-control,
.accounting-template.invoice .input-group .form-control {
    border-radius: 10px;
}

/* Select Placeholder Styling */
.accounting-template.estimate .select-placeholder,
.accounting-template.invoice .select-placeholder {
    margin-bottom: 20px;
}

/* Custom Fields Styling */
.accounting-template.estimate .custom-field,
.accounting-template.invoice .custom-field {
    margin-bottom: 20px;
}

/* Textarea Styling */
.accounting-template.estimate textarea.form-control,
.accounting-template.invoice textarea.form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
}

.accounting-template.estimate textarea.form-control:focus,
.accounting-template.invoice textarea.form-control:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    outline: none;
}

/* Discount Module Styling - Home Client Style */
.accounting-template.estimate .ppi-discount-type,
.accounting-template.invoice .ppi-discount-type,
.accounting-template.estimate .ppi-discount-type.form-control,
.accounting-template.invoice .ppi-discount-type.form-control,
.accounting-template.estimate .ppi-discount-type.input-sm,
.accounting-template.invoice .ppi-discount-type.input-sm {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a !important;
    font-size: 13px;
}

.accounting-template.estimate .ppi-line-discount,
.accounting-template.invoice .ppi-line-discount,
.accounting-template.estimate .ppi-line-discount-amount,
.accounting-template.invoice .ppi-line-discount-amount,
.accounting-template.estimate .ppi-line-discount.form-control,
.accounting-template.invoice .ppi-line-discount.form-control,
.accounting-template.estimate .ppi-line-discount-amount.form-control,
.accounting-template.invoice .ppi-line-discount-amount.form-control,
.accounting-template.estimate .ppi-line-discount.input-sm,
.accounting-template.invoice .ppi-line-discount.input-sm,
.accounting-template.estimate .ppi-line-discount-amount.input-sm,
.accounting-template.invoice .ppi-line-discount-amount.input-sm {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
}

.accounting-template.estimate .ppi-line-discount:focus,
.accounting-template.invoice .ppi-line-discount:focus,
.accounting-template.estimate .ppi-line-discount-amount:focus,
.accounting-template.invoice .ppi-line-discount-amount:focus,
.accounting-template.estimate .ppi-discount-type:focus,
.accounting-template.invoice .ppi-discount-type:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    outline: none;
}

.accounting-template.estimate .ppi-tax-mode,
.accounting-template.invoice .ppi-tax-mode,
.accounting-template.estimate .ppi-tax-mode.form-control,
.accounting-template.invoice .ppi-tax-mode.form-control,
.accounting-template.estimate .ppi-tax-mode.input-sm,
.accounting-template.invoice .ppi-tax-mode.input-sm {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a !important;
    font-size: 13px;
}

.accounting-template.estimate .ppi-tax-mode:focus,
.accounting-template.invoice .ppi-tax-mode:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    outline: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .accounting-template.estimate .panel-body,
    .accounting-template.invoice .panel-body {
        padding: 16px;
    }
    
    .accounting-template.estimate .table.items thead th,
    .accounting-template.invoice .table.items thead th {
        font-size: 11px;
        padding: 10px 8px;
    }
    
    .accounting-template.estimate .table.items tbody td,
    .accounting-template.invoice .table.items tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .accounting-template.estimate .btn-bottom-toolbar,
    .accounting-template.invoice .btn-bottom-toolbar {
        padding: 16px;
    }
    
    .accounting-template.estimate .goods-table-wrapper .btn-group,
    .accounting-template.invoice .goods-table-wrapper .btn-group {
        flex-direction: column;
    }
    
    .accounting-template.estimate .goods-table-wrapper .btn-group .btn,
    .accounting-template.invoice .goods-table-wrapper .btn-group .btn {
        width: 100%;
    }
}

/* ============================================
   Home Client Style for Package Edit Page
   ============================================ */

/* Main Panel Container - Card Style */
.package-edit-wrapper .panel_s {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 20px;
}

.package-edit-wrapper .panel-body {
    padding: 24px;
}

/* Form Groups - Spacing and Typography */
.package-edit-wrapper .form-group {
    margin-bottom: 20px;
}

.package-edit-wrapper .form-group label,
.package-edit-wrapper .control-label {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Input Fields - Rounded, Clean Borders */
.package-edit-wrapper .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    transition: all 0.2s ease;
}

.package-edit-wrapper .form-control:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    outline: none;
}

.package-edit-wrapper .input-sm {
    padding: 8px 12px;
    font-size: 13px;
}

/* Select/Dropdown Styling */
.package-edit-wrapper .selectpicker,
.package-edit-wrapper .bootstrap-select .dropdown-toggle {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a !important;
}

.package-edit-wrapper .bootstrap-select .filter-option,
.package-edit-wrapper .bootstrap-select .filter-option-inner {
    color: #0f172a !important;
}

.package-edit-wrapper .bootstrap-select .dropdown-toggle:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    outline: none;
}

/* Primary Buttons - Green Style */
.package-edit-wrapper .btn-primary {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.package-edit-wrapper .btn-primary:hover {
    background: #16a34a;
    border-color: #16a34a;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.package-edit-wrapper .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

/* Default/Secondary Buttons */
.package-edit-wrapper .btn-default {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.package-edit-wrapper .btn-default:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Danger Buttons */
.package-edit-wrapper .btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.package-edit-wrapper .btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Small Buttons */
.package-edit-wrapper .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
}

.package-edit-wrapper .btn-xs {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
}

/* Table Styling */
.package-edit-wrapper .table {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.package-edit-wrapper .table thead th {
    background: #22c55e;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 14px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.package-edit-wrapper .table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.package-edit-wrapper .table tbody tr:last-child td {
    border-bottom: none;
}

.package-edit-wrapper .table tbody tr:hover {
    background: #f8fafc;
}

.package-edit-wrapper .table-bordered {
    border: 1px solid #e2e8f0;
}

.package-edit-wrapper .table-bordered th,
.package-edit-wrapper .table-bordered td {
    border: 1px solid #e2e8f0;
}

/* Headings */
.package-edit-wrapper h4,
.package-edit-wrapper h5 {
    font-weight: 700;
    color: #0f172a;
}

.package-edit-wrapper h4 {
    font-size: 20px;
}

.package-edit-wrapper h5 {
    font-size: 16px;
}

/* HR Separators */
.package-edit-wrapper .hr-panel-heading {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

/* Buttons Container */
.package-edit-wrapper ._buttons {
    margin-bottom: 16px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .package-edit-wrapper .panel-body {
        padding: 16px;
    }
    
    .package-edit-wrapper .table thead th {
        font-size: 11px;
        padding: 10px 8px;
    }
    
    .package-edit-wrapper .table tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

/* Estimate redesign final layout overrides.
   Keep at file end so older broad estimate styles cannot override the redesigned container. */
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-body {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 28px 26px !important;
    clear: both !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-card {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 0 28px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card {
    display: block !important;
    width: 420px !important;
    max-width: 100% !important;
    margin-left: auto !important;
    position: static !important;
}

.gozo-estimate-bottom-toolbar {
    display: none !important;
}

.accounting-template.estimate.gozo-estimate-redesign .goods-hot-shell,
.accounting-template.estimate.gozo-estimate-redesign .goods-hot-table {
    width: 100% !important;
    min-width: 0 !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-selected-customer-name {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #dbe7dc;
    border-radius: 14px;
    background: #f3f7f2;
    color: #0b1f16;
    line-height: 1.35;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-selected-customer-name .gozo-selected-customer-label {
    display: block;
    margin-bottom: 4px;
    color: #637264;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-selected-customer-name strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #00531a;
}

.accounting-template.estimate.gozo-estimate-redesign .f_client_id .select-placeholder:after,
.accounting-template.estimate.gozo-estimate-redesign .f_client_id .select-placeholder::after {
    content: none !important;
    display: none !important;
}

.accounting-template.estimate.gozo-estimate-redesign .f_client_id .bootstrap-select {
    display: none !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-body {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 520px) !important;
    align-items: start !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card {
    width: 520px !important;
    padding: 30px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table tbody,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table tr {
    display: block !important;
    width: 100% !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(130px, auto) !important;
    align-items: center !important;
    column-gap: 24px !important;
    border-top: 1px solid rgba(110, 123, 107, .12);
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table tr:first-child {
    margin-top: 18px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    border: 0 !important;
    padding: 18px 0 !important;
    vertical-align: middle !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .subtotal,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .discount-total,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .adjustment,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .total {
    white-space: nowrap !important;
    text-align: right !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card #discount_area td:first-child .row,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card tr td:first-child .row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;
    margin: 0 !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card #discount_area .col-md-7,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card #discount_area .col-md-5,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card tr td:first-child .col-md-7,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card tr td:first-child .col-md-5 {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card #discount-total {
    width: 180px !important;
    max-width: 180px !important;
    margin: 0 !important;
    display: table !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card input[name="adjustment"] {
    width: 150px !important;
    min-width: 150px !important;
    text-align: right !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .input-discount-percent,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .input-discount-fixed {
    min-width: 92px !important;
    text-align: right !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .input-group-addon {
    min-width: 72px !important;
    white-space: nowrap !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table.text-right tr:last-child td {
    white-space: nowrap !important;
}

@media (max-width: 768px) {
    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-body {
        padding: 18px 14px !important;
    }

    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card {
        width: 100% !important;
    }

    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-body {
        grid-template-columns: 1fr !important;
    }

    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table tr {
        grid-template-columns: 1fr !important;
    }

    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .subtotal,
    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .discount-total,
    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .adjustment,
    .accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .total {
        text-align: left !important;
    }
}

/* Compact estimate container spacing. Final override. */
.accounting-template.estimate.gozo-estimate-redesign {
    padding-bottom: 20px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-topbar {
    padding: 14px 22px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-main-body,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-body,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-body {
    padding: 20px 22px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-main-body > .row,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-body,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-body {
    gap: 20px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-card,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-card,
.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-notes-card {
    padding: 18px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-items-card {
    margin-bottom: 20px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card {
    padding: 22px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table tr:first-child {
    margin-top: 12px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card .table td {
    padding: 12px 0 !important;
}

.accounting-template.estimate.gozo-estimate-redesign .form-group {
    margin-bottom: 14px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-selected-customer-name {
    margin-top: 10px !important;
    padding: 10px 12px !important;
}

/* Final estimate input-group UI fix: separate prefix/input/suffix borders. */
.accounting-template.estimate.gozo-estimate-redesign .input-group {
    align-items: stretch !important;
    border-collapse: separate !important;
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
}

.accounting-template.estimate.gozo-estimate-redesign .input-group .form-control,
.accounting-template.estimate.gozo-estimate-redesign .input-group-addon {
    border: 1px solid rgba(129, 145, 132, .20) !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 14px rgba(16, 32, 22, .04) !important;
    min-height: 44px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .input-group .form-control {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.accounting-template.estimate.gozo-estimate-redesign .input-group-addon {
    align-items: center !important;
    background: #f8fbf9 !important;
    color: #0f172a !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    font-weight: 800 !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 18px !important;
    white-space: nowrap !important;
    width: auto !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-number-card .input-group-addon:first-child {
    min-width: 76px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-number-card .input-group-addon:last-child {
    min-width: 124px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .input-group.date .input-group-addon {
    min-width: 58px !important;
    padding: 0 16px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card #discount-total {
    display: flex !important;
    gap: 8px !important;
    max-width: none !important;
    width: 220px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card #discount-total .form-control {
    flex: 1 1 120px !important;
    min-width: 110px !important;
}

.accounting-template.estimate.gozo-estimate-redesign .gozo-estimate-summary-card #discount-total .input-group-addon {
    min-width: 70px !important;
    padding: 0 14px !important;
}

/* Final invoice input-group UI fix: separate prefix/input/suffix borders. */
.accounting-template.invoice.gozo-invoice-redesign .input-group {
    align-items: stretch !important;
    border-collapse: separate !important;
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
}

.accounting-template.invoice.gozo-invoice-redesign .input-group .form-control,
.accounting-template.invoice.gozo-invoice-redesign .input-group-addon {
    border: 1px solid rgba(129, 145, 132, .20) !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 14px rgba(16, 32, 22, .04) !important;
    min-height: 44px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .input-group .form-control {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.accounting-template.invoice.gozo-invoice-redesign .input-group-addon {
    align-items: center !important;
    background: #f8fbf9 !important;
    color: #0f172a !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    font-weight: 800 !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 18px !important;
    white-space: nowrap !important;
    width: auto !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-details-card .input-group-addon:first-child {
    min-width: 76px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-details-card .input-group-addon:last-child {
    min-width: 124px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .input-group.date .input-group-addon {
    min-width: 58px !important;
    padding: 0 16px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card #discount-total {
    display: flex !important;
    gap: 8px !important;
    max-width: none !important;
    width: 220px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card #discount-total .form-control {
    flex: 1 1 120px !important;
    min-width: 110px !important;
}

.accounting-template.invoice.gozo-invoice-redesign .gozo-invoice-summary-card #discount-total .input-group-addon {
    min-width: 70px !important;
    padding: 0 14px !important;
}
