.two-column-form{grid-template-columns:1fr 1fr}
.document-record-link{color:var(--g900);text-decoration:none}
.document-record-link:hover{text-decoration:underline}
.contact-setup{margin-bottom:22px}
@media(max-width:760px){.two-column-form{grid-template-columns:1fr}.two-column-form .span-2{grid-column:auto}}
.a4-document .document-letterhead{margin:0 -13mm;padding:3mm 13mm 7mm;background:#f7f9f8}.a4-document .document-divider{margin:0 -13mm}.a4-document .document-divider i{margin-left:13mm;width:30mm}.a4-document .document-footer{left:0;right:0;padding:0 13mm;background:#f3f7f5}.a4-document .quote-title{padding-top:4mm}.a4-document .quote-meta{padding:3mm 0 5mm}.a4-document .quote-terms{margin-top:4mm}.a4-document .acceptance{margin-top:4mm}
.add-entry-control{padding:14px 16px;background:var(--paper2);border-top:1px solid var(--line)}.add-entry-control .button{width:100%}.collapsed-entry,.add-setting[hidden]{display:none!important}.entry-form-actions{display:flex;gap:8px;align-items:center}
.adjustment-grid{grid-template-columns:minmax(0,2fr) minmax(220px,1fr)!important;gap:16px 18px}.adjustment-grid label{margin:0}.adjustment-grid textarea,.adjustment-grid input{height:48px;min-height:48px}.adjustment-grid textarea{resize:vertical;padding-top:13px}.adjustment-amount input{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}@media(max-width:760px){.adjustment-grid{grid-template-columns:1fr!important}.adjustment-detail,.adjustment-amount{grid-column:1!important}}
.main label:has(>input[required],>select[required],>textarea[required]){display:grid;grid-template-columns:max-content 1fr}.main label:has(>input[required],>select[required],>textarea[required])::after{content:"*";grid-column:2;grid-row:1;justify-self:start;align-self:center;margin-left:5px;color:#b42318;font-size:11px;font-weight:900;line-height:1}.main label:has(>input[required],>select[required],>textarea[required])>input,.main label:has(>input[required],>select[required],>textarea[required])>select,.main label:has(>input[required],>select[required],>textarea[required])>textarea{grid-column:1/-1}.main label:has(>input[required],>select[required],>textarea[required])>em{display:none}.main label>em{color:#b42318;font-size:11px;font-style:normal;font-weight:900}
.a4-document .acceptance p{margin-bottom:12mm}.a4-document .acceptance>div{grid-template-columns:2.4fr .8fr 1.1fr;margin-top:0}.a4-document .document-footer{height:16mm;justify-content:center;text-align:center;padding:1.5mm 13mm 3mm;line-height:1.25}.a4-document .document-footer div{width:100%}.a4-document .document-footer span{display:inline}.a4-document .document-footer span+span:before{content:"  •  ";color:#a87925}.project-location{color:var(--soft)}
.a4-document .document-footer strong{margin-bottom:3px;line-height:1.2}
.pdf-preview{width:100%;height:calc(135vh - 210px);min-height:1080px;margin:0;background:#525659;box-shadow:0 18px 45px rgba(19,43,34,.14)}
.pdf-preview iframe{display:block;width:100%;height:100%;border:0;background:#525659}
.items-table .item-row{grid-template-columns:minmax(210px,2fr) minmax(130px,1fr) 90px 105px 105px 120px 34px!important}
@media(max-width:1000px){.items-table .item-row{grid-template-columns:1fr 1fr!important}.items-table .item-row>input:first-child{grid-column:span 2}.pdf-preview{height:100vh;min-height:760px}}
.customer-details .detail-address{margin-top:18px;padding-top:16px;border-top:1px solid #dbe3df}.customer-details .detail-address small,.project-card-head small,.project-scope small{display:block;color:#64776e;font-size:11px;text-transform:uppercase;letter-spacing:.08em}.customer-project{border:1px solid #cddbd4;border-left:4px solid #1d5542;border-radius:10px;padding:20px;margin:14px 0;background:#fff}.project-card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.project-card-head h3{margin:3px 0 0}.project-scope{border-top:1px solid #e0e6e3;margin-top:16px;padding-top:14px}.inline-create{margin-top:16px}.inline-create>summary{cursor:pointer;list-style:none;width:max-content}.inline-create form{margin-top:16px;padding:18px;background:#f7faf8;border:1px solid #d8e3dd;border-radius:10px}.project-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;margin:16px 0}.gallery-item{border:1px solid #d7e0dc;border-radius:10px;overflow:hidden;background:#fff}.gallery-item>a{display:block;background:#edf3f0;aspect-ratio:4/3}.gallery-item img{width:100%;height:100%;object-fit:cover}.gallery-item>div{padding:12px}.gallery-item strong,.gallery-item small{display:block}.gallery-item small{color:#687a71;margin:4px 0 8px}.attach-letterhead{display:flex;gap:8px;align-items:center}.attach-letterhead select{min-width:180px;height:42px}.attach-letterhead .button{height:42px;white-space:nowrap;padding-top:0;padding-bottom:0}.blank-page-download{display:flex;align-items:center;gap:12px;padding:18px 24px}.blank-page-download label{display:block;white-space:nowrap;font-size:12px}.blank-page-download input{width:80px;height:42px}.blank-page-download small{color:var(--soft);white-space:nowrap}.blank-page-download .button{height:42px;margin-left:auto;white-space:nowrap}@media(max-width:900px){.blank-page-download{flex-wrap:wrap}.blank-page-download small{white-space:normal}.blank-page-download .button{margin-left:0}}
.a4-document .document-identity>svg{transform:translateY(.8mm)}
.project-card-actions{display:flex;align-items:flex-start;gap:10px;margin-top:16px}.project-card-actions>.inline-create{margin-top:0}.project-card-actions>.inline-create>summary{width:auto}.project-card-actions>.inline-create[open]{width:100%}.project-card-actions>.inline-create[open]+form{display:none}
.category-company_legal{grid-column:1/-1}.category-company_legal .setting-list{display:grid;grid-template-columns:1fr 1fr}.category-company_legal .setting-row{align-content:start}.category-company_legal .setting-row:nth-of-type(odd){border-right:1px solid var(--line)}@media(max-width:900px){.category-company_legal .setting-list{grid-template-columns:1fr}.category-company_legal .setting-row:nth-of-type(odd){border-right:0}}
.project-anchor{display:block;position:relative;top:-24px;visibility:hidden;scroll-margin-top:24px}.project-anchor:target+article{border-color:#c9993c;box-shadow:0 0 0 3px rgba(201,153,60,.18)}
.record-grid.record-section>.table-card:first-child{max-height:520px;overflow-y:auto;scrollbar-gutter:stable}.record-grid.record-section>.table-card:first-child .card-head{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #e0e6e3}
.search>span{top:50%;width:18px;height:18px;display:grid;place-items:center;transform:translateY(-50%);pointer-events:none}.search>span svg{display:block;width:17px;height:17px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.dashboard-stat{display:flex;align-items:center;gap:15px;min-width:0;padding:20px;background:#fff;border:1px solid var(--line);border-radius:13px;color:inherit;text-decoration:none;box-shadow:0 1px 2px rgba(19,35,28,.02);transition:.18s ease}.dashboard-stat[href]:hover{border-color:#b8cec3;transform:translateY(-1px);box-shadow:0 10px 28px rgba(19,43,34,.07)}.dashboard-stat-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:11px}.dashboard-stat-icon.green{background:var(--g50);color:var(--g600)}.dashboard-stat-icon.amber{background:#fff4db;color:#a56b12}.dashboard-stat-icon.soft{background:#edf3f0;color:var(--g700)}.dashboard-stat-icon svg,.module-symbol svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.dashboard-stat>span:last-child{min-width:0}.dashboard-stat small,.dashboard-stat strong,.dashboard-stat em{display:block}.dashboard-stat small{color:var(--soft);font-size:10px}.dashboard-stat strong{margin:2px 0;font:700 24px Poppins;color:var(--ink)}.dashboard-stat strong.money{font-size:17px;white-space:nowrap}.dashboard-stat em{color:var(--soft);font-size:10px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-modules{display:grid;grid-template-columns:1.5fr .75fr .75fr;gap:18px;margin:22px 0}.dashboard-module{position:relative;display:flex;gap:20px;min-width:0;padding:26px;background:#fff;border:1px solid var(--line);border-radius:14px;color:inherit;text-decoration:none;overflow:hidden}.primary-module{align-items:center;background:linear-gradient(135deg,#fff 68%,#eef5f1)}.primary-module:after{content:"";position:absolute;right:-50px;top:-70px;width:160px;height:160px;border:24px solid rgba(34,81,62,.06);border-radius:50%}.module-symbol{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:12px;background:var(--g700);color:#fff}.module-symbol.pale{background:var(--g50);color:var(--g600)}.module-symbol.gold{background:#fff4db;color:#a56b12}.dashboard-module h2{font-size:21px}.dashboard-module h3{font-size:16px}.dashboard-module p{margin:6px 0 0;font-size:12px;line-height:1.55}.compact-module{display:block;transition:.18s ease}.compact-module:hover{border-color:#b8cec3;transform:translateY(-1px);box-shadow:0 10px 28px rgba(19,43,34,.07)}.compact-module .module-symbol{margin-bottom:20px}.compact-module strong{display:block;margin-top:18px;color:var(--g600);font-size:12px}.dashboard-recent{margin-top:0}@media(max-width:1150px){.dashboard-stats{grid-template-columns:repeat(2,1fr)}.dashboard-modules{grid-template-columns:1fr 1fr}.primary-module{grid-column:1/-1}}@media(max-width:700px){.dashboard-stats,.dashboard-modules{grid-template-columns:1fr}.primary-module{grid-column:auto}.dashboard-head{display:block}.dashboard-head .button{margin-top:18px}.dashboard-module{padding:22px}}

/* Mobile application shell and responsive controls */
.mobile-brand,.sidebar-close,.sidebar-backdrop{display:none}
@media(max-width:900px){
body.nav-open{overflow:hidden}.app-shell{display:block;min-width:0}.main{width:100%;min-width:0}.sidebar{display:flex;left:0;right:auto;width:min(82vw,310px);padding:22px 18px;transform:translateX(-105%);transition:transform .22s ease;z-index:40;box-shadow:18px 0 48px rgba(4,23,17,.25)}.nav-open .sidebar{transform:translateX(0)}.sidebar-close{display:grid;place-items:center;position:absolute;top:13px;right:12px;width:38px;height:38px;border:0;border-radius:8px;background:rgba(255,255,255,.08);color:#fff;font:400 28px/1 Inter;cursor:pointer}.sidebar-backdrop{position:fixed;inset:0;z-index:35;border:0;background:rgba(8,26,20,.55);opacity:0;pointer-events:none;transition:opacity .22s ease}.nav-open .sidebar-backdrop{display:block;opacity:1;pointer-events:auto}.sidebar .brand{padding-right:42px}.sidebar .nav{margin-top:32px}.sidebar .nav a{min-height:48px;padding:12px 14px}.topbar{height:64px;padding:0 16px;gap:10px;z-index:30}.mobile-menu{display:grid;place-items:center;flex:none;width:40px;height:40px;border:1px solid #d5ded9;border-radius:9px;background:#fff;color:var(--g800);cursor:pointer}.mobile-menu svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.mobile-brand{display:flex;align-items:center;gap:8px;min-width:0;color:var(--g900);text-decoration:none;font:700 13px Poppins}.mobile-brand svg{width:27px;height:31px;flex:none;fill:none;stroke:var(--g600);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.mobile-brand svg .gold{stroke:#c9993c}.secure-pill{margin-left:auto;font-size:0;padding:0;width:10px;height:10px;background:var(--g600);box-shadow:0 0 0 4px var(--g50)}.top-actions{display:none}.page{width:100%;max-width:none;padding:22px 16px 36px;overflow:hidden}.page-head,.page-head.compact{align-items:flex-start;gap:14px}.page-head h1{font-size:25px;line-height:1.18}.page-head p{font-size:13px;line-height:1.5}.page-head .preview-actions{justify-content:flex-start}.toolbar{flex-wrap:wrap;padding:14px}.toolbar .search{flex:1 0 100%;width:100%}.toolbar>.button,.toolbar>select{flex:1}.table-card{max-width:100%}.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-wrap table{min-width:720px}.card-head{padding:17px 16px;gap:12px}.form-card{padding:20px 16px}.document-form{width:100%;max-width:none}.form-actions,.preview-actions,.row-actions,.project-card-actions,.feature-actions{flex-wrap:wrap}.form-actions .button{flex:1 1 145px}.preview-actions .button,.preview-actions form{flex:1 1 auto}.preview-actions form .button{width:100%}.issue-confirm{align-items:stretch;flex-direction:column;margin-bottom:16px}.issue-confirm .button{width:100%}.workflow{padding:13px 12px;overflow-x:auto}.workflow i{min-width:18px;margin:0 8px}.step{flex:none}.setup-card,.customer-project{min-width:0}.setting-row{grid-template-columns:1fr!important;padding:14px}.setting-actions{justify-content:flex-start;flex-wrap:wrap}.setting-actions .button{flex:1 1 auto}.project-card-head{gap:12px;flex-direction:column}.project-card-actions>.inline-create,.project-card-actions>.button{flex:1 1 150px}.project-card-actions>.inline-create>summary{width:100%}.project-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.attachment-form{padding:14px}.record-row{align-items:flex-start;padding:14px 16px}.record-row b{white-space:nowrap}.blank-page-download{padding:15px;gap:10px}.blank-page-download label{flex:1 1 auto}.blank-page-download input{width:70px}.blank-page-download small{order:4;flex:1 0 100%}.attach-letterhead{flex-wrap:wrap;width:100%}.attach-letterhead select{flex:1 1 170px;min-width:0}.attach-letterhead .button{flex:1 1 130px}.pdf-preview{height:78vh;min-height:620px}.login-panel{padding:22px 16px}.login-card{padding:28px 22px}
}
@media(max-width:620px){.page-head,.page-head.compact{display:block}.page-head>.button,.page-head>.preview-actions{margin-top:16px;width:100%}.dashboard-stats{gap:12px}.dashboard-stat{padding:16px}.dashboard-stat strong{font-size:21px}.dashboard-module{display:block;padding:18px}.dashboard-module .module-symbol{margin-bottom:16px}.dashboard-module h2{font-size:19px}.feature-card,.coming-card{padding:22px 18px}.feature-actions .button,.feature-actions .text-link{flex:1 1 100%;text-align:center}.items-table .item-row{grid-template-columns:1fr!important}.items-table .item-row>input:first-child{grid-column:auto}.item-title{flex-wrap:wrap}.item-title .add-item{width:100%}.draft-total{justify-content:space-between;gap:12px}.adjustment-grid{gap:13px!important}.project-gallery{grid-template-columns:1fr 1fr}.pdf-preview{height:72vh;min-height:560px}}
@media(max-width:390px){.mobile-brand span{font-size:12px}.page{padding-left:12px;padding-right:12px}.project-gallery{grid-template-columns:1fr}}

.a4-document .document-watermark{opacity:.045!important}.a4-document .document-watermark img{display:block;width:58mm;height:58mm;object-fit:contain}

/* Approved Margalla Fencing brand assets */
.sidebar .brand{display:block;width:100%}.brand-logo{display:block;width:100%;height:auto;object-fit:contain}.brand-logo-light{max-width:205px;margin:0 auto}.mobile-brand img{display:block;width:142px;max-height:38px;object-fit:contain;object-position:left center}.document-identity{display:block}.document-identity img{display:block;width:72mm;max-width:100%;height:auto;transform:translateY(-1mm)}.document-watermark{opacity:.055;color:transparent}.document-watermark img{display:block;width:58mm;height:58mm;object-fit:contain}@media(max-width:900px){.sidebar .brand{padding-right:42px}.brand-logo-light{max-width:210px;margin:0}.mobile-brand img{width:132px}.document-letterhead{align-items:center}.document-identity img{width:58mm}}@media(max-width:430px){.mobile-brand img{width:118px}.document-identity img{width:52mm}}
