.card-room-booking .section-title-compact {
  margin-top: 0.4rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
  /* border-bottom: 1px solid #e0e0e0; */
  padding-top: 0.15rem;
  font-size: 0.9rem;
}
.card-room-booking .table-members th,
.card-room-booking .table-members td {
  vertical-align: middle;
  padding: 0.3rem 0.35rem !important;
}
.card-room-booking .form-group { margin-bottom: 0.35rem !important; }
.card-room-booking .small-label { font-size: 0.8rem; margin-bottom: 0.1rem !important; }
.card-room-booking .card-body { padding: 0.7rem 0.9rem !important; }
.card-room-booking .form-control-sm {
  padding: 0.15rem 0.4rem !important;
  height: calc(1.3em + 0.45rem) !important;
  font-size: 0.8rem !important;
}
.card-room-booking .btn-sm { padding: 0.15rem 0.45rem; font-size: 0.78rem; }
.card-room-booking .leader-grid,
.card-room-booking .stay-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 0.75rem;
  row-gap: 0.35rem;
}
@media (max-width: 767.98px) {
.card-room-booking .leader-grid,
.card-room-booking .stay-grid { grid-template-columns: 1fr; }
}

.erb-booking-meta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
    gap: 15px;
}

.erb-booking-meta-left,
.erb-booking-meta-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.erb-booking-meta-left {
    flex: 1;
    min-width: 280px;
}

.erb-booking-meta-right {
    min-width: 220px;
    text-align: right;
}

.erb-meta-line,
.erb-status-row,
.erb-created-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.erb-booking-meta-right .erb-status-row,
.erb-booking-meta-right .erb-created-row {
    justify-content: flex-end;
}

