
:root{ --blue:#00A0E3; --navy:#295990; --muted:#64748b; --bg:#f7fafc; --card:#ffffff; }
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; background:var(--bg); font-family:system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif; color:#0f172a; }
.logo {height: 40px;margin-right: 8px;vertical-align: middle;}
.topbar{ display:flex; justify-content:space-between; align-items:center; padding:10px 16px; background:#fff; border-bottom:1px solid #e5e7eb; position:sticky; top:0; z-index:10; }
.brand{ display:flex; align-items:center; gap:10px; }

.brand .dot{ width:10px; height:10px; border-radius:50%; background:var(--blue); }
h1{ font-size:18px; margin:0; }
.muted{ color:var(--muted); font-size:12px; }
.auth{ display:flex; gap:8px; align-items:center; }
.btn{ background:var(--blue); color:#fff; border:none; padding:8px 12px; border-radius:10px; cursor:pointer; font-weight:600; }
.btn:hover{ filter:brightness(0.95); }
.btn.outline{ background:transparent; border:1px solid var(--blue); color:var(--blue); }
.btn.danger{ background:#ef4444; }
.hidden{ display:none !important; }
#currentOutWrapper{max-height:400px;}
.tabs{ display:flex; gap:8px; padding:8px; border-bottom:1px solid #e5e7eb; background:#fff; position:sticky; top:50px; z-index:9;}
.tab{ background:transparent; border:none; padding:10px 14px; border-radius:10px; cursor:pointer; font-weight:600; color:#0f172a; }
.tab.active{ background:#e6f7fd; color:var(--navy); }
/*i added this*/
.side-box{
  position: sticky; top: 12px;
  max-height: 75vh; overflow:auto;
  border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 12px; background:#fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  min-width: 280px;
}
.btn-return{
  padding:.4rem .9rem;border-radius:.6rem;border:1px solid #2563eb;
  background:#2563eb;color:#fff;font-weight:600;cursor:pointer
}
.btn-return[disabled]{opacity:.6;cursor:not-allowed}
.side-box .boxTitle{ font-weight:600; margin-bottom:6px; }
.side-box .boxSubtitle{ font-size:12px; color:#6b7280; margin-bottom:8px; }
.side-box .warn{ font-size:12px; color:#b45309; background:#fff7ed; border:1px solid #fde68a; padding:6px 8px; border-radius:8px; margin-bottom:8px;}
.side-box .list{ display:flex; flex-direction:column; gap:6px; }
.side-box .pill{
  padding:6px 8px; border:1px solid #e5e7eb; border-radius:999px;
  font-size:13px; line-height:1.2; background:#f9fafb;
}
@media (max-width: 960px){
  .side-box{ position:static; max-height:none; min-width:auto; }
}

/*i added this till here*/

/* Force a visible scrollbar for the "Currently Out" section */
#currentOutWrapper,  #recentreturns_Table, #daily_outing_report{
  max-height: 380px;          /* shows roughly 10 rows */
  overflow-y: auto;           /* enables scrolling */
  overflow-x: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  margin-top: 8px;
  padding: 0;
}
#recentreturns_Table table thead th {
  position: sticky;
  top: 0;
  background: #f9fafb;
  z-index: 2;
}

#daily_outing_report table thead th {
  position: sticky;
  top: 0;
  background: #f9fafb;
  z-index: 2;
}

/* Scrollbar styling (Chrome, Edge, Safari) */
#currentOutWrapper ::-webkit-scrollbar {
  width: 10px;
}
#currentOutWrapper::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}
#currentOutWrapper::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 4px;
}
#currentOutWrapper::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Scrollbar for Firefox */
#currentOutWrapper {
  scrollbar-color: #9ca3af #f3f4f6;
  scrollbar-width: thin;
}

/* Optional: Make the header stay visible while scrolling */
#currentOutWrapper table thead th {
  position: sticky;
  top: 0;
  background: #f9fafb;
  z-index: 2;
}


main{ padding:16px; }
.tabpanel{ display:none; }
.tabpanel.active{ display:block; }

.cards{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.card{ background:var(--card); border-radius:14px; padding:12px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.card .label{ color:var(--muted); font-size:12px; }
.card .value{ font-size:28px; font-weight:800; margin-top:6px; }

.grid.two{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
#dash-grid { grid-template-columns: 1fr !important; }
.panel{ background:#fff; border-radius:14px; padding:14px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.panel h3{ margin:0 0 10px; }
.form .row{ display:flex; gap:10px; align-items:center; margin-bottom:10px; }
.form label{ width:120px; color:#0f172a; font-weight:600; }
.form input, .form select{ flex:1; padding:8px; border:1px solid #e5e7eb; border-radius:10px; }
.table{ width:100%; border-collapse:collapse; }
.table th, .table td{ border-bottom:1px solid #e5e7eb; padding:8px; text-align:left; font-size:14px; }
.table td .btn{ padding:6px 10px; border-radius:8px; font-size:13px; }
.toolbar{ display:flex; gap:10px; align-items:center; margin-bottom:8px; }

.footer{ text-align:center; padding:12px; color:var(--muted); }
/* search + select stacked combo */
.stack { display:flex; flex-direction:column; gap:6px; }
.stack input { padding:8px; border:1px solid #e5e7eb; border-radius:10px; }

@media (max-width: 960px){
  .cards{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.two{ grid-template-columns: 1fr; }
}
