/* Apartment CRM · Settings + Reports page styles (chassis classes live in app.css / erp.css). */

/* ===== Settings ===== */
.apt-set-wrap{max-width:820px}
.set-img-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.set-img-ctl{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1 1 220px}
.set-logo{height:56px;width:auto;max-width:180px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:#fff;padding:4px}
.set-qr{width:220px;height:220px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#fff;padding:8px;flex:none}
.set-p{font-size:13.5px;color:var(--body);line-height:1.55;margin:0}
.set-base-row{display:flex;gap:8px;min-width:0}
.set-base-row .input{flex:1;min-width:0}
.set-addr-list{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.set-addr-list:empty{display:none}
.set-addr{height:34px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;color:var(--navy);max-width:100%;overflow:hidden;text-overflow:ellipsis}
.set-addr:hover{border-color:var(--navy-l);background:var(--info-tint)}
.set-example{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 10px;font-size:13px}
.set-card .rep-tbl td,.set-card .rep-tbl th{white-space:nowrap}
.set-card .set-audit-tbl td,.set-card .set-audit-tbl th{white-space:nowrap}
.set-card .set-audit-tbl td.rep-ell{max-width:0;width:100%}
.set-audit-detail{max-width:100%}
.set-card .table-wrap{max-height:520px}
.btn.text-danger{color:var(--danger)}
@media (max-width:700px){
  .set-qr{width:180px;height:180px}
  .set-base-row{flex-direction:column}
}

/* ===== Reports ===== */
.rep-kpis-3{margin-bottom:16px}
.rep-month{width:150px}
.rep-card .table-wrap{max-height:none}
.rep-card .card-head{flex-wrap:wrap}
.rep-tfoot{margin-left:auto;font-size:12.5px;color:var(--body);text-align:right;min-width:0}
.rep-tfoot b{color:var(--ink)}
.rep-tbl td .num{white-space:nowrap;font-variant-numeric:tabular-nums}
.rep-tbl td .mono{white-space:nowrap}
.rep-rate{display:inline-flex;align-items:center;gap:8px;justify-content:flex-end}
.rep-prog{width:64px;flex:none}
.rep-prog > i{background:var(--ok)}
.rep-grid-main{align-items:start}
@media (max-width:1100px){.rep-grid-main{grid-template-columns:1fr}}
@media (max-width:700px){
  .rep-month{width:auto;flex:1 1 120px}
  .rep-custom{width:100%}
  .rep-prog{width:40px}
}

/* ===== Settings: V2 sections (late fees, receipts, SMS) ===== */
.set-pw{position:relative;display:flex;align-items:center;min-width:0}
.set-pw .input{flex:1;min-width:0;padding-right:42px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}
.set-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;background:transparent;color:var(--muted);border-radius:8px;display:grid;place-items:center;cursor:pointer;padding:0}
.set-eye:hover{color:var(--navy);background:var(--info-tint)}
.set-eye svg{width:18px;height:18px}
.set-toggle{text-transform:none!important;letter-spacing:0!important;font-size:13.5px!important;font-weight:500!important;align-items:center}
.set-check{text-transform:none!important;letter-spacing:0!important;font-size:13.5px!important;font-weight:600!important;color:var(--ink)}
.set-dim{opacity:.55}
.set-ev-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}
.set-ev{min-width:0}
.set-ev .field-hint{margin:2px 0 0 28px}
.set-ph-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:10px}
.set-ph{height:26px;padding:0 9px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:var(--navy);cursor:pointer}
.set-ph:hover{border-color:var(--navy-l);background:var(--info-tint)}
.set-tpl-list{display:flex;flex-direction:column;gap:10px}
.set-tpl-row{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff}
.set-tpl-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px;min-width:0}
.set-tpl-head label{font-size:12px;font-weight:700;color:var(--ink);text-transform:none;letter-spacing:0;margin:0}
.set-tpl-count{white-space:nowrap}
.set-tpl{width:100%;min-height:52px;font-size:13px;line-height:1.45;resize:vertical}
.set-test .set-base-row .input{max-width:260px}
.set-log{border-top:1px solid var(--line);padding-top:14px}
.set-log-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.set-log-head b{font-size:14px}
.set-log .flush{margin:0 -20px -20px}
.set-card .set-sms-tbl td.rep-ell{max-width:0;width:100%}
.set-sms-body{max-width:100%;white-space:normal;display:block;overflow:hidden;text-overflow:ellipsis;max-height:3.9em;line-height:1.3}
@media (max-width:700px){
  .set-ev-grid{grid-template-columns:1fr}
  .set-test .set-base-row .input{max-width:none}
}

/* ===== Official receipt (modal on screen, .print-doc on paper) ===== */
.apt-or-wrap{display:flex;justify-content:center}
.apt-or{max-width:560px;width:100%;padding:28px 30px;font-size:13px}
.apt-or-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding-bottom:14px;border-bottom:2px solid var(--navy);margin-bottom:16px}
.apt-or-co{display:flex;gap:12px;align-items:flex-start;min-width:0}
.apt-or-co img{height:48px;width:auto;max-width:110px;object-fit:contain}
.apt-or-co b{display:block;font-family:var(--display);font-size:17px;color:var(--navy);line-height:1.2}
.apt-or-co div div{color:var(--body);font-size:12px;line-height:1.4}
.apt-or-no{text-align:right;flex:none}
.apt-or-title{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:700}
.apt-or-num{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:20px;font-weight:800;color:var(--ink);margin:2px 0}
.apt-or-date{font-size:12px;color:var(--body)}
.apt-or-amount{display:flex;justify-content:space-between;align-items:baseline;gap:12px;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:12px 16px}
.apt-or-amount span{font-size:11.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--body);font-weight:700}
.apt-or-amount b{font-family:var(--display);font-size:26px;letter-spacing:-.01em;color:var(--navy);white-space:nowrap}
.apt-or-words{margin:8px 2px 16px;font-style:italic;color:var(--body);font-size:12.5px}
.apt-or-grid{display:flex;flex-direction:column}
.apt-or-row{display:flex;justify-content:space-between;gap:16px;padding:7px 0;border-bottom:1px dashed var(--line);min-width:0}
.apt-or-l{font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;flex:none;padding-top:1px}
.apt-or-v{text-align:right;color:var(--ink);font-weight:600;min-width:0;overflow-wrap:anywhere}
.apt-or-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-top:26px;flex-wrap:wrap}
.apt-or-sign{display:flex;flex-direction:column;gap:2px;min-width:200px}
.apt-or-sign b{font-size:14px;padding-top:18px}
.apt-or-line{display:block;border-top:1px solid var(--ink);margin-top:2px;font-size:10px}
.apt-or-fine{font-size:10.5px;color:var(--muted);max-width:240px;text-align:right}
.apt-or-chip{display:inline-block;margin-left:6px;font-size:11.5px;color:var(--navy);text-decoration:none;border-bottom:1px dotted var(--navy-l)}
a.apt-or-chip:hover{color:var(--orange)}
.apt-or-print-host{position:fixed;left:-10000px;top:0;width:620px}
@media print{
  .apt-or-print-host{position:static;width:auto}
  .apt-or-print-host .apt-or{max-width:none;padding:0;border:0}
  .apt-or-amount{background:#fff}
}
@media (max-width:600px){
  .apt-or{padding:18px 16px}
  .apt-or-head{flex-direction:column}
  .apt-or-no{text-align:left}
  .apt-or-amount b{font-size:22px}
}

/* ===== Reports: export button ===== */
.rep-xlsx{white-space:nowrap}
.rep-card .card-head .select{height:32px;font-size:13px;max-width:180px}
