/* Fuente de títulos del acta. Si se agrega el archivo Astrid en fonts/, se usa esa;
   si no, Gilda Display (Google Fonts) como reemplazo cercano. */
@font-face{
  font-family:'Astrid';
  src:url('../fonts/Astrid.otf') format('opentype');
  font-display:swap;
}

/* ---------- Login ---------- */
.login-screen{display:none;}
body.auth-pending > :not(.login-screen):not(script){display:none !important;}
body.auth-pending .login-screen{
  display:flex;
  min-height:100vh;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:var(--brass);
}
.login-card{
  background:var(--paper);
  border-radius:10px;
  padding:32px 28px;
  max-width:380px;
  width:100%;
  text-align:center;
}
.login-card img{height:72px;background:var(--brass);border-radius:8px;padding:8px 12px;}
.login-card h1{font-size:22px;color:var(--brass-dark);margin:16px 0 8px;}
.login-card p{font-size:13px;color:#7a6f5e;line-height:1.5;margin:0 0 18px;}

/* ---------- Registro: abonos y daños ---------- */
.muted{color:#948a76;}
.section-label{
  font-family:'Montserrat',Helvetica,Arial,sans-serif;
  font-size:11px;
  color:var(--burgundy);
  font-weight:600;
  margin-bottom:6px;
}
.section-label-green{color:var(--green);}
.damage-row input.money-input{width:120px;}
.damage-row input.note-input{width:auto;flex:1;min-width:140px;}
.damage-row input[type=date]{width:auto;}
.order-print{color:var(--green);}
.header-link-btn + .header-link-btn{margin-left:0;}
#userEmail{opacity:.85;}
@media (max-width:600px){
  header{padding:16px;}
  header .meta{flex-wrap:wrap;}
  .catalog-panel{padding:16px 16px 40px;}
  .damage-row input.money-input, .damage-row input.note-input, .damage-row select{width:100%;flex:1 1 100%;}
}

/* ---------- Plantilla DOSA (acta de reposición / recibo de abono) ---------- */
#docArea{display:none;}

/* Al imprimir un documento DOSA solo se deja #docArea; la página sin márgenes (@page) la inyecta printDoc() en app.js */
@media print{
  .login-screen{display:none !important;}
  body.print-doc > *:not(#docArea){display:none !important;}
  body.print-doc #docArea{display:block;}
  body.print-doc #docArea .doc-page{min-height:0;}
}

#docArea{
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact;
  font-family:'Montserrat',Helvetica,Arial,sans-serif;
  color:#b74e58;
}
#docArea .doc-page{
  position:relative;
  width:210mm;
  min-height:296mm;
  padding:72mm 12mm 14mm 12.7mm;
  background:#fff;
}
#docArea .doc-wave{
  position:absolute;
  top:0;left:0;
  width:210mm;
  height:71mm;
}
#docArea .doc-logo{
  position:absolute;
  left:20.3mm;
  top:5.7mm;
  width:34.3mm;
}
#docArea .doc-title{
  position:absolute;
  right:8.5mm;
  top:18.6mm;
  margin:0;
  text-align:right;
  font-family:'Astrid','Gilda Display',Georgia,serif;
  font-weight:400;
  font-size:9.6mm;
  line-height:9.4mm;
  letter-spacing:0;
  color:#b74e58;
}
#docArea .doc-client{
  font-size:5.1mm;
  line-height:6.8mm;
  margin-bottom:12mm;
}
#docArea .doc-client strong{font-weight:700;margin-right:1.5mm;}
#docArea .doc-client #docExtraLine{font-size:4.2mm;}

#docArea .doc-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  font-size:3.3mm;
  color:#b74e58;
}
#docArea .doc-table th{
  background:#b74e58;
  color:#fff;
  font-weight:400;
  height:9.8mm;
  text-align:center;
  border:.3mm solid #b74e58;
  letter-spacing:.1mm;
}
#docArea .doc-table th:first-child{font-weight:700;width:24%;}
#docArea .doc-table td{
  height:9.5mm;
  text-align:center;
  border:.3mm solid #b74e58;
  padding:1mm 2mm;
}
#docArea .doc-table tr{break-inside:avoid;}
#docArea .doc-table td.doc-item{font-weight:700;}
#docArea .doc-table .doc-note{font-weight:400;font-size:2.8mm;margin-top:.5mm;}
#docArea .doc-table tr.doc-current td{background:#f7e9e5;}
#docArea .doc-table td.doc-blank{border:none;background:none;}
#docArea .doc-table td.doc-total-label{
  background:#b74e58;
  color:#fff;
}
#docArea .doc-table tr.doc-total td.doc-total-label{font-size:3.1mm;}
