/* ============================= */
/*      RISCONTRO CASSA UI       */
/* ============================= */

.rc-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:30px 20px;
  font-family:"Segoe UI", Arial, sans-serif;
  color:#111;
  box-sizing:border-box;
}

.rc-bg{
  width:100%;
  height:auto;
  min-height:0;

  background:#d9d9d9;
  border:1px solid #bfbfbf;
  border-radius:10px;

  padding:45px 55px 65px;
  position:relative;
  box-sizing:border-box;

  /* Il contenitore segue l'altezza reale di tutti gli elementi */
  overflow:visible;
}

.rc-hide-label{
  display:none !important;
}

/* ============================= */
/*        SCHERMATA ACCESSO      */
/* ============================= */

.rc-access-screen{
  width:100%;
  min-height:360px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#d9d9d9;
  border:1px solid #bfbfbf;
  border-radius:10px;

  padding:40px 20px;
  box-sizing:border-box;
}

.rc-access-box{
  width:100%;
  max-width:320px;
  text-align:center;
}

.rc-access-box label{
  display:block;
  font-size:18px;
  font-weight:800;
  letter-spacing:.5px;
  margin-bottom:12px;
}

.rc-access-box .rc-input{
  text-align:center;
  margin-bottom:14px;
}

.rc-access-box .rc-btn{
  width:100%;
}

.rc-access-msg{
  margin-top:12px;
  font-size:14px;
  font-weight:600;
}

.rc-cassa-title{
  text-align:right;
  margin-bottom:30px;
}

.rc-cassa-title div{
  font-size:14px;
  font-weight:500;
  padding-right:20px;
}

/* ============================= */
/*            LAYOUT             */
/* ============================= */

.rc-layout-new{
  display:grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(320px, 420px);

  grid-template-areas:
    "inputs summary"
    "cash cash"
    "bottom actions"
    "food food";

  gap:35px 55px;
  align-items:start;

  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

/* Evita che gli elementi interni allarghino la griglia */
.rc-layout-new > *{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

.rc-col-inputs{
  grid-area:inputs;

  display:grid;
  grid-template-columns:180px 180px;
  gap:22px;
  align-items:start;

  min-width:0;
  max-width:100%;
}

.rc-col-summary{
  grid-area:summary;

  width:100%;
  min-width:0;
  max-width:100%;
}

.rc-row-cassetto{
  grid-area:cash;

  width:100%;
  min-width:0;
  max-width:100%;

  margin-top:8px;
  box-sizing:border-box;
}

.rc-col-inputs-bottom{
  grid-area:bottom;

  display:flex;
  gap:22px;
  align-items:flex-start;

  min-width:0;
  max-width:100%;
}

.rc-col-inputs-bottom .rc-row{
  width:200px;

  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;

  min-width:0;
}

.rc-col-inputs-bottom .rc-causale-wrap{
  width:200px;
  min-width:0;

  flex-direction:column !important;
  gap:8px !important;
}

.rc-col-actions{
  grid-area:actions;

  display:flex;
  justify-content:flex-end;
  align-items:flex-start;

  width:100%;
  min-width:0;
}

.rc-col-actions .rc-btn{
  width:320px;
  max-width:100%;
  margin-top:0;
}

/* ============================= */
/*          ROW GENERIC          */
/* ============================= */

.rc-row{
  display:flex;
  flex-direction:column-reverse;
  gap:8px;

  min-width:0;
  box-sizing:border-box;
}

.rc-row label{
  display:block;
  margin:0;

  font-weight:600;
  font-size:13px;
  letter-spacing:.3px;
  text-transform:uppercase;
}

/* ============================= */
/*             INPUT             */
/* ============================= */

.rc-input{
  width:100%;
  max-width:100%;

  padding:10px 12px;

  font-size:15px;

  border:1px solid #8c8c8c;
  border-radius:4px;
  background:#fff;

  box-sizing:border-box;
}

.rc-input:focus{
  outline:none;
  border-color:#2f6f3e;
  box-shadow:0 0 0 2px rgba(47,111,62,0.15);
}

#rc_chiusura_fiscale,
#rc_totale_computer{
  max-width:180px;
}

#rc_pos,
#rc_satispay,
#rc_scontrini{
  max-width:200px;
}

