:root{--ink:#213b35;--muted:#68746b;--green:#28634e;--line:#e5e9e4;--canvas:#f6f7f3;--orange:#db9b57}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--canvas);font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
a{color:var(--green);text-decoration:none}
a:hover{text-decoration:underline}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{outline-offset:4px}
button{cursor:pointer}
small{font-size:12px}
h1,h2,h3,p{margin:0}
h1{font-size:32px;line-height:1.25;letter-spacing:-1px;font-weight:550}
h2{font-size:19px;letter-spacing:-.4px}
h3{font-size:15px;font-weight:600}
p{color:var(--muted)}
.sidebar{width:238px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:31px 20px;display:flex;flex-direction:column}
.brand{font-size:28px;font-weight:650;letter-spacing:-1.4px;display:flex;gap:10px;align-items:center;color:var(--ink)}
.brand:hover{text-decoration:none}
.brand-mark{background:var(--green);color:#fff;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;font-size:29px;line-height:1;padding-bottom:7px}
.brand-dot{font-size:8px;color:#bfcb8b;align-self:flex-start;margin:7px 0 0 -7px}
nav{display:grid;gap:7px;margin-top:38px}
nav a{padding:11px 12px;border-radius:7px;color:#6d7871;font-size:13px;font-weight:500;display:flex;align-items:center;gap:13px}
nav a span{font-size:19px;width:20px;text-align:center;line-height:1}
nav a[aria-current]{background:#eaf1e8;color:#285c44}
nav a:hover{background:#f0f4ed;text-decoration:none}
.sidebar-bottom{margin-top:auto}
.logout{background:none;border:0;color:var(--muted);font-size:12px;margin-top:18px;padding:0}
main{margin-left:238px;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.topbar{height:73px;border-bottom:1px solid var(--line);padding:0 38px;display:flex;justify-content:space-between;align-items:center;font-size:12px;background:#fcfcfa}
.topbar>span:last-child{display:flex;align-items:center;gap:20px;color:var(--muted)}
.avatar{width:30px;height:30px;background:#e9ecdf;border-radius:50%;display:grid;place-items:center;color:#576c54;font-size:10px;font-weight:700}
.content{max-width:1560px;width:100%;margin:0 auto;padding:36px 38px 0;flex:1;display:flex;flex-direction:column}
header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:31px}
header p{margin-top:9px}
.eyebrow{font-size:10px;letter-spacing:1.6px;color:#62705e;font-weight:600;margin-bottom:10px}
.button{display:inline-flex;align-items:center;justify-content:center;border-radius:7px;background:var(--green);color:#fff;padding:10px 17px;font-size:12px;font-weight:600;border:1px solid var(--green);white-space:nowrap;min-height:39px}
.button:hover{background:#204e3e;text-decoration:none}
.button.secondary{background:#fff;color:var(--ink);border-color:#dce2d9}
.button.secondary:hover{background:#eef3eb}
.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:33px}
.stats article{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px 19px}
.stats article>span{font-size:12px;color:#6d7b72;display:block}
.stats article>span small{font-size:9px;float:right;background:#f4f5f1;padding:1px 5px;border-radius:4px}
.stats h2{font-size:28px;font-weight:550;letter-spacing:-1px;margin:14px 0 11px;white-space:nowrap}
.stats h2 small{font-size:12px;letter-spacing:0;font-weight:400;color:#809084}
.stat-foot{font-size:10px;color:#68746b}
.stats article.highlight{background:#eaf0df;border-color:#dfe6d3}
.section-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px}
.section-heading p{font-size:12px;margin-top:3px}
.attention-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.panel{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden}
.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:21px 22px}
.panel-heading h3{display:flex;align-items:center;gap:9px}
.panel-heading h2{font-size:16px}
.panel-heading a,.panel-heading>span{font-size:11px}
.panel-heading p{font-size:12px;margin-top:4px}
.panel-sub{padding:0 22px 12px;font-size:11px;margin-top:-6px}
.count{font-size:10px;border-radius:5px;background:#f3f4ef;padding:1px 6px;color:#788071}
.dot{width:7px;height:7px;border-radius:50%;display:inline-block}
.orange{background:#d7a368}
.red{background:#ce8674}
.blue{background:#859bac}
.green{background:#78906b}
.item{padding:16px 22px;border-top:1px solid #f0f1ec;display:flex;align-items:center;gap:12px;color:var(--ink);min-height:81px}
.item:hover{background:#fafbf7;text-decoration:none}
.item>div{flex:1}
.item strong{font-size:12px;font-weight:550}
.item small,td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.item-icon{background:#f5f5ef;border-radius:8px;width:34px;height:34px;display:grid;place-items:center;color:#89927c}
.badge{font-size:10px;padding:4px 8px;border-radius:5px;background:#f0f2ed;color:#6b786a;white-space:nowrap;font-weight:500;display:inline-block}
.badge.open{background:#faf0df;color:#a57a37}
.badge.progress{background:#eaf0f7;color:#607fa0}
.badge.done{background:#eaf2e7;color:#56834a}
.badge.urgent{background:#faeee8;color:#ad6a55}
.amount{text-align:right}
.amount small{display:inline;font-weight:400}
.muted{color:var(--muted)}
footer{margin-top:auto;font-size:10px;color:#68746b;display:flex;justify-content:space-between;padding:26px 0}
.group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:28px}
.group-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:20px;color:var(--ink);transition:border-color .15s}
.group-card:hover,.group-card.selected{border-color:#7d9e69;text-decoration:none}
.group-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}
.building{width:39px;height:39px;display:grid;place-items:center;font-size:24px;color:#64845d;background:#edf1e5;border-radius:10px}
.group-card h2{font-size:18px}
.group-card p{font-size:11px;margin:4px 0 21px}
.group-bottom{border-top:1px solid var(--line);padding-top:14px;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:10px;color:var(--muted)}
.group-bottom strong{color:var(--ink);font-size:15px;text-align:right;font-weight:500}
.group-bottom small{display:block;font-size:9px;color:var(--muted);font-weight:400}
.table-scroll{overflow:auto}
table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left;font-size:12px}
th{padding:12px 22px;background:#f9faf6;color:#808b7d;font-size:10px;font-weight:500;border-bottom:1px solid var(--line)}
td{padding:17px 22px;border-bottom:1px solid #eff1eb}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fdfefb}
td strong{font-weight:550}
td small{font-size:11px}
.spaced{margin-top:24px}
.person{display:flex;align-items:center;gap:12px}
.person-avatar{width:32px;height:32px;border-radius:50%;background:#eff0e6;color:#8a9478;display:grid;place-items:center;font-size:13px}
.lease-row{margin:7px 0}
.filters{display:flex;align-items:end;gap:14px;padding:20px 22px;border-bottom:1px solid var(--line)}
.filters label{font-size:11px;color:var(--muted);display:block}
.filters input,.filters select{margin-top:5px;min-width:150px}
.filters .search{flex:1;max-width:440px}
input,select,textarea{width:100%;padding:10px 12px;border:1px solid #dce2d7;border-radius:6px;background:#fff;color:var(--ink);font-size:13px;min-height:40px}
input[type=checkbox]{width:auto;min-height:initial}
input[type=file]{padding:21px;border:1px dashed #a9b99e;background:#f8faf4;cursor:pointer}
input[type=file]:hover{background:#eef4e6}
textarea{resize:vertical}
.source{font-size:11px}
.source.whatsapp{color:#6a9860}
.ticket-title{font-weight:550;color:var(--ink)}
.ticket-row td{padding:0}
.row-cell-link{display:block;padding:17px 22px;color:var(--ink);min-height:74px;align-content:center}
.row-cell-link:hover{text-decoration:none}
.ticket-row:hover,.ticket-row:focus-within{background:#f0f4eb}
.ticket-row:focus-within{outline:2px solid var(--green);outline-offset:-2px}
.row-open{color:var(--green);font-size:11px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.text-red{color:#ad6654}
.text-green{color:#4f7c42}
.detail-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:22px}
.padded{padding:25px}
.padded .panel-heading{padding:0 0 20px}
.padded h3{margin:23px 0 13px}
.padded h3:first-child{margin-top:0}
.prose{line-height:1.8;color:#6f7d70;font-size:13px}
.file-card{border:1px solid var(--line);border-radius:6px;padding:15px;display:flex;justify-content:space-between;font-size:12px;margin:9px 0}
dl{font-size:13px}
dt{font-size:11px;color:var(--muted);margin-top:20px}
dd{margin:5px 0}
.big-number{font-size:27px;font-weight:500;letter-spacing:-.5px;margin-top:8px}
.big-number small{font-size:12px;font-weight:400}
.back{display:block;margin-bottom:20px;font-size:12px}
.edit-form{padding:28px;max-width:850px;display:grid;grid-template-columns:1fr 1fr;gap:23px}
.form-field label{display:block;font-size:12px;font-weight:550;margin-bottom:7px}
.form-field small{display:block;color:var(--muted);margin-top:5px;font-size:11px}
.full,.form-actions,.edit-form>.errorlist{grid-column:1/-1}
.form-actions{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid var(--line);padding-top:22px}
.required{color:#89a078}
.errorlist{color:#a34c3e;font-size:12px;list-style:none;padding:0;margin:5px 0}
.notice{background:#eaf2df;border:1px solid #d1dfc3;padding:13px 18px;border-radius:6px;margin-bottom:20px}
.empty{text-align:center;padding:35px;color:var(--muted);font-size:12px}
.report-filters{border:0;padding:0 0 25px}
.legend{display:flex;gap:13px;font-size:10px;color:#70965a}
.legend span:last-child{color:#d1b286}
.chart-row{margin:16px 0 27px}
.chart-row>div:first-child{display:flex;justify-content:space-between;margin-bottom:10px;font-size:12px}
.chart-row>div:first-child span{font-size:11px;color:var(--muted)}
.bar-track{background:#f2f4ed;border-radius:3px;height:15px;overflow:hidden}
.bar-track.thin{height:5px;margin-top:4px;background:#faf7f0}
.bar{height:100%;border-radius:3px;min-width:0}
.bar.income{background:#85a771}
.bar.cost{background:#d5b687}
.chart-row small{display:block;color:var(--muted);font-size:10px;margin-top:6px}
.insights p{font-size:11px;margin:20px 0 6px}
.insights>strong{font-size:13px;font-weight:500}
hr{border:0;border-top:1px solid var(--line);margin:22px 0}
.info-note{background:#f6f7f0;border-radius:7px;padding:14px;margin-top:24px;font-size:11px;color:#818a75;line-height:1.7}
.auth-page main{margin-left:0}
.login-wrap{width:100%;max-width:430px;margin:auto;padding:32px 0}
.login-wrap>p{margin:16px 0 28px}
.login-wrap form p{margin:12px 0}
.login-wrap form label{display:block;font-size:12px;margin-bottom:6px}
.login-wrap button{margin-top:12px;width:100%}
@media(min-width:1500px){.stats h2{font-size:34px}
}
@media(max-width:1150px){.sidebar{width:205px;padding:26px 14px}
main{margin-left:205px}
.content{padding:26px 23px 0}
.topbar{padding:0 23px}
.stats{gap:10px}
.stats article{padding:16px 12px}
.stats h2{font-size:23px}
.stats article>span small{display:none}
.item{padding:14px}
.panel-heading{padding:18px 15px}
.group-bottom{align-items:start;flex-direction:column}
.group-bottom strong{text-align:left}
}
@media(max-width:850px){.sidebar{position:static;width:auto;padding:16px}
.brand{font-size:24px}
nav{display:flex;overflow-x:auto;margin-top:16px;gap:3px}
nav a{white-space:nowrap;padding:9px;font-size:11px}
nav a span{display:none}
main{margin-left:0}
.topbar{height:53px}
.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.attention-grid,.detail-grid{grid-template-columns:1fr}
.group-grid{grid-template-columns:1fr}
.group-bottom{flex-direction:row}
header{align-items:start}
h1{font-size:27px}
.content{padding:25px 18px 0}
}
@media(max-width:540px){header{flex-direction:column;gap:16px}
.topbar{padding:0 18px}
.topbar>span:last-child{font-size:10px;gap:8px}
.stats h2{font-size:23px}
.stats article>span{font-size:11px}
.stats .stat-foot{font-size:9px}
.filters{flex-wrap:wrap;padding:16px}
.filters .search{flex-basis:100%;max-width:100%}
.filters select{min-width:120px}
.edit-form{grid-template-columns:1fr;padding:20px}
.form-field{grid-column:1}
.panel-heading{gap:7px}
.panel-heading h3{font-size:13px}
.item-icon{display:none}
.item{gap:8px}
.item strong{font-size:11px}
footer{flex-direction:column;gap:6px;text-align:center}
.report-filters{padding:0 0 22px}
.report-filters input{min-width:0}
.report-filters label{width:calc(50% - 7px)}
}

.chat-message{padding:18px 0;border-bottom:1px solid var(--line)}
.chat-message:last-child{border:0}
.chat-message>small{display:block;color:var(--muted);margin-bottom:6px}


@media(max-width:850px){.sidebar-bottom{display:block;margin-top:8px}.sidebar-bottom .logout{margin-top:0;float:right}}

.vacancy-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:0 22px 22px}
.vacancy-summary small{display:block;color:var(--muted)}
.vacancy-summary strong{display:block;font-size:23px;font-weight:550;margin-top:5px}
.panel-footnote{padding:17px 22px;font-size:11px;border-top:1px solid var(--line)}
.view-tabs{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}
.view-tabs a{padding:9px 14px;border-radius:6px;background:#fff;border:1px solid var(--line);font-size:12px}
.view-tabs a[aria-current]{background:#eaf0df;border-color:#b8c8a7}
.completion-form p{margin:15px 0}
.completion-form label{display:block;margin-bottom:6px;font-size:12px;color:var(--ink)}
.attachment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}
.attachment-photo{width:100%;max-height:300px;object-fit:contain;background:#f6f7f3;border-radius:7px;border:1px solid var(--line)}
@media(max-width:540px){.vacancy-summary{grid-template-columns:1fr}.row-cell-link{padding:17px 16px}}

.property-switcher{margin-top:24px}
.property-switcher label{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}
.property-switcher select{font-size:12px;padding:10px 8px;background:var(--canvas)}
.property-switcher+nav{margin-top:22px}
#id_units{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px;border:1px solid var(--line);border-radius:6px;padding:12px;max-height:260px;overflow:auto}
#id_units label{display:flex;align-items:center;gap:8px;font-weight:400;padding:5px;margin:0;cursor:pointer}
button:disabled{opacity:.5;cursor:wait}
@media(max-width:850px){.property-switcher{max-width:320px;margin-top:16px}.property-switcher+nav{margin-top:16px}}

.work-progress{display:block;width:100%;height:9px;accent-color:var(--green);border:0;border-radius:8px;overflow:hidden;background:#e9ede5}
.work-progress::-webkit-progress-bar{background:#e9ede5;border-radius:8px}
.work-progress::-webkit-progress-value{background:var(--green);border-radius:8px}
.work-progress::-moz-progress-bar{background:var(--green)}
.work-progress.compact{min-width:110px;margin:7px 0;height:6px}
.progress-counts{display:flex;gap:10px;margin:14px 0 22px;flex-wrap:wrap}
.visit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;align-items:start}
.visit-card{border:1px solid var(--line);border-left:4px solid #bec7b8;border-radius:8px;padding:18px;background:#fafbf8}
.visit-done{border-left-color:#4f8253;background:#f3f8ef}
.visit-blocked{border-left-color:#c58b42;background:#fffaf1}
.visit-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:8px}
.visit-heading h3{margin:0}
.visit-card p{font-size:12px}
.visit-notes{margin:12px 0;overflow-wrap:anywhere}
.quick-visit{margin-top:15px}
.visit-card details{margin-top:15px;font-size:12px}
.visit-card summary{cursor:pointer;color:var(--green)}
.visit-card .completion-form{padding-top:6px}
