*{box-sizing:border-box}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:#f5f7f7;
  color:#102f2b;
}

.app{
  display:flex;
  min-height:100vh;
}

.sidebar{
  width:255px;
  flex:0 0 255px;
  background:linear-gradient(180deg,#00533f,#003f32);
  color:#fff;
  padding:18px 13px;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  padding:20px 15px;
  font-size:14px;
  line-height:1.35;
}

.brand-mark{
  width:150px;
  height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.brand-mark img{
  width:155%;
  height:155%;
  object-fit:contain;
  display:block;
}

.brand strong{
  display:block;
}

.nav-item{
  width:100%;
  border:0;
  background:transparent;
  color:#fff;
  text-align:left;
  padding:15px 17px;
  margin:3px 0;
  border-radius:8px;
  font-size:16px;
  cursor:pointer;
}

.nav-item span{
  margin-left:14px;
}

.nav-item.active,
.nav-item:hover{
  background:#087553;
}

.main{
  flex:1;
  min-width:0;
}

.topbar{
  height:83px;
  background:#fff;
  border-bottom:1px solid #e4e9e8;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 28px;
}

.datetime{
  display:flex;
  align-items:center;
  gap:22px;
  font-size:14px;
}

.datetime strong{
  font-size:28px;
  color:#0a4036;
}

.user{
  padding-left:18px;
  border-left:1px solid #ddd;
}

.content{
  padding:14px 18px 24px;
  min-width:0;
}

.title h1{
  font-size:40px;
  margin:0;
  color:#103d35;
  letter-spacing:-1px;
  text-align:center;
}

.title p{
  margin:4px 0 14px;
  color:#53636c;
  font-size:17px;
}

.workspace{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(330px,.9fr);
  gap:16px;
  align-items:stretch;
}

.left-column,
.right-column{
  min-width:0;
}

.card{
  background:#fff;
  border:1px solid #dfe7e5;
  border-radius:8px;
  box-shadow:0 2px 8px rgba(0,0,0,.03);
  overflow:hidden;
  min-width:0;
}

.tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  padding:2px;
  background:#f3f6f6;
  border-bottom:1px solid #e1e7e6;
}

.tab{
  border:0;
  background:transparent;
  padding:14px;
  font-size:16px;
  color:#1d3650;
  cursor:pointer;
}

.tab.active{
  background:#078051;
  color:#fff;
  font-weight:700;
  border-radius:6px;
}

.tabs .tab:focus{
  outline:2px solid rgba(7,138,85,.25);
  outline-offset:-2px;
}

.scan-panel{
  display:flex;
  align-items:center;
  gap:0;
  margin:14px 10px;
  padding:17px 18px;
  border:1px solid #e0e8e6;
  border-radius:7px;
}

.barcode{
  font-size:40px;
  letter-spacing:-4px;
}

.scan-input-wrap{
  flex:1;
  width:100%;
  min-width:0;
}

.scan-input-wrap label{
  font-weight:700;
  display:block;
  margin-bottom:9px;
}

.scan-input-wrap small{
  color:#71808a;
  display:block;
  margin-top:7px;
}

.scan-input-wrap input{
  width:100%;
  font-size:20px;
  padding:13px;
  border:2px solid #4b9cff;
  border-radius:7px;
  outline:none;
}

.scan-dni-row{
  display:flex;
  gap:10px;
  align-items:center;
}

.scan-dni-row input{
  flex:1;
  min-width:0;
}

.scan-dni-row .btn{
  height:50px;
}

.section-title{
  margin:0 14px;
  padding:7px 12px;
  background:#e7f3f0;
  font-size:18px;
  font-weight:700;
}

.form-grid{
  padding:13px 15px 0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 18px;
}

.field{
  display:flex;
  align-items:center;
  gap:10px;
}

.field label{
  min-width:140px;
  font-size:15px;
  font-weight:700;
}

.field input,
.field select{
  flex:1;
  min-width:0;
  padding:11px;
  border:1px solid #d4dce0;
  border-radius:6px;
  background:#f8fafb;
  font-size:15px;
  color:#182b39;
}

.dni-field{
  grid-column:1/-1;
}

.inline{
  display:flex;
  gap:10px;
  flex:1;
  min-width:0;
}

.inline input{
  width:180px;
  flex:none;
}

.half{
  min-width:0;
}

.area-field{
  grid-column:1/-1;
}

.area-field select{
  max-width:470px;
}

.area-control{
  display:flex;
  gap:10px;
  flex:1;
  min-width:0;
}

.area-control select{
  flex:1;
  min-width:0;
}

.manual-area-input{
  flex:1;
  min-width:0;
  padding:11px;
  border:1px solid #d4dce0;
  border-radius:6px;
  background:#fff;
  font-size:15px;
  color:#182b39;
}

.manual-area-input:focus{
  outline:none;
  border-color:#078a55;
  box-shadow:0 0 0 2px rgba(7,138,85,.12);
}

.area-field .area-control{
  max-width:650px;
}

.btn{
  border:0;
  border-radius:7px;
  padding:12px 18px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
}

.primary{
  background:#078a55;
  color:#fff;
}

.primary:hover{
  background:#066f46;
}

.secondary{
  background:#078a55;
  color:#fff;
}

.clear{
  background:#f5f7f8;
  color:#203044;
  border:1px solid #d8e0e4;
}

.actions{
  display:flex;
  justify-content:center;
  gap:12px;
  padding:15px;
}

.actions .primary{
  min-width:310px;
}

.manual-card{
  padding-bottom:12px;
  height:100%;
  display:flex;
  flex-direction:column;
}

.manual-head{
  display:flex;
  gap:16px;
  background:#e9f6f2;
  padding:16px;
}

.manual-icon{
  width:54px;
  height:54px;
  border-radius:50%;
  background:#d4eee6;
  display:grid;
  place-items:center;
  font-size:27px;
  flex:0 0 54px;
}

.manual-head h2{
  margin:4px 0 6px;
  font-size:21px;
}

.manual-head p{
  margin:0;
  line-height:1.4;
}

.manual-form{
  padding:16px;
  flex:1;
  display:flex;
  flex-direction:column;
}

.manual-form .field{
  margin-bottom:13px;
}

.manual-form .field label{
  min-width:130px;
}

.manual-form .inline input{
  width:160px;
}

.manual-form .btn{
  padding:11px 14px;
}

.manual-form .actions{
  padding:3px 0 0;
  margin-top:auto;
}

.manual-form .actions .primary{
  min-width:0;
  flex:1;
}

.manual-form .actions .clear{
  width:110px;
}

.manual-form .area-control{
  width:100%;
}

.guest-action{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:13px;
}

.guest-action .guest-btn{
  min-width:120px;
}

.guest-action .guest-text{
  flex:1;
  max-width:260px;
}

.guest-select{
  height:40px;
  min-width:220px;
  padding:0 12px;
  border:1px solid #cfd8dc;
  border-radius:6px;
  background:#fff;
  font-size:14px;
  color:#333;
}

.guest-select:disabled{
  background:#eef2f3;
  color:#999;
}

.guest-text{
  flex:1;
  min-width:150px;
  padding:11px;
  border:1px solid #b9dcd2;
  border-radius:6px;
  background:#fff;
  font-size:15px;
  color:#182b39;
}

.guest-text:focus{
  outline:none;
  border-color:#078a55;
  box-shadow:0 0 0 2px rgba(7,138,85,.12);
}

.guest-btn{
  background:#e7f3f0;
  color:#075f49;
  border:1px solid #b9dcd2;
}

.guest-btn.active{
  background:#075f49;
  color:#fff;
  border-color:#075f49;
}

.guest-label{
  font-size:12px;
  color:#075f49;
  font-weight:700;
  margin-left:4px;
}

.workflow-locked{
  opacity:.58;
}

.workflow-locked input,
.workflow-locked select,
.workflow-locked button{
  cursor:not-allowed;
}

.workflow-locked input:disabled,
.workflow-locked select:disabled{
  background:#eef1f2;
  color:#7b858b;
}

.manual-card.workflow-locked .manual-head{
  filter:grayscale(.35);
}

.form-grid input[readonly]{
  background:#eef1f3;
  color:#182b39;
  cursor:not-allowed;
}

#visitorForm input[readonly]{
  background:#eef2f3;
  color:#263b45;
}