/* ============================= */
/*          ICONE TOP            */
/* ============================= */

.rc-row-icon{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;

  text-align:center;
}

.rc-icon img{
  width:70px;
  max-width:100%;
  height:auto;
  display:block;
}

.rc-row-icon .rc-input{
  width:100%;
  max-width:180px;
  text-align:center;
}

.rc-row-icon label{
  font-size:13px;
  font-weight:600;
  text-transform:uppercase;
}

/* ============================= */
/*       CASSETTO FULL WIDTH     */
/* ============================= */

.rc-cassetto{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:18px;

  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

.rc-cass-item{
  display:flex;
  flex-direction:column-reverse;
  gap:6px;

  min-width:0;
}

.rc-cass-item span{
  display:block;
  margin:0;

  font-weight:600;
  font-size:13px;
  letter-spacing:.3px;
  text-transform:uppercase;
}

.rc-cass-item .rc-input{
  width:100%;
  max-width:none;
}

/* ============================= */
/*            CAUSALE            */
/* ============================= */

.rc-causale-wrap{
  margin-top:0 !important;
  min-width:0;
  box-sizing:border-box;
}

.rc-causale-wrap label{
  order:2;

  display:block;
  margin:0 !important;

  font-size:13px;
  font-weight:600;
  text-transform:uppercase;
}

.rc-causale-wrap input{
  order:1;
}

/* ============================= */
/*          BOX CALCOLI          */
/* ============================= */

.rc-box{
  width:100%;
  max-width:100%;
  min-width:0;

  border:1px solid #bdbdbd;
  background:rgba(255,255,255,0.35);
  border-radius:8px;

  padding:1px 20px;

  box-sizing:border-box;
  overflow:hidden;
}

.rc-line{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:18px;

  min-width:0;

  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,0.1);
}

.rc-line:last-child{
  border-bottom:none;
}

.rc-line span{
  min-width:0;
  font-size:15px;
}

.rc-line strong{
  min-width:0;
  font-size:15px;
  font-weight:600;
  white-space:nowrap;
}

.rc-fondo-line{
  padding-bottom:10px;
}

.rc-fondo-line strong{
  font-size:16px;
}

#rc_riscontro.rc-ok{
  color:#0a7c2e;
  font-weight:800;
}

#rc_riscontro.rc-bad{
  color:#c10000;
  font-weight:800;
}

.rc-diff-line strong{
  font-size:16px;
}

/* ============================= */
/*             BUTTON            */
/* ============================= */

.rc-btn{
  padding:0px;

  font-size:18px;
  font-weight:700;
  letter-spacing:.5px;

  border:2px solid #111;
  background:#ffef00;
  border-radius:0px;

  cursor:pointer;
  transition:all .2s ease;

  box-sizing:border-box;
}

.rc-btn:hover{
  background:#ffe600;
}

/* ============================= */
/*       MESSAGGI FULL WIDTH     */
/* ============================= */

.rc-msg-full{
  width:100%;
  margin-top:28px;
  padding:14px 18px;

  border-radius:8px;

  text-align:center;
  font-size:15px;
  font-weight:600;

  box-sizing:border-box;
}

.rc-msg-full:empty{
  display:none;
}

.rc-msg-full.rc-msg-ok{
  background:#dff5e4;
  color:#146c2e;
  border:1px solid #8fd3a0;
}

.rc-msg-full.rc-msg-bad,
.rc-access-msg.rc-msg-bad{
  background:#ffe3e3;
  color:#b30000;
  border:1px solid #ffb1b1;

  padding:10px;
  border-radius:6px;
}

.rc-access-msg.rc-msg-ok{
  background:#dff5e4;
  color:#146c2e;
  border:1px solid #8fd3a0;

  padding:10px;
  border-radius:6px;
}

.rc-invalid{
  border-color:#c10000 !important;
  box-shadow:0 0 0 2px rgba(193,0,0,0.15);
}

/* ============================= */
/*       CAMPI RISTORAZIONE      */
/* ============================= */

.rc-food-platforms{
  grid-area:food;

  width:100%;
  max-width:100%;
  min-width:0;

  display:grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap:30px;
  margin-top:4px;

  box-sizing:border-box;
}

