/* ================= RESET (DIVI FIX) ================= */
#rc-wrapper,
#rc-wrapper *{
  box-sizing:border-box !important;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif !important;
}

/* ================= FLOAT BUTTON ================= */
#rc-toggle{
  position:fixed !important;
  bottom:20px !important;
  right:20px !important;
  width:58px !important;
  height:58px !important;
  background:#2271b1 !important;
  color:#fff !important;
  border-radius:50% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:22px !important;
  box-shadow:0 8px 20px rgba(0,0,0,0.25) !important;
  cursor:pointer !important;
  z-index:999999 !important;
}

/* ================= CHAT BOX ================= */
#rc-box{
  position:fixed !important;
  bottom:90px !important;
  right:20px !important;
  width:360px !important;
  height:600px !important;
  background:#fff !important;
  border-radius:18px !important;
  display:none !important;
  flex-direction:column !important;
  overflow:hidden !important;
  box-shadow:0 20px 50px rgba(0,0,0,0.25) !important;
  z-index:999999 !important;
}

#rc-box.rc-open{
  display:flex !important;
}

/* ================= HEADER ================= */
#rc-header{
  background:#2271b1 !important;
  color:#fff !important;
  padding:14px !important;
  font-weight:600 !important;
  display:flex !important;
  justify-content:space-between !important;
}

/* ================= CHAT ================= */
#rc-chat{
  flex:1 !important;
  overflow-y:auto !important;
  padding:12px !important;
  background:#f5f7fa !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
}

/* ================= MESSAGES ================= */
.rc-msg{
  max-width:75% !important;
  padding:10px 14px !important;
  font-size:14px !important;
  line-height:1.4 !important;
  margin-bottom:8px !important;
  animation:fadeIn 0.2s ease !important;
}

/* BOT */
.rc-bot{
  align-self:flex-start !important;
  background:#f1f3f6 !important;
  border-radius:14px 14px 14px 4px !important;
}
#rc-body {
  flex: 1 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
/* USER */
.rc-user{
  align-self:flex-end !important;
  margin-left:auto !important;
  background:#2271b1 !important;
  color:#fff !important;
  border-radius:14px 14px 4px 14px !important;
}

/* ================= BUTTON AREA ================= */
#rc-btns{
  padding:12px !important;
  background:#fff !important;
  border-top:1px solid #eee !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
}

#rc-btns:empty{
  display:none !important;
}

#rc-btns button
{
  width:100% !important;
  padding:14px !important;
  border:none !important;
  border-radius:14px !important;
  background:#2271b1 !important;
  color:#fff !important;
  font-size:15px !important;

}

/* ================= INPUT ================= */
.rc-input-wrap{
  display:flex !important;
  padding:10px !important;
  background:#fff !important;
  border-top:1px solid #eee !important;
}

#rc-input{
  flex:1 !important;
  height:48px !important;
  padding:0 15px !important;
  border-radius:12px !important;
  border:1px solid #ddd !important;
position: sticky;
}

#rc-submit{
  margin-left:10px !important;
  height:48px !important;
  width:60px !important;
  border:none !important;
  border-radius:12px !important;
  background:#2271b1 !important;
  color:#fff !important;
}

/* ================= MENU ================= */
#rc-search-wrap{
  padding:10px 14px !important;
}

#rc-search{
  width:100% !important;
  padding:12px !important;
  border-radius:25px !important;
  border:1px solid #ddd !important;
}

#rc-menu{
  max-height:220px !important;
  overflow-y:auto !important;
  padding:12px 14px !important;
}

.rc-cat-title{
  font-weight:600 !important;
  margin:12px 0 6px !important;
}

.rc-item{
  display:flex;
  justify-content:space-between !important;
  align-items:center !important;
  background:#fff !important;
  border-radius:12px !important;
  padding:14px !important;
  margin-bottom:10px !important;
  box-shadow:0 4px 12px rgba(0,0,0,0.05) !important;
}

