main.max-w-7xl.fi-main.w-full {
    max-width: 100% !important;
}
.fi-btn-label{
        color: unset !important;
        border-inline-end-width: 0px !important;
}
.quote-table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 4fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #dcdcdc;
    font-weight: 600;
    align-items: center;
}

.quote-row-grid {
    display: grid !important;
    grid-template-columns: 2fr 2fr 1fr 4fr 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.fi-fo-repeater-item {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fi-fo-repeater-item-header {
    display: none !important;
}

.inclusion-exclusion-repeater .fi-fo-repeater-item-header {
    display: flex !important;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding: 0 !important;
}

.inclusion-exclusion-repeater .fi-fo-repeater-item {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.5rem;
}

.inclusion-exclusion-repeater .fi-fo-repeater-item-content {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
}

.inclusion-exclusion-repeater .fi-fo-repeater-item-header [x-sortable-handle] {
    cursor: grab;
}

.inclusion-exclusion-repeater .fi-fo-repeater-item-header [x-sortable-handle]:active {
    cursor: grabbing;
}

.fi-fo-repeater-item-content {
    padding: 0 !important;
}

.fi-fo-field-wrp {
    margin-bottom: 0 !important;
}

/* Quote line items (Lead → Quotes) — ERP-style grid header */
.quote-items-panel .quote-line-items-heading .fi-fo-component-ctn {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #374151;
}
.quote-items-panel .quote-line-items-heading {
    margin-bottom: 0.25rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.375rem;
    background: linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
}
.quote-items-panel .quote-line-items-row {
    align-items: flex-end;
}
.quote-items-panel .quote-line-items-row--heading {
    align-items: center;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}
.quote-items-panel .quote-line-items-row--heading .fi-input-wrp,
.quote-items-panel .quote-line-items-row--heading input {
    font-weight: 700;
}
.quote-items-panel .quote-line-items-row--child {
    padding-left: 1rem;
}
.quote-items-panel .quote-line-items-row input.font-semibold {
    font-weight: 700;
}
.quote-items-panel .quote-line-items-row input.pl-4 {
    padding-left: 1rem;
}
.quote-items-panel .quote-line-items-repeater .fi-fo-repeater-item {
    border-radius: 0.375rem;
}

/* Lead Files explorer — legacy ERP / Windows Explorer compact styling */
.fi-lead-files-host > .lf-filament-table-skip,
.lf-filament-table-skip {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

.lead-files-explorer {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    color: #111827;
}

.lead-files-explorer .lf-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 6px;
    border: 1px solid #7a99b8;
    margin-bottom: 2px;
    font-size: 14px;
}

.lead-files-explorer .lf-alert-success {
    background: #e9f7dd;
    border-color: #86b368;
}

.lead-files-explorer .lf-alert-error {
    background: #ffe5e5;
    border-color: #c66;
}

.lead-files-explorer .lf-alert-warning {
    background: #fff5d8;
    border-color: #cfb266;
}

.lead-files-explorer .lf-alert-close {
    border: 1px solid #999;
    background: #f0f0f0;
    font-size: 10px;
    line-height: 1;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.lead-files-explorer .lf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    margin-bottom: 0;
    border: 1px solid #b8cbe1;
    border-bottom: 1px solid #a8bfd8;
    background: linear-gradient(180deg, #eaf2fb 0%, #dbe8f6 45%, #d2e1f2 100%);
}

.lead-files-explorer .lf-tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin: 0;
    border: 1px solid #95afc9;
    border-radius: 2px;
    background: linear-gradient(180deg, #f8fbff 0%, #e7f0fa 100%);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    color: #166534;
}

.lead-files-explorer .lf-tb-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #edf4fc 100%);
    color: #14532d;
}

.lead-files-explorer .lf-tb-ico {
    font-size: 18px;
    line-height: 1;
    opacity: 0.95;
    color: #15803d;
}

.lead-files-explorer .lf-tb-btn--file {
    position: relative;
    cursor: pointer;
}

.lead-files-explorer .lf-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.lead-files-explorer .lf-panel {
    border: 1px solid #b8cbe1;
    border-top: none;
    background: #fff;
    overflow: auto;
    min-height: min(72vh, 720px);
    max-height: min(90vh, 900px);
}

.lead-files-explorer .lf-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.lead-files-explorer .lf-th {
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 10px;
    border-right: 1px solid #c8d5e4;
    border-bottom: 1px solid #b8c8d8;
    background: linear-gradient(180deg, #f8fafc 0%, #eaf0f6 100%);
    white-space: nowrap;
}

.lead-files-explorer .lf-th-file {
    width: 54%;
}

.lead-files-explorer .lf-th-dl {
    width: 18%;
}

.lead-files-explorer .lf-th-mod {
    width: 22%;
}

.lead-files-explorer .lf-th-del {
    width: 6%;
}

.lead-files-explorer .lf-td {
    padding: 7px 8px;
    font-size: 14px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.lead-files-explorer .lf-tr-folder {
    cursor: pointer;
    background: #fcfcfd;
}

.lead-files-explorer .lf-tr-folder:hover {
    background: #eef5ff;
}

.lead-files-explorer .lf-tr-active {
    background: #ecfdf3 !important;
}

.lead-files-explorer .lf-tr-active .lf-name {
    color: #166534;
    font-weight: 600;
}

.lead-files-explorer .lf-tr-file:nth-child(even) {
    background: #fff;
}

.lead-files-explorer .lf-tr-file:nth-child(odd) {
    background: #fafafa;
}

.lead-files-explorer .lf-file-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
}

.lead-files-explorer .lf-tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.lead-files-explorer .lf-tree-toggle--spacer {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.lead-files-explorer .lf-tree-caret {
    width: 0;
    height: 0;
    display: inline-block;
}

.lead-files-explorer .lf-tree-caret-closed {
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #2f2f2f;
}

.lead-files-explorer .lf-tree-caret-open {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #2f2f2f;
}

.lead-files-explorer .lf-folder-ico,
.lead-files-explorer .lf-file-ico {
    flex-shrink: 0;
    font-size: 16px;
}

.lead-files-explorer .lf-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-files-explorer .lf-dl-link {
    color: #16a34a;
    text-decoration: underline;
    font-size: 14px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.lead-files-explorer .lf-dl-link:hover {
    color: #15803d;
}

.lead-files-explorer .lf-mono {
    font-family: inherit;
    font-size: 14px;
}

.lead-files-explorer .lf-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #c33;
    background: #e54;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.lead-files-explorer .lf-empty-msg {
    padding: 8px 10px;
    color: #555;
    font-size: 14px;
    font-style: italic;
}

.lead-files-explorer .lf-modal-bg {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lead-files-explorer .lf-modal {
    min-width: 280px;
    border: 1px solid #b8cbe1;
    background: #eef4fb;
    padding: 8px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.lead-files-explorer .lf-modal-upload {
    min-width: 540px;
}

.lead-files-explorer .lf-modal-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 12px;
}

.lead-files-explorer .lf-input,
.lead-files-explorer .lf-select {
    width: 100%;
    font-size: 12px;
    padding: 2px 4px;
    border: 1px inset #ccc;
    margin-bottom: 6px;
    font-family: inherit;
}

.lead-files-explorer .lf-select-multi {
    min-height: 120px;
    background-image: none !important;
    background: #fff !important;
    padding-right: 4px;
    appearance: auto;
    -webkit-appearance: listbox;
    -moz-appearance: listbox;
}

.lead-files-explorer .lf-label {
    display: block;
    font-size: 11px;
    margin-bottom: 2px;
    color: #334155;
}

.lead-files-explorer .lf-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 6px;
}

.lead-files-explorer .lf-btn {
    font-size: 12px;
    padding: 2px 10px;
    border: 1px solid #95afc9;
    background: #f3f6fa;
    cursor: pointer;
    font-family: inherit;
}

.lead-files-explorer .lf-btn-primary {
    font-weight: 600;
}

.lead-files-explorer .lf-btn-danger {
    border-color: #b55;
    color: #7b0000;
    font-weight: 600;
}

.lead-files-explorer .lf-inline-err {
    color: #b00;
    font-size: 10px;
    margin-top: 4px;
}

.lead-files-explorer .lf-warn-box {
    border: 1px solid #cfb266;
    background: #fff5d8;
    color: #5d4b00;
    padding: 6px;
    font-size: 11px;
    margin: 6px 0;
}

.lead-files-explorer .lf-upload-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: 2px dashed #c9c9c9;
    background: #fff;
    color: #222;
    font-size: 11px;
    text-align: center;
    padding: 10px;
    margin-bottom: 6px;
    cursor: pointer;
}

.lead-files-explorer .lf-upload-dropzone-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lead-files-explorer .lf-upload-dropzone-disabled .lf-file-input {
    pointer-events: none;
}

.lead-files-explorer .lf-upload-list {
    max-height: 100px;
    overflow: auto;
    border: 1px solid #d3d3d3;
    background: #fff;
    padding: 4px;
    margin-bottom: 6px;
}

.lead-files-explorer .lf-upload-item {
    padding: 2px 0;
    border-bottom: 1px solid #ececec;
}

.lead-files-explorer .lf-upload-item:last-child {
    border-bottom: 0;
}

.fi-fo-repeater-item-content.p-4 .fi-fo-repeater.grid .flex.justify-end .fi-icon-btn.items-center.justify-center{
    background: #000;
    color: #fff;
}

/* Estimating worksheet — line-item (+) adds a row; section (+) only at worksheet bottom */
.worksheet-sections-repeater ul > .grid {
    width: 100%;
    gap:10px !important
}

.worksheet-sections-repeater .fi-fo-repeater-item {
    min-width: 0;
    align-self: start;
    margin: 0 !important;
    /*border: 1px solid rgb(229 231 235) !important;*/
    /*border-radius: 0.75rem !important;*/
    /*padding: 0.75rem 1rem !important;*/
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dark .worksheet-sections-repeater .fi-fo-repeater-item {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.worksheet-sections-repeater .fi-fo-repeater-item:has(.worksheet-section-header-toggle:not(.worksheet-section-header-toggle--collapsed)) {
    border-color: #54b948 !important;
    box-shadow: 0 0 0 1px #54b948 !important;
}

.worksheet-section-body {
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
}

.worksheet-sections-repeater .fi-fo-repeater-item .worksheet-add-section-action,
.worksheet-sections-repeater .fi-fo-repeater-item > .fi-fo-repeater-actions:has(.worksheet-add-section-action) {
    display: none !important;
}

.worksheet-quote-items-repeater .worksheet-add-material-row-action {
    background: #000;
    color: #fff;
}

/* Estimating worksheet — line item section header + collapse */
.worksheet-section-header-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0.25rem 0 0.5rem;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.worksheet-section-header-toggle__chevron {
    flex: 0 0 auto;
    width: 1rem;
    line-height: 1.35;
    font-size: 0.75rem;
    opacity: 0.7;
}

.worksheet-section-header-toggle__label {
    flex: 1 1 auto;
    min-width: 0;
}

.worksheet-section-header-toggle--collapsed {
    opacity: 0.92;
}

.worksheet-section-header-toggle--collapsed:hover {
    opacity: 1;
}

[x-cloak] {
    display: none !important;
}

/* Estimating worksheet — collapsible line item cards (override global header hide) */
.worksheet-sections-repeater .fi-fo-repeater-item-header {
    display: none !important;
}

.worksheet-sections-repeater .fi-fo-repeater-item-header h4 {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.worksheet-section-item-label {
    display: grid;
    gap: 0.15rem 1rem;
    width: 100%;
    font-weight: 400;
    line-height: 1.35;
}


.worksheet-section-item-label strong {
    font-weight: 600;
}

.worksheet-section-item-label__name {
    font-weight: 500;
}
.inclusion-exclusion-repeater .fi-fo-repeater-item .fi-fo-repeater-item-content.p-4, .divide-gray-100>:not([hidden])~:not([hidden]) {
    padding-top: 15px !important;
}

/* All Quotes — empty default estimate (0 jobs) */
tr.job-lead-empty-estimate-row > td {
    background-color: rgb(254 252 232 / 0.55) !important;
}

.dark tr.job-lead-empty-estimate-row > td {
    background-color: rgb(66 32 6 / 0.18) !important;
}

tr.job-lead-empty-estimate-row:hover > td {
    background-color: rgb(254 249 195 / 0.7) !important;
}

.dark tr.job-lead-empty-estimate-row:hover > td {
    background-color: rgb(66 32 6 / 0.28) !important;
}

.twelve-hour-time-picker-columns {
    position: relative;
}

.twelve-hour-time-picker-columns::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    z-index: 1;
    height: 2.25rem;
    transform: translateY(-50%);
    border-top: 1px solid rgb(229 231 235);
    border-bottom: 1px solid rgb(229 231 235);
    pointer-events: none;
}

.dark .twelve-hour-time-picker-columns::before {
    border-top-color: rgb(255 255 255 / 0.12);
    border-bottom-color: rgb(255 255 255 / 0.12);
}

.twelve-hour-time-picker-column {
    height: 12.5rem;
    flex: 1 1 0;
    overflow-y: auto;
    border-right: 1px solid rgb(229 231 235);
    scrollbar-width: thin;
}

.dark .twelve-hour-time-picker-column {
    border-right-color: rgb(255 255 255 / 0.1);
}

.twelve-hour-time-picker-column.is-period {
    flex: 0 0 4.5rem;
}

.twelve-hour-time-picker-option {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.4rem 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(3 7 18);
    cursor: pointer;
}

.dark .twelve-hour-time-picker-option {
    color: rgb(255 255 255);
}

.twelve-hour-time-picker-option:hover {
    background: rgb(243 244 246);
}

.dark .twelve-hour-time-picker-option:hover {
    background: rgb(255 255 255 / 0.08);
}

.twelve-hour-time-picker-option.is-selected {
    background: rgb(224 231 255);
    color: rgb(67 56 202);
    font-weight: 600;
}

.dark .twelve-hour-time-picker-option.is-selected {
    background: rgb(67 56 202 / 0.25);
    color: rgb(165 180 252);
}

/* All Quotes — collapse grouped table prototype (?collapse) */
.collapse-demo-table-wrap .fi-ta-table {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.collapse-demo-group-row td {
    border-bottom: 1px solid rgb(229 231 235);
}

.dark .collapse-demo-group-row td {
    border-bottom-color: rgb(255 255 255 / 0.08);
}

.collapse-demo-header--green {
    background-color: rgb(220 252 231);
}

.dark .collapse-demo-header--green {
    background-color: rgb(20 83 45 / 0.35);
}

.collapse-demo-header--light-green {
    background-color: rgb(236 252 203);
}

.dark .collapse-demo-header--light-green {
    background-color: rgb(54 83 20 / 0.35);
}

.collapse-demo-header--blue {
    background-color: rgb(219 234 254);
}

.dark .collapse-demo-header--blue {
    background-color: rgb(30 58 138 / 0.35);
}

.collapse-demo-header--nested {
    background-color: rgb(239 246 255);
}

.dark .collapse-demo-header--nested {
    background-color: rgb(30 58 138 / 0.22);
}

.collapse-demo-data-row:hover > td {
    background-color: rgb(249 250 251);
}

.dark .collapse-demo-data-row:hover > td {
    background-color: rgb(255 255 255 / 0.04);
}

/* Job timesheets — keep description column readable without stretching the table */
.fi-resource-job-timesheets-page .collapse-demo-table-wrap .fi-ta-table {
    table-layout: fixed;
    width: 100%;
}

.fi-resource-job-timesheets-page .job-timesheet-col-task {
    width: 14%;
}

.fi-resource-job-timesheets-page .job-timesheet-col-description {
    width: 30%;
}

.fi-resource-job-timesheets-page .job-timesheet-description-cell {
    max-width: 0;
}

.fi-resource-job-timesheets-page .job-timesheet-description-preview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.875rem;
    line-height: 1.35;
    color: rgb(55 65 81);
}

.dark .fi-resource-job-timesheets-page .job-timesheet-description-preview {
    color: rgb(229 231 235);
}

.fi-resource-job-timesheets-page .job-timesheet-task-cell {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.job-timesheet-description-modal {
    margin: 1rem;
}

.fi-collapse-grouped-quotes-page .collapse-grouped-filters {
    position: relative;
    z-index: 20;
}

.fi-collapse-grouped-quotes-page .collapse-grouped-filters .fi-ta-filters-above-content-ctn {
    padding-block: 0.5rem;
}

.fi-collapse-grouped-quotes-page .collapse-grouped-filters .fi-ta-ctn {
    overflow: visible !important;
}

.fi-collapse-grouped-quotes-page .collapse-grouped-filters .fi-ta-header,
.fi-collapse-grouped-quotes-page .collapse-grouped-filters .fi-ta-header-toolbar,
.fi-collapse-grouped-quotes-page .collapse-grouped-filters .fi-ta-content,
.fi-collapse-grouped-quotes-page .collapse-grouped-filters .fi-ta-pagination,
.fi-collapse-grouped-quotes-page .collapse-grouped-filters .fi-ta-empty-state {
    display: none !important;
}

/* =========================================================
   All Timesheets — responsive compact table
   Scope: only All Timesheets page (.fi-resource-timesheets)
   Goal: filters stay in one row with labels above inputs,
   no horizontal table scroll, existing colors/fonts preserved.
   ========================================================= */

.fi-resource-timesheets,
.fi-resource-timesheets * {
    box-sizing: border-box;
}

.fi-resource-timesheets .fi-main,
.fi-resource-timesheets .fi-page,
.fi-resource-timesheets .fi-page-content,
.fi-resource-timesheets .fi-ta,
.fi-resource-timesheets .fi-ta-ctn,
.fi-resource-timesheets .fi-ta-content,
.fi-resource-timesheets .fi-ta-content .overflow-x-auto {
    max-width: 100% !important;
    min-width: 0 !important;
}

.fi-resource-timesheets .fi-ta-ctn,
.fi-resource-timesheets .fi-ta-content,
.fi-resource-timesheets .fi-ta-content .overflow-x-auto {
    overflow-x: hidden !important;
}

/* Page header actions */
.fi-resource-timesheets .fi-header,
.fi-resource-timesheets .fi-header .fi-ac,
.fi-resource-timesheets .fi-header-heading {
    min-width: 0 !important;
}

/* =========================================================
   Filters — one row, label above input
   ========================================================= */

.fi-resource-timesheets .fi-ta-filters,
.fi-resource-timesheets .fi-ta-filters-form,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Target only the real filter-row grid that contains the Reset button. */
.fi-resource-timesheets .fi-ta-filters-form .grid.fi-fo-component-ctn.gap-6:has(.beedev-timesheet-filters-reset),
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .grid.fi-fo-component-ctn.gap-6:has(.beedev-timesheet-filters-reset),
.fi-resource-timesheets .fi-ta-filters .grid.fi-fo-component-ctn.gap-6:has(.beedev-timesheet-filters-reset),
.fi-resource-timesheets .fi-ta-filters-form .grid:has(.beedev-timesheet-filters-reset),
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .grid:has(.beedev-timesheet-filters-reset),
.fi-resource-timesheets .fi-ta-filters .grid:has(.beedev-timesheet-filters-reset) {
    display: grid !important;
    grid-template-columns: minmax(135px, 1.05fr) minmax(135px, 1.05fr) minmax(120px, 1fr) minmax(92px, .75fr) !important;
    --cols-default: repeat(4, minmax(0, 1fr)) !important;
    --cols-sm: repeat(4, minmax(0, 1fr)) !important;
    --cols-md: repeat(4, minmax(0, 1fr)) !important;
    --cols-lg: repeat(4, minmax(0, 1fr)) !important;
    align-items: end !important;
    gap: .65rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Stop Filament child columns from spanning/wrapping. */
.fi-resource-timesheets .fi-ta-filters-form .grid.fi-fo-component-ctn.gap-6:has(.beedev-timesheet-filters-reset) > .col,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .grid.fi-fo-component-ctn.gap-6:has(.beedev-timesheet-filters-reset) > .col,
.fi-resource-timesheets .fi-ta-filters .grid.fi-fo-component-ctn.gap-6:has(.beedev-timesheet-filters-reset) > .col,
.fi-resource-timesheets .fi-ta-filters-form .grid:has(.beedev-timesheet-filters-reset) > .col,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .grid:has(.beedev-timesheet-filters-reset) > .col,
.fi-resource-timesheets .fi-ta-filters .grid:has(.beedev-timesheet-filters-reset) > .col,
.fi-resource-timesheets .fi-ta-filters-form .grid:has(.beedev-timesheet-filters-reset) > *,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .grid:has(.beedev-timesheet-filters-reset) > *,
.fi-resource-timesheets .fi-ta-filters .grid:has(.beedev-timesheet-filters-reset) > * {
    grid-column: auto !important;
    --col-span-default: span 1 / span 1 !important;
    --col-span-sm: span 1 / span 1 !important;
    --col-span-md: span 1 / span 1 !important;
    --col-span-lg: span 1 / span 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Keep label above input/select. */
.fi-resource-timesheets .fi-ta-filters .fi-fo-field-wrp,
.fi-resource-timesheets .fi-ta-filters-form .fi-fo-field-wrp,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .fi-fo-field-wrp {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.fi-resource-timesheets .fi-ta-filters label,
.fi-resource-timesheets .fi-ta-filters-form label,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn label,
.fi-resource-timesheets .fi-ta-filters .fi-fo-field-wrp-label,
.fi-resource-timesheets .fi-ta-filters-form .fi-fo-field-wrp-label,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .fi-fo-field-wrp-label,
.fi-resource-timesheets .fi-ta-filters .fi-fo-field-wrp-label span,
.fi-resource-timesheets .fi-ta-filters-form .fi-fo-field-wrp-label span,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .fi-fo-field-wrp-label span {
    display: block !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
}

.fi-resource-timesheets .fi-ta-filters .col,
.fi-resource-timesheets .fi-ta-filters-form .col,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .col,
.fi-resource-timesheets .fi-ta-filters .fi-input-wrp,
.fi-resource-timesheets .fi-ta-filters-form .fi-input-wrp,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .fi-input-wrp,
.fi-resource-timesheets .fi-ta-filters .choices,
.fi-resource-timesheets .fi-ta-filters-form .choices,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .choices,
.fi-resource-timesheets .fi-ta-filters .choices__inner,
.fi-resource-timesheets .fi-ta-filters-form .choices__inner,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .choices__inner,
.fi-resource-timesheets .fi-ta-filters input,
.fi-resource-timesheets .fi-ta-filters-form input,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.fi-resource-timesheets .fi-ta-filters .fi-input-wrp,
.fi-resource-timesheets .fi-ta-filters-form .fi-input-wrp,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .fi-input-wrp,
.fi-resource-timesheets .fi-ta-filters .choices__inner,
.fi-resource-timesheets .fi-ta-filters-form .choices__inner,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .choices__inner {
    min-height: 30px !important;
    height: 30px !important;
    line-height: 19px !important;
}

.fi-resource-timesheets .fi-ta-filters input,
.fi-resource-timesheets .fi-ta-filters-form input,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn input,
.fi-resource-timesheets .fi-ta-filters .choices__item,
.fi-resource-timesheets .fi-ta-filters-form .choices__item,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .choices__item {
    font-size: 11px !important;
    line-height: 1.1 !important;
}

.fi-resource-timesheets .beedev-timesheet-filters-reset,
.fi-resource-timesheets .beedev-timesheet-filters-reset .beedev-timesheet-reset,
.fi-resource-timesheets .fi-ta-filters .fi-btn,
.fi-resource-timesheets .fi-ta-filters-form .fi-btn,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .fi-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.fi-resource-timesheets .beedev-timesheet-filters-reset .beedev-timesheet-reset,
.fi-resource-timesheets .fi-ta-filters .fi-btn,
.fi-resource-timesheets .fi-ta-filters-form .fi-btn,
.fi-resource-timesheets .fi-ta-filters-above-content-ctn .fi-btn {
    min-height: 30px !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
}

.fi-resource-timesheets .fi-ta-filters-summary,
.fi-resource-timesheets .fi-ta-filter-indicators,
.fi-resource-timesheets .fi-ta-indicators {
    max-width: 100% !important;
}

/* =========================================================
   Timesheet table — compact no-scroll table
   ========================================================= */

.fi-resource-timesheets .fi-ta-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

.fi-resource-timesheets .fi-ta-table th,
.fi-resource-timesheets .fi-ta-table td {
    min-width: 0 !important;
    max-width: none !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    white-space: normal !important;
    vertical-align: middle !important;
    background: #fff !important;
}

.fi-resource-timesheets .timesheet-job-name-table-cell,
.fi-resource-timesheets .beedev-timesheet-list-job-cell {
    width: 25% !important;
}

.fi-resource-timesheets .beedev-timesheet-list-staff-cell {
    width: 16% !important;
}

.fi-resource-timesheets .timesheet-description-table-cell,
.fi-resource-timesheets .beedev-timesheet-list-description-cell {
    width: 24% !important;
}

.fi-resource-timesheets .beedev-timesheet-list-start-time-cell,
.fi-resource-timesheets .beedev-timesheet-list-end-time-cell {
    width: 12% !important;
}

.fi-resource-timesheets .beedev-timesheet-list-total-time-cell {
    width: 11% !important;
}

.fi-resource-timesheets .timesheet-job-name-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    min-width: 0;
    max-width: 100%;
}

.fi-resource-timesheets .timesheet-job-name-line {
    font-weight: 600;
    font-size: .875rem;
    line-height: 1.35;
    color: rgb(17 24 39);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.fi-resource-timesheets .timesheet-job-project-label {
    display: inline-block;
    max-width: 100%;
    border-radius: 5px;
    background: rgb(239 246 255);
    border: 1px solid rgb(191 219 254);
    padding: .15rem .55rem;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgb(30 64 175);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.fi-resource-timesheets .timesheet-description-preview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: .875rem;
    line-height: 1.35;
    color: rgb(55 65 81);
    max-width: 100%;
}

.dark .fi-resource-timesheets .timesheet-job-name-line {
    color: rgb(243 244 246);
}

.dark .fi-resource-timesheets .timesheet-job-project-label {
    background: rgb(30 58 138 / 0.35);
    border-color: rgb(59 130 246 / 0.4);
    color: rgb(191 219 254);
}

.dark .fi-resource-timesheets .timesheet-description-preview {
    color: rgb(229 231 235);
}

/* =========================================================
   Day group headers
   ========================================================= */

.fi-resource-timesheets .fi-ta-group-header {
    margin-top: .75rem;
    border: 1px solid rgb(254 253 242);
    border-left-width: 4px;
    border-left-color: #d1bf00a3;
    border-radius: 0;
    background: rgb(254 252 232 / 55%);
    padding: .75rem 1rem;
}

.fi-resource-timesheets .fi-ta-group-header:first-child {
    margin-top: 0;
}

.fi-resource-timesheets .fi-ta-group-header > .grid {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

.fi-resource-timesheets .fi-ta-group-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: #000;
    min-width: 0;
    overflow-wrap: anywhere;
}

.fi-resource-timesheets .fi-ta-group-header p {
    margin: 0;
    flex-shrink: 0;
    border-radius: 5px;
    background: rgb(255 108 0 / 16%);
    padding: .35rem .75rem;
    font-size: .8125rem;
    font-weight: 700;
    color: rgb(0 0 0);
    white-space: nowrap;
    border: 1px solid rgb(255 108 0 / 35%);
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fi-resource-timesheets .fi-ta-group-header .fi-icon-btn {
    margin-left: .5rem;
    flex-shrink: 0;
}

.dark .fi-resource-timesheets .fi-ta-group-header {
    border-color: rgb(30 64 175 / 0.45);
    border-left-color: rgb(96 165 250);
    background: linear-gradient(90deg, rgb(30 58 138 / 0.35), rgb(15 23 42 / 0.6));
}

.dark .fi-resource-timesheets .fi-ta-group-header h4 {
    color: rgb(191 219 254);
}

.dark .fi-resource-timesheets .fi-ta-group-header p {
    background: rgb(15 23 42 / 0.65);
    color: rgb(147 197 253);
}

/* =========================================================
   Consolidated responsive rules for All Timesheets
   ========================================================= */

@media screen and (max-width: 1500px) and (min-width: 1024px) {
    .fi-resource-timesheets .timesheet-job-project-label {
        font-size: .55rem !important;
    }
}

@media (max-width: 1500px) {
    .fi-resource-timesheets .fi-ta-table th,
    .fi-resource-timesheets .fi-ta-table td {
        padding: .55rem .5rem !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .fi-table-cell-job-name.timesheet-job-name-table-cell.beedev-timesheet-list-job-cell .fi-ta-text {
        padding: 2px !important;
    }
}

@media (max-width: 1200px) {
    .fi-resource-timesheets .fi-ta-table th,
    .fi-resource-timesheets .fi-ta-table td {
        padding: .55rem .5rem !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .fi-resource-timesheets .fi-ta-table th {
        font-weight: 700 !important;
    }

    .fi-resource-timesheets .timesheet-job-name-table-cell,
    .fi-resource-timesheets .beedev-timesheet-list-job-cell {
        width: 24% !important;
    }

    .fi-resource-timesheets .beedev-timesheet-list-staff-cell {
        width: 16% !important;
    }

    .fi-resource-timesheets .timesheet-description-table-cell,
    .fi-resource-timesheets .beedev-timesheet-list-description-cell {
        width: 23% !important;
    }

    .fi-resource-timesheets .beedev-timesheet-list-start-time-cell,
    .fi-resource-timesheets .beedev-timesheet-list-end-time-cell {
        width: 12% !important;
    }

    .fi-resource-timesheets .beedev-timesheet-list-total-time-cell {
        width: 13% !important;
    }

    .beedev-timesheet-list-table .fi-ta-text-item-label {
        font-size: 10px !important;
        line-height: 15px !important;
    }

    .beedev-timesheet-list-table .fi-ta-header-cell-label.text-sm {
        font-size: 12px !important;
        line-height: 16px !important;
    }

    .fi-resource-timesheets .timesheet-job-name-line,
    .fi-resource-timesheets .timesheet-description-preview {
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .fi-resource-timesheets .timesheet-job-project-label {
        font-size: 9px !important;
        line-height: 1.1 !important;
        padding: .1rem .3rem !important;
    }

    .fi-resource-timesheets .fi-ta-group-header {
        padding: .55rem .65rem !important;
    }

    .fi-resource-timesheets .fi-ta-group-header > .grid {
        gap: .5rem !important;
    }

    .fi-resource-timesheets .fi-ta-group-header h4 {
        font-size: 12px !important;
        line-height: 1.15 !important;
    }

    .fi-resource-timesheets .fi-ta-group-header p {
        font-size: 10px !important;
        line-height: 1.1 !important;
        padding: .25rem .45rem !important;
    }
}

@media (max-width: 990px) {
    .fi-resource-timesheets .fi-ta-filters-form .grid.fi-fo-component-ctn.gap-6:has(.beedev-timesheet-filters-reset),
    .fi-resource-timesheets .fi-ta-filters-above-content-ctn .grid.fi-fo-component-ctn.gap-6:has(.beedev-timesheet-filters-reset),
    .fi-resource-timesheets .fi-ta-filters .grid.fi-fo-component-ctn.gap-6:has(.beedev-timesheet-filters-reset),
    .fi-resource-timesheets .fi-ta-filters-form .grid:has(.beedev-timesheet-filters-reset),
    .fi-resource-timesheets .fi-ta-filters-above-content-ctn .grid:has(.beedev-timesheet-filters-reset),
    .fi-resource-timesheets .fi-ta-filters .grid:has(.beedev-timesheet-filters-reset) {
        grid-template-columns: minmax(125px, 1fr) minmax(125px, 1fr) minmax(105px, .95fr) minmax(86px, .75fr) !important;
        --cols-default: repeat(4, minmax(0, 1fr)) !important;
        --cols-sm: repeat(4, minmax(0, 1fr)) !important;
        --cols-md: repeat(4, minmax(0, 1fr)) !important;
        --cols-lg: repeat(4, minmax(0, 1fr)) !important;
        gap: .5rem !important;
    }

    .fi-resource-timesheets .fi-ta-filters label,
    .fi-resource-timesheets .fi-ta-filters-form label,
    .fi-resource-timesheets .fi-ta-filters-above-content-ctn label,
    .fi-resource-timesheets .fi-ta-filters .fi-fo-field-wrp-label span,
    .fi-resource-timesheets .fi-ta-filters-form .fi-fo-field-wrp-label span,
    .fi-resource-timesheets .fi-ta-filters-above-content-ctn .fi-fo-field-wrp-label span,
    .fi-resource-timesheets .fi-ta-filters input,
    .fi-resource-timesheets .fi-ta-filters-form input,
    .fi-resource-timesheets .fi-ta-filters-above-content-ctn input,
    .fi-resource-timesheets .fi-ta-filters .choices__item,
    .fi-resource-timesheets .fi-ta-filters-form .choices__item,
    .fi-resource-timesheets .fi-ta-filters-above-content-ctn .choices__item {
        font-size: 10px !important;
    }
}

@media (max-width: 900px) {
    .fi-resource-timesheets .fi-ta-table th,
    .fi-resource-timesheets .fi-ta-table td {
        padding: .45rem .4rem !important;
        font-size: 10px !important;
        line-height: 1.22 !important;
    }

    .fi-resource-timesheets .timesheet-job-name-table-cell,
    .fi-resource-timesheets .beedev-timesheet-list-job-cell {
        width: 23% !important;
    }

    .fi-resource-timesheets .beedev-timesheet-list-staff-cell {
        width: 15% !important;
    }

    .fi-resource-timesheets .timesheet-description-table-cell,
    .fi-resource-timesheets .beedev-timesheet-list-description-cell {
        width: 22% !important;
    }

    .fi-resource-timesheets .beedev-timesheet-list-start-time-cell,
    .fi-resource-timesheets .beedev-timesheet-list-end-time-cell {
        width: 12% !important;
    }

    .fi-resource-timesheets .beedev-timesheet-list-total-time-cell {
        width: 16% !important;
    }

    .fi-resource-timesheets .timesheet-job-name-line,
    .fi-resource-timesheets .timesheet-description-preview {
        font-size: 10px !important;
    }

    .fi-resource-timesheets .timesheet-job-project-label {
        font-size: 8px !important;
        padding: .08rem .22rem !important;
    }
}

@media (max-width: 640px) {
    .fi-resource-timesheets .fi-header {
        gap: .75rem !important;
    }

    .fi-resource-timesheets .fi-header .fi-ac {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: .5rem !important;
    }
}

@media (max-width: 560px) {
    .fi-resource-timesheets .fi-ta-table th,
    .fi-resource-timesheets .fi-ta-table td {
        padding: .35rem .28rem !important;
        font-size: 9px !important;
        line-height: 1.18 !important;
    }

    .fi-resource-timesheets .fi-ta-filters-summary,
    .fi-resource-timesheets .fi-ta-filter-indicators,
    .fi-resource-timesheets .fi-ta-indicators {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: .4rem !important;
        max-width: 100% !important;
    }
}

@media (max-width: 520px) {
    .fi-resource-timesheets .fi-ta-filters-form .grid.fi-fo-component-ctn.gap-6:has(.beedev-timesheet-filters-reset),
    .fi-resource-timesheets .fi-ta-filters-above-content-ctn .grid.fi-fo-component-ctn.gap-6:has(.beedev-timesheet-filters-reset),
    .fi-resource-timesheets .fi-ta-filters .grid.fi-fo-component-ctn.gap-6:has(.beedev-timesheet-filters-reset),
    .fi-resource-timesheets .fi-ta-filters-form .grid:has(.beedev-timesheet-filters-reset),
    .fi-resource-timesheets .fi-ta-filters-above-content-ctn .grid:has(.beedev-timesheet-filters-reset),
    .fi-resource-timesheets .fi-ta-filters .grid:has(.beedev-timesheet-filters-reset) {
        grid-template-columns: minmax(0, 1fr) !important;
        --cols-default: repeat(1, minmax(0, 1fr)) !important;
        --cols-sm: repeat(1, minmax(0, 1fr)) !important;
        --cols-md: repeat(1, minmax(0, 1fr)) !important;
        --cols-lg: repeat(1, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 420px) {
    .fi-resource-timesheets .fi-ta-group-header > .grid {
        flex-wrap: wrap !important;
    }

    .fi-resource-timesheets .fi-ta-group-header p {
        max-width: 100% !important;
        margin-top: .25rem !important;
    }
}

.collapse-job-lead-actions {
    gap: 0.5rem;
}

.collapse-job-lead-actions .fi-icon-btn {
    width: 2.25rem !important;
    height: 2.25rem !important;
}



/* FINAL CLEAN WORKSHEET PATCH
   Add this LAST and remove all previous ChatGPT worksheet CSS patches.
   Scope: only Jobs Worksheet via .quote-worksheet-ui. */

body:has(.quote-worksheet-ui) main.fi-main,
body:has(.quote-worksheet-ui) .fi-main {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

body:has(.quote-worksheet-ui) .fi-page-content,
body:has(.quote-worksheet-ui) .fi-main-ctn,
body:has(.quote-worksheet-ui) .fi-page {
  max-width: none !important;
  width: 100% !important;
}

body:has(.quote-worksheet-ui) .fi-header {
  margin-bottom: 10px !important;
}

.quote-worksheet-ui,
.quote-worksheet-ui * {
  box-sizing: border-box !important;
}

.quote-worksheet-ui {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 1px solid #dde5ee !important;
  border-radius: .75rem !important;
  background: #fff !important;
  overflow: visible !important;
}

.quote-worksheet-ui > .fi-section-header,
.quote-worksheet-ui .fi-section-header:first-child {
  min-height: 42px !important;
  padding: .65rem .9rem !important;
  border-bottom: 1px solid #dde5ee !important;
}

.quote-worksheet-ui > .fi-section-header .worksheet-header-project-name,
.quote-worksheet-ui .fi-section-header:first-child .worksheet-header-project-name {
  font-size: .75rem !important;
  font-weight: 600 !important;
  color: #000000 !important;
  background: #ff8f002b;
  padding: 6px;
  border-radius: 5px;
  margin-left: 7px;
}
.choices__list--single {
    display: inline-block !important;
    font-size: .70rem !important;
    line-height: 16px !important;
}
/* Inclusions / Exclusions: Filament puts the custom class on a wrapper; the inner .grid is the 2-col layout. */
.quote-worksheet-ui .worksheet-inclusions-exclusions-grid,
.quote-worksheet-ui .worksheet-section-body .worksheet-inclusions-exclusions-grid {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.quote-worksheet-ui .worksheet-inclusions-exclusions-grid > .grid.fi-fo-component-ctn,
.quote-worksheet-ui .worksheet-inclusions-exclusions-grid > .grid,
.quote-worksheet-ui .worksheet-inclusions-exclusions-grid.grid,
.quote-worksheet-ui .worksheet-inclusions-exclusions-grid.fi-fo-component-ctn {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: .65rem !important;
  width: 100% !important;
  align-items: center !important;
}

.quote-worksheet-ui .worksheet-inclusions-exclusions-grid > .grid > *,
.quote-worksheet-ui .worksheet-inclusions-exclusions-grid.grid > *,
.quote-worksheet-ui .worksheet-inclusions-exclusions-grid > .grid.fi-fo-component-ctn > * {
  grid-column: span 1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.quote-worksheet-ui .worksheet-inclusions-exclusions-grid .fi-section {
  height: 100% !important;
}

.quote-worksheet-ui .fi-section-content,
.quote-worksheet-ui > .fi-section-content,
.quote-worksheet-ui > div > .fi-section-content {
  width: 100% !important;
  max-width: none !important;
  padding: .75rem .9rem !important;
}

/* Make the Jobs Worksheet schema a single full-width column. */
.quote-worksheet-ui .fi-section-content > .grid,
.quote-worksheet-ui .fi-section-content > div > .grid {
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: .75rem !important;
}

.quote-worksheet-ui .fi-section-content > .grid > *:not(.worksheet-inclusions-exclusions-grid),
.quote-worksheet-ui .fi-section-content > div > .grid > *:not(.worksheet-inclusions-exclusions-grid) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* True main two-column quote layout. Target only the immediate item list, not nested grids. */
.quote-worksheet-ui .worksheet-sections-repeater {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  row-gap:10px !important;
}

.quote-worksheet-ui .worksheet-sections-repeater:is(.grid):has(> .fi-fo-repeater-item),
.quote-worksheet-ui .worksheet-sections-repeater > :is(ul,.grid):has(> li),
.quote-worksheet-ui .worksheet-sections-repeater > :is(ul,.grid):has(> .fi-fo-repeater-item),
.quote-worksheet-ui .worksheet-sections-repeater > div > :is(ul,.grid):has(> li),
.quote-worksheet-ui .worksheet-sections-repeater > div > :is(ul,.grid):has(> .fi-fo-repeater-item),
.quote-worksheet-ui .worksheet-sections-repeater > div > div > :is(ul,.grid):has(> li),
.quote-worksheet-ui .worksheet-sections-repeater > div > div > :is(ul,.grid):has(> .fi-fo-repeater-item) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .9rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.quote-worksheet-ui .worksheet-sections-repeater:is(.grid):has(> .fi-fo-repeater-item) > *,
.quote-worksheet-ui .worksheet-sections-repeater > :is(ul,.grid):has(> li) > *,
.quote-worksheet-ui .worksheet-sections-repeater > :is(ul,.grid):has(> .fi-fo-repeater-item) > *,
.quote-worksheet-ui .worksheet-sections-repeater > div > :is(ul,.grid):has(> li) > *,
.quote-worksheet-ui .worksheet-sections-repeater > div > :is(ul,.grid):has(> .fi-fo-repeater-item) > *,
.quote-worksheet-ui .worksheet-sections-repeater > div > div > :is(ul,.grid):has(> li) > *,
.quote-worksheet-ui .worksheet-sections-repeater > div > div > :is(ul,.grid):has(> .fi-fo-repeater-item) > * {
  grid-column: auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.quote-worksheet-ui .worksheet-sections-repeater .fi-fo-repeater-item:has(.worksheet-section-header-toggle) {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: .65rem !important;
  border: 1px solid #42b83f !important;
  border-radius: .65rem !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.04) !important;
  overflow: hidden !important;
  padding-top:0px !important;
}

.quote-worksheet-ui .worksheet-sections-repeater .fi-fo-repeater-item-header {
  display: none !important;
}

.quote-worksheet-ui .worksheet-section-header-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: .35rem !important;
  width: 100% !important;
  margin: 0 0 .6rem !important;
}

.quote-worksheet-ui .worksheet-section-remove-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 32px !important;
  height: 32px !important;
  margin: -.65rem -.65rem -.65rem 0 !important;
  border-radius: .45rem !important;
}

.quote-worksheet-ui .worksheet-section-header-toggle {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: .45rem !important;
  width: 100% !important;
  min-height: 34px !important;
  margin: -.65rem 0 -.65rem -.65rem !important;
  padding: .45rem .6rem !important;
  border: 0 !important;
  border-bottom: 1px solid #d7f1d6 !important;
  background: #effdf0 !important;
}

.quote-worksheet-ui .worksheet-section-header-toggle__chevron {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1rem !important;
  height: 1rem !important;
  border: 1px solid #b9e8b6 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #36a832 !important;
  font-size: .68rem !important;
}

.quote-worksheet-ui .worksheet-section-item-label {
  display: grid !important;
  grid-template-columns: minmax(8rem, 1fr) auto auto !important;
  align-items: center !important;
  gap: .7rem !important;
  width: 100% !important;
  min-width: 0 !important;
  font-size: .82rem !important;
  line-height: 1.1 !important;
}

.quote-worksheet-ui .worksheet-section-item-label > * {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.quote-worksheet-ui .worksheet-section-body {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.quote-worksheet-ui .worksheet-section-body > .grid {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  gap: .65rem !important;
}

.quote-worksheet-ui .worksheet-section-body .fi-fo-field-wrp,
.quote-worksheet-ui .worksheet-section-body .fi-fo-component-ctn {
  min-width: 0 !important;
  margin: 0 !important;
}
.quote-worksheet-ui .worksheet-section-body .fi-fo-component-ctn{
    gap:10px !important;
}
.quote-worksheet-ui .worksheet-section-body>.fi-fo-component-ctn.gap-6:first-child{
    margin-top:-20px !important;
}
.quote-worksheet-ui.estimator-container{
    margin-top:-20px !important;
}
.worksheet-section-body .fi-section-content-ctn .fi-input-wrp-prefix{
    padding-left:5px !important;
    padding-right:5px !important;
}
.worksheet-section-body .fi-section-content-ctn .fi-input-wrp-prefix .text-sm{
        font-size: .675rem;
}
/* Remove empty divider spacing. */
.quote-worksheet-ui [class*="section_divider"],
.quote-worksheet-ui .section_divider,
.quote-worksheet-ui .worksheet-section-body .fi-fo-placeholder:empty {
  display: none !important;
}

/* Inputs/selects: visible fields, compact but readable. */
.quote-worksheet-ui label,
.quote-worksheet-ui .fi-fo-field-wrp-label span {
  font-size: .78rem !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  line-height: 1.15 !important;
}

.quote-worksheet-ui .fi-input-wrp {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 22px !important;
  border: 1px solid #d7e1ec !important;
  border-radius: .45rem !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.03) !important;
  overflow: hidden !important;
}

.quote-worksheet-ui input,
.quote-worksheet-ui textarea,
.quote-worksheet-ui .fi-input,
.quote-worksheet-ui .fi-select-input {
     width: 100% !important;
    min-width: 0 !important;
    min-height: 18px !important;
    line-height: 11px !important;
    font-size: .63rem !important;
    color: #0f172a !important;
  background: #fff !important;
}

.quote-worksheet-ui input[readonly],
.quote-worksheet-ui .fi-input[readonly] {
  background: #f8fafc !important;
}

.quote-worksheet-ui textarea {
  min-height: 35px !important;
  padding: .55rem .65rem !important;
}

/* Job number + line-item name. */
.quote-worksheet-ui .worksheet-section-body > .grid > .grid:first-of-type,
.quote-worksheet-ui .worksheet-section-body > .grid > div > .grid:first-of-type {
  display: grid !important;
  grid-template-columns: minmax(5.5rem, .28fr) minmax(0, 1fr) !important;
  gap: .65rem !important;
  align-items: end !important;
}

.quote-worksheet-ui .worksheet-section-body > .grid > .grid:first-of-type > *,
.quote-worksheet-ui .worksheet-section-body > .grid > div > .grid:first-of-type > * {
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* Section boxes. */
.quote-worksheet-ui .fi-section:not(.quote-worksheet-ui) {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid #d7e1ec !important;
  border-radius: .55rem !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.quote-worksheet-ui .fi-section:not(.quote-worksheet-ui) > .fi-section-header {
 min-height: 26px !important;
    padding: .2rem .65rem !important;
    border-bottom: 1px solid rgb(254 252 232 / 55%) !important;
    background: rgb(254 252 232 / 55%);
   
}
.quote-worksheet-ui .fi-section:not(.quote-worksheet-ui) > .fi-section-header h3{
    font-size:11px !important;
}
.quote-worksheet-ui .fi-section:not(.quote-worksheet-ui) > .fi-section-content,
.quote-worksheet-ui .fi-section:not(.quote-worksheet-ui) > div > .fi-section-content {
  padding: .65rem !important;
}

/* Line Items: real table layout. */
.quote-worksheet-ui .worksheet-line-items-table,
.quote-worksheet-ui .worksheet-line-items-panel,
.quote-worksheet-ui .worksheet-quote-items-repeater {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.quote-worksheet-ui .worksheet-line-items-table {
  border: 1px solid #d5e1ed !important;
  border-radius: .5rem !important;
  overflow: hidden !important;
  background: #fff !important;
}

/* Header + normal item rows use the same 8-column grid. */
.quote-worksheet-ui .worksheet-line-items-grid--header,
.quote-worksheet-ui .worksheet-line-items-grid--row {
  display: grid !important;
  grid-template-columns:
    minmax(7.2rem, .95fr)
    minmax(9.5rem, 2fr)
    minmax(3.6rem, .65fr)
    minmax(3rem, .5fr)
    minmax(4rem, .7fr)
    minmax(4rem, .7fr)
    minmax(4rem, .8fr)
    2.1rem !important;
  align-items: center !important;
  column-gap: .35rem !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* The footer also uses the same 8-column grid so it aligns with row totals. */
.quote-worksheet-ui .worksheet-line-items-grid--footer {
  display: grid !important;
  grid-template-columns:
    minmax(7.8rem, .95fr)
    minmax(9rem, 2fr)
    minmax(3.6rem, .65fr)
    minmax(3rem, .5fr)
    minmax(4rem, .7fr)
    minmax(4rem, .7fr)
    minmax(4rem, .8fr)
    2.1rem !important;
  align-items: center !important;
  column-gap: .35rem !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: .4rem .45rem !important;
  border-top: 1px solid #d5e1ed !important;
  background: #f7fafc !important;
  overflow: visible !important;
}

/* Filament renders an inner grid; flatten it so cells sit directly in the parent grid. */
.quote-worksheet-ui .worksheet-line-items-grid--header > .grid,
.quote-worksheet-ui .worksheet-line-items-grid--row > .grid,
.quote-worksheet-ui .worksheet-line-items-grid--footer > .grid {
  display: contents !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--header > *,
.quote-worksheet-ui .worksheet-line-items-grid--row > *,
.quote-worksheet-ui .worksheet-line-items-grid--footer > *,
.quote-worksheet-ui .worksheet-line-items-grid--header > .grid > *,
.quote-worksheet-ui .worksheet-line-items-grid--row > .grid > *,
.quote-worksheet-ui .worksheet-line-items-grid--footer > .grid > * {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Footer cell placement: label spans left side, two totals sit in cols 6 and 7. */
.quote-worksheet-ui .worksheet-line-items-grid--footer > .grid > :nth-child(1),
.quote-worksheet-ui .worksheet-line-items-grid--footer > :nth-child(1) {
  grid-column: 1 / 6 !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--footer > .grid > :nth-child(2),
.quote-worksheet-ui .worksheet-line-items-grid--footer > :nth-child(2) {
  grid-column: 6 / 7 !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--footer > .grid > :nth-child(3),
.quote-worksheet-ui .worksheet-line-items-grid--footer > :nth-child(3) {
  grid-column: 7 / 8 !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--header {
  min-height: 32px !important;
  padding: .35rem .45rem !important;
  border-bottom: 1px solid #d5e1ed !important;
  background: #eaf2fa !important;
}

.quote-worksheet-ui .ws-head,
.quote-worksheet-ui .worksheet-line-items-grid--header .fi-fo-placeholder,
.quote-worksheet-ui .worksheet-line-items-grid--header .fi-fo-component-ctn {
  font-size: .68rem !important;
  font-weight: 750 !important;
  color: #415f80 !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row {
  min-height: 40px !important;
  padding: .1rem .45rem !important;
  border-bottom: 0px solid #edf2f7 !important;
  background: #fff !important;
  align-items: center !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row .fi-input-wrp,
.quote-worksheet-ui .worksheet-line-items-grid--footer .fi-input-wrp {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 30px !important;
  border-radius: .38rem !important;
  overflow: hidden !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row input,
.quote-worksheet-ui .worksheet-line-items-grid--row .fi-input,
.quote-worksheet-ui .worksheet-line-items-grid--row .fi-select-input,
.quote-worksheet-ui .worksheet-line-items-grid--footer input,
.quote-worksheet-ui .worksheet-line-items-grid--footer .fi-input,
.quote-worksheet-ui .worksheet-line-items-grid--footer .fi-select-input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 28px !important;
  font-size: .76rem !important;
  padding-left: .4rem !important;
  padding-right: .4rem !important;
}

.quote-worksheet-ui .ws-cell--qty input,
.quote-worksheet-ui .ws-cell--rate input,
.quote-worksheet-ui .ws-cell--total input,
.quote-worksheet-ui .ws-cell--margin input,
.quote-worksheet-ui .ws-foot--total input,
.quote-worksheet-ui .ws-foot--margin input,
.quote-worksheet-ui .worksheet-line-items-grid--footer input {
  text-align: right !important;
  font-variant-numeric: tabular-nums !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--footer .ws-foot--label,
.quote-worksheet-ui .worksheet-line-items-grid--footer .fi-fo-placeholder.ws-foot--label {
  display: flex !important;
  align-items: center !important;
  min-height: 30px !important;
  text-align: left !important;
  font-size: .68rem !important;
  font-weight: 750 !important;
  color: #415f80 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Keep nested Filament wrappers from forcing the subtotal input outside its cell. */
.quote-worksheet-ui .worksheet-line-items-grid--footer .fi-fo-field-wrp,
.quote-worksheet-ui .worksheet-line-items-grid--footer .grid,
.quote-worksheet-ui .worksheet-line-items-grid--footer .grid.auto-cols-fr,
.quote-worksheet-ui .worksheet-line-items-grid--footer .grid.gap-y-2 {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.worksheet-line-items-grid.worksheet-line-items-grid--row .fi-fo-actions.flex.ws-cell.ws-cell--delete.worksheet-line-item-delete .flex.flex-wrap.items-center.justify-start {
  justify-content: center !important;
}

.quote-worksheet-ui .worksheet-line-items-add-action {
  display: flex !important;
  justify-content: flex-end !important;
  padding: .35rem .45rem .1rem !important;
  margin: 0 !important;
}

.quote-worksheet-ui .worksheet-line-items-add-action.more-item .flex.flex-wrap.justify-start {
  justify-content: flex-end !important;
  margin-right: 6px !important;
}

/* Labour: compact input table, no plain-text look. */
.quote-worksheet-ui [wire\:key*="labour"] .fi-fo-repeater-item,
.quote-worksheet-ui .fi-section:has([name*="labour"]) .fi-fo-repeater-item {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.quote-worksheet-ui .fi-section:has([name*="labour"]) .fi-fo-repeater-item-content > .grid,
.quote-worksheet-ui .fi-section:has([name*="labour"]) .fi-fo-repeater-item-content > div > .grid {
  display: grid !important;
  grid-template-columns: minmax(7rem, 1.25fr) minmax(4rem,.65fr) minmax(3.2rem,.5fr) repeat(4, minmax(4rem,.7fr)) !important;
  gap: .35rem !important;
  align-items: center !important;
  width: 100% !important;
  padding: .35rem 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
}

.quote-worksheet-ui .fi-section:has([name*="labour"]) .fi-fo-repeater-item-content > .grid > *,
.quote-worksheet-ui .fi-section:has([name*="labour"]) .fi-fo-repeater-item-content > div > .grid > * {
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

.quote-worksheet-ui .fi-section:has([name*="labour"]) .fi-input-wrp {
  min-height: 30px !important;
}

.quote-worksheet-ui .fi-section:has([name*="labour"]) input {
  min-height: 28px !important;
  font-size: .76rem !important;
  text-align: right !important;
}

.quote-worksheet-ui .fi-section:has([name*="labour"]) .fi-fo-repeater-item-content > .grid > :first-child input,
.quote-worksheet-ui .fi-section:has([name*="labour"]) .fi-fo-repeater-item-content > .grid > :nth-child(2) input {
  text-align: left !important;
}

/* Inclusions / Exclusions. */
.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-repeater-item {
  display: grid !important;
    grid-template-columns: 1.3rem 7rem 8.95rem 1rem minmax(0px, 1fr) 2.25rem !important;
  align-items: start !important;
  gap: .35rem !important;
  width: 100% !important;
  margin: 0 0 .45rem !important;
  padding: .45rem !important;
  border: 1px solid #edf2f7 !important;
  border-radius: .5rem !important;
  background: #f8fafc !important;
}
.choices[data-type*=select-one] .choices__button{
        margin-inline-end: 1.65rem !important;
        top: calc(50% - 0.7em) !important;
}
.inclusion-exclusion-repeater button.fi-icon-btn.relative.flex.items-center.justify-center.rounded-lg.outline-none.transition.duration-75.focus-visible\:ring-2.-m-2.h-9.w-9.fi-color-custom.text-custom-500.hover\:text-custom-600.focus-visible\:ring-custom-600.dark\:text-custom-400.dark\:hover\:text-custom-300.dark\:focus-visible\:ring-custom-500.fi-color-danger.fi-ac-action.fi-ac-icon-btn-action{
    margin-left:3px;
}
.choices__inner {
    &:has(.choices__button) {
        padding-inline-end: 2.8rem !important;
    }
}
.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-repeater-item-header {
  display: flex !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-repeater-item-content {
  display: contents !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-repeater-item-content > .grid,
.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-repeater-item-content > div > .grid {
  display: contents !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-repeater-item-content > .grid > *,
.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-repeater-item-content > div > .grid > * {
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .fi-input-wrp {
  min-height: 32px !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater input,
.quote-worksheet-ui .inclusion-exclusion-repeater .fi-input,
.quote-worksheet-ui .inclusion-exclusion-repeater .fi-select-input {
  min-height: 30px !important;
  font-size: .78rem !important;
}

/* Buttons. */
.quote-worksheet-ui .fi-btn,
.quote-worksheet-ui button.fi-btn {
  min-height: 32px !important;
  border-radius: .45rem !important;
  font-weight: 700 !important;
  font-size: .78rem !important;
  
}

.beedev-timesheet-filters-reset .beedev-timesheet-reset{
    background: #eff6ff;
    color: #000 !important;
    padding: 8px 20px;
    min-width: 125px;
    border-radius: 5px;
}
.beedev-timesheet-filters-reset .beedev-timesheet-reset span{
    color:#000 !important;
}
.beedev-timesheet-filters-reset .beedev-timesheet-reset span:hover, .beedev-timesheet-filters-reset .beedev-timesheet-reset:hover{
    text-decoration:none !important;
}
.beedev-timesheet-filters-reset .beedev-timesheet-reset span{
    text-decoration-line:none !important;
}
.quote-worksheet-ui .fi-btn svg,
.quote-worksheet-ui button.fi-btn svg{
    color: #fff !important;
}
.choices__placeholder.choices__item{
    color:#000 !important;
}
.beedev-timesheet-add-more-action{
    background:#000 !important;
    border-color:#000 !important;
    color:#fff !important;
}
.timesheet-manual-entries-repeater .fi-fo-repeater-item{
    padding:10px !important;
        box-shadow: 0px 0px 3px #c9c9c9 !important;
}
.timesheet-manual-entries-repeater .timesheet-entry-header-row .beedev-timesheet-entry-remove-button svg{
    color: #ff0000 !important;
}
.quote-worksheet-ui button.fi-btn.worksheet-section-remove-button svg, .quote-worksheet-ui .worksheet-section-remove-button.fi-btn svg{
     color: #000 !important;
}
.quote-worksheet-ui .fi-btn.worksheet-add-section-action svg, .quote-worksheet-ui button.fi-btn.worksheet-add-section-action svg{
     color: #fff !important;
}
.quote-worksheet-ui .worksheet-add-material-row-action,
.quote-worksheet-ui .worksheet-add-section-action,
.quote-worksheet-ui .worksheet-line-items-add-action .fi-btn,
.quote-worksheet-ui .worksheet-line-items-add-action .fi-icon-btn {
  background: #000 !important;
  color: #fff !important;
  
}

.quote-worksheet-ui .fi-icon-btn {
  width: 25px !important;
  height: 25px !important;
  border-radius: .45rem !important;
}
.quote-worksheet-ui .fi-icon-btn svg{
    font-size:12px !important;
    height:1.1rem;
    width:1.1rem;
}

/* Margin / section totals row. */
.quote-worksheet-ui .worksheet-section-body > .grid > .grid:last-child {
  display: grid !important;
  grid-template-columns: auto minmax(4.5rem,.45fr) minmax(5rem,.55fr) auto minmax(5rem,.55fr) minmax(5.5rem,.6fr) !important;
  gap: .45rem !important;
  align-items: center !important;
  padding-top: .2rem !important;
}

.quote-worksheet-ui .worksheet-section-body > .grid > .grid:last-child > * {
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

.quote-worksheet-ui .worksheet-section-body > .grid > .grid:last-child .fi-input-wrp {
  min-height: 30px !important;
}

.quote-worksheet-ui .worksheet-section-body > .grid > .grid:last-child input {
  min-height: 28px !important;
  text-align: right !important;
  font-variant-numeric: tabular-nums !important;
}
/* Only the Inclusions / Exclusions "Type" select */
.quote-worksheet-ui .inclusion-exclusion-repeater .ws-ie-cell--type .choices__inner {
    min-height: 31px !important;
    height: 31px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .ws-ie-cell--type .choices__list--single {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .ws-ie-cell--type .choices__item {
    font-size: 9px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
}

body:has(.quote-worksheet-ui) form.fi-form > .fi-fo-component-ctn {
    gap: 0px !important;
    row-gap: 0px !important;
}

/* Labour & Services - reduce only first column, keep everything on one line */
.quote-worksheet-ui .fi-fo-field-wrp:has(input[id*="labour"][id*="description"]) {
    grid-column: span 1 / span 1 !important;
}

.quote-worksheet-ui .fi-fo-field-wrp:has(input[id*="labour"][id*="plus_margin"]) {
    grid-column: span 2 / span 2 !important;
}

.quote-worksheet-ui .fi-input-wrp.transition .fi-input-wrp-prefix .text-sm{
    font-size: 10px !important;
}

.beedev-timesheet-list-content{
    margin-top:-10px !important;
}

@supports selector(:has(*)) {

    /* Target only the exact margin/grand-total row grid */
    .quote-worksheet-ui .worksheet-section-body
    > .fi-fo-component-ctn:has(input[id$="margin_rate"]):has(input[id$="margin_value"]):has(input[id$="subtotal"]):has(input[id$="grand_total"]) {
        --cols-default: repeat(1, minmax(0, 1fr)) !important;
        --cols-lg: repeat(12, minmax(0, 1fr)) !important;
        gap: 10px !important;
        align-items: center !important;
    }

    /* Margin @ label */
    .quote-worksheet-ui .worksheet-section-body
    > .fi-fo-component-ctn:has(input[id$="margin_rate"]):has(input[id$="grand_total"])
    > .col:nth-child(1) {
        --col-span-default: span 1 / span 1 !important;
        --col-span-lg: span 1 / span 1 !important;
    }

    /* Margin rate input */
    .quote-worksheet-ui .worksheet-section-body
    > .fi-fo-component-ctn:has(input[id$="margin_rate"]):has(input[id$="grand_total"])
    > .col:has(input[id$="margin_rate"]) {
        --col-span-default: span 1 / span 1 !important;
        --col-span-lg: span 2 / span 2 !important;
    }

    /* Margin value input */
    .quote-worksheet-ui .worksheet-section-body
    > .fi-fo-component-ctn:has(input[id$="margin_rate"]):has(input[id$="grand_total"])
    > .col:has(input[id$="margin_value"]) {
        --col-span-default: span 1 / span 1 !important;
        --col-span-lg: span 2 / span 2 !important;
    }

    /* Grand Total label */
    .quote-worksheet-ui .worksheet-section-body
    > .fi-fo-component-ctn:has(input[id$="margin_rate"]):has(input[id$="grand_total"])
    > .col:nth-child(4) {
        --col-span-default: span 1 / span 1 !important;
        --col-span-lg: span 1 / span 1 !important;
    }

    /* Subtotal input */
    .quote-worksheet-ui .worksheet-section-body
    > .fi-fo-component-ctn:has(input[id$="margin_rate"]):has(input[id$="grand_total"])
    > .col:has(input[id$="subtotal"]) {
        --col-span-default: span 1 / span 1 !important;
        --col-span-lg: span 2 / span 2 !important;
    }

    /* Grand total input */
    .quote-worksheet-ui .worksheet-section-body
    > .fi-fo-component-ctn:has(input[id$="margin_rate"]):has(input[id$="grand_total"])
    > .col:has(input[id$="grand_total"]) {
        --col-span-default: span 1 / span 1 !important;
        --col-span-lg: span 2 / span 2 !important;
    }

    /* Make inputs fill their new larger columns */
    .quote-worksheet-ui .worksheet-section-body
    > .fi-fo-component-ctn:has(input[id$="margin_rate"]):has(input[id$="grand_total"])
    .fi-input-wrp {
        width: 100% !important;
        max-width: 100% !important;
    }

    .quote-worksheet-ui .worksheet-section-body
    > .fi-fo-component-ctn:has(input[id$="margin_rate"]):has(input[id$="grand_total"])
    input {
        width: 100% !important;
        min-width: 0 !important;
    }


.worksheet-line-items-panel.wrksheet-cont .fi-fo-repeater-item-content.p-4{
    padding-top:0px !important;
    border:none !important;
}
.worksheet-sections-repeater .worksheet-quote-items-repeater ul > .grid.items-start {
    gap:3px !important;
}

@media screen and (max-width: 1500px) and (min-width: 1024px) {
    .fi-resource-timesheets .timesheet-job-project-label{
        font-size:0.55rem !important;
    }
}
   
 @media (max-width: 1023px) {
        .quote-worksheet-ui .worksheet-section-body
        > .fi-fo-component-ctn:has(input[id$="margin_rate"]):has(input[id$="grand_total"]) {
            --cols-default: repeat(1, minmax(0, 1fr)) !important;
            --cols-lg: repeat(1, minmax(0, 1fr)) !important;
        }

        .quote-worksheet-ui .worksheet-section-body
        > .fi-fo-component-ctn:has(input[id$="margin_rate"]):has(input[id$="grand_total"])
        > .col {
            --col-span-default: span 1 / span 1 !important;
            --col-span-lg: span 1 / span 1 !important;
        }
    }
}



@media (min-width: 768px) {
    .worksheet-section-item-label {
        grid-template-columns: minmax(10rem, 1.4fr) repeat(2, minmax(7rem, 1fr));
        align-items: center;
    }
}


/* Tablet/mobile: one column and readable stacked tables. */
@media (max-width: 1180px) {
  .quote-worksheet-ui .worksheet-sections-repeater:is(.grid):has(> .fi-fo-repeater-item),
  .quote-worksheet-ui .worksheet-sections-repeater > :is(ul,.grid):has(> li),
  .quote-worksheet-ui .worksheet-sections-repeater > :is(ul,.grid):has(> .fi-fo-repeater-item),
  .quote-worksheet-ui .worksheet-sections-repeater > div > :is(ul,.grid):has(> li),
  .quote-worksheet-ui .worksheet-sections-repeater > div > :is(ul,.grid):has(> .fi-fo-repeater-item),
  .quote-worksheet-ui .worksheet-sections-repeater > div > div > :is(ul,.grid):has(> li),
  .quote-worksheet-ui .worksheet-sections-repeater > div > div > :is(ul,.grid):has(> .fi-fo-repeater-item) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 700px) {
  body:has(.quote-worksheet-ui) main.fi-main,
  body:has(.quote-worksheet-ui) .fi-main {
    padding-left: .5rem !important;
    padding-right: .5rem !important;
  }

  .quote-worksheet-ui .fi-section-content,
  .quote-worksheet-ui > .fi-section-content,
  .quote-worksheet-ui > div > .fi-section-content {
    padding: .55rem !important;
  }

  .quote-worksheet-ui .worksheet-section-body > .grid > .grid:first-of-type,
  .quote-worksheet-ui .worksheet-section-body > .grid > div > .grid:first-of-type,
  .quote-worksheet-ui .fi-section:has([name*="labour"]) .fi-fo-repeater-item-content > .grid,
  .quote-worksheet-ui .fi-section:has([name*="labour"]) .fi-fo-repeater-item-content > div > .grid,
  .quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-repeater-item,
  .quote-worksheet-ui .worksheet-section-body > .grid > .grid:last-child,
  .quote-worksheet-ui .worksheet-inclusions-exclusions-grid,
  .quote-worksheet-ui .estimate-total-panel .estimate-total-summary-grid,
  .quote-worksheet-ui .estimate-total-panel .estimate-total-summary-grid--with-retention,
  .quote-worksheet-ui .estimate-total-panel .estimate-total-retention-group {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .quote-worksheet-ui .worksheet-line-items-grid--header {
    display: none !important;
  }

  .quote-worksheet-ui .worksheet-line-items-grid--row {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    gap: .45rem !important;
  }

  .quote-worksheet-ui .worksheet-line-items-grid--footer {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .45rem !important;
  }

  .quote-worksheet-ui .worksheet-line-items-grid--footer > .grid > :nth-child(1),
  .quote-worksheet-ui .worksheet-line-items-grid--footer > .grid > :nth-child(2),
  .quote-worksheet-ui .worksheet-line-items-grid--footer > .grid > :nth-child(3),
  .quote-worksheet-ui .worksheet-line-items-grid--footer > :nth-child(1),
  .quote-worksheet-ui .worksheet-line-items-grid--footer > :nth-child(2),
  .quote-worksheet-ui .worksheet-line-items-grid--footer > :nth-child(3),
  .quote-worksheet-ui .ws-foot--label,
  .quote-worksheet-ui .worksheet-line-items-grid--footer .ws-foot--total,
  .quote-worksheet-ui .worksheet-line-items-grid--footer .ws-foot--margin {
    grid-column: 1 / -1 !important;
  }
}

/* FINAL SAFE Estimate total layout — full width, scoped only to Jobs Worksheet */
.quote-worksheet-ui .estimate-total-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 12px !important;
    border: 1px solid #d7e1ec !important;
    border-radius: 0.6rem !important;
    background: #fff !important;
    overflow: hidden !important;
}

.quote-worksheet-ui .estimate-total-panel > .fi-section-header {
    min-height: 40px !important;
    padding: 0.6rem 0.75rem !important;
    border-bottom: 1px solid #d7e1ec !important;
}

.quote-worksheet-ui .estimate-total-panel .fi-section-content,
.quote-worksheet-ui .estimate-total-panel .fi-section-content-ctn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px !important;
    overflow: visible !important;
}

.quote-worksheet-ui .estimate-total-panel .estimate-total-summary-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
}

/* Filament renders an inner grid inside the custom class. Keep it full-width and let PHP column spans place rows. */
.quote-worksheet-ui .estimate-total-panel .estimate-total-summary-grid > .grid.fi-fo-component-ctn,
.quote-worksheet-ui .estimate-total-panel .estimate-total-summary-grid > .grid,
.quote-worksheet-ui .estimate-total-panel .estimate-total-summary-grid.fi-fo-component-ctn {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
    row-gap: 12px !important;
    align-items: center !important;
}

.quote-worksheet-ui .estimate-total-panel .estimate-total-summary-grid > *,
.quote-worksheet-ui .estimate-total-panel .estimate-total-summary-grid > .grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
}

.quote-worksheet-ui .estimate-total-panel .estimate-total-retention-group {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.quote-worksheet-ui .estimate-total-panel .estimate-total-retention-group > .grid.fi-fo-component-ctn,
.quote-worksheet-ui .estimate-total-panel .estimate-total-retention-group > .grid,
.quote-worksheet-ui .estimate-total-panel .estimate-total-retention-group.fi-fo-component-ctn {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 88px 150px !important;
    column-gap: 10px !important;
    row-gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
}

.quote-worksheet-ui .estimate-total-panel .estimate-total-retention-group > *,
.quote-worksheet-ui .estimate-total-panel .estimate-total-retention-group > .grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
}

.quote-worksheet-ui .estimate-total-panel .estimate-total-label-cell,
.quote-worksheet-ui .estimate-total-panel .estimate-total-label-cell--final {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-height: 36px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.quote-worksheet-ui .estimate-total-panel .estimate-total-label-cell--retention {
    justify-content: flex-start !important;
}

.quote-worksheet-ui .estimate-total-panel .estimate-total-label {
    display: block !important;
    max-width: 100% !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #0f172a !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

.quote-worksheet-ui .estimate-total-panel .estimate-total-rate,
.quote-worksheet-ui .estimate-total-panel .estimate-total-rate .fi-input-wrp {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
}

.quote-worksheet-ui .estimate-total-panel .estimate-total-retention-amount,
.quote-worksheet-ui .estimate-total-panel .estimate-total-retention-amount .fi-input-wrp {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
}

.quote-worksheet-ui .estimate-total-panel .estimate-total-amount,
.quote-worksheet-ui .estimate-total-panel .estimate-total-amount .fi-input-wrp {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
}

.quote-worksheet-ui .estimate-total-panel .fi-input-wrp {
    min-height: 36px !important;
    border: 1px solid #d7e1ec !important;
    border-radius: 0.45rem !important;
    background: #fff !important;
    overflow: hidden !important;
}

.quote-worksheet-ui .estimate-total-panel input,
.quote-worksheet-ui .estimate-total-panel .fi-input {
    min-height: 34px !important;
    font-size: 13px !important;
    text-align: right !important;
    font-variant-numeric: tabular-nums !important;
}

.quote-worksheet-ui .estimate-total-panel .estimate-total-amount--final input {
    font-weight: 700 !important;
}

@media (max-width: 900px) {
    .quote-worksheet-ui .estimate-total-panel .estimate-total-summary-grid > .grid.fi-fo-component-ctn,
    .quote-worksheet-ui .estimate-total-panel .estimate-total-summary-grid > .grid,
    .quote-worksheet-ui .estimate-total-panel .estimate-total-summary-grid.fi-fo-component-ctn {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 10px !important;
    }

    .quote-worksheet-ui .estimate-total-panel .estimate-total-summary-grid > .grid > *,
    .quote-worksheet-ui .estimate-total-panel .estimate-total-summary-grid > * {
        grid-column: 1 / -1 !important;
    }

    .quote-worksheet-ui .estimate-total-panel .estimate-total-retention-group > .grid.fi-fo-component-ctn,
    .quote-worksheet-ui .estimate-total-panel .estimate-total-retention-group > .grid,
    .quote-worksheet-ui .estimate-total-panel .estimate-total-retention-group.fi-fo-component-ctn {
        grid-template-columns: minmax(0, 1fr) 88px 150px !important;
    }

    .quote-worksheet-ui .estimate-total-panel .estimate-total-label-cell,
    .quote-worksheet-ui .estimate-total-panel .estimate-total-label-cell--final {
        justify-content: flex-start !important;
    }
}

@media (max-width: 560px) {
    .quote-worksheet-ui .estimate-total-panel .estimate-total-retention-group > .grid.fi-fo-component-ctn,
    .quote-worksheet-ui .estimate-total-panel .estimate-total-retention-group > .grid,
    .quote-worksheet-ui .estimate-total-panel .estimate-total-retention-group.fi-fo-component-ctn {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .quote-worksheet-ui .estimate-total-panel .estimate-total-rate,
    .quote-worksheet-ui .estimate-total-panel .estimate-total-rate .fi-input-wrp,
    .quote-worksheet-ui .estimate-total-panel .estimate-total-retention-amount,
    .quote-worksheet-ui .estimate-total-panel .estimate-total-retention-amount .fi-input-wrp,
    .quote-worksheet-ui .estimate-total-panel .estimate-total-amount,
    .quote-worksheet-ui .estimate-total-panel .estimate-total-amount .fi-input-wrp {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

.timesheet-manual-entries-repeater .fi-fo-repeater-item {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    padding: .85rem .9rem .65rem;
    margin-bottom: .75rem;
    background: #f8fafc;
}

.timesheet-manual-entries-repeater .fi-fo-repeater-item-content > .grid {
    align-items: end;
}

.timesheet-manual-entries-repeater .timesheet-entry-header-row {
    display: flex;
    justify-content: flex-end;
    margin: -0.15rem 0 0.35rem;
}

.timesheet-manual-entries-repeater .timesheet-entry-remove-button {
    flex-shrink: 0;
}

.timesheet-manual-entries-repeater > .fi-fo-repeater-actions {
    justify-content: flex-end;
}

/* Line Items — select dropdowns must not be clipped; Type must stay clickable */
.quote-worksheet-ui .worksheet-sections-repeater .fi-fo-repeater-item:has(.worksheet-line-items-table) {
    overflow: visible !important;
}

.quote-worksheet-ui .fi-section.worksheet-line-items-panel {
    overflow: visible !important;
}

.quote-worksheet-ui .fi-section.worksheet-line-items-panel .fi-section-content,
.quote-worksheet-ui .fi-section.worksheet-line-items-panel .fi-section-content-ctn {
    overflow: visible !important;
}

.quote-worksheet-ui .worksheet-quote-items-repeater .fi-fo-repeater-item {
    overflow: visible !important;
}

.quote-worksheet-ui .worksheet-line-items-table,
.quote-worksheet-ui .worksheet-line-items-grid--row {
    overflow: visible !important;
    align-items: center !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row .fi-fo-field-wrp:has(.choices) {
    position: relative !important;
    overflow: visible !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row .fi-input-wrp:has(.choices) {
    overflow: visible !important;
    max-width: 100% !important;
    min-height: 30px !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row .fi-input-wrp:has(.ws-cell--material) {
    height: auto !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row .fi-fo-field-wrp:has(.ws-cell--type),
.quote-worksheet-ui .worksheet-line-items-grid--row .ws-cell--type {
    position: relative !important;
    z-index: 4 !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row .fi-fo-field-wrp:has(.ws-cell--material),
.quote-worksheet-ui .worksheet-line-items-grid--row .ws-cell--material {
    position: relative !important;
    z-index: 3 !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row .choices {
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Line Items Type — single line, centered in row */
.quote-worksheet-ui .worksheet-line-items-grid--row .ws-cell--type .choices__inner,
.quote-worksheet-ui .worksheet-line-items-grid--row .fi-fo-field-wrp:has(.ws-cell--type) .choices__inner {
    overflow: hidden !important;
    min-height: 28px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-inline-end: 1.75rem !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row .ws-cell--type .choices__inner:has(.choices__button),
.quote-worksheet-ui .worksheet-line-items-grid--row .fi-fo-field-wrp:has(.ws-cell--type) .choices__inner:has(.choices__button) {
    padding-inline-end: 3.35rem !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row .ws-cell--type .choices__list--single,
.quote-worksheet-ui .worksheet-line-items-grid--row .ws-cell--type .choices__list--single .choices__item,
.quote-worksheet-ui .worksheet-line-items-grid--row .fi-fo-field-wrp:has(.ws-cell--type) .choices__list--single,
.quote-worksheet-ui .worksheet-line-items-grid--row .fi-fo-field-wrp:has(.ws-cell--type) .choices__list--single .choices__item {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 28px !important;
}

 .quote-worksheet-ui .worksheet-line-items-grid--row .fi-fo-field-wrp:has(.ws-cell--type) .choices__list--single .choices__item {
    font-size:9px;
}
/* Line Items Materials — multi-line full text */
.quote-worksheet-ui .worksheet-line-items-grid--row .ws-cell--material .choices__inner,
.quote-worksheet-ui .worksheet-line-items-grid--row .fi-fo-field-wrp:has(.ws-cell--material) .choices__inner {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    height: auto !important;
    min-height: 28px !important;
    padding-top: .25rem !important;
    padding-bottom: .25rem !important;
    padding-inline-end: 1.75rem !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row .ws-cell--material .choices__inner:has(.choices__button),
.quote-worksheet-ui .worksheet-line-items-grid--row .fi-fo-field-wrp:has(.ws-cell--material) .choices__inner:has(.choices__button) {
    padding-inline-end: 3.35rem !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row .ws-cell--material .choices__list--single,
.quote-worksheet-ui .worksheet-line-items-grid--row .ws-cell--material .choices__list--single .choices__item,
.quote-worksheet-ui .worksheet-line-items-grid--row .fi-fo-field-wrp:has(.ws-cell--material) .choices__list--single,
.quote-worksheet-ui .worksheet-line-items-grid--row .fi-fo-field-wrp:has(.ws-cell--material) .choices__list--single .choices__item {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
}

/* Inclusions/Exclusions — multi-line wrap in Items column */
.quote-worksheet-ui .inclusion-exclusion-repeater .choices__inner {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    height: auto !important;
    min-height: 28px !important;
    padding-top: .3rem !important;
    padding-bottom: .3rem !important;
    padding-inline-end: 1.75rem !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .choices__inner:has(.choices__button) {
    padding-inline-end: 3rem !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .choices__list--single {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    line-height: 1.25 !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .choices__list--single .choices__item {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.quote-worksheet-ui .inclusion-exclusion-repeater .choices__list--single:first-child .choices__item{
    line-height:2.5rem !important;
    font-size:9px;
}
.quote-worksheet-ui .worksheet-section-body .fi-fo-component-ctn .fi-fo-placeholder.text-sm.leading-6{
    font-size:11px !important;
}
.quote-worksheet-ui .worksheet-line-items-grid--row .choices[data-type*="select-one"] .choices__button,
.quote-worksheet-ui .inclusion-exclusion-repeater .choices[data-type*="select-one"] .choices__button {
    margin-inline-end: 1.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row .choices.is-open {
    z-index: 50 !important;
}

.quote-worksheet-ui .worksheet-line-items-grid--row .choices__list--dropdown,
.quote-worksheet-ui .inclusion-exclusion-repeater .choices__list--dropdown {
    z-index: 51 !important;
}

/* Inclusions / Exclusions — dropdown overflow + Type click above Items */
.quote-worksheet-ui .worksheet-inclusions-exclusions-grid .fi-section {
    overflow: visible !important;
}

.quote-worksheet-ui .worksheet-inclusions-exclusions-grid .fi-section .fi-section-content,
.quote-worksheet-ui .worksheet-inclusions-exclusions-grid .fi-section .fi-section-content-ctn {
    overflow: visible !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-repeater-item {
    overflow: visible !important;
    align-items: start !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-field-wrp:has(.choices) {
    position: relative !important;
    overflow: visible !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .fi-input-wrp:has(.choices) {
    overflow: visible !important;
    height: auto !important;
    min-height: 32px !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-field-wrp:has(.ws-ie-cell--type),
.quote-worksheet-ui .inclusion-exclusion-repeater .ws-ie-cell--type {
    position: relative !important;
    z-index: 4 !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-field-wrp:has(.ws-ie-cell--value),
.quote-worksheet-ui .inclusion-exclusion-repeater .ws-ie-cell--value {
    position: relative !important;
    z-index: 3 !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .choices {
    max-width: 100% !important;
    min-width: 0 !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .choices.is-open {
    z-index: 50 !important;
}

/* Inclusions / Exclusions — center delete icon when row is tall */
.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-repeater-item .fi-fo-actions.flex.h-full.flex-col {
    height: auto !important;
    align-self: center !important;
    justify-content: center !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-repeater-item .fi-fo-actions.justify-start {
    justify-content: center !important;
}

.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-repeater-item .fi-fo-actions .fi-ac-actions,
.quote-worksheet-ui .inclusion-exclusion-repeater .fi-fo-repeater-item .fi-fo-actions .fi-ac-actions > .flex {
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
}