.rc-food-section{
  display:grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap:18px;
  align-items:end;

  width:100%;
  max-width:100%;
  min-width:0;

  border:1px solid #bdbdbd;
  border-radius:8px;

  padding:12px 15px 15px;

  background:rgba(255,255,255,0.25);
  box-sizing:border-box;
}

.rc-food-title{
  grid-column:1 / -1;

  text-align:center;
  font-size:15px;
  font-weight:800;
  letter-spacing:.5px;
  text-transform:uppercase;

  margin-bottom:4px;
  padding-bottom:6px;

  border-bottom:1px solid rgba(0,0,0,.15);
}

.rc-food-section .rc-row{
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;

  width:100%;
  min-width:0;
}

.rc-food-section .rc-row input{
  order:1;
}

.rc-food-section .rc-row label{
  order:2;

  text-align:center;
  font-size:13px;
  font-weight:600;
  text-transform:uppercase;
}

.rc-food-section .rc-input{
  width:100%;
  max-width:none;
  text-align:center;
}

/* ============================= */
/*             STEP 3            */
/* ============================= */

.rc-restore-box{
  width:100%;
  max-width:700px;

  margin:0 auto;

  border:1px solid #bdbdbd;
  border-radius:8px;
  background:#fff;

  padding:28px 24px 34px;
  box-sizing:border-box;
}

.rc-restore-title{
  text-align:center;
  margin-bottom:28px;
}

.rc-restore-title h3{
  margin:0;

  font-size:24px;
  font-weight:800;
  letter-spacing:.4px;
}

.rc-restore-subtitle{
  margin-top:7px;
  font-size:15px;
  font-weight:500;
}

.rc-restore-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:12px;

  width:100%;
  min-width:0;

  margin:15px 0;
}

.rc-restore-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;

  min-width:0;

  border:1px solid rgba(0,0,0,0.2);
  border-radius:6px;

  padding:10px 8px;
  text-align:center;

  box-sizing:border-box;
}

.rc-restore-item span{
  display:block;
  margin-bottom:20px;

  font-size:14px;
  font-weight:600;
  color: white;
  background-color: black;
  width: stretch;
}

.rc-restore-item strong{
  font-size:22px;
}

.rc-remove-hint{
  display:block;

  width:100%;
  max-width:100%;

  margin-top:10px;
  padding-top:15px;

  border-top:1px solid rgba(0,0,0,0.12);

  font-size:18px;
  line-height:1.25;
  font-weight:800;
  color:#11b72f;

  text-align:center;
  box-sizing:border-box;
}

.rc-restore-note{
  display:none !important;
}

#rc_conferma{
  display:block;

  width:320px;
  max-width:100%;

  margin:38px auto 0;
}

/* ============================= */
/*           RESPONSIVE          */
/* ============================= */

@media(max-width:900px){

  .rc-wrap{
    padding:20px 12px;
  }

  .rc-bg{
    padding:28px 22px 40px;
  }

  .rc-layout-new{
    grid-template-columns:minmax(0, 1fr);

    grid-template-areas:
      "inputs"
      "summary"
      "cash"
      "bottom"
      "actions"
      "food";

    gap:24px;
  }

  .rc-col-inputs{
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);
  }

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

  .rc-col-inputs-bottom{
    flex-direction:column;
  }

  .rc-col-inputs-bottom .rc-row,
  .rc-col-inputs-bottom .rc-causale-wrap{
    width:100%;
  }

  .rc-col-actions .rc-btn{
    width:100%;
  }

  .rc-food-platforms{
    grid-template-columns:minmax(0, 1fr);
  }

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

  #rc_conferma{
    width:100%;
  }

  #rc_chiusura_fiscale,
  #rc_totale_computer,
  #rc_pos,
  #rc_satispay,
  #rc_scontrini{
    max-width:100%;
  }
}

@media(max-width:520px){

  .rc-bg{
    padding:22px 15px 32px;
  }

  .rc-col-inputs{
    grid-template-columns:minmax(0, 1fr);
  }

  .rc-cassetto{
    grid-template-columns:minmax(0, 1fr);
  }

  .rc-food-section{
    grid-template-columns:minmax(0, 1fr);
  }

  .rc-restore-grid{
    grid-template-columns:minmax(0, 1fr);
  }

  .rc-cassa-title{
    text-align:center;
  }

  .rc-cassa-title div{
    padding-right:0;
  }
}