/* ================= QTY ================= */
.rc-qty{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

.rc-qty button{
  width:36px !important;
  height:36px !important;
  border:none !important;
  border-radius:10px !important;
  background:#2271b1 !important;
  color:#fff !important;
}

/* ================= ORDER CARD ================= */
.rc-order-card{
  background:#fff !important;
  padding:14px !important;
  border-radius:14px !important;
  box-shadow:0 4px 12px rgba(0,0,0,0.08) !important;
  width:100% !important;
}

/* TITLE */
.rc-order-title{
  font-weight:600 !important;
  margin-bottom:10px !important;
  color:#333 !important;
}

/* ROW */
.rc-order-row{
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  font-size:14px !important;
  margin-bottom:6px !important;
  color:#444 !important;
}

/* TOTAL */
.rc-order-total{
  margin-top:10px !important;
  padding-top:8px !important;
  border-top:1px solid #eee !important;
  font-weight:600 !important;
  font-size:15px !important;
  display:flex !important;
  justify-content:space-between !important;
}
/* ================= BOOKING ================= */
.rc-book-card{
  background:#fff !important;
  padding:12px !important;
  border-radius:12px !important;
}

.rc-book-row{
  display:flex !important;
  justify-content:space-between !important;
  margin-bottom:6px !important;
}

/* ================= DATE & TIME ================= */
.rc-date-input{
  width:100% !important;
  padding:12px !important;
  border-radius:10px !important;
  border:1px solid #ddd !important;
  margin-bottom:10px !important;
}

#timeSlots{
  max-height:260px !important;
  overflow-y:auto !important;
}

.rc-slots{
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:10px !important;
}

.rc-slot{
  padding:10px !important;
  border:none !important;
  border-radius:10px !important;
  background:#f1f5f9 !important;
}

.rc-slot.active{
  background:#2271b1 !important;
  color:#fff !important;
}

/* ================= MAP ================= */
#rc-map-modal{
  position:fixed !important;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:#fff;
  z-index:9999999;
  display:none;
  flex-direction:column;
}

#rc-map{
  flex:1;
}

/* ================= MOBILE ================= */
.rc-order-card{
  background:#fff !important;
  color:#333 !important;
}
/* ADDRESS CARD */
.rc-address-box{
  background:#fff !important;
  padding:14px !important;
  border-radius:14px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  box-shadow:0 4px 12px rgba(0,0,0,0.05) !important;
}

/* INPUTS */
.rc-address-box input{
  width:100% !important;
  padding:14px !important;
  border-radius:10px !important;
  border:1px solid #e5e7eb !important;
  font-size:14px !important;
  background:#f9fafb !important;
  outline:none !important;
  transition:0.2s !important;
}

/* FOCUS */
.rc-address-box input:focus{
  background:#fff !important;
  border-color:#2271b1 !important;
  box-shadow:0 0 0 2px rgba(34,113,177,0.1) !important;
}

/* BUTTON */
.rc-address-box button{
  margin-top:8px !important;
  padding:14px !important;
  border:none !important;
  border-radius:12px !important;
  background:#2271b1 !important;
  color:#fff !important;
  font-size:15px !important;
  font-weight:500 !important;
  width:100% !important;
}

/* MOBILE FIX */
@media(max-width:768px){
  .rc-address-box{
    padding:12px !important;
  }
}
/* CARD */
.rc-order-card{
  background:#fff !important;
  padding:14px !important;
  border-radius:16px !important;
  box-shadow:0 4px 12px rgba(0,0,0,0.08) !important;
  width:100% !important;
}

/* TITLE */
.rc-order-title{
  font-weight:600 !important;
  margin-bottom:10px !important;
  font-size:15px !important;
}

/* ITEMS */
.rc-order-row{
  display:flex !important;
  justify-content:space-between !important;
  margin-bottom:6px !important;
  font-size:14px !important;
  color:#444 !important;
}

/* DIVIDER */
.rc-order-divider{
  height:1px !important;
  background:#eee !important;
  margin:10px 0 !important;
}

/* TOTAL */
.rc-order-total{
  display:flex !important;
  justify-content:space-between !important;
  font-weight:600 !important;
  font-size:16px !important;
  margin-bottom:10px !important;
}

/* USER DETAILS */
.rc-order-user{
  background:#f9fafb !important;
  padding:10px !important;
  border-radius:10px !important;
}

/* USER ROW */
.rc-user-row{
  font-size:13px !important;
  margin-bottom:5px !important;
  color:#555 !important;
}
@media(max-width:768px){
  #rc-box{
    width:90% !important;
    height:80vh !important;
    bottom:80px !important;
    right:5% !important;
    border-radius:16px !important;
  }
}
/* WRAP */
.rc-admin-wrap{
  background:#f5f7fb;
  padding:20px;
}

/* TABLE */
.rc-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}

/* ROW CARD STYLE */
.rc-table tbody tr{
  background:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
  border-radius:12px;
}

/* CELLS */
.rc-table td,
.rc-table th{
  padding:14px 16px;
  text-align:left;
}

/* HEADER */
.rc-table th{
  font-size:13px;
  text-transform:uppercase;
  color:#6b7280;
}

