:root{--brand-navy:#071d49;--brand-navy-2:#0b2d62;--brand-gold:#d8ad43;--brand-ink:#172033}
.sidebar.allied-sidebar{background:linear-gradient(180deg,var(--brand-navy),#061735 72%,#041126)!important;color:#fff!important;border-right:1px solid rgba(216,173,67,.3)}
.allied-brand{display:flex!important;align-items:center;gap:12px;color:#fff!important;padding:18px 16px!important}.allied-brand>span:last-child{display:flex;flex-direction:column}.allied-brand strong{font-size:20px!important;line-height:1.05}.allied-brand small{color:#dbc47e!important;font-size:11px!important;letter-spacing:.09em;text-transform:uppercase;margin-top:4px}
.brand-mark{position:relative;display:grid!important;place-items:center;flex:0 0 72px;width:72px;height:42px;border-radius:10px;background:#fff;color:var(--brand-navy)!important;font-weight:800;overflow:hidden}.brand-mark img{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);object-fit:contain;background:#fff}.brand-mark b{font-size:13px}
.allied-user{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.08)!important;color:#fff!important}.allied-logo{background:var(--brand-gold)!important;color:var(--brand-navy)!important}
.allied-sidebar nav>a,.allied-sidebar .nav-group-label{color:#dce5f2!important;border-radius:9px!important;display:flex!important;align-items:center!important;gap:10px!important;transition:.18s ease}.allied-sidebar nav>a:hover,.allied-sidebar .nav-group-label:hover{background:rgba(255,255,255,.09)!important;color:#fff!important;transform:translateX(2px)}.allied-sidebar nav>a.active,.allied-sidebar .nav-group.current>.nav-group-label{background:linear-gradient(90deg,var(--brand-gold),#e5c467)!important;color:var(--brand-navy)!important;box-shadow:0 8px 24px rgba(0,0,0,.16);font-weight:800!important}
.allied-sidebar .nav-child{color:#bfcce0!important;border-left:1px solid rgba(216,173,67,.32)!important}.allied-sidebar .nav-child:hover,.allied-sidebar .nav-child.active{color:#fff!important;background:rgba(216,173,67,.13)!important}.nav-section-title{color:#d7bd6a!important;letter-spacing:.12em!important}.allied-logout button,.sidebar-profile-link{color:#dce5f2!important}
.allied-sidebar nav a>span:not(.nav-icon){display:none!important}.nav-icon{display:grid!important;place-items:center;width:20px!important;height:20px!important;flex:0 0 20px;border:1px solid currentColor;border-radius:6px;font-size:14px!important;line-height:1}.allied-sidebar .nav-group-label::before,.allied-sidebar nav>a:not(:first-child)::before{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;border:1px solid currentColor;border-radius:6px;font-size:9px;font-weight:800;content:"•"}.allied-sidebar a[href^="/leads"]:not(.nav-child)::before{content:"CRM";font-size:7px}.allied-sidebar a[href="/customers"]:not(.nav-child)::before{content:"C"}.allied-sidebar a[href="/plots"]::before{content:"P"}.allied-sidebar a[href="/bookings"]::before{content:"B"}.allied-sidebar a[href="/payments"]::before{content:"Rs";font-size:7px}.allied-sidebar a[href="/accounts"]:not(.nav-child)::before{content:"A"}.allied-sidebar a[href="/reports"]::before{content:"R"}.allied-sidebar a[href^="/operations"]:not(.nav-child)::before{content:"O"}.allied-sidebar a[href="/attendance"]::before{content:"✓"}.allied-sidebar a[href="/attendance/manage"]::before{content:"T"}.allied-sidebar a[href="/team"]:not(.nav-child)::before{content:"U"}.allied-sidebar a[href="/settings"]:not(.nav-child)::before{content:"⚙"}
.agent-report-center{margin-bottom:18px}.agent-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.agent-report-card{border:1px solid #dce3eb;border-top:3px solid var(--brand-gold);border-radius:12px;padding:14px;background:#fff}.agent-report-card h3{margin:0 0 3px;color:var(--brand-navy)}.agent-report-card>small{color:#788494}.agent-report-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}.agent-report-totals span{background:#f5f7fa;padding:8px;border-radius:8px;font-size:11px;color:#667283}.agent-report-totals strong{display:block;color:var(--brand-ink);font-size:14px;margin-top:2px}.agent-report-actions{display:flex;flex-wrap:wrap;gap:6px}.agent-report-actions a{padding:7px 9px;border-radius:7px;background:var(--brand-navy);color:#fff;text-decoration:none;font-size:11px;font-weight:700}.agent-report-actions a.gold{background:var(--brand-gold);color:var(--brand-navy)}
@media(max-width:1100px){.agent-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.agent-report-grid{grid-template-columns:1fr}.allied-brand strong{font-size:17px!important}.brand-mark{flex-basis:58px;width:58px}}
@media print{.agent-report-actions,.allied-sidebar,.topbar{display:none!important}body{padding-top:54px!important}body::before{content:"";position:fixed;top:8px;left:16px;width:210px;height:44px;background:#fff url('/branding/combine-estate-logo.png') left center/contain no-repeat;z-index:9999}.main{margin-left:0!important}.panel,.account-table{box-shadow:none!important}}

/* v7.4 complete navy and gold company theme */
:root{--forest:#0b2d62;--forest-2:#071d49;--mint:#dce6f4;--paper:#f3f6fa;--ink:#172033}.brand-mark b{display:none!important}.allied-greenbar,.accounts-command,.welcome-strip,.team-summary,.guide-hero,.society-overview{background:linear-gradient(110deg,var(--brand-navy),var(--brand-navy-2))!important}.button.primary,.account-new,.account-tabs a.active,.inventory-tabs a.active{background:var(--brand-navy)!important;color:#fff!important}.button.secondary{background:#e8edf5!important;color:var(--brand-navy)!important}.eyebrow{color:#83703c!important}input:focus,select:focus,textarea:focus{border-color:var(--brand-gold)!important;box-shadow:0 0 0 3px rgba(216,173,67,.18)!important}.gold-button{background:var(--brand-gold)!important;color:var(--brand-navy)!important}.profile-card{border-top:4px solid var(--brand-gold)!important}.profile-avatar{background:#e7edf7!important;color:var(--brand-navy)!important;box-shadow:0 12px 30px rgba(7,29,73,.16)!important}
.allied-brand:before{content:none!important;display:none!important}.allied-brand{gap:12px!important}.allied-brand .brand-mark{flex:0 0 92px!important;width:92px!important;height:52px!important}
.commission-search-row{display:grid;grid-template-columns:minmax(280px,520px) 1fr;gap:18px;align-items:end;background:#f4f7fb;border:1px solid #dfe5ee;border-radius:11px;padding:12px;margin-bottom:14px}.commission-search-row label{font-size:11px;font-weight:800;color:var(--brand-navy)}.commission-search-row input{margin-top:6px}.commission-search-row small{color:#748094;padding-bottom:10px}
.report-select-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(110deg,var(--brand-navy),var(--brand-navy-2));color:#fff;padding:22px 26px;border-radius:16px;margin-bottom:14px}.report-select-hero h1{margin-bottom:5px}.report-select-hero p:last-child{margin:0;color:#d7e0ef}.report-select-hero img{width:230px;height:64px;object-fit:contain;background:#fff;border-radius:10px;padding:6px}.report-selector{padding:16px!important}.report-filter-row{display:grid;grid-template-columns:1fr 1.2fr auto;gap:12px;align-items:end;margin-bottom:14px}.report-filter-row label{font-size:11px;font-weight:700}.report-filter-row select,.report-filter-row input{margin-top:5px}.select-all-label{display:flex!important;align-items:center;gap:7px;padding:10px 12px;border:1px solid #dfe5ee;border-radius:9px}.select-all-label input,.account-table input[type=checkbox]{width:16px;height:16px;accent-color:var(--brand-navy)}.report-generate-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;border-top:1px solid #e1e6ed;padding-top:14px;margin-top:12px}.report-generate-actions span{margin-right:auto;color:#6c788a;font-size:12px}
@media(max-width:680px){.commission-search-row,.report-filter-row{grid-template-columns:1fr}.report-select-hero{align-items:flex-start;flex-direction:column}.report-select-hero img{width:180px}.report-generate-actions{align-items:stretch;flex-direction:column}.report-generate-actions span{margin:0}.report-generate-actions .button{width:100%}}

/* v7.5 workflow, responsive cards and icon repair */
.lead-card{min-width:0;overflow:visible!important}.lead-card-head{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:start!important;gap:10px!important}.lead-card-head .lead-identity{min-width:0;padding-right:4px}.lead-card-head h3{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.2;margin:2px 0 4px!important}.lead-card-head>span:last-child{max-width:110px;white-space:nowrap}.lead-select{position:relative!important;inset:auto!important;margin-bottom:8px!important;display:inline-flex!important}
.assignment-command{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:12px 0;padding:15px 18px!important;border-left:4px solid var(--brand-gold)}.assignment-command h3,.assignment-command p{margin:2px 0}.assignment-command-stats{display:flex;gap:8px}.assignment-command-stats span{min-width:110px;padding:9px 12px;border-radius:9px;background:#eef3f8;color:#556174;font-size:11px}.assignment-command-stats strong{display:block;color:var(--brand-navy);font-size:20px}.assignment-command-stats .danger{background:#fff0ee}.assignment-alert{background:#fff7de;border:1px solid #ecd28a;border-radius:9px;padding:10px;margin:8px 0;display:flex;align-items:center;gap:9px;flex-wrap:wrap}.assignment-alert small{color:#766b54}.assignment-alert>div{display:flex;gap:6px;margin-left:auto}.assignment-alert form{margin:0}.assignment-alert.declined{background:#fff0ee;border-color:#edb4ad}.new-assignment-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(110deg,var(--brand-navy),var(--brand-navy-2));color:#fff;border-radius:12px;padding:15px 18px;margin:12px 0}.new-assignment-banner strong,.new-assignment-banner span{display:block}.new-assignment-banner span{color:#d9e3f2;font-size:12px;margin-top:3px}.new-assignment-banner a{background:var(--brand-gold);color:var(--brand-navy);padding:9px 14px;border-radius:8px;font-weight:800;text-decoration:none}
.customer-card-grid,.collection-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.customer-compact-card,.collection-account-grid>article{background:#fff;border:1px solid #dce4ec;border-radius:13px;padding:14px;min-width:0}.customer-compact-card>div:first-child,.collection-person{display:flex;align-items:center;gap:10px}.customer-compact-card h3,.collection-account-grid h3{margin:0;overflow-wrap:anywhere}.customer-compact-card>div:first-child>span:last-child{margin-left:auto}.customer-compact-card dl,.collection-account-grid dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.customer-compact-card dl div,.collection-account-grid dl div{background:#f5f7fa;border-radius:8px;padding:8px;min-width:0}.customer-compact-card dt,.collection-account-grid dt,.customer-detail-grid span{font-size:10px;text-transform:uppercase;color:#7a8792}.customer-compact-card dd,.collection-account-grid dd{margin:3px 0 0;font-weight:700;overflow-wrap:anywhere}.customer-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:15px 0}.customer-detail-grid span{background:#f4f7fa;border-radius:9px;padding:10px}.customer-detail-grid strong{display:block;color:var(--brand-ink);font-size:14px;text-transform:none;margin-top:4px;overflow-wrap:anywhere}.customer-detail-grid .wide{grid-column:1/-1}.profile-brand{display:flex;align-items:center;gap:18px;margin-bottom:16px}.profile-brand img{width:190px;height:70px;object-fit:contain;background:#fff;border:1px solid #e3e7ec;border-radius:10px;padding:5px}
/* Distinct, readable menu icons (no placeholder dots). */
.allied-sidebar nav a::before,.allied-sidebar .nav-group-label::before{font-family:Arial,sans-serif!important}.allied-sidebar nav>a[href="/dashboard"] .nav-icon{font-size:0!important}.allied-sidebar nav>a[href="/dashboard"] .nav-icon::before{content:"HOME";font-size:6px}.allied-sidebar a[href="/customers"]:not(.nav-child)::before{content:"CUS"!important;font-size:6px!important}.allied-sidebar a[href="/plots"]::before{content:"PLT"!important;font-size:6px!important}.allied-sidebar a[href="/bookings"]::before{content:"BKG"!important;font-size:6px!important}.allied-sidebar a[href="/payments"]::before{content:"PAY"!important;font-size:6px!important}.allied-sidebar a[href="/reports"]::before{content:"RPT"!important;font-size:6px!important}.allied-sidebar a[href="/attendance"]::before{content:"IN"!important;font-size:7px!important}.allied-sidebar a[href="/attendance/manage"]::before{content:"ATT"!important;font-size:6px!important}.allied-sidebar a[href="/team"]:not(.nav-child)::before{content:"TEAM"!important;font-size:5px!important}.allied-sidebar a[href="/settings"]:not(.nav-child)::before{content:"SET"!important;font-size:6px!important}
@page{size:A4;margin:12mm}@media print{html,body{width:210mm!important;min-height:297mm!important}.main{width:auto!important}.modal,.button,.row-actions{display:none!important}.panel,.customer-compact-card{break-inside:avoid}}
@media(max-width:1050px){.customer-card-grid,.collection-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.customer-card-grid,.collection-account-grid{grid-template-columns:1fr}.assignment-command{align-items:flex-start;flex-direction:column}.assignment-command-stats{width:100%;overflow:auto}.profile-brand{align-items:flex-start;flex-direction:column}.profile-brand img{width:160px}.lead-card-head{grid-template-columns:auto minmax(0,1fr)!important}.lead-card-head>span:last-child{grid-column:2}.customer-detail-grid{grid-template-columns:1fr}}
