/* Shared production shell, matched to the approved 8765 design. */
.app-sidebar nav{overflow-y:auto;min-height:0;flex:1;align-content:start;scrollbar-width:thin;margin-bottom:20px}.sidebar-section,.sidebar-group{min-width:0}.sidebar-section>summary{display:flex;align-items:center;gap:12px;padding:12px 10px;min-height:46px;cursor:pointer;font-size:13px;font-weight:600;list-style:none;color:var(--navy)}.sidebar-section>summary::-webkit-details-marker{display:none}.nav-chevron{margin-inline-start:auto}.sidebar-section[open]>summary .nav-chevron{transform:rotate(90deg)}.sidebar-submenu{border-inline-start:1px solid var(--line);margin-inline-start:18px;padding-inline-start:10px}.sidebar-submenu a{display:flex;align-items:center;min-height:44px;padding:8px;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.sidebar-submenu a[aria-current=page]{background:#edf2f5;color:var(--navy);font-weight:600}.sidebar-group>summary{cursor:pointer;padding:10px 4px;min-height:44px;font-size:12px;font-weight:600;line-height:1.6}.sidebar-group>a{padding-inline-start:14px}.sidebar-account{flex-shrink:0}.menu-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:28px}.menu-directory h3{font-size:12px;color:var(--muted);margin-top:24px}.menu-directory-links{border-top:1px solid var(--line)}.menu-directory-links>a{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:48px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.menu-directory-links small{color:var(--muted);flex-shrink:0}.app-sidebar nav{margin-top:25px!important}.app-sidebar{padding-inline:16px!important}
.sidebar-signout{display:flex;align-items:center;padding:8px 0!important;color:var(--muted);font-size:12px!important}.mobile-account{display:none}.client-preview[aria-disabled=true]{color:var(--muted)}.working-site select:disabled{opacity:1;color:var(--muted)}
#update-notice{z-index:40;inset-inline-start:244px}.entry-panel>section{margin-bottom:0}
@media(max-width:1100px){#update-notice{inset-inline-start:210px}}
@media(max-width:800px){#update-notice{inset-inline-start:20px}}
@media(max-width:800px){.mobile-account{display:block;margin:0 22px 100px;width:fit-content}.mobile-account>summary{gap:8px}.mobile-account .account-popover{top:auto;bottom:100%;inset-inline-start:0;inset-inline-end:auto}}
:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;--paper:#f8f9fa;--ink:#20262c;--muted:#67717b;--line:#dfe3e6;--navy:#213b52}
body{font-size:14px}h1{font-size:27px;font-weight:650;letter-spacing:-.6px}h2{font-size:17px;font-weight:600;letter-spacing:-.2px}a{text-decoration:none}a:hover{text-decoration:underline}.ui-icon{width:20px;height:20px;flex-shrink:0}button,.button{font-size:13px;font-weight:500;min-height:44px;border-radius:3px}.button{gap:9px;justify-content:center}.button .ui-icon{width:17px;height:17px}input,select,textarea{max-width:100%;font-size:14px}label{font-size:12px}small,.muted{font-size:12px}.form-grid>*{min-width:0}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}:focus-visible{outline:3px solid #b77a3c;outline-offset:3px}
.app-layout{padding-inline-start:224px}.app-sidebar{display:flex;position:fixed;inset-inline-start:0;top:0;bottom:0;width:224px;padding:32px 22px;background:#fff;border-inline-end:1px solid var(--line);flex-direction:column;z-index:20}.wordmark,.app-sidebar .wordmark{font-size:24px;font-weight:700;letter-spacing:-1px}.wordmark:hover{text-decoration:none}.app-sidebar nav{display:grid;gap:4px;margin-top:43px}.app-sidebar nav>a{display:flex;align-items:center;gap:13px;min-height:46px;padding:10px 12px;border-inline-start:2px solid transparent;color:#717b72;font-size:13px;font-weight:500}.app-sidebar nav>a>span{font-size:inherit;width:auto;text-align:start}.app-sidebar nav .ui-icon{width:18px;height:18px}.app-sidebar nav>a:hover{background:#f3f5f6;text-decoration:none}.app-sidebar nav>[aria-current]{background:#f3f5f6;border-inline-start-color:var(--navy);color:var(--navy);font-weight:600}.sidebar-account{margin-top:auto;border-top:1px solid var(--line);padding-top:22px;font-size:12px;overflow-wrap:anywhere}.sidebar-account small{font-size:10px}.sidebar-account>a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;margin:4px 0 0}.app-layout>.workspace-nav{display:none}
.app-layout>header.app-topbar{height:72px;min-height:72px;padding:0 42px;display:flex;flex-wrap:nowrap;gap:16px;background:#fff}.app-layout>header>.wordmark{display:none}.app-layout .header-tools{display:flex;flex:0 0 auto;width:auto;align-items:center;justify-content:flex-end;gap:16px;margin-inline-start:auto;flex-wrap:nowrap}.working-site{display:flex;align-items:center;gap:14px;order:0;flex:0 1 auto;min-width:0;margin:0}.working-site label,.current-site>span{font-size:12px;font-weight:400;white-space:nowrap;color:var(--muted)}.working-site select{margin:0;max-width:250px!important;width:auto;min-width:0;border:0;background:transparent;font-size:14px;font-weight:500}.current-site a{color:var(--ink);font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.header-tools select{font-size:12px;min-height:44px;max-width:100px;margin:0;border:1px solid var(--line);border-radius:3px;background:#fff}.client-preview{display:inline-flex;align-items:center;min-height:44px;font-size:12px;white-space:nowrap}
#connection-status,.app-layout #connection-status{position:static;inset:auto;padding:0;background:none;display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;text-align:start;max-width:240px}.connection:before{content:'';width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#54734f}.connection.offline:before{background:#97541d}.account-menu{position:relative}.account-menu>summary{display:flex;align-items:center;justify-content:center;padding:0;min-width:44px;min-height:44px;color:var(--muted);list-style:none}.account-menu>summary::-webkit-details-marker{display:none}.account-popover{position:absolute;inset-inline-end:0;top:calc(100% + 10px);width:220px;max-width:calc(100vw - 36px);padding:18px;background:white;border:1px solid var(--line);z-index:50;box-shadow:0 8px 24px #20262c12}.account-popover strong{font-size:13px;overflow-wrap:anywhere}.account-popover a,.account-popover button{display:flex;align-items:center;width:100%;min-height:44px;font-size:12px;text-align:start;padding:10px 0}.account-popover form{margin-top:10px;border-top:1px solid var(--line)}
.app-layout>main{max-width:1320px;margin:0 auto;padding:30px 42px 50px;min-height:calc(100dvh - 72px)}.page-heading{align-items:flex-end;gap:18px;margin-bottom:24px}.page-heading h1{margin:0}.page-heading p{margin:6px 0 0;font-size:12px}.date-label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;white-space:nowrap}.date-label .ui-icon{width:15px;height:15px}.section-heading{margin:0 0 9px;min-height:44px;gap:12px}.section-heading h2{margin:0}.section-heading a,.section-heading button{font-size:12px;font-weight:400}.section-heading .muted{font-size:11px}section{margin-bottom:29px}.record{padding:17px 0;font-size:13px}.record strong{font-weight:500}.record small{font-size:11px;margin-top:5px}.record a{min-height:44px;display:inline-flex;align-items:center}.record>span{min-width:0}.schedule{margin-top:28px}.contract-revision{padding:18px 0}.contract-revision p{font-size:12px}.project-facts dd{font-size:18px}.notice{font-size:12px;padding:11px 13px}
.dashboard-site{margin-bottom:29px}.site-heading{padding:15px 0;gap:14px}.site-heading h2{font-size:14px;font-weight:600}.site-heading p{font-size:11px;margin:6px 0 0}.site-heading>a{font-size:12px}.dashboard-stats{background:white;border-block:1px solid var(--line);padding:22px 0;gap:0;grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-stats>div{padding:0 24px;border-inline-end:1px solid var(--line)}.dashboard-stats>div:last-child{border-inline-end:0}.dashboard-stats span{font-size:12px}.dashboard-stats strong{font-size:25px;font-weight:600;letter-spacing:-.7px;margin:9px 0 7px;line-height:1.2}.dashboard-stats small{font-size:11px}.dashboard-stats .currency{font-size:12px;font-weight:500;color:var(--muted);letter-spacing:0;margin-inline-end:4px}.dashboard-empty{padding:22px 0;border-block:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.dashboard-empty h2{margin:0}.dashboard-empty p{margin:7px 0 0}.dashboard-empty .button{flex-shrink:0}
.dashboard-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);background:white;gap:0}.dashboard-actions>a,.dashboard-actions>button{display:flex;align-items:center;gap:12px;min-height:68px;padding:13px 17px;border:0;border-inline-end:1px solid var(--line);border-radius:0;background:#fff;color:var(--ink);text-align:start}.dashboard-actions>:last-child{border-inline-end:0}.dashboard-actions>a:hover,.dashboard-actions>button:hover{background:#f3f6f8;text-decoration:none}.dashboard-actions .ui-icon{width:19px;height:19px;color:var(--navy)}.dashboard-actions strong{font-size:13px;font-weight:500}.dashboard-actions small{font-size:11px;margin-top:5px;line-height:1.5}.dashboard-actions>[disabled]{opacity:1;color:var(--muted)}.dashboard-columns{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:32px}.dashboard-empty-line{border:1px dashed #ccd4ce;padding:42px 18px;text-align:center;font-size:12px;margin:0;min-height:134px}.dashboard-empty-line strong{display:block;color:var(--ink);font-size:14px;margin-bottom:6px}.activity{display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line);padding:17px 0}.activity>.ui-icon{width:18px;height:18px;color:var(--muted)}.activity>div{min-width:0;flex:1}.activity strong{font-size:13px;font-weight:500;display:block;overflow-wrap:anywhere}.activity small{font-size:11px}.activity .activity-status{text-align:end;flex:0 0 auto;font-size:12px}.stage-row{padding:16px 0;border-bottom:1px solid var(--line)}.stage-row strong{font-size:13px;font-weight:500}.stage-line{display:flex;justify-content:space-between;gap:12px}.progress-track{height:3px;background:#e6e9eb;overflow:hidden;margin-top:12px}.progress-track>span{display:block;height:100%;background:#708695}.work-note{background:#f3f1ed;border-inline-start:2px solid #ae9268;color:#796448;font-size:12px;line-height:1.7;padding:11px 13px;margin:18px 0 0}.project-actions{display:flex;flex-wrap:wrap;gap:12px}.project-actions .button{padding:12px 17px;background:white;border-color:var(--line)}.private-label{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted)}.private-label .ui-icon{width:12px;height:12px}.actual-cost-summary{padding:12px 0;margin:22px 0;border-bottom:0}.actual-cost-summary .project-facts{margin:12px 0}.actual-cost-summary .project-facts dd{font-size:20px}
.site-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.project-card{min-width:0;border:1px solid var(--line);background:#fff;padding:23px;border-radius:3px}.project-card h2{font-size:19px;margin:16px 0 6px}.project-card p{font-size:12px;color:var(--muted);margin:6px 0}.card-overline{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted)}.project-card .actual-cost-summary{margin-bottom:0}.project-card .actual-cost-summary .project-facts dd{font-size:16px}.empty{padding:42px 18px;text-align:center;border:1px dashed #ccd4ce;border-radius:3px;line-height:1.8;font-size:12px}.empty h2{color:var(--ink);margin:0 0 8px}.empty .button{margin-top:12px}.filter-bar{display:flex;align-items:end;gap:16px;margin:0 0 24px}.filter-bar>*{flex:1;min-width:0}.filter-bar>button{flex:0 0 auto}.material-register{border:1px solid var(--line);background:#fff;padding:0 16px}.material-register .record:last-child{border-bottom:0}.material-register .record>div:last-child{text-align:end}.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}
.entry-panel{max-width:820px;border:1px solid var(--line);background:#fff;padding:24px;margin:24px auto}.entry-dialog{width:min(640px,calc(100% - 28px));max-width:640px;max-height:90dvh;padding:0;border:1px solid var(--line);border-radius:5px;color:var(--ink)}.entry-dialog::backdrop{background:#202a3459}.dialog-header{padding:24px 25px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-header h2{font-size:22px;margin:0}.dialog-header small{margin:0 0 8px}.dialog-close{border:0;background:none;font-size:25px;width:44px;height:44px;color:var(--muted);margin:0;padding:0;flex-shrink:0}.dialog-body{padding:23px 25px 26px}.dialog-body>h2{display:none}.entry-dialog form{margin-top:0}.entry-dialog button{margin:0}.entry-launcher{display:inline-block;min-height:44px;color:var(--navy);font-size:13px}.entry-launcher>summary{list-style:none;border:1px solid var(--line);padding:12px 17px;background:#fff;border-radius:3px}.entry-launcher>summary::-webkit-details-marker{display:none}.draft-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}.install-help{font-size:10px;margin:24px 0 0}.wizard-progress{display:flex;gap:6px;margin-bottom:16px}.wizard-progress span{height:3px;background:var(--line);flex:1}.wizard-progress span.current{background:var(--navy)}.wizard-caption{font-size:11px;color:var(--muted);margin:0 0 20px}.wizard-actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.wizard-actions button:last-child{margin-inline-start:auto}.field-error{font-size:12px;color:#963d30;margin-top:6px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.choice-button{padding:18px 15px;min-height:96px;text-align:start;border:1px solid var(--line);background:#fff}.choice-button[aria-pressed=true]{border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy);background:#f3f6f8}.guest-layout .working-site,.guest-layout #connection-status{display:none}.guest-layout .auth-panel{background:white;border:1px solid var(--line);padding:28px;border-radius:3px}
@media(max-width:1100px){.app-layout{padding-inline-start:190px}.app-sidebar{width:190px}.app-layout>header.app-topbar{padding-inline:26px}.app-layout>main{padding:30px 26px 50px}.app-layout .header-tools{gap:12px}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}.dashboard-stats>div{padding:20px 24px;border-bottom:1px solid var(--line)}.dashboard-stats>div:nth-child(2){border-inline-end:0}.dashboard-stats>div:nth-child(n+3){border-bottom:0}.dashboard-actions>a,.dashboard-actions>button{padding:12px;gap:8px}.dashboard-actions strong{font-size:12px}.working-site select{max-width:220px!important}.current-site>span{display:none}}
@media(max-width:800px){.app-layout{padding-inline-start:0}.app-sidebar{display:none}.app-layout>header.app-topbar{height:auto;min-height:70px;padding:14px 22px;display:flex;flex-wrap:wrap;gap:10px 16px}.app-layout>header>.wordmark{display:block;font-size:18px;align-self:center;margin:0}.app-layout .header-tools{gap:10px}.app-layout .working-site{order:2;flex:1 0 100%;justify-content:space-between}.app-layout .current-site:has(>span:only-child){display:none}.current-site>span{display:block}.working-site select{max-width:calc(100vw - 150px)!important;min-height:34px;padding-block:3px}.current-site a{font-size:12px}.app-layout>main{padding:26px 22px 110px}.app-layout>.workspace-nav{display:flex;position:fixed;inset-inline:0;bottom:0;z-index:30;padding:0 12px env(safe-area-inset-bottom);height:calc(70px + env(safe-area-inset-bottom));gap:0;justify-content:space-around;background:#fff;border-top:1px solid var(--line);border-bottom:0;overflow:visible}.workspace-nav>a{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:9px 2px;border:0;border-top:2px solid transparent;color:var(--muted);font-size:11px;white-space:nowrap}.workspace-nav>[aria-current]{border-top-color:var(--navy);color:var(--navy);font-weight:600;background:transparent}.workspace-nav a:hover{text-decoration:none}#update-notice{bottom:calc(80px + env(safe-area-inset-bottom));z-index:40}.entry-panel{margin-inline:0}.client-preview{font-size:11px}.account-menu>summary{min-width:36px}.header-tools select{max-width:90px}.filter-bar{flex-wrap:wrap}.filter-bar>*{flex:1 1 180px}.filter-bar>button{flex:0 0 auto}}
@media(max-width:580px){.app-layout>header.app-topbar{padding:12px 18px;gap:8px}.app-layout .header-tools{gap:6px}.header-tools select{max-width:84px;font-size:12px;padding:8px 5px}.client-preview{font-size:10px}.connection{font-size:0!important}.connection.offline{font-size:9px!important;max-width:75px!important}.app-layout>main{padding:23px 18px calc(100px + env(safe-area-inset-bottom))}.page-heading{align-items:center;margin-bottom:20px;gap:12px}.page-heading .date-label{display:none}.page-heading>.button{font-size:11px;padding:10px 12px;white-space:normal}.page-heading p{font-size:11px}h1{font-size:25px}.dashboard-empty{display:block;padding:20px 0}.dashboard-empty .button{margin-top:14px}.site-heading{padding:13px 0;align-items:flex-start}.dashboard-stats>div{padding:18px}.dashboard-stats strong{font-size:clamp(18px,5.3vw,23px)}.dashboard-stats span{font-size:11px}.dashboard-stats small{font-size:10px}.dashboard-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-actions>a,.dashboard-actions>button{min-height:73px;padding:12px;border-bottom:1px solid var(--line);border-inline-end:1px solid var(--line)}.dashboard-actions>:nth-child(2){border-inline-end:0}.dashboard-actions>:nth-child(n+3){border-bottom:0}.dashboard-actions>:last-child{border-inline-end:0}.dashboard-actions small{font-size:10px}.dashboard-columns{grid-template-columns:1fr;gap:0}.project-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.project-actions .button{font-size:11px;padding:10px}.site-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:1}.form-grid input,.form-grid select,.form-grid textarea,.stack input,.stack select,.stack textarea{font-size:16px}.entry-panel{padding:20px 16px}.entry-dialog{width:calc(100% - 16px);max-height:94dvh}.dialog-header{padding:21px 20px 16px}.dialog-header h2{font-size:21px}.dialog-body{padding:20px}.draft-tools{flex-direction:column;align-items:flex-start}.record{font-size:12px;gap:12px}.material-register{padding-inline:12px}.material-register .record{flex-wrap:nowrap;align-items:flex-start}.material-register .record>div:last-child{max-width:55%}.choice-button{font-size:12px;padding:15px 12px}.guest-layout main{padding:22px 18px}.guest-layout .auth-panel{padding:24px 20px}}
[dir=rtl] .app-layout{font-family:Tahoma,Arial,sans-serif}[dir=rtl] h1{letter-spacing:0}[dir=rtl] .muted,[dir=rtl] small,[dir=rtl] .notice{font-size:12px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Content must remain readable with long names, Urdu labels and large totals. */
.page-heading>div,.section-heading>*,.record>*,.site-heading>div,.stage-line>*,.project-facts>div,.dashboard-stats>div{min-width:0}
.page-heading h1,.site-heading h2,.record,.project-facts dd,.dashboard-stats strong,.stage-line,.contract-revision summary,.preserve-lines,.menu-directory a,.sidebar-submenu a{overflow-wrap:anywhere;word-break:normal}
.record,.section-heading,.stage-line{flex-wrap:wrap}
.activity strong{white-space:normal;text-overflow:clip;overflow:visible}
.activity-status{white-space:normal;max-width:45%}
.page-tabs{display:flex;flex-wrap:wrap;gap:4px 12px;margin:0 0 22px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.page-tabs a{display:flex;align-items:center;min-height:44px;padding:8px 6px;font-size:12px;line-height:1.6;color:var(--muted)}
.page-tabs a[aria-current=page]{color:var(--navy);border-bottom:2px solid var(--navy);font-weight:600}
.page-kicker{font-size:12px;color:var(--muted);margin-bottom:8px}
.client-register{margin-top:24px}.pagination-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.material-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px}.material-summary-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:8px}.material-summary-card h3{margin:0;overflow-wrap:anywhere}.material-summary-card p{overflow-wrap:anywhere}.material-summary-card dl{margin:12px 0 0}.material-summary-card dl>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:6px 0}.material-summary-card dt{color:var(--muted);overflow-wrap:anywhere}.material-summary-card dd{margin:0;font-weight:600;overflow-wrap:anywhere;min-width:0}.site-material-summary .section-heading{flex-wrap:wrap;gap:8px}
.project-facts{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}
@media(max-width:580px){.dashboard-stats strong{font-size:19px;line-height:1.5}.page-heading{flex-wrap:wrap}.section-heading{align-items:flex-start}.page-tabs{gap:2px 8px}.activity{align-items:flex-start}.activity-status{font-size:11px!important}.material-register .record{flex-wrap:wrap}.app-layout .header-tools{flex-wrap:wrap}.client-preview{white-space:normal}.floor-list .record{align-items:flex-start}}
@media print{.app-sidebar,.app-topbar,.workspace-nav,.account-menu,.draft-tools,.page-tabs{display:none!important}.app-layout{padding:0}.app-layout>main{padding:0;max-width:none;min-height:0}.entry-dialog{display:none}}
