/* KukuAmupolo rent and invoices.
   Palette: navy #10307A, deep navy #0F2A66, ink #13203F, brass #C99A3E,
   brass text #855A12, seal red #B01030, rule #E3E6EC. */
@font-face{font-family:"Archivo";src:url("../fonts/Archivo-400.826dcf47a387.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Archivo";src:url("../fonts/Archivo-600.5da4384e6f4d.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Archivo";src:url("../fonts/Archivo-700.07265dd2fb6d.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Libre Caslon Text";src:url("../fonts/Caslon-400.b6e9c3b2c135.woff2") format("woff2");font-weight:400;font-display:swap}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:#13203F;font-family:"Archivo","Helvetica Neue",Arial,sans-serif;font-size:15px;line-height:1.45}
a{color:#10307A}a:hover{color:#0B2257}
:focus-visible{outline:2px solid #B07A1E;outline-offset:2px}
h1,h2,.cas{font-family:"Libre Caslon Text",Georgia,serif;font-weight:400}
h1{font-size:36px;line-height:1.1;margin:0}
h2{font-size:22px;margin:0}
p{margin:0}
.muted{color:#4A5470}
.small{font-size:13px}
.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ref{color:#B01030;font-weight:700;letter-spacing:.03em}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:3px;font:inherit;font-weight:600;font-size:15px;cursor:pointer;border:1px solid transparent;text-decoration:none;white-space:nowrap}
.btn-p{background:#10307A;color:#fff}.btn-p:hover{background:#0B2257;color:#fff}
.btn-q{background:#fff;color:#10307A;border-color:#BFC5D2}.btn-q:hover{border-color:#10307A}
.btn-b{background:#C99A3E;color:#13203F}.btn-b:hover{background:#B88A30;color:#13203F}
.btn-danger{background:#fff;color:#B01030;border-color:#E6B3BC}.btn-danger:hover{border-color:#B01030}
.btn-s{min-height:40px;padding:0 14px;font-size:14px}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.actions form{display:contents}

/* Forms */
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.field label{display:block;font-size:14px;font-weight:600;color:#2A3350;margin-bottom:6px}
.field input:not([type=checkbox]),.field select{width:100%;height:46px;padding:0 12px;border:1px solid #BFC5D2;border-radius:3px;font:inherit;color:#13203F;background:#fff}
.field input:focus,.field select:focus{border-color:#10307A;outline:2px solid #10307A;outline-offset:0}
.field input[type=checkbox]{width:20px;height:20px;vertical-align:middle;margin-right:8px}
.field .help{font-size:13px;color:#5A6380;margin-top:6px}
.field .err{font-size:13px;color:#8E0B22;margin-top:6px;font-weight:600}
.field.has-error input,.field.has-error select{border-color:#B01030}
input.code{letter-spacing:.35em;font-size:22px !important;font-variant-numeric:tabular-nums}

/* Messages */
.msg{padding:14px 16px;border-left:4px solid #10307A;background:#EAF1FB;color:#0F2A66}
.msg.error{border-color:#B01030;background:#FBEAEC;color:#8E0B22}
.msgs{display:flex;flex-direction:column;gap:10px}

/* Masthead */
.mast{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 32px;border-bottom:1px solid #E3E6EC}
.mast img{height:46px;width:auto;display:block}
.tabs{display:flex;flex-wrap:wrap;gap:2px;flex-grow:1;justify-content:center}
.tab{display:inline-flex;align-items:center;min-height:48px;padding:0 14px;font-weight:600;color:#4A5470;text-decoration:none;border-bottom:3px solid transparent}
.tab:hover{color:#10307A}
.tab[aria-current=page]{color:#10307A;border-bottom-color:#C99A3E}

.wrap{max-width:1120px;margin:0 auto;padding:32px;display:flex;flex-direction:column;gap:24px}
.page-head{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:flex-end}
.page-head p{margin-top:6px}

/* Overview: the building */
.hero{background:#0F2A66;color:#fff}
.hero-in{max-width:1120px;margin:0 auto;padding:40px 32px 0;display:flex;flex-direction:column;gap:36px}
.hero-top{display:flex;justify-content:space-between;align-items:flex-end;gap:24px}
.hero h1{font-size:clamp(36px,5vw,56px);line-height:1}
.hero-sum{display:flex;flex-direction:column;gap:12px;flex-grow:1;max-width:560px}
.hero-sum p{font-size:17px;color:#D5DCEC}
.hero progress{appearance:none;-webkit-appearance:none;width:100%;height:6px;border:0;border-radius:3px;background:rgba(255,255,255,.18);overflow:hidden}
.hero progress::-webkit-progress-bar{background:rgba(255,255,255,.18)}
.hero progress::-webkit-progress-value{background:#C99A3E}
.hero progress::-moz-progress-bar{background:#C99A3E}
.owed{text-align:right}
.owed .k{font-size:14px;color:#D5DCEC}
.owed .v{font-size:30px;color:#E7C277;font-variant-numeric:tabular-nums}
.row{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-end;border-bottom:6px solid #C99A3E;padding:0 4px}
.room{display:flex;flex-direction:column;gap:10px}
.room .who{font-size:14px;line-height:1.3}
.room .who b{display:block;color:#fff;font-weight:600}
.room .who span{color:#B9C3DA;font-variant-numeric:tabular-nums}
.door{position:relative;width:118px;height:166px;border-radius:3px 3px 0 0;display:flex;flex-direction:column;justify-content:space-between;padding:14px 12px 12px;text-decoration:none;border:2px solid;border-bottom:0}
.door .label{font-weight:700;font-size:15px}
.door .note{font-size:13px;font-weight:600;line-height:1.3}
.door::after{content:"";position:absolute;right:12px;top:52%;width:8px;height:8px;border-radius:50%}
.door-none{background:transparent;border-color:rgba(255,255,255,.6);border-style:dashed;color:#fff}.door-none::after{background:rgba(255,255,255,.6)}
.door-draft{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.5);color:#fff}.door-draft::after{background:#fff}
.door-due{background:#fff;border-color:#fff;color:#10307A}.door-due::after{background:#C99A3E}
.door-paid{background:#C99A3E;border-color:#C99A3E;color:#13203F}.door-paid::after{background:#13203F}
.door-add{background:transparent;border:2px dashed rgba(255,255,255,.35);border-bottom:0;color:#D5DCEC;align-items:center;justify-content:center;text-align:center;font-size:14px;font-weight:600}
.door:hover{color:inherit}
@media (prefers-reduced-motion:no-preference){.door{transition:transform .15s ease}.door:hover{transform:translateY(-3px)}}
.door-none:hover,.door-draft:hover,.door-add:hover{color:#fff}
.legend{max-width:1120px;margin:0 auto;padding:14px 32px 18px;display:flex;flex-wrap:wrap;gap:8px 22px;font-size:13px;color:#D5DCEC}
.legend span{display:inline-flex;gap:8px;align-items:center}
.legend i{display:inline-block;width:12px;height:12px}
.sw-paid{background:#C99A3E}.sw-due{background:#fff}.sw-draft{background:rgba(255,255,255,.3)}.sw-none{border:1px dashed #D5DCEC;width:10px !important;height:10px !important}
.monthbar{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid #E3E6EC;font-size:16px}

/* Ledger tables */
.scroll{overflow-x:auto}
.ledger{width:100%;border-collapse:collapse}
.ledger th{text-align:left;font-size:13px;font-weight:600;color:#4A5470;padding:10px 12px;border-bottom:2px solid #13203F;white-space:nowrap}
.ledger td{padding:14px 12px;border-bottom:1px solid #E3E6EC;vertical-align:middle}
.ledger th.num{text-align:right}
.ledger .sub{display:block;font-size:13px;color:#5A6380}
.st-draft{color:#5A6380;font-weight:600}.st-issued{color:#855A12;font-weight:600}.st-paid{color:#10307A;font-weight:600}
.row-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.row-actions form{display:contents}

/* Section blocks */
.section{display:flex;flex-direction:column;gap:18px;padding-top:22px;border-top:2px solid #13203F}
.narrow{max-width:760px}
.refline{padding:16px 0;border-top:1px solid #E3E6EC;border-bottom:1px solid #E3E6EC}

/* Invoice document on screen */
.doc{position:relative;background:#fff;border:1px solid #DDE1E8;box-shadow:0 18px 40px -24px rgba(15,42,102,.45);max-width:860px}
.doc-head{padding:30px 36px 22px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:6px solid #C99A3E}
.doc-head img{width:100%;max-width:290px;height:auto}
.doc-title{text-align:right}
.doc-title .t{font-family:"Libre Caslon Text",Georgia,serif;font-size:34px;letter-spacing:.14em;color:#10307A}
.doc-meta{display:grid;grid-template-columns:auto auto;gap:4px 16px;justify-content:end;font-size:14px;margin-top:8px;font-variant-numeric:tabular-nums}
.doc-meta dt{color:#5A6380}.doc-meta dd{margin:0;font-weight:600}
.doc-body{padding:28px 36px;display:flex;flex-direction:column;gap:26px}
.parties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.lab{font-size:13px;font-weight:600;color:#855A12}
.party-name{font-family:"Libre Caslon Text",Georgia,serif;font-size:20px;color:#10307A;margin-top:4px}
.party p{font-size:14px;color:#4A5470;line-height:1.6;margin-top:2px}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px 0;border-top:1px solid #E3E6EC;border-bottom:1px solid #E3E6EC}
.facts .k{font-size:13px;color:#5A6380}.facts .v{font-weight:600;margin-top:2px}
.doc-foot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;align-items:start}
.eft{background:#F3F5F9;padding:16px 18px}
.eft dl{display:grid;grid-template-columns:120px 1fr;gap:6px 12px;margin:8px 0 0;font-size:14px}
.eft dt{color:#4A5470}.eft dd{margin:0}
.eft .unset{color:#855A12;font-style:italic}
.totals{display:flex;flex-direction:column;font-variant-numeric:tabular-nums}
.totals .r{display:flex;justify-content:space-between;padding:7px 0}
.totals .due{border-top:2px solid #13203F;margin-top:6px;padding-top:12px;align-items:baseline}
.totals .due .a{font-family:"Libre Caslon Text",Georgia,serif;font-size:28px;color:#10307A}
.totals .dep{font-size:14px;color:#4A5470;gap:12px}
.doc-foot{padding:14px 36px;background:#0F2A66;color:#D5DCEC;font-size:13px}
.stamp{position:absolute;right:9%;top:210px;width:150px;height:150px;border-radius:50%;border:4px double #B01030;color:#B01030;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(-14deg);opacity:.85;text-align:center;pointer-events:none}
.stamp b{font-family:"Libre Caslon Text",Georgia,serif;font-size:34px;font-weight:400;letter-spacing:.08em}
.stamp span{font-size:12px;font-weight:600}

/* New invoice summary slip */
.two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:start}
.slip{border:1px solid #E3E6EC;border-top:5px solid #C99A3E;padding:24px}

/* Sign-in */
.auth{min-height:100vh;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr)}
.auth-main{display:flex;flex-direction:column;justify-content:center;padding:48px clamp(24px,6vw,88px);gap:28px}
.auth-main img.logo{width:100%;max-width:300px;height:auto}
.auth-form{display:flex;flex-direction:column;gap:18px;max-width:400px}
.auth-form h1{font-size:32px}
.auth-art{background:#0F2A66;display:flex;flex-direction:column;justify-content:flex-end;padding:56px clamp(24px,5vw,72px) 0;gap:40px}
.auth-art p{color:#fff;font-family:"Libre Caslon Text",Georgia,serif;font-size:clamp(28px,3.2vw,44px);line-height:1.2;max-width:520px}
.auth-art .row span{width:92px;height:150px;border-radius:3px 3px 0 0}
.a1{background:#C99A3E}.a2{background:#fff}.a3{border:2px dashed rgba(255,255,255,.5);border-bottom:0}.a4{background:rgba(255,255,255,.14)}
.qr{width:200px;height:200px;border:1px solid #E3E6EC;padding:8px;background:#fff}
.secret{font-family:"Archivo",sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.06em;font-weight:600;word-break:break-all}
.codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;padding:16px;background:#F3F5F9;font-size:17px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.04em}
.linkbtn{background:none;border:0;padding:0;font:inherit;color:#10307A;text-decoration:underline;cursor:pointer}

@media (max-width:780px){
  .mast{flex-wrap:wrap;padding:12px 18px}
  .wrap{padding:24px 18px}
  .hero-in{padding:28px 18px 0}
  .hero-top{flex-direction:column;align-items:flex-start}
  .owed{text-align:left}
  .legend{padding:14px 18px}
  .door{width:92px;height:132px}
  .fields,.two-col,.parties,.facts,.doc-foot-grid{grid-template-columns:minmax(0,1fr)}
  .doc-head{flex-direction:column;align-items:flex-start}
  .doc-title{text-align:left}
  .doc-meta{justify-content:start}
  .doc-head,.doc-body,.doc-foot{padding-left:20px;padding-right:20px}
  .auth{grid-template-columns:minmax(0,1fr)}
  .auth-art{display:none}
}
@media print{.mast,.page-head .actions,.msgs{display:none}.doc{box-shadow:none;border:0}}