#visitorForm input[readonly]:focus{
  outline:none;
  border-color:#d4dce0;
  box-shadow:none;
}

#manualDni:disabled{
  cursor:not-allowed;
}

.visitors-card{
  margin-top:16px;
  padding:0 10px 12px;
}

.visitors-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:13px 6px;
}

.visitors-header h2{
  margin:0;
  font-size:21px;
}

.counter{
  background:#e8f3f0;
  border-radius:18px;
  padding:8px 13px;
}

.counter b{
  background:#078a55;
  color:#fff;
  border-radius:50%;
  padding:7px 11px;
  margin-right:8px;
}

.table-wrap{
  overflow:auto;
  max-width:100%;
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

th{
  background:#075f49;
  color:#fff;
  padding:11px 8px;
}

td{
  padding:10px 8px;
  border:1px solid #e1e6e6;
  white-space:nowrap;
}

tbody tr:nth-child(even){
  background:#fafcfc;
}

.retire{
  background:#e62e2e;
  color:#fff;
  border:0;
  border-radius:5px;
  padding:9px 15px;
  font-weight:700;
  cursor:pointer;
}

.retire:hover{
  background:#c91f1f;
}

.cv{
  background:#7b3fc6;
  color:#fff;
  border:0;
  border-radius:5px;
  padding:9px 15px;
  font-weight:700;
  cursor:pointer;
}

.cv:hover{
  background:#642fa3;
}

.retire {
  margin-right: 12px;
}

.cv {
  margin-left: 8px;
}

.exit-actions {
  text-align: center !important;
  vertical-align: middle;
  white-space: nowrap;
}

.exit-actions .retire {
  margin-right: 8px;
}

.exit-actions .cv {
  margin-left: 0;
}

footer{
  display:flex;
  justify-content:space-between;
  color:#6b7480;
  padding:18px 2px;
  font-size:13px;
}

.toast{
  position:fixed;
  right:25px;
  bottom:25px;
  background:#0a493b;
  color:#fff;
  padding:14px 18px;
  border-radius:7px;
  box-shadow:0 5px 20px rgba(0,0,0,.2);
  opacity:0;
  transform:translateY(15px);
  pointer-events:none;
  transition:.25s;
}

.toast.show{
  opacity:1;
  transform:translateY(0);
}

.reports-card{
  width:100%;
  padding:0 10px 14px;
}

.reports-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 8px 14px;
  border-bottom:1px solid #e3e9e8;
}

