/* =========================
   STAFF DASHBOARD (SQUARE THEME)
   Adjusted for:
   - No border-radius anywhere
   - Sidebar flush to banner (no top padding)
   - Main content pulled left (no centered max-width)
   ========================= */

/* ===== Sidebar: dark like top bar ===== */
.staff-sidebar{
  flex:0 0 260px;     /* hard width column */
  width:260px;
  min-width:260px;

  padding:0;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;

  background: rgba(28, 24, 21, 0.95);
  color: rgba(255,255,255,.92);
  border-radius:0;
  border:none;
}
/* inner spacing since we removed sidebar padding */
.staff-logo,
.staff-nav{
  padding-left:16px;
  padding-right:16px;
}

.staff-logo{
  margin:0;
  padding-top:14px;     /* set to 0 if you truly want zero */
  padding-bottom:10px;
  font-weight:800;
  font-size:18px;
  color:#fff;
}

/* Section labels */
.staff-nav .nav-section{
  margin-top:14px;
  margin-bottom:6px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  opacity:.55;
  color: rgba(255,255,255,.8);
}

/* ===== Full-width hover ===== */
.staff-nav{
  display:flex;
  flex-direction:column;
  gap:0;                 /* important so hover touches edge cleanly */
  padding-bottom:14px;
}

.staff-nav .nav-item{
  /* full width */
  display:block;
  width:calc(100% + 32px);   /* extend past inner padding */
  margin-left:-16px;         /* pull to left edge */
  margin-right:-16px;        /* pull to right edge */

  padding:12px 16px;         /* re-add nice padding */
  text-decoration:none;
  color: rgba(255,255,255,.88);

  border-radius:0;
}

.staff-nav .nav-item i{
  margin-right:10px;
  opacity:.9;
}

/* Hover fills the entire sidebar width */
.staff-nav .nav-item:hover{
  background: rgba(255,255,255,.10);
  color:#fff;
}

/* Optional: “active” look if you add a class later */
.staff-nav .nav-item.active{
  background: rgba(255,255,255,.14);
  color:#fff;
}

/* --- Layout: keep main content to the right of sidebar --- */
.staff-layout{
  display:flex;
  align-items:flex-start;
  gap:0;              /* sidebar + main should touch; use margin/padding inside */
  padding:0 0 24px 0; /* no top padding so sidebar can hit banner */
}

.staff-main{
  flex:1 1 auto;      /* take remaining space */
  min-width:0;        /* prevent overflow pushing under sidebar */
  padding-left:16px;  /* replaces gap */
}

/* Keep your main content padding */
.staff-page{
  margin:0;
  max-width:none;
  padding:24px 16px;
}
/* Header */
.staff-header {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:16px;
}

.staff-title { margin:0; font-size: 28px; }
.staff-subtitle { margin:6px 0 0; opacity:.75; }
.staff-header-right { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

/* Stat cards */
.staff-cards {
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  margin: 16px 0 20px;
}

.staff-card {
  padding: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  border-radius:0;          /* square */
}

.staff-card-top { display:flex; justify-content:space-between; align-items:center; }
.staff-card-label { font-size: 13px; opacity: .75; }
.staff-card-value { font-size: 28px; font-weight: 700; }
.staff-card-sub { margin-top: 10px; font-size: 13px; opacity: .85; }
.staff-card-actions { margin-top: 12px; display:flex; gap:8px; flex-wrap:wrap; }

.card-a { border-left: 6px solid rgba(97, 222, 255, .9); }
.card-b { border-left: 6px solid rgba(207, 162, 27, .9); }
.card-c { border-left: 6px solid rgba(90, 180, 120, .9); }
.card-d { border-left: 6px solid rgba(180, 120, 210, .9); }

/* Main grid */
.staff-grid { display:grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }

.staff-panel {
  padding: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  border-radius:0;          /* square */
}

.staff-panel-head { margin-bottom: 10px; }
.staff-panel-title { margin:0; font-size: 18px; }
.staff-panel-hint { margin-top: 4px; font-size: 13px; opacity: .75; }

/* Lists */
.staff-list {
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.staff-list-item {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding: 10px;
  background: rgba(0,0,0,.03);
  border-radius:0;          /* square */
}

.staff-list-title { font-weight: 700; }
.staff-list-sub { font-size: 13px; opacity:.75; margin-top:2px; }
.staff-list-right { display:flex; align-items:center; gap:8px; }

.pill {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 34px;
  height: 26px;
  padding: 0 10px;
  background: rgba(0,0,0,.08);
  font-weight: 700;
  border-radius:0;          /* square */
}

/* Quick actions */
.quick-actions { display:grid; grid-template-columns: 1fr 1fr; gap:10px; }

.qa-tile {
  display:block;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  text-decoration:none;
  background: rgba(0,0,0,.02);
  border-radius:0;          /* square */
}

.qa-title { font-weight: 800; }
.qa-sub { font-size: 13px; opacity: .75; margin-top: 3px; }

/* Buttons */
.btn.btn-xs {
  padding: 6px 10px;
  font-size: 12px;
  border-radius:0;          /* square */
}

.btn-outline { border: 1px solid rgba(0,0,0,.25); background: transparent; }
.btn-light { border: 1px solid rgba(0,0,0,.12); background: rgba(0,0,0,.03); }
.btn-primary { border: 1px solid rgba(0,0,0,.12); }

/* Optional: if your theme buttons still round elsewhere */
.staff-layout .btn{ border-radius:0 !important; }

/* Responsive */
@media (max-width: 980px) {
  .staff-layout{ flex-direction:column; }
  .staff-sidebar{
    width:auto;
    flex:initial;
    position:relative;
    top:auto;
    height:auto;
  }
  .staff-cards { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .staff-cards { grid-template-columns: 1fr; }
}