/* Compact management screens: keep all content in normal flow and allow
   expanded editors, messages and the 2044 form to grow without clipping. */
#connected-page .dashboard-header{height:52px;padding-inline:max(18px,calc((100vw - 1120px)/2))}
#connected-page .dashboard-header .brand{font-size:22px}
#connected-page .dashboard-header .brand svg{width:64px;height:25px;top:-9px}
#connected-page .dashboard-content{padding-top:10px;padding-bottom:10px}
#connected-page .dashboard-footer{display:none}
#connected-page .guest-banner{padding:5px 10px;margin-bottom:8px;min-height:28px;gap:10px;flex-direction:row;align-items:center}
#connected-page .guest-banner strong{font-size:10px}
#connected-page .guest-banner p{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#connected-page .guest-banner button{min-height:28px;padding:4px 9px;font-size:10px}
#connected-page .dashboard-heading{align-items:center;margin-bottom:10px}
#connected-page .dashboard-heading h1{font-size:26px;line-height:1.2;margin:0;max-width:none}
#connected-page .dashboard-heading .dashboard-eyebrow,#connected-page .dashboard-heading .dashboard-intro{display:none}
#connected-page .count-badge{margin:0;padding:6px 9px}
#connected-page .properties-list{gap:10px}
#connected-page .property-top{padding:9px 16px;gap:10px}
#connected-page .property-icon{height:34px;width:32px}
#connected-page .property-heading h2{margin-bottom:3px}
#connected-page .property-heading p{font-size:15px;line-height:1.3}
#connected-page .property-summary{padding-top:10px;row-gap:8px}
#connected-page .property-summary>div:not(.tenant-summary){margin-bottom:0}
#connected-page .property-summary dt{font-size:10px;margin-bottom:3px}
#connected-page .property-summary dd{font-size:13px;line-height:1.25}
#connected-page .property-summary>div:first-child dd{font-size:16px}
#connected-page .property-summary .tenant-summary{padding-block:8px;margin-top:0}
#connected-page .rent-link,#connected-page .annual-link{min-height:32px;padding:7px 10px;font-size:11px}
#connected-page .property-edit{min-height:32px;padding:6px 10px}
#connected-page #rent-back,#connected-page #annual-back{min-height:30px;padding:6px 11px;font-size:11px;margin-bottom:5px}
#rent-view .rent-page-heading{margin-bottom:7px}
#rent-view .rent-page-heading h1{font-size:23px}
#rent-view .rent-period-bar{padding:6px 12px}
#rent-view .rent-section{padding:10px 12px}
#rent-view .rent-fields{gap:7px 10px}
#rent-view .rent-fields input{min-height:34px;padding:6px 8px}
#rent-view .rent-form-bottom{padding:6px 12px;gap:8px}
#rent-view .rent-form-bottom button{min-height:30px;padding:6px 10px}
#rent-view .receipt-panel{margin-top:8px;padding:10px 12px}
#rent-view .receipt-heading{display:none}
#rent-view .receipt-hint{margin:0 0 6px}
#rent-view .receipt-details-heading{padding:7px 10px}
#rent-view .receipt-details #receipt-fields{padding:8px 10px}
#rent-view .receipt-fields{gap:7px 12px}
#rent-view #receipt-fields input{min-height:32px;padding:5px 8px}
#rent-view #receipt-fields textarea{min-height:42px;height:42px;padding:5px 8px;line-height:1.25}
#rent-view .receipt-details-actions{padding:0 10px 7px}
#rent-view #receipt-details-save{min-height:30px;padding:6px 10px}
#rent-view .receipt-actions{margin-top:7px}
#rent-view #receipt-download,#rent-view .receipt-email{min-height:32px;padding:7px 11px}
#annual-view .annual-heading{margin-bottom:4px}
#annual-view .annual-kpis{margin-bottom:5px}
#annual-view .annual-readonly-value{min-height:24px;padding:2px 3px;line-height:20px}
#annual-view .annual-table th,#annual-view .annual-table td{padding-block:1px}
#annual-view .annual-table .annual-group th{padding-block:3px;font-size:8px}
#annual-view .annual-table-top{padding-block:4px}
#annual-view .annual-form-actions{padding-block:4px}
#annual-view .annual-tax{margin-top:5px}
#annual-view #annual-tax-toggle{min-height:30px;padding-block:7px}
@media(max-width:600px){
 #connected-page .dashboard-header{height:46px;padding-inline:12px}
 #connected-page .dashboard-header .brand{font-size:20px}
 #connected-page .dashboard-header .brand svg{width:60px;height:23px;top:-8px}
 #connected-page #logout{min-height:30px;padding:6px 9px;font-size:10px}
 #connected-page .header-actions{gap:7px}
 #connected-page .dashboard-content{padding:6px 10px}
 #connected-page .guest-banner{min-height:24px;padding:3px 8px;margin-bottom:5px}
 #connected-page .guest-banner strong{font-size:9px}
 #connected-page .guest-banner button{min-height:26px;font-size:9px}
 #connected-page .dashboard-heading{margin-bottom:6px;flex-wrap:nowrap}
 #connected-page .dashboard-heading h1{font-size:20px;letter-spacing:-.5px}
 #connected-page .count-badge{font-size:9px;white-space:nowrap;padding:4px 6px}
 #connected-page .properties-list{gap:7px}
 #connected-page .property-top{padding:6px 9px;gap:4px;display:grid;grid-template-columns:minmax(0,1fr)}
 #connected-page .property-icon{display:none}
 #connected-page .property-heading{min-width:0}
 #connected-page .property-heading h2{font-size:8px;line-height:1.15;margin-bottom:2px}
 #connected-page .property-heading p{font-size:12px;line-height:1.2}
 #connected-page .property-actions{display:flex;flex-wrap:nowrap;gap:5px;margin:1px 0 0;justify-content:stretch}
 #connected-page .property-actions .property-edit{margin:0;flex:0 0 auto;min-height:30px;padding:5px 7px;font-size:9px}
 #connected-page .rent-link,#connected-page .annual-link{flex:1;white-space:normal;min-height:30px;font-size:10px;padding:5px 6px;line-height:1.15}
 #connected-page .rent-link span,#connected-page .annual-link span{display:none}
 #connected-page .property-summary{grid-template-columns:repeat(3,minmax(0,1fr));padding:7px 9px 0;gap:5px 8px}
 #connected-page .property-summary>div:not(.tenant-summary){padding:0;border:0;grid-column:auto;margin:0}
 #connected-page .property-summary dt{font-size:8px;margin-bottom:2px;line-height:1.1}
 #connected-page .property-summary dd{font-size:11px;line-height:1.15;letter-spacing:0}
 #connected-page .property-summary>div:first-child dd{font-size:13px}
 #connected-page .property-summary .tenant-summary{padding:5px 0;gap:8px;grid-column:1/-1;margin:0}
 #connected-page .tenant-summary dt{min-width:0}
 #connected-page .tenant-summary dd{font-size:10px}
 #connected-page .property-summary:not(:has(.tenant-summary)){padding-bottom:8px}
 #rent-view .rent-page-heading h1{font-size:20px}
 #rent-view .rent-page-heading .dashboard-intro{font-size:10px}
 #rent-view .rent-period-bar{padding:5px 9px;gap:5px}
 #rent-view .rent-period-bar .rent-period{gap:5px;font-size:9px}
 #rent-view .rent-period-bar .rent-period input{min-height:30px;height:30px;padding:3px 5px;width:140px}
 #rent-view #rent-fields{padding:8px 9px;gap:6px 9px}
 #rent-view .rent-fields label{font-size:9px;gap:3px;line-height:1.2}
 #rent-view .rent-fields input{min-height:32px;height:32px;padding:4px 6px;font-size:16px}
 #rent-view .rent-total{padding-bottom:4px}
 #rent-view .rent-total output{font-size:16px}
 #rent-view .rent-state{font-size:9px;padding:4px 7px}
 #rent-view .rent-form-bottom{padding:5px 9px}
 #rent-view .rent-form-bottom button{min-height:30px;font-size:10px;padding:5px 9px}
 #rent-view .receipt-panel{padding:7px 9px;margin-top:6px}
 #rent-view .receipt-details-heading{padding:5px 7px;gap:5px}
 #receipt-details-title{font-size:10px}
 #receipt-details-state{font-size:8px}
 #receipt-details-edit{min-height:28px;padding:4px 7px;font-size:10px}
 #rent-view .receipt-details #receipt-fields{padding:7px}
 #rent-view .receipt-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px}
 #rent-view .receipt-fields label{font-size:9px;line-height:1.15;gap:3px}
 #rent-view #receipt-fields input{min-height:30px;height:30px;padding:4px 6px;font-size:16px}
 #rent-view #receipt-fields textarea{min-height:42px;height:42px;padding:4px 6px;font-size:16px;line-height:1.1}
 #rent-view .receipt-details-actions{padding:0 7px 6px;gap:6px}
 #rent-view #receipt-details-save{font-size:10px;min-height:30px}
 #rent-view #receipt-details-feedback{font-size:9px}
 #rent-view .receipt-actions{margin-top:6px;gap:6px}
 #rent-view #receipt-download,#rent-view .receipt-email{font-size:10px;min-height:32px;padding:6px 9px}
 #annual-view .annual-heading{display:flex;align-items:center;gap:8px;margin-bottom:3px}
 #annual-view .annual-heading>div{min-width:0;flex:1}
 #annual-view .annual-heading h1{font-size:16px;line-height:1.15}
 #annual-view .annual-heading .dashboard-intro{font-size:9px}
 #annual-view .annual-year{display:grid;gap:2px;width:auto;min-width:72px;flex:none;margin:0;font-size:8px}
 #annual-view .annual-year select{width:76px;min-height:28px;height:28px;padding:3px;font-size:14px}
 #annual-view .annual-toolbar{margin-bottom:3px;min-height:10px}
 #annual-save-state{font-size:8px;max-width:none}
 #annual-view .annual-kpis{gap:4px;margin-bottom:4px}
 #annual-view .annual-kpis>div{padding:5px}
 #annual-view .annual-kpis span{font-size:8px;margin-bottom:3px;line-height:1.15}
 #annual-view .annual-kpis strong{font-size:13px;letter-spacing:-.2px}
 #annual-view .annual-kpis small{display:none}
 #annual-view .annual-table-top{padding:4px 6px;gap:6px;flex-wrap:nowrap}
 #annual-view .annual-table-top h2{display:none}
 #annual-view .annual-table-top>div{gap:4px}
 #annual-view .annual-repeat-open{font-size:8px;padding:4px;min-height:26px}
 #annual-view .annual-add-expense>summary{font-size:8px;padding:5px;min-height:26px}
 #annual-view .annual-month-picker select{min-width:87px;min-height:28px;height:28px;font-size:12px}
 #annual-view .annual-table th,#annual-view .annual-table td{padding-block:0}
 #annual-view .annual-table thead th{padding-block:4px;font-size:9px}
 #annual-view .annual-table th:first-child{font-size:9px;line-height:1.1}
 #annual-view .annual-table th:last-child,#annual-view .annual-table td:last-child{font-size:9px}
 #annual-view .annual-table input{min-height:26px;height:26px;font-size:16px;line-height:20px;padding-block:2px}
 #annual-view .annual-readonly-value{min-height:26px;padding:3px;line-height:20px;font-size:12px}
 #annual-view .annual-table .annual-group th{font-size:7px;padding-block:3px}
 #annual-view .annual-form-actions{padding:4px 6px;gap:5px}
 #annual-view .annual-form-actions button{font-size:9px;min-height:30px;padding:6px 7px}
 #annual-view .annual-options>summary{padding:4px 7px;min-height:18px;font-size:8px}
 #annual-view #annual-tax-toggle{min-height:30px;font-size:10px;padding:7px 0}
}
/* Match the active-view rules and remove duplicated confirmations. */
body:has(#rent-view:not([hidden])) #connected-page .dashboard-content,body:has(#annual-view:not([hidden])) #connected-page .dashboard-content{padding-block:6px}
#rent-view .receipt-hint{display:none}
#rent-view .rent-form-bottom:has(#rent-save[hidden]):has(#rent-cancel[hidden]){display:none}
#rent-view .rent-panel:has(#rent-edit:not([hidden])) #rent-feedback:not([data-kind=error]){display:none}
#annual-view .annual-table tr.annual-group th{padding:2px 8px;line-height:11px;border-top-width:2px}
#annual-view:has(#annual-save[hidden]) .annual-toolbar{display:none}
@media(max-width:600px){
 body:has(#rent-view:not([hidden])) #connected-page .dashboard-header{height:44px}
 #annual-view .annual-table tr.annual-group th{padding:1px 8px;line-height:10px;border-top-width:1px}
 #annual-view .annual-readonly-value{min-height:24px;line-height:20px;padding:2px 3px}
 #annual-view .annual-table input{min-height:24px;height:24px;line-height:18px}
 #receipt-details .receipt-details-actions:has(#receipt-details-save:not([hidden])){margin-top:-37px;margin-left:calc(50% + 4px);padding:0 7px 7px;display:block}
 #receipt-details-save{width:100%;white-space:normal;line-height:1.1;padding:4px 6px}
 #rent-view #receipt-details[data-saved=true] .receipt-details-actions{display:none}
}

#rent-view .rent-period-bar #rent-edit{min-height:30px;padding:5px 9px;font-size:10px;flex-shrink:0}
#rent-view .rent-period-bar:has(#rent-edit:not([hidden])) .declaration-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){
 #annual-view{position:relative}
 #annual-view .annual-toolbar{position:absolute;top:8px;right:0;max-width:calc(100% - 110px);min-height:0;margin:0;text-align:right}
 #annual-view .annual-options>summary{min-height:14px;padding-block:2px}
}

/* Addresses grow with their content instead of scrolling inside the field. */
#rent-view #receipt-fields textarea{overflow:hidden;resize:none;max-height:none;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.25}
#rent-view .receipt-fields{align-items:start}
@media(min-width:761px){
 #rent-view #receipt-fields .receipt-fields{grid-template-rows:repeat(2,auto);grid-auto-flow:column}
}
@media(max-width:760px){
 #rent-view #receipt-fields .receipt-fields{grid-template-columns:minmax(0,1fr)}
 #rent-view #receipt-fields .receipt-fields label{font:600 12px/1.35 var(--font)}
 #rent-view #receipt-fields .receipt-fields input{
  box-sizing:border-box;
  width:100%;
  height:40px;
  padding:7px 10px;
  font:400 16px/1.35 var(--font);
 }
}
#rent-view #receipt-fields .receipt-fields label,
#rent-view #receipt-fields .receipt-fields :is(input,textarea),
#rent-view #receipt-fields .receipt-fields :is(input,textarea):disabled{
 color:#344c42;
 -webkit-text-fill-color:currentColor;
 opacity:1;
}
#rent-view #rent-address,
#rent-view #receipt-fields [name="property_address"]{
 font-weight:700;
}
@media (min-width:761px){
 #rent-view #receipt-fields textarea[name="landlord_address"]{
  white-space:nowrap;
  overflow-wrap:normal;
  overflow-x:auto;
 }
}
/* Give the 2044 disclosure the same prominence as the property return action. */
#annual-view .annual-tax:not(:has(#annual-tax-details[open])){padding:0;border:0;background:transparent;overflow:visible}
#annual-view #annual-tax-toggle{display:inline-flex;align-items:center;justify-content:center;gap:12px;list-style:none;min-height:34px;padding:7px 12px;border:1px solid #a9c3ad;border-radius:7px;background:#e8f1e7;color:#244c32;font-size:13px;font-weight:700;line-height:18px;box-shadow:0 1px 2px #244c3210;cursor:pointer}
#annual-tax-toggle::-webkit-details-marker{display:none}
#annual-tax-toggle::after{content:'';width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
#annual-tax-details[open]>#annual-tax-toggle::after{transform:translateY(2px) rotate(225deg)}
#annual-view #annual-tax-toggle:hover{background:#dcebdc;border-color:#739d7d;color:#173d25}
#annual-view #annual-tax-toggle:focus-visible{outline:3px solid #355f41;outline-offset:3px}
@media(max-width:600px){#annual-view #annual-tax-toggle{font-size:12px}}

/* Keep the only 2044 title and its collapse control together at the top. */
#annual-view #annual-tax-details{position:relative}
#annual-view .annual-tax:has(#annual-tax-details[open]) #annual-tax-details{margin-top:0;border-top:0}
#annual-view #annual-tax-close{position:absolute;top:0;right:0;margin:0;min-height:34px;padding:7px 12px;border:1px solid #a9c3ad;border-radius:7px;background:#e8f1e7;color:#244c32;font-size:12px;font-weight:600;line-height:18px;cursor:pointer}
#annual-view #annual-tax-close:hover{background:#dcebdc;border-color:#739d7d}
#annual-view #annual-tax-close:focus-visible{outline:3px solid #355f41;outline-offset:3px}
#annual-view .tax-sheet-heading{justify-content:flex-end;text-align:right}

/* Acquisition and yield share a spacious six-column overview. */
#connected-page .property-top{padding-block:12px}
#connected-page .property-summary{padding-top:12px;row-gap:10px}
#connected-page .property-summary>div:not(.tenant-summary){grid-column:auto}
#connected-page .property-summary .tenant-summary{padding-block:10px}
#connected-page .property-gross-yield dd{font-weight:700;color:#28533f;white-space:nowrap}
#connected-page .property-gross-yield:not([data-state=ready]) dd{font-size:11px;white-space:normal;font-weight:500;color:#758477}
@media(min-width:901px){#connected-page .property-summary{grid-template-columns:1fr 1fr .65fr .9fr 1.1fr 1fr}#connected-page .property-summary>div:nth-child(5){padding-right:12px}#connected-page .property-summary>div:nth-child(6){padding-right:0}}
@media(max-width:600px){#connected-page .property-top{padding-block:8px}#connected-page .property-summary{padding-top:8px;gap:6px 8px}#connected-page .property-summary .tenant-summary{padding-block:6px}#connected-page .property-gross-yield dd{font-size:13px}#connected-page .property-gross-yield:not([data-state=ready]) dd{font-size:10px}}
/* Let the property overview breathe on desktop, with a smaller-screen variant. */
@media(min-width:901px){
 #connected-page .properties-list{gap:18px}
 #connected-page .property-top{padding-block:18px;padding-inline:20px}
 #connected-page .property-heading p{font-size:16px}
 #connected-page .property-summary{padding-top:18px;padding-inline:20px;row-gap:12px}
 #connected-page .property-summary dt{margin-bottom:6px}
 #connected-page .property-summary dd{font-size:14px}
 #connected-page .property-summary>div:first-child dd{font-size:18px}
 #connected-page .property-summary .tenant-summary{padding-block:14px}
}
@media(min-width:901px) and (max-height:800px){
 #connected-page .properties-list{gap:12px}
 #connected-page .property-top{padding-block:14px}
 #connected-page .property-summary{padding-top:14px;row-gap:10px}
 #connected-page .property-summary dt{margin-bottom:4px}
 #connected-page .property-summary .tenant-summary{padding-block:11px}
}

/* The property tax result is the first visible item in the expanded 2044. */
#annual-view #annual-tax-result-card{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:14px 0 6px;padding:18px 20px;border:2px solid #bbc7c4;border-left-width:7px;border-radius:9px;background:#f2f5f4;color:#384c47}
#annual-tax-result-card>div{display:grid;gap:6px}#annual-tax-result-card span{font-size:12px;font-weight:600;line-height:1.4}#annual-tax-result-card b{font-size:16px;line-height:1.3}#annual-view #annual-tax-result-card strong{font-size:30px;font-weight:800;line-height:1.2;color:inherit;white-space:nowrap;font-variant-numeric:tabular-nums}
#annual-view #annual-tax-result-card[data-state=positive]{border-color:#278051;background:#eaf6ee;color:#175d38}#annual-view #annual-tax-result-card[data-state=negative]{border-color:#b94343;background:#fff0ef;color:#9a2626}#annual-view #annual-tax-result-card[data-state=zero]{border-color:#78878c;background:#eef3f5;color:#3f535d}#annual-tax-completeness{margin:5px 0 12px!important;font-size:11px!important;line-height:1.5!important}
@media(max-width:600px){#annual-view #annual-tax-result-card{padding:13px 12px;gap:10px;flex-wrap:wrap}#annual-tax-result-card>div{gap:5px}#annual-tax-result-card span{font-size:11px}#annual-tax-result-card b{font-size:15px}#annual-view #annual-tax-result-card strong{font-size:27px}}

.property-list-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.property-list-actions #property-add{min-height:42px;font-weight:700;font-size:12px}@media(max-width:600px){.dashboard-heading:has(#property-add:not([hidden])){flex-wrap:wrap}.property-list-actions{width:100%;justify-content:space-between}.property-list-actions .count-badge{margin-top:0}.property-list-actions #property-add{min-height:44px}}