.reports-header h2{
  margin:0 0 4px;
  font-size:22px;
  color:#103d35;
}

.reports-header p{
  margin:0;
  color:#6b7480;
  font-size:14px;
}

.reports-actions{
  display:flex;
  gap:10px;
  margin-left:auto;
  justify-content:flex-end;
}

.report-summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  padding:14px 4px;
}

.report-stat{
  border:1px solid #dfe7e5;
  border-radius:8px;
  background:#f8fbfa;
  padding:13px 16px;
}

.report-stat span{
  display:block;
  color:#68767d;
  font-size:13px;
  margin-bottom:5px;
}

.report-stat strong{
  font-size:25px;
  color:#075f49;
}

.reports-filters{
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1.5fr 1.2fr 1fr auto;
  gap:12px;
  align-items:end;
  padding:8px 4px 16px;
}

.reports-filters .field{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
}

.reports-filters .field label{
  min-width:0;
  font-weight:700;
  font-size:13px;
  color:#33474e;
}

.reports-filters input,
.reports-filters select{
  width:100%;
  box-sizing:border-box;
  padding:11px;
  border:1px solid #d4dce0;
  border-radius:6px;
  background:#f8fafb;
  font-size:14px;
  color:#182b39;
}

.report-filter-actions{
  display:flex;
  gap:8px;
  align-items:end;
}

.report-filter-actions .btn{
  white-space:nowrap;
}

.report-table-wrap{
  overflow-x:auto;
}

.reports-card table{
  min-width:1050px;
}

.report-status{
  display:inline-block;
  padding:5px 9px;
  border-radius:14px;
  font-size:11px;
  font-weight:700;
}

.report-status.finalizada{
  background:#e8f3f0;
  color:#075f49;
}