.erb-meta-label {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.erb-meta-value {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.erb-meta-divider {
    margin: 0 8px;
    color: #9ca3af;
    font-weight: 600;
}

.erb-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: #eaf3ff;
    color: #1d4ed8;
    border: 1px solid #b6d4fe;
    min-width: 95px;
    text-align: center;
}

/* Optional status colors */
.erb-status-badge.pending {
    background: #eaf3ff;
    color: #1d4ed8;
    border-color: #b6d4fe;
}

.erb-status-badge.approved {
    background: #eafaf1;
    color: #15803d;
    border-color: #b7ebc6;
}

.erb-status-badge.rejected {
    background: #fff1f2;
    color: #dc2626;
    border-color: #fecdd3;
}

.erb-status-badge.cancelled {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #d1d5db;
}

/* Mobile */
@media (max-width: 768px) {
    .erb-booking-meta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .erb-booking-meta-right {
        width: 100%;
        text-align: left;
    }

    .erb-booking-meta-right .erb-status-row,
    .erb-booking-meta-right .erb-created-row {
        justify-content: flex-start;
    }

    .erb-meta-line {
        gap: 5px;
    }

    .erb-meta-divider {
        display: none;
    }
}
.erb-status-info-wrapper { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.erb-status-badge { display:inline-block; padding:0.25rem 0.55rem; font-size:0.8rem; border-radius:0.25rem; background:#e9f3ff; border:1px solid #b9dcff; color:#0b3d6d; }
.erb-status-bottom-select { width:auto; min-width:180px; }                   
.card-room-booking tr.erb-leader-row { background-color:#fff7e0; }


  :root {
    --erb-primary: #2563eb;
    --erb-primary-soft: #eff6ff;
    --erb-success-soft: #ecfdf5;
    --erb-warning-soft: #fffbeb;
    --erb-danger-soft: #fef2f2;
    --erb-muted-bg: #f8fafc;
    --erb-border: #e5e7eb;
    --erb-text-soft: #6b7280;
    --erb-shadow: 0 6px 18px rgba(0,0,0,.06);
    --erb-radius: 14px;
  }

  .erb-split-card {
    min-height: 520px;
    border: 1px solid var(--erb-border);
    border-radius: var(--erb-radius);
    box-shadow: var(--erb-shadow);
    overflow: hidden;
  }

  .erb-split-card .card-body {
    padding: 1rem 1rem 1.1rem;
  }

  .card {
    border-radius: var(--erb-radius);
    border: 1px solid var(--erb-border);
    box-shadow: var(--erb-shadow);
  }

  /* .card-header {
    background: #fff;
    border-bottom: 1px solid var(--erb-border);
    border-top-left-radius: var(--erb-radius) !important;
    border-top-right-radius: var(--erb-radius) !important;
  } */

  .erb-demand-item {
    cursor: pointer;
    transition: all .18s ease;
  }

  .erb-demand-item:hover {
    background: #f8fbff;
  }

  .erb-demand-item.active {
    background: var(--erb-primary-soft);
    box-shadow: inset 3px 0 0 var(--erb-primary);
  }

  .erb-room-row .badge {
    font-size: 0.72rem;
    border-radius: 999px;
    padding: .35rem .55rem;
  }

  .erb-selected-box {
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--erb-primary);
    padding: .75rem .85rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    min-width: 270px;
  }

  .erb-muted { color: var(--erb-text-soft); }
  .erb-small { font-size: 0.85rem; }

  .erb-actions-col { white-space: nowrap; }

  .erb-pill {
    display:inline-block;
    padding:4px 9px;
    border-radius:999px;
    font-size:0.72rem;
    border:1px solid #d1d5db;
    background:#fff;
    font-weight:500;
  }

  .erb-badge-warn {
    background: #f59e0b;
    color: #fff;
    border-radius: 999px;
    padding: .25rem .5rem;
  }

  .erb-mini-link {
    font-size: .82rem;
    text-decoration: none;
    color: var(--erb-primary);
    font-weight: 500;
  }

  .erb-mini-link:hover {
    text-decoration: underline;
  }

  .erb-expand-box {
    border:1px solid var(--erb-border);
    border-radius:12px;
    padding:.65rem .75rem;
    background:#fbfcfe;
    margin-top: .4rem;
  }

  .erb-floor-row {
    cursor:pointer;
    user-select:none;
    background: #f3f6fb !important;
    transition: background .15s ease;
  }

  .erb-floor-row:hover {
    background:#e9eef8 !important;
  }

  .erb-floor-caret {
    display:inline-block;
    width:18px;
    text-align:center;
    font-weight:700;
    color: var(--erb-primary);
  }

  .erb-col-room { width: 80px; }

  .erb-room-inline {
    display:flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;
  }

  .erb-room-label {
    display:inline-block;
    max-width: 70px;
    overflow:hidden;
    text-overflow:ellipsis;
    vertical-align:middle;
    font-weight: 600;
  }

  .erb-room-badge {
    font-size: 0.68rem;
    padding: .2rem .45rem;
  }

  .erb-facilities {
    white-space: nowrap;
    color: #374151;
  }

  .erb-actions-col .btn {
    padding: .28rem .6rem;
    font-size: 0.78rem;
    border-radius: 10px;
    font-weight: 600;
  }

  .erb-actions-col .badge {
    font-size: 0.72rem;
  }

  .table {
    margin-bottom: 0;
  }

  .table thead th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    vertical-align: middle;
    border-color: #e5e7eb;
  }

  .table td {
    vertical-align: middle;
    border-color: #edf0f3;
  }

  .table-sm td, .table-sm th {
    padding: .55rem .6rem;
  }

  .table-bordered {
    border-color: #e5e7eb;
  }

  .alert {
    border-radius: 12px;
  }

  /* .form-control, .form-select, select.form-control {
    border-radius: 10px;
    min-height: 42px;
    border-color: #d1d5db;   
  } */

  .form-control:focus, .form-select:focus, select.form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
  }

  .erb-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
    font-size: .92rem;
    margin-bottom: .35rem;
  }

  .erb-meta-label {
    font-weight: 600;
    color: #111827;
  }

  .erb-meta-value {
    color: #374151;
  }

  .erb-meta-divider {
    color: #9ca3af;
  }

  .erb-created-row {
    font-size: .85rem;
    color: #6b7280;
  }

  .erb-summary-stat {
    border: 1px solid var(--erb-border);
    border-radius: 12px;
    background: #fff;
    padding: .7rem .8rem;
    text-align: center;
  }

  .erb-summary-stat .num {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
  }

  .erb-summary-stat .lbl {
    font-size: .78rem;
    color: #6b7280;
  }

  @media (max-width: 991px) {
    .erb-selected-box {
      width: 100%;
      margin-top: .75rem;
      min-width: auto;
    }

    .erb-meta-line {
      flex-direction: column;
      align-items: flex-start;
      gap: .2rem;
    }

    .erb-meta-divider {
      display: none;
    }

    
  }

  @media (min-width: 992px) {
  .erb-sticky-panel {
    position: sticky;
    top: 90px;
  }
}

.report_date_class{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: right 12px center;
  cursor: pointer;
}

.erb-meta-font{
  font-size : 15px;
}

.bigger-checkbox {
    transform: scale(1.5); 
    margin-right: 8px;     
}

/* .room_requirement td,th{
  width: 60px;
  height: 50px;
  margin: auto;
} */

.card-header {
    font-weight: 600;
}

.room-card {
    border: 1px solid #ddd;
    transition: 0.2s;
}