/* ITEMS COLUMN */
.rc-items{
  font-size:13px;
  line-height:1.5;
}

/* BADGES */
.rc-badge{
  padding:4px 10px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
}

.rc-paid{
  background:#dcfce7;
  color:#15803d;
}

.rc-cod{
  background:#fef3c7;
  color:#92400e;
}

/* TYPE */
.rc-type{
  font-weight:600;
  text-transform:capitalize;
}

/* BUTTON */
.rc-view{
  background:#2271b1;
  color:#fff;
  padding:6px 12px;
  border-radius:6px;
  text-decoration:none;
  font-size:13px;
}

/* HOVER */
.rc-table tbody tr:hover{
  transform:translateY(-2px);
  transition:0.2s;
}
/* MODAL */
#rc-order-modal{
display:none;
      	position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.rc-modal-box{
  background:#fff;
  padding:20px;
  border-radius:12px;
  width:400px;
  max-height:80vh;
  overflow:auto;
  position:relative;
}

#rc-close-modal{
  position:absolute;
  top:10px;
  right:15px;
  cursor:pointer;
  font-size:20px;
}

/* CLICKABLE ROW */
.rc-click{
  cursor:pointer;
}
/* CARD */
.rc-book-card{
  background:#fff;
  border-radius:14px;
  padding:20px;
  box-shadow:0 8px 24px rgba(0,0,0,0.08);
  font-family:system-ui;
}

/* HEADER */
.rc-book-header{
  font-size:18px;
  font-weight:700;
  margin-bottom:15px;
}

/* SECTION */
.rc-book-section{
  margin-bottom:12px;
}

/* ROW */
.rc-book-row{
  display:flex;
  justify-content:space-between;
  font-size:14px;
  margin-bottom:6px;
}

.rc-book-row span{
  color:#6b7280;
}

.rc-book-row strong{
  color:#111827;
}

/* DIVIDER */
.rc-book-divider{
  height:1px;
  background:#e5e7eb;
  margin:12px 0;
}

/* NOTE */
.rc-book-note{
  background:#f9fafb;
  padding:10px;
  border-radius:8px;
  font-size:13px;
  color:#374151;
}
.rc-print-btn{
  background:#2271b1;
  color:#fff;
  border:none;
  padding:8px 14px;
  border-radius:6px;
  cursor:pointer;
  font-size:13px;
}

.rc-print-btn:hover{
  background:#1d5d96;
}
/* CARD */
.rc-card{
  background:#fff;
  padding:20px;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,0.05);
  margin-bottom:20px;
}

.rc-card-title{
  font-size:16px;
  font-weight:600;
  margin-bottom:15px;
}

/* FORM */
.rc-form{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.rc-form input{
  padding:10px;
  border:1px solid #ddd;
  border-radius:8px;
  flex:1;
}

.rc-form button{
  background:#2271b1;
  color:#fff;
  border:none;
  padding:10px 16px;
  border-radius:8px;
  cursor:pointer;
}

/* TABLE LIST */
.rc-table-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.rc-table-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px;
  background:#f9fafb;
  border-radius:10px;
}

.rc-sub{
  font-size:12px;
  color:#6b7280;
}

/* DELETE BUTTON */
.rc-del{
  background:#ef4444;
  color:#fff;
  border:none;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
}
.rc-edit{
  background:#f59e0b;
  color:#fff;
  border:none;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
  margin-right:6px;
}
/* OVERLAY */
#rc-edit-modal{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

/* MODAL BOX */
.rc-modal-box{
  background:#ffffff;
  padding:28px;
  border-radius:16px;
  width:360px;
  max-width:90%;
  box-shadow:0 20px 60px rgba(0,0,0,0.15);
  animation: rcFade .25s ease;
}

/* TITLE */
.rc-modal-box h3{
  margin:0 0 20px;
  font-size:20px;
  font-weight:600;
  color:#111827;
}

/* INPUTS */
.rc-modal-box input{
  width:100%;
  padding:12px 14px;
  margin-bottom:12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  font-size:14px;
  transition:0.2s;
}

.rc-modal-box input:focus{
  border-color:#2271b1;
  box-shadow:0 0 0 2px rgba(34,113,177,0.15);
  outline:none;
}

/* SAVE BUTTON */
#save-edit{
  width:100%;
  background:linear-gradient(135deg,#2271b1,#1d4ed8);
  color:#fff;
  border:none;
  padding:12px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

#save-edit:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(34,113,177,0.3);
}