.report-status.dentro{
  background:#fff1d9;
  color:#8a5b00;
}

.report-empty{
  text-align:center;
  padding:24px;
  color:#6b7480;
}

.history-card{
  width:100%;
  max-width:100%;
  min-width:0;
}

.history-filters{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:
    170px
    170px
    minmax(280px,1fr)
    minmax(220px,1fr)
    auto;
  gap:14px;
  align-items:end;
  padding:18px 14px 14px;
}

.history-filters .field{
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
}

.history-filters .field label{
  width:100%;
  min-width:0 !important;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}

.history-filters input,
.history-filters select{
  width:100% !important;
  min-width:0 !important;
  max-width:100%;
  box-sizing:border-box;
}

.history-filter-actions{
  display:flex;
  gap:10px;
  align-items:stretch;
  justify-content:flex-end;
  flex-shrink:0;
}

.history-filter-actions .btn{
  white-space:nowrap;
  flex-shrink:0;
}

.visitors-card th:nth-child(3),
.visitors-card td:nth-child(3),
.visitors-card th:nth-child(4),
.visitors-card td:nth-child(4){
  text-align:center;
}

.history-card th:nth-child(4),
.history-card td:nth-child(4),
.history-card th:nth-child(5),
.history-card td:nth-child(5),
.history-card th:nth-child(6),
.history-card td:nth-child(6){
  text-align:center;
}

.reports-card th:nth-child(4),
.reports-card td:nth-child(4),
.reports-card th:nth-child(5),
.reports-card td:nth-child(5),
.reports-card th:nth-child(6),
.reports-card td:nth-child(6){
  text-align:center;
}

.editable-exit-time,
.editable-entry-time{
  text-align:center;
}

.edit-exit-time,
.edit-entry-time{
  border:none;
  background:transparent;
  cursor:pointer;
  font:inherit;
  padding:4px 8px;
  border-radius:5px;
}

.edit-exit-time:hover,
.edit-entry-time:hover{
  background:#e8f1ec;
}

.exit-time-editor,
.entry-time-editor{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}

.exit-time-input,
.entry-time-input{
  width:85px;
  padding:4px 6px;
  border:1px solid #aaa;
  border-radius:4px;
  font:inherit;
}

.save-exit-time,
.cancel-exit-time,
.save-entry-time,
.cancel-entry-time{
  border:none;
  cursor:pointer;
  padding:4px 7px;
  border-radius:4px;
  font-weight:bold;
}

.save-exit-time,
.save-entry-time{
  background:#d9eadf;
}

.cancel-exit-time,
.cancel-entry-time{
  background:#f0dede;
}

@media (max-width:1600px){

  .content{
    padding-left:14px;
    padding-right:14px;
  }

  .workspace{
    grid-template-columns:minmax(0,1.55fr) minmax(300px,.9fr);
    gap:12px;
  }

  .manual-form .field{
    min-width:0;
  }

  .manual-form .field label{
    min-width:110px;
    max-width:110px;
    white-space:normal;
  }

  .manual-form .inline{
    min-width:0;
    flex:1;
  }

  .manual-form .inline input{
    min-width:0;
    width:auto;
    flex:1;
  }

  .manual-form .btn{
    flex-shrink:1;
  }

  .history-filters{
    grid-template-columns:
      minmax(150px,1fr)
      minmax(150px,1fr)
      minmax(240px,1.4fr)
      minmax(190px,1.1fr)
      auto;
  }

  .history-filters .field{
    min-width:0;
  }

  .history-filters input,
  .history-filters select{
    min-width:0;
    width:100%;
  }

  .reports-filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .report-filter-actions{
    grid-column:1/-1;
    justify-content:flex-end;
  }
}

