/* Compact estimate worksheet. Scoped so other forms keep their spacing. */
.modal.gc-estimate-modal{padding:12px;width:min(1560px,calc(100vw - 24px));scroll-padding-top:calc(var(--gc-topbar-height) - 18px);scroll-padding-bottom:70px}
.gc-estimate-modal .gc-estimate-header{top:-12px;margin:-12px -12px 8px;padding:9px 12px 7px}
.gc-estimate-modal .gc-estimate-topline h2{font-size:calc(17px * var(--ui-text-scale,1))}
.gc-estimate-modal .gc-estimate-navigation{margin-top:6px;padding-top:5px;gap:12px}
.gc-estimate-modal .gc-estimate-overview{padding:8px 10px}
.gc-estimate-modal .gc-estimate-help{margin:5px 0 0}
.gc-estimate-modal .gc-budget-row .notice{padding:5px 8px}
.gc-estimate-modal .gc-estimate-job{margin-top:10px;border-radius:5px}
.gc-estimate-modal .gc-job-heading,.gc-estimate-modal .gc-section-heading{padding:6px 8px;gap:10px;border-radius:3px 3px 0 0}
.gc-estimate-modal .gc-section-heading{top:calc(var(--gc-topbar-height) - 24px)}
.gc-estimate-modal .gc-job-number{padding:6px;font-size:11px}
.gc-estimate-modal .gc-job-identity,.gc-estimate-modal .gc-section-identity{gap:6px}
.gc-estimate-modal .gc-job-body{padding:0 6px 6px}
.gc-estimate-modal .gc-job-body>[data-job-custom]:empty{display:none}
.gc-estimate-modal .gc-job-body>[data-job-custom]:not(:empty){padding-top:6px}
.gc-estimate-modal .gc-estimate-section{margin-top:6px;border-radius:3px}
.gc-estimate-modal .gc-section-meta{padding:3px 8px;line-height:1.3}
#gcForm.gc-estimate-form .gc-job-identity>label,#gcForm.gc-estimate-form .gc-section-identity>label,#gcForm.gc-estimate-form .gc-pricing-control>label{display:flex;align-items:center;gap:6px;font-size:calc(12px * var(--ui-text-scale,1));white-space:nowrap;width:auto}
#gcForm.gc-estimate-form .gc-job-identity input,#gcForm.gc-estimate-form .gc-section-identity input{flex:1;width:0;margin:0;padding:5px 7px;font-size:calc(13px * var(--ui-text-scale,1));min-height:30px}
#gcForm.gc-estimate-form .gc-pricing-control input{width:58px;margin:0;padding:5px;font-size:calc(13px * var(--ui-text-scale,1));min-height:30px}
#gcForm.gc-estimate-form .gc-pricing-control>button{font-size:calc(11px * var(--ui-text-scale,1));min-height:30px;padding:5px 7px}
.gc-estimate-modal .gc-grid-scroll{overflow:auto;max-width:100%;scrollbar-width:auto}
.gc-estimate-modal .gc-item-grid{--gc-columns:32px minmax(240px,1fr) 76px 68px 108px 122px 128px 34px;min-width:808px}
.gc-estimate-modal .gc-manpower-grid{--gc-columns:32px minmax(180px,1fr) 65px 65px 76px 155px 76px 95px 116px 122px 34px;min-width:1116px}
.gc-estimate-modal .gc-cost-grid{font-size:calc(13px * var(--ui-text-scale,1));font-variant-numeric:tabular-nums}
#gcForm .gc-grid-heading,#gcForm .gc-cost-grid .gc-cost-row,#gcForm .gc-grid-total{display:grid;grid-template-columns:var(--gc-columns);gap:0;align-items:stretch;padding:0;margin:0}
#gcForm .gc-grid-heading{background:#eaf2fa;color:#224b6b;font-size:calc(11px * var(--ui-text-scale,1));font-weight:700;border-bottom:1px solid #b8ccdf}
#gcForm .gc-grid-heading>span{padding:5px 6px;border-right:1px solid #d4e0eb;line-height:1.3}
#gcForm .gc-grid-heading small{display:inline;font-size:10px;font-weight:400;margin-left:3px;color:#526b80}
#gcForm .gc-cost-grid .gc-cost-row{min-height:34px;border-bottom:1px solid #e0e8f0;position:static}
#gcForm .gc-cost-grid .gc-cost-row:nth-child(even){background:#f7fafd}
#gcForm .gc-cost-grid .gc-cost-row:focus-within{background:#edf6ff;box-shadow:inset 3px 0 #0070c0}
#gcForm .gc-cost-grid .gc-cost-row>label{display:flex;align-items:center;position:relative;margin:0;padding:2px 3px;border-right:1px solid #e0e8f0;min-width:0;grid-column:auto}
#gcForm .gc-cost-grid .gc-cost-row input,#gcForm .gc-cost-grid .gc-cost-row select{width:100%;min-width:0;margin:0;padding:4px 5px;border:1px solid transparent;background:transparent;border-radius:2px;font-size:inherit;line-height:1.3;min-height:29px}
#gcForm .gc-cost-grid .gc-cost-row input:hover,#gcForm .gc-cost-grid .gc-cost-row select:hover{border-color:#c5d8e9}
#gcForm .gc-cost-grid .gc-cost-row input:focus,#gcForm .gc-cost-grid .gc-cost-row select:focus{outline:2px solid #2785c8;outline-offset:-1px;border-color:#2785c8;background:white;box-shadow:none}
#gcForm .gc-cost-grid input[type=number]{text-align:right;appearance:textfield;-moz-appearance:textfield}
#gcForm .gc-cost-grid input[type=number]::-webkit-inner-spin-button,#gcForm .gc-cost-grid input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#gcForm .gc-cost-grid .gc-row-number{position:static;align-self:stretch;padding:7px 2px;color:#566d80;border-right:1px solid #e0e8f0;font-size:11px}
#gcForm .gc-cost-grid output{display:flex;align-items:center;justify-content:flex-end;padding:5px 7px;min-width:0;overflow-wrap:anywhere;line-height:1.4;border-right:1px solid #e0e8f0}
#gcForm .gc-numeric{text-align:right}.gc-with-profit{color:#174f78;background:#edf5fb55;font-weight:650}
#gcForm .gc-delete-cell{display:flex;justify-content:center;align-items:center}
#gcForm .gc-cost-grid .gc-remove-row{width:28px;min-height:28px;height:28px;padding:0;border:0;border-radius:3px;background:transparent;color:#8d5860;font-size:20px;line-height:1;grid-column:auto}
#gcForm .gc-cost-grid .gc-remove-row:hover{background:#ffe8e8;color:#a52222}
#gcForm .gc-grid-total{background:#eaf3fa;border-top:1px solid #bdd3e5;font-size:calc(12px * var(--ui-text-scale,1));font-weight:700;min-height:33px}
#gcForm .gc-grid-total>strong{grid-column:1 / -4;padding:6px 8px;align-self:center}
#gcForm .gc-section-footer{padding:4px 7px;border-top:1px solid #d7e3ee}
#gcForm .gc-row-actions{gap:6px}
#gcForm .gc-row-actions button{font-size:calc(11px * var(--ui-text-scale,1));padding:4px 7px;min-height:28px}
#gcForm .gc-add-section{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:7px 0}
#gcForm .gc-add-section>span{display:inline;margin:0}
#gcForm .gc-add-section button{padding:4px 6px;font-size:11px;min-height:28px}
#gcForm .gc-job-summary{padding:7px 9px}
#gcForm .gc-job-summary h3{margin-bottom:4px;font-size:12px}
#gcForm .gc-job-totals{gap:2px 14px;font-size:12px;line-height:1.4}
#gcForm .gc-job-totals>div{padding:3px 0}
#gcForm .gc-job-totals>p{margin:2px 0;font-size:13px}
#gcForm .gc-new-job{padding:8px 0}
.gc-estimate-modal .gc-sticky-bottom{bottom:-12px;margin:8px -12px -12px;padding:8px 12px}
.gc-estimate-modal .gc-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.gc-estimate-modal .gc-job-heading,.gc-estimate-modal .gc-section-heading{grid-template-columns:minmax(0,1fr);gap:4px}.gc-estimate-modal .gc-pricing-control{justify-self:end}.gc-estimate-modal .gc-estimate-navigation{gap:8px}.gc-estimate-modal .gc-budget-row{grid-template-columns:1fr}}
@media(max-width:640px){.modal.gc-estimate-modal{padding:8px;width:calc(100vw - 12px);scroll-padding-top:calc(var(--gc-topbar-height) - 14px)}.gc-estimate-modal .gc-estimate-header{top:-8px;margin:-8px -8px 6px;padding:8px}.gc-estimate-modal .gc-section-heading{top:calc(var(--gc-topbar-height) - 20px)}.gc-estimate-modal .gc-sticky-bottom{bottom:-8px;margin:8px -8px -8px;padding:8px}.gc-estimate-modal .gc-estimate-navigation{display:block}.gc-estimate-modal .gc-jump{margin-top:4px}.gc-estimate-modal .gc-job-body{padding:0 3px 4px}.gc-estimate-modal .gc-estimate-overview{padding:6px}.gc-estimate-modal .gc-section-meta{font-size:10px}.gc-estimate-modal .gc-grid-scroll:focus-visible{outline:2px solid #2785c8;outline-offset:-2px}}