/* ANIMATION */
@keyframes rcFade{
  from{
    transform:translateY(20px);
    opacity:0;
  }
  to{
    transform:translateY(0);
    opacity:1;
  }
}
#rc-cat-modal,
#rc-item-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.rc-modal-box{
  background:#fff;
  padding:20px;
  border-radius:12px;
  width:300px;
}
.rc-stats{
  display:flex;
  gap:15px;
  margin-bottom:20px;
}

.rc-stat{
  flex:1;
  background:#fff;
  padding:20px;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,0.05);
}

.rc-stat-title{
  font-size:13px;
  color:#6b7280;
}

.rc-stat-value{
  font-size:22px;
  font-weight:600;
  margin-top:5px;
}

.rc-charts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.rc-hide{
  display:none !important;
}
#rc-date {
  pointer-events: auto;
  position: relative;
  z-index: 9999;
}
.flatpickr-calendar {
  z-index: 999999 !important;
 background: #fff !important;
  opacity: 1 !important;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
  border-radius: 10px !important;
padding: 12px !important;   /* 🔥 main padding */
position: absolute !important;
}
/* 📅 DAYS AREA */
.flatpickr-days {
padding: 4px !important;
  background: #fff !important;
}

/* 📆 HEADER (MONTH BAR) */
.flatpickr-months {
margin-bottom: 8px !important;
  background: #fff !important;
}

/* 🗓 DAY CELLS */
.flatpickr-day {
  background: #fff !important;
margin: 2px !important;
}

/* SELECTED DAY */
.flatpickr-day.selected {
  background: #4c6ef5 !important;
  color: #fff !important;
}

/* TODAY */
.flatpickr-day.today {
  border-color: #4c6ef5 !important;
}
.rc-input-row{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.rc-input-row input{
  flex:1;
  padding:16px;
  border-radius:25px;
  border:2px solid #2f6fa3;
  outline:none;
  font-size:16px;
}

.rc-input-row button{
  width:80px;
  border:none;
  border-radius:25px;
  background:#2f6fa3;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}
.rc-upload-card{
  background:#fff;
  padding:20px;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

#rc-drop-zone{
  border:2px dashed #cfd6e4;
  padding:30px;
  text-align:center;
  border-radius:12px;
  cursor:pointer;
  transition:0.2s;
}

#rc-drop-zone:hover{
  border-color:#2f6fed;
  background:#f5f8ff;
}

#rc-drop-zone p{
  margin:0;
  font-weight:600;
}

#rc-drop-zone span{
  font-size:12px;
  color:#777;
}

#rc-drop-zone input{
  display:none;
}

.rc-progress-bar{
  width:100%;
  height:8px;
  background:#eee;
  border-radius:10px;
  margin-top:10px;
}

#rc-progress{
  height:100%;
  width:0%;
  background:#2f6fed;
  border-radius:10px;
  transition:0.3s;
}

#rc-import-btn{
  margin-top:10px;
  padding:10px 15px;
  border:none;
  background:#2f6fed;
  color:#fff;
  border-radius:8px;
  cursor:pointer;
}

#rc-preview{
  margin-top:15px;
  max-height:200px;
  overflow:auto;
  font-size:13px;
}
.et_pb_section,
.et_pb_row,
.et_pb_column {
  overflow: visible !important;
}
/* FINAL MOBILE CHART FIX */
@media(max-width:768px){

  .rc-charts{
    display:flex !important;
    flex-wrap:nowrap !important;

    overflow-x:auto !important;
    overflow-y:hidden !important;

    white-space:normal !important;

    gap:15px !important;

    grid-template-columns:none !important;
  }

  .rc-charts .rc-card{
    flex:0 0 320px !important;
    width:320px !important;
    min-width:320px !important;

    display:block !important;
  }

}
/* MOBILE ORDER TABLE SCROLL */
@media(max-width:768px){

  .rc-table-wrap{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  .rc-table{
    min-width:800px !important;
  }

}
/* MOBILE TABLE FORM */
@media(max-width:768px){

  .rc-card{
    padding:18px !important;
    border-radius:16px !important;
  }

  .rc-card-title{
    font-size:20px !important;
    margin-bottom:18px !important;
  }

  .rc-form{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
  }

  .rc-form input{
    width:100% !important;
    height:48px !important;

    padding:0 14px !important;

    border-radius:12px !important;
    border:1px solid #ddd !important;

    font-size:15px !important;

    box-sizing:border-box !important;
  }

  .rc-form button{
    width:100% !important;
    height:50px !important;

    border:none !important;
    border-radius:12px !important;

    background:#2271b1 !important;
    color:#fff !important;

    font-size:15px !important;
    font-weight:600 !important;
  }

}