@media (max-width:1300px){

  .sidebar{
    width:220px;
    flex-basis:220px;
  }

  .topbar{
    padding-left:18px;
    padding-right:18px;
  }

  .title h1{
    font-size:34px;
  }

  .workspace{
    grid-template-columns:1fr;
  }

  .left-column,
  .right-column{
    width:100%;
    max-width:100%;
  }

  .right-column{
    height:auto;
  }

  .manual-card{
    height:auto;
  }

  .manual-card .manual-form{
    height:auto;
  }

  .manual-form .field{
    flex-direction:row;
    align-items:center;
  }

  .manual-form .field label{
    min-width:130px;
    max-width:130px;
  }

  .history-filters{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .history-filter-actions{
    grid-column:1/-1;
    justify-content:flex-end;
  }

  .reports-filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .report-filter-actions{
    grid-column:1/-1;
  }
}


/* Hasta 900 px */
@media (max-width:900px){

  .sidebar{
    width:190px;
    flex-basis:190px;
  }

  .brand{
    padding-left:5px;
    padding-right:5px;
  }

  .brand-mark{
    width:130px;
  }

  .brand-mark img{
    width:150%;
    height:150%;
  }

  .nav-item{
    font-size:14px;
    padding:13px 10px;
  }

  .nav-item span{
    margin-left:8px;
  }

  .content{
    padding:12px;
  }

  .title h1{
    font-size:28px;
  }

  .form-grid{
    grid-template-columns:1fr 1fr;
  }

  .scan-dni-row{
    flex-wrap:wrap;
  }

  .scan-dni-row input{
    min-width:0;
    flex:1 1 200px;
  }

  .scan-dni-row .btn{
    flex:0 1 auto;
  }

  .manual-form .field{
    flex-direction:column;
    align-items:stretch;
  }

  .manual-form .field label{
    min-width:0;
    max-width:none;
  }

  .manual-form .inline{
    width:100%;
  }

  .manual-form .inline input{
    width:auto;
    flex:1;
  }

  .history-filters,
  .reports-filters{
    grid-template-columns:1fr 1fr;
  }

  .history-filter-actions,
  .report-filter-actions{
    grid-column:1/-1;
    width:100%;
  }

  .history-filter-actions .btn,
  .report-filter-actions .btn{
    flex:1;
  }

  .table-wrap,
  .report-table-wrap{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}

@media (max-width:760px){

  .sidebar{
    display:none;
  }

  .main{
    width:100%;
  }

  .topbar{
    height:auto;
    min-height:55px;
    padding:10px 12px;
  }

  .datetime{
    width:100%;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
  }

  .datetime strong{
    font-size:20px;
  }

  .content{
    padding:10px;
  }

  .title h1{
    font-size:22px;
    line-height:1.2;
  }

  .tabs{
    display:flex;
    flex-direction:column;
    width:100%;
  }

  .tab{
    width:100%;
    padding:12px;
  }

  .form-grid{
    grid-template-columns:1fr;
  }

  .dni-field,
  .area-field{
    grid-column:auto;
  }

  .field{
    flex-direction:column;
    align-items:stretch;
  }

  .field label{
    min-width:0;
  }

  .inline{
    width:100%;
  }

  .inline input{
    width:100% !important;
    min-width:0;
  }

  .scan-dni-row{
    flex-direction:column;
    align-items:stretch;
  }

  .scan-dni-row input,
  .scan-dni-row .btn{
    width:100%;
    flex:none;
  }

  .area-control{
    width:100%;
    flex-direction:column;
  }

  .area-field .area-control{
    max-width:none;
  }

  .actions{
    flex-direction:column;
    width:100%;
    gap:8px;
  }

  .actions .btn,
  .actions .primary,
  .actions .clear{
    width:100%;
    min-width:0;
  }

  .manual-form .field{
    flex-direction:column;
    align-items:stretch;
  }

  .manual-form .field label{
    min-width:0;
    max-width:none;
  }

  .manual-form .inline{
    width:100%;
  }

  .manual-form .inline input{
    width:100%;
    flex:1;
  }

  .manual-form .inline .btn{
    flex-shrink:0;
  }

  .guest-action{
    flex-wrap:wrap;
  }

  .guest-action .guest-text{
    max-width:none;
    flex:1;
    min-width:180px;
  }

  .guest-text{
    width:100%;
    min-width:0;
  }

  .history-filters,
  .reports-filters{
    grid-template-columns:1fr;
    width:100%;
    padding:12px 4px;
  }

  .history-filter-actions,
  .report-filter-actions{
    grid-column:auto;
    flex-direction:column;
    width:100%;
  }

  .history-filter-actions .btn,
  .report-filter-actions .btn{
    width:100%;
    flex:none;
  }

  .reports-header{
    align-items:stretch;
    flex-direction:column;
  }

  .reports-actions{
    width:100%;
  }

  .reports-actions .btn{
    flex:1;
  }

  .report-summary{
    grid-template-columns:1fr;
  }

  .visitors-header{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  table{
    min-width:800px;
  }
}

@media (max-width:550px){

  .history-filters .field label{
    white-space:normal;
  }

  .history-filter-actions{
    flex-direction:column;
  }

  .history-filter-actions .btn{
    width:100%;
  }
}


/* Hasta 400 px */
@media (max-width:400px){

  .content{
    padding:8px;
  }

  .card{
    padding:10px;
  }

  .title h1{
    font-size:18px;
  }

  .section-title{
    font-size:15px;
  }

  label{
    font-size:13px;
  }

  input,
  select,
  button{
    font-size:14px;
  }

  .nav-item{
    font-size:13px;
  }
}

@media print{

  @page{
    margin:12mm;
  }

  body{
    background:#fff!important;
    color:#111!important;
  }

  .sidebar,
  .topbar,
  .reports-actions,
  .reports-filters,
  .visitors-card,
  .history-card,
  .left-column,
  .right-column,
  .toast,
  footer{
    display:none!important;
  }

  .main{
    width:100%!important;
  }

  .content{
    padding:0!important;
  }

  .title{
    display:block!important;
    margin:0 0 12px!important;
  }

  .title h1{
    font-size:28px!important;
    margin:0!important;
  }

  .workspace{
    display:block!important;
    margin:0!important;
  }

  .workspace > *:not(#reportsWorkflow){
    display:none!important;
  }

  .reports-card{
    display:block!important;
    border:0!important;
    box-shadow:none!important;
    width:100%!important;
    overflow:visible!important;
  }

  .reports-card .reports-header{
    display:block!important;
    border-bottom:1px solid #d9d9d9!important;
    padding-bottom:10px!important;
  }

  .reports-card .reports-header h2{
    margin:0 0 4px!important;
  }

  .reports-card .reports-header p{
    margin:0!important;
  }

  .report-summary{
    break-inside:avoid;
    page-break-inside:avoid;
  }

  .reports-card .table-wrap{
    overflow:visible!important;
  }

  .reports-card table{
    min-width:0!important;
    width:100%!important;
    font-size:11px!important;
  }

  .reports-card th,
  .reports-card td{
    padding:7px 5px!important;
  }

  .reports-card th{
    background:#075f49!important;
    color:#fff!important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }

  .report-status{
    border:1px solid #bbb!important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }

  .report-time-screen{
    display:none!important;
  }

  .report-time-print{
    display:inline!important;
  }
}

#scannerWorkflow{
  --reniec-width:clamp(210px,25vw,235px);
  --reniec-gap:14px;
}

#scannerWorkflow .scan-dni-row{
  display:flex;
  gap:var(--reniec-gap);
  align-items:center;
}

#scannerWorkflow .scan-dni-row input{
  flex:1 1 auto;
  min-width:0;
}

#scannerWorkflow .scan-dni-row .btn{
  width:var(--reniec-width);
  min-width:var(--reniec-width);
  max-width:var(--reniec-width);
}

#visitorForm .form-grid{
  grid-template-columns:1fr;
}

#visitorForm .form-grid .dni-field,
#visitorForm .form-grid .field,
#visitorForm .form-grid .half{
  grid-column:1;
}

#visitorForm #dni{
  width:225px;
  max-width:100%;
  flex:none;
}

#visitorForm #names,
#visitorForm #paterno,
#visitorForm #materno{
  width:calc(100% - 140px - var(--reniec-width) - var(--reniec-gap) - 10px);
  max-width:100%;
  min-width:0;
  flex:none;
  box-sizing:border-box;
}

#visitorForm .area-field{
  grid-column:1;
}

#visitorForm .area-control{
  width:100%;
  max-width:470px;
}

@media(max-width:600px){
  #visitorForm #dni{
    width:225px;
    max-width:100%;
  }

  #visitorForm #names,
  #visitorForm #paterno,
  #visitorForm #materno{
    width:100%;
    max-width:100%;
  }

  #visitorForm .area-control{
    max-width:100%;
  }
}