.room-card:hover {
    border-color: #0d6efd;
    background: #f8fbff;
}

.room-radio:checked + .room-card {
    border: 2px solid #0d6efd;
    background: #e7f1ff;
}

.locked-dorm{
    opacity: 0.5;
    pointer-events: none;
}
    

/* event_room_booking\member_room_booking_request_add.php - start */
.erb-booking-header-card{
    border:none;
    border-radius:18px;
    background:linear-gradient(
        135deg,
        #ffffff 0%,
        #f7fbff 100%
    );
    box-shadow:0 4px 20px rgba(0,0,0,.08);
}

.erb-institution-logo{
    max-height:90px;
    max-width:90px;
    object-fit:contain;
}

.erb-institution-name{
    font-size:30px;
    font-weight:700;
    color:#1d3557;
    margin:0;
}

.erb-booking-title{
    color:#457b9d;
    font-weight:600;
}

.erb-booking-subtitle{
    color:#6c757d;
    font-size:15px;
}

/* Mobile */

@media(max-width:768px){

    .erb-institution-name{
        font-size:22px;
    }

    .erb-booking-title{
        font-size:18px;
    }

    .erb-institution-logo{
        max-height:70px;
    }
}

/* event_room_booking\member_room_booking_request_add.php - end */

/* workbench allocation - start */

/* ERB allocation workbench clean UI
   - Facilities/info bubble belongs only to Room (Bed)
   - Status / Action is reserved for status badges and action buttons
   - Action buttons are kept on one line where possible
   - No business logic changes in CSS
*/
.erb-rooms-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
}
.erb-rooms-table th,
.erb-rooms-table td {
    vertical-align: middle !important;
}
.erb-demand-booking-col {
    min-width: 300px;
}
.erb-demand-fmr-col {
    width: 180px;
    min-width: 170px;
}
.erb-demand-booking-line {
    white-space: normal;
    overflow-wrap: anywhere;
}
@media (min-width: 1400px) {
    .erb-demand-booking-col {
        min-width: 390px;
    }
}

/* Room / Bed column: room text is normal table content; info bubble is independent */
.erb-rooms-table td.erb-room-bed-info-cell {
    position: relative !important;
    vertical-align: middle !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    padding-left: 8px !important;
    padding-right: 28px !important;
    line-height: normal !important;
    overflow: visible !important;
}
.erb-rooms-table td.erb-room-bed-info-cell .erb-room-inline {
    position: static !important;
    display: inline-flex !important;
    vertical-align: middle !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    flex-wrap: nowrap !important;
}
.erb-rooms-table td.erb-room-bed-info-cell .erb-room-label,
.erb-rooms-table td.erb-room-bed-info-cell .erb-room-badge {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}
.erb-rooms-table td.erb-room-bed-info-cell .erb-facility-tip.erb-info-bubble {
    position: absolute !important;
    top: 5px !important;
    right: 6px !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    line-height: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: 1px solid #777 !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10 !important;
    cursor: help !important;
    white-space: nowrap !important;
    transform: none !important;
}
.erb-rooms-table td.erb-room-bed-info-cell .erb-facility-tip-box {
    display: none;
    position: absolute;
    right: 0 !important;
    left: auto !important;
    top: 20px !important;
    z-index: 60;
    min-width: 150px;
    max-width: 260px;
    padding: 7px 9px;
    border-radius: 6px;
    background: #263238;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.erb-rooms-table td.erb-room-bed-info-cell .erb-facility-tip-box::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 8px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #263238;
}
.erb-room-bed-info-cell .erb-facility-tip:hover .erb-facility-tip-box,
.erb-room-bed-info-cell .erb-facility-tip:focus .erb-facility-tip-box {
    display: block;
}

/* Status / Action column */
.erb-rooms-table .erb-actions-col {
    width: 330px !important;
    min-width: 330px !important;
    max-width: 330px !important;
    white-space: normal !important;
    overflow: visible !important;
}
.erb-rooms-table td.erb-status-action-cell {
    position: relative !important;
    vertical-align: middle !important;
    overflow: visible !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
.erb-status-topline {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    line-height: 1.15 !important;
    margin-bottom: 4px !important;
    overflow: visible !important;
}
.erb-action-button-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow: visible !important;
    max-width: 100% !important;
}
/* .erb-action-button-row .btn, */
.erb-status-topline .btn {
    font-size: 10px !important;
    line-height: 1.15 !important;
    padding: 3px 6px !important;
    white-space: nowrap !important;
    margin: 0 !important;
}
.erb-rooms-table td.erb-status-action-cell .erb-facility-tip {
    display: none !important;
}
/* workbench allocation - end */
