/* ============================================================
   BAGRO AGENCY — STAFF PORTAL STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-deep:   #060d1f;
  --navy-mid:    #0a1628;
  --navy-light:  #122040;
  --blue-royal:  #0a3d8f;
  --blue-elec:   #1565e8;
  --blue-bright: #3b8bff;
  --white:       #ffffff;
  --gray-100:    #e8f0ff;
  --gray-300:    #8fafd4;
  --gray-500:    #3a5580;
  --red:         #e84040;
  --green:       #1dbf73;
  --gradient-brand: linear-gradient(135deg, #1565e8, #3b8bff);
  --border-glass: 1px solid rgba(59,139,255,0.15);
  --shadow-card:  0 8px 40px rgba(0,0,0,0.5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --trans: 0.25s cubic-bezier(0.4,0,0.2,1);

  /* Role colors */
  --cam-color:     #00b4d8;
  --editor-color:  #9b5de5;
  --manager-color: #f4a261;
  --owner-color:   #ffd166;

  /* Status */
  --pending-color:  #f4a261;
  --approved-color: #1dbf73;
  --rejected-color: #e84040;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--navy-deep);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   LOGIN
   ============================================================ */
.login-screen {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #020810 0%, #060d1f 50%, #0a1628 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1.5rem;
}
.login-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(21,101,232,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59,139,255,0.08) 0%, transparent 50%);
}
.login-card {
  position: relative;
  background: rgba(10,22,40,0.9);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem; width: 100%; max-width: 420px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), 0 0 60px rgba(21,101,232,0.15);
  text-align: center;
}
.login-logo { font-size: 3rem; margin-bottom: 0.5rem; filter: drop-shadow(0 0 16px rgba(59,139,255,0.5)); }
.login-title {
  font-size: 1.5rem; font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}
.login-sub { font-size: 0.85rem; color: var(--gray-300); margin-bottom: 2rem; }
.login-field { margin-bottom: 1rem; text-align: left; }
.login-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--gray-300); margin-bottom: 0.4rem; }
.login-field input {
  width: 100%; background: rgba(6,13,31,0.7);
  border: 1px solid rgba(59,139,255,0.2); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; color: #fff; font-size: 0.95rem; font-family: inherit;
  outline: none; transition: border-color var(--trans);
}
.login-field input:focus { border-color: rgba(59,139,255,0.6); box-shadow: 0 0 0 3px rgba(21,101,232,0.12); }
.login-btn {
  width: 100%; background: var(--gradient-brand); border: none;
  border-radius: 50px; padding: 0.9rem; color: #fff;
  font-size: 1rem; font-weight: 700; font-family: inherit; cursor: pointer;
  margin-top: 0.5rem; transition: all var(--trans);
  box-shadow: 0 4px 24px rgba(21,101,232,0.4);
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(21,101,232,0.6); }
.login-error { margin-top: 1rem; font-size: 0.85rem; color: var(--red); display: none; }

/* ============================================================
   STAFF LAYOUT
   ============================================================ */
.staff-layout { display: flex; min-height: 100vh; }

.staff-sidebar {
  width: 260px; background: rgba(6,13,31,0.97);
  border-right: var(--border-glass);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 50; overflow-y: auto;
}

.sidebar-brand { padding: 1.75rem 1.5rem; border-bottom: var(--border-glass); }
.sidebar-brand-name {
  font-size: 1.1rem; font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sidebar-brand-sub { font-size: 0.75rem; color: var(--gray-500); margin-top: 2px; }

/* Role badge in sidebar */
.role-badge {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.5rem; border-bottom: var(--border-glass);
  background: rgba(59,139,255,0.04);
}
.role-icon { font-size: 1.8rem; }
.role-name { font-size: 0.9rem; font-weight: 700; }
.role-username { font-size: 0.72rem; color: var(--gray-500); }

.role-badge.role-cameraman .role-name { color: var(--cam-color); }
.role-badge.role-editor    .role-name { color: var(--editor-color); }
.role-badge.role-manager   .role-name { color: var(--manager-color); }
.role-badge.role-owner     .role-name { color: var(--owner-color); }

.sidebar-nav { flex: 1; padding: 1rem 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--trans);
  color: var(--gray-300); font-size: 0.9rem; font-weight: 500;
  border: none; background: none; font-family: inherit;
  text-align: left; width: 100%;
}
.sidebar-nav-item:hover { background: rgba(59,139,255,0.1); color: var(--blue-bright); }
.sidebar-nav-item.active {
  background: rgba(21,101,232,0.2); color: var(--blue-bright);
  border: 1px solid rgba(59,139,255,0.2);
}
.sidebar-nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; color: var(--gray-500);
  text-decoration: none; font-size: 0.85rem;
  border-radius: var(--radius-sm); transition: 0.2s;
}
.sidebar-nav-link:hover { color: var(--gray-300); }
.sidebar-icon { font-size: 1.1rem; }
.sidebar-footer { padding: 1rem 0.75rem; border-top: var(--border-glass); }

.staff-main { margin-left: 260px; flex: 1; padding: 2rem; min-height: 100vh; }

.staff-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.staff-page-title { font-size: 1.5rem; font-weight: 800; color: #fff; }
.staff-page-sub { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; }
.staff-topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.staff-clock { font-size: 0.8rem; color: var(--gray-300); }

/* Role chip */
.role-chip-inner {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700;
}
.role-chip-cameraman { background: rgba(0,180,216,0.15); color: var(--cam-color); border: 1px solid rgba(0,180,216,0.3); }
.role-chip-editor    { background: rgba(155,93,229,0.15); color: var(--editor-color); border: 1px solid rgba(155,93,229,0.3); }
.role-chip-manager   { background: rgba(244,162,97,0.15); color: var(--manager-color); border: 1px solid rgba(244,162,97,0.3); }
.role-chip-owner     { background: rgba(255,209,102,0.15); color: var(--owner-color); border: 1px solid rgba(255,209,102,0.3); }

/* ============================================================
   CARDS
   ============================================================ */
.admin-card {
  background: rgba(10,22,40,0.65);
  border: var(--border-glass); border-radius: var(--radius-md);
  padding: 1.75rem; backdrop-filter: blur(12px);
}
.admin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.admin-card-title { font-size: 1rem; font-weight: 700; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid3 {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.25rem; margin-bottom: 0;
}
.stats-grid4 {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1.25rem; margin-bottom: 0;
}
.stat-card {
  background: rgba(10,22,40,0.65);
  border: var(--border-glass); border-radius: var(--radius-md);
  padding: 1.75rem; text-align: center; backdrop-filter: blur(12px);
  transition: transform var(--trans), box-shadow var(--trans);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.stat-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.stat-card-value {
  font-size: 2.2rem; font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card-label { font-size: 0.8rem; color: var(--gray-300); margin-top: 0.35rem; }

.role-card-cameraman { border-color: rgba(0,180,216,0.25); }
.role-card-cameraman .stat-card-value { background: linear-gradient(135deg,#00b4d8,#90e0ef); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.role-card-editor    { border-color: rgba(155,93,229,0.25); }
.role-card-editor    .stat-card-value { background: linear-gradient(135deg,#9b5de5,#c77dff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.owner-stat          { border-color: rgba(255,209,102,0.25); }
.owner-val           { background: linear-gradient(135deg,#ffd166,#ffb700) !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; }

/* ============================================================
   REQUEST CARDS
   ============================================================ */
.requests-list { display: flex; flex-direction: column; gap: 1rem; }
.request-card {
  border: 1px solid rgba(59,139,255,0.15);
  border-radius: var(--radius-md); overflow: hidden;
  background: rgba(6,13,31,0.5);
}
.request-card.status-pending  { border-left: 4px solid var(--pending-color); }
.request-card.status-approved { border-left: 4px solid var(--approved-color); }
.request-card.status-rejected { border-left: 4px solid var(--rejected-color); }

.request-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem; background: rgba(59,139,255,0.04);
  border-bottom: 1px solid rgba(59,139,255,0.08); flex-wrap: wrap; gap: 0.5rem;
}
.request-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.request-date { font-size: 0.75rem; color: var(--gray-500); }

.request-body { padding: 1rem 1.25rem; }
.request-data-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  font-size: 0.85rem; color: var(--gray-100);
}
.request-notes {
  margin-top: 0.75rem; font-size: 0.82rem;
  color: var(--gray-300); font-style: italic;
  background: rgba(59,139,255,0.04);
  border-radius: var(--radius-sm); padding: 0.6rem 0.9rem;
  border-left: 3px solid rgba(59,139,255,0.2);
}

/* Requested payment badge */
.requested-pay-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.75rem;
  background: rgba(255,209,102,0.12);
  border: 1px solid rgba(255,209,102,0.35);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem; color: var(--owner-color);
}
.requested-pay-badge strong { color: #fff; font-size: 0.9rem; }

.request-actions {
  display: flex; gap: 0.75rem;
  padding: 0.85rem 1.25rem; border-top: 1px solid rgba(59,139,255,0.08);
  background: rgba(59,139,255,0.02);
}

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.75rem; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700;
}
.status-badge-pending  { background: rgba(244,162,97,0.15);  color: var(--pending-color);  border: 1px solid rgba(244,162,97,0.3); }
.status-badge-approved { background: rgba(29,191,115,0.15);  color: var(--approved-color); border: 1px solid rgba(29,191,115,0.3); }
.status-badge-rejected { background: rgba(232,64,64,0.15);   color: var(--rejected-color); border: 1px solid rgba(232,64,64,0.3); }

/* Type tag */
.type-tag {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.65rem; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700;
}
.type-cameraman { background: rgba(0,180,216,0.15); color: var(--cam-color); }
.type-editor    { background: rgba(155,93,229,0.15); color: var(--editor-color); }

/* ============================================================
   CITIES LIST
   ============================================================ */
.cities-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.city-tag {
  padding: 0.4rem 1rem; border-radius: 50px;
  background: rgba(0,180,216,0.12); color: var(--cam-color);
  border: 1px solid rgba(0,180,216,0.25); font-size: 0.82rem; font-weight: 600;
}

/* ============================================================
   FORMS
   ============================================================ */
.submit-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--gray-300); }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(6,13,31,0.7);
  border: 1px solid rgba(59,139,255,0.2);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem; color: #fff;
  font-size: 0.9rem; font-family: inherit; outline: none;
  transition: border-color var(--trans);
}
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(59,139,255,0.6); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-hint { font-size: 0.72rem; color: var(--gray-500); }

.submit-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1rem; background: rgba(59,139,255,0.04);
  border-radius: var(--radius-sm); border: 1px solid rgba(59,139,255,0.1);
}
.submit-note { font-size: 0.8rem; color: var(--manager-color); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  border: none; font-family: inherit; transition: all var(--trans);
}
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 16px rgba(21,101,232,0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(21,101,232,0.5); }
.btn-outline { background: rgba(59,139,255,0.08); color: var(--blue-bright); border: 1px solid rgba(59,139,255,0.3); }
.btn-outline:hover { background: rgba(59,139,255,0.2); }
.btn-approve { background: rgba(29,191,115,0.15); color: var(--approved-color); border: 1px solid rgba(29,191,115,0.35); }
.btn-approve:hover { background: rgba(29,191,115,0.3); }
.btn-reject { background: rgba(232,64,64,0.12); color: var(--rejected-color); border: 1px solid rgba(232,64,64,0.3); }
.btn-reject:hover { background: rgba(232,64,64,0.25); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.78rem; }

/* Badge */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.65rem; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--gray-300); font-size: 0.9rem;
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

/* ============================================================
   TOAST
   ============================================================ */
.staff-toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--blue-royal); color: #fff;
  padding: 0.85rem 1.5rem; border-radius: 50px;
  font-size: 0.9rem; font-weight: 600; z-index: 999;
  opacity: 0; transform: translateY(12px);
  transition: all 0.3s; pointer-events: none;
}
.staff-toast.show { opacity: 1; transform: translateY(0); }

/* ============================================================
   PRICING LIST
   ============================================================ */
.pricing-card { padding: 0; overflow: hidden; }

.pricing-card-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.4rem 1.75rem; flex-wrap: wrap;
}
.editor-header { background: rgba(155,93,229,0.08); border-bottom: 1px solid rgba(155,93,229,0.15); }
.cam-header    { background: rgba(0,180,216,0.08);  border-bottom: 1px solid rgba(0,180,216,0.15); }

.pricing-role-icon { font-size: 2.2rem; }
.pricing-role-title { font-size: 1.1rem; font-weight: 800; color: #fff; }
.pricing-role-sub   { font-size: 0.78rem; color: var(--gray-300); margin-top: 2px; }

.pricing-rate-badge {
  margin-left: auto; padding: 0.4rem 1.1rem;
  border-radius: 50px; font-size: 0.82rem; font-weight: 700;
}
.editor-rate { background: rgba(155,93,229,0.2); color: var(--editor-color); border: 1px solid rgba(155,93,229,0.35); }
.cam-rate    { background: rgba(0,180,216,0.15);  color: var(--cam-color);    border: 1px solid rgba(0,180,216,0.3); }

.pricing-package { padding: 1.5rem 1.75rem; }
.pricing-package-title {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--gray-500); margin-bottom: 1rem;
}

.pricing-items { display: flex; flex-direction: column; gap: 0; }
.pricing-divider { height: 1px; background: rgba(59,139,255,0.07); margin: 0; }

.pricing-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; flex-wrap: wrap;
}
.pricing-item-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.editor-icon { background: rgba(155,93,229,0.15); color: var(--editor-color); }
.cam-icon    { background: rgba(0,180,216,0.15); color: var(--cam-color); }

.pricing-item-info { flex: 1; min-width: 0; }
.pricing-item-name { font-size: 0.92rem; font-weight: 700; color: var(--white); }
.pricing-item-desc { font-size: 0.75rem; color: var(--gray-300); margin-top: 2px; }

.pricing-item-qty {
  font-size: 1.1rem; font-weight: 900; white-space: nowrap;
  padding: 0.3rem 0.9rem; border-radius: 50px;
}
.editor-qty  { background: rgba(155,93,229,0.15); color: var(--editor-color); }
.cam-qty     { background: rgba(0,180,216,0.12);  color: var(--cam-color); }
.city-price  { font-size: 1.2rem; min-width: 70px; text-align: right; }

.pricing-total-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid rgba(59,139,255,0.1);
  font-size: 0.88rem; font-weight: 600; color: var(--gray-300);
}
.pricing-total {
  font-size: 1.6rem; font-weight: 900;
}
.editor-total { color: var(--editor-color); }

.pricing-note {
  margin-top: 1.25rem; padding: 0.75rem 1rem;
  background: rgba(59,139,255,0.06); border-radius: var(--radius-sm);
  border-left: 3px solid rgba(59,139,255,0.25);
  font-size: 0.8rem; color: var(--gray-300); line-height: 1.6;
}

/* Editable pricing controls */
.pricing-edit-section {
  background: rgba(59,139,255,0.05);
  border: 1px solid rgba(59,139,255,0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.pricing-edit-title {
  font-size: 0.8rem; font-weight: 700; color: var(--blue-bright);
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 1rem;
}
.pricing-edit-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.inline-edit-input {
  background: rgba(10,22,40,0.8);
  border: 1px solid rgba(59,139,255,0.3);
  border-radius: 6px; padding: 0.35rem 0.6rem;
  color: var(--white); font-size: 0.82rem; font-family: inherit;
  outline: none; transition: border-color 0.2s;
}
.inline-edit-input:focus { border-color: var(--blue-bright); }

/* ============================================================
   FIB INFO ROWS
   ============================================================ */
.fib-info-row {
  display:flex; justify-content:space-between; align-items:center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(59,139,255,0.07);
}
.fib-info-row:last-child { border-bottom: none; }
.fib-info-label { font-size: 0.82rem; color: var(--gray-300); }
.fib-info-val   { font-size: 0.92rem; font-weight: 700; color: var(--white); }

/* ============================================================
   GOALS & BEST OF MONTH
   ============================================================ */
.goals-list { display: flex; flex-direction: column; gap: 0.85rem; padding: 1rem 1.25rem; }
.goal-card {
  background: rgba(10,22,40,0.5);
  border: 1px solid rgba(244,162,97,0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: transform var(--trans);
}
.goal-card:hover { transform: translateX(3px); }
.goal-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.goal-title  { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.goal-bonus  { font-size: 0.8rem; font-weight: 700; color: var(--owner-color); white-space: nowrap;
               background: rgba(255,209,102,0.12); border-radius: 50px; padding: 0.2rem 0.75rem; }
.goal-target { font-size: 0.8rem; color: var(--blue-bright); margin-top: 0.4rem; }
.goal-desc   { font-size: 0.78rem; color: var(--gray-300); margin-top: 0.4rem; font-style: italic; }
.goal-date   { font-size: 0.7rem; color: var(--gray-500); margin-top: 0.5rem; }

/* ============================================================
   EXPENSE CATEGORY BADGE
   ============================================================ */
.expense-cat-badge {
  display: inline-block;
  background: rgba(244,162,97,0.15);
  border: 1px solid rgba(244,162,97,0.3);
  color: var(--manager-color);
  font-size: 0.75rem; font-weight: 700;
  padding: 0.15rem 0.6rem; border-radius: 50px;
}

/* ============================================================
   SAME-DAY CONFIRMATION
   ============================================================ */
.sameday-confirm {
  background: rgba(244,162,97,0.07);
  border: 1px solid rgba(244,162,97,0.25);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}
.sameday-label {
  display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer;
}
.sameday-label input[type="checkbox"] { display: none; }
.sameday-check-box {
  width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; margin-top: 2px;
  border: 2px solid rgba(244,162,97,0.5);
  background: transparent; transition: all 0.2s; position: relative;
}
.sameday-label input[type="checkbox"]:checked + .sameday-check-box {
  background: var(--manager-color); border-color: var(--manager-color);
}
.sameday-label input[type="checkbox"]:checked + .sameday-check-box::after {
  content: '✓'; position: absolute; top: -1px; left: 2px;
  font-size: 0.75rem; color: #fff; font-weight: 900;
}
.sameday-text { font-size: 0.8rem; color: var(--manager-color); line-height: 1.5; }
.sameday-text strong { color: var(--white); }

/* ============================================================
   OWNER SETTINGS
   ============================================================ */
.owner-action-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.25rem 0; flex-wrap: wrap;
}
.owner-action-info { flex: 1; min-width: 220px; }
.owner-action-title { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.owner-action-desc  { font-size: 0.8rem; color: var(--gray-300); line-height: 1.5; }
.owner-action-count { font-size: 0.78rem; color: var(--gray-500); margin-top: 6px; }
.owner-divider { height: 1px; background: rgba(59,139,255,0.08); margin: 0; }

.owner-reset-btn {
  background: rgba(232,64,64,0.12);
  color: var(--red); border: 1px solid rgba(232,64,64,0.35);
  white-space: nowrap; flex-shrink: 0;
  font-size: 0.88rem; padding: 0.7rem 1.4rem;
}
.owner-reset-btn:hover { background: rgba(232,64,64,0.28); transform: translateY(-1px); }

.owner-reset-cam-btn {
  background: rgba(0,180,216,0.1);
  color: var(--cam-color); border: 1px solid rgba(0,180,216,0.3);
  white-space: nowrap; flex-shrink: 0;
}
.owner-reset-cam-btn:hover { background: rgba(0,180,216,0.22); }

.owner-reset-ed-btn {
  background: rgba(155,93,229,0.1);
  color: var(--editor-color); border: 1px solid rgba(155,93,229,0.3);
  white-space: nowrap; flex-shrink: 0;
}
.owner-reset-ed-btn:hover { background: rgba(155,93,229,0.22); }

/* ============================================================
   MANAGER BALANCE
   ============================================================ */
.bal-summary-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.bal-card {
  border-radius: var(--radius-md); padding: 1.75rem;
  text-align: center; border: 1px solid rgba(59,139,255,0.15);
  backdrop-filter: blur(12px);
  transition: transform var(--trans);
}
.bal-card:hover { transform: translateY(-3px); }
.bal-card-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.bal-card-value { font-size: 1.9rem; font-weight: 900; margin-bottom: 0.3rem; }
.bal-card-label { font-size: 0.78rem; color: var(--gray-300); }

.bal-card-received  { background: rgba(29,191,115,0.08);  border-color: rgba(29,191,115,0.25); }
.bal-card-received  .bal-card-value { color: var(--approved-color); }
.bal-card-paid      { background: rgba(232,64,64,0.07);   border-color: rgba(232,64,64,0.25); }
.bal-card-paid      .bal-card-value { color: var(--red); }
.bal-card-current   { background: rgba(59,139,255,0.08);  border-color: rgba(59,139,255,0.25); }
.bal-card-current   .bal-card-value { color: var(--blue-bright); }
.bal-card-negative  { background: rgba(232,64,64,0.1);    border-color: rgba(232,64,64,0.4); }
.bal-card-negative  .bal-card-value { color: var(--red); }

.bal-breakdown {
  background: rgba(10,22,40,0.65); border: var(--border-glass);
  border-radius: var(--radius-md); padding: 1rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0;
}
.bal-break-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; width: 100%;
  border-bottom: 1px solid rgba(59,139,255,0.07);
}
.bal-break-item:last-child { border-bottom: none; }
.bal-break-label { font-size: 0.85rem; color: var(--gray-300); }
.bal-break-val { font-size: 0.9rem; font-weight: 700; }
.bal-break-val.paid { color: var(--red); }

/* Balance history list */
.bal-history-list { display: flex; flex-direction: column; gap: 0; }
.bal-history-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0.5rem; gap: 1rem; flex-wrap: wrap;
  border-bottom: 1px solid rgba(59,139,255,0.07);
  transition: background var(--trans);
}
.bal-history-item:last-child { border-bottom: none; }
.bal-history-item:hover { background: rgba(59,139,255,0.04); border-radius: var(--radius-sm); }
.bal-history-left {
  display: flex; align-items: center; gap: 0.85rem; flex: 1; min-width: 0;
}
.bal-thumb {
  width: 56px; height: 40px; object-fit: cover;
  border-radius: 6px; border: 1px solid rgba(59,139,255,0.2);
  cursor: pointer; transition: transform 0.2s; flex-shrink: 0;
}
.bal-thumb:hover { transform: scale(1.08); }
.bal-thumb-placeholder {
  width: 56px; height: 40px; border-radius: 6px;
  background: rgba(59,139,255,0.1); display: flex;
  align-items: center; justify-content: center; font-size: 1.3rem;
  flex-shrink: 0;
}
.bal-history-title { font-size: 0.88rem; font-weight: 600; color: var(--white); }
.bal-history-sub   { font-size: 0.76rem; color: var(--gray-300); margin-top: 2px; }
.bal-history-date  { font-size: 0.72rem; color: var(--gray-500); margin-top: 2px; }
.bal-history-amount {
  font-size: 1rem; font-weight: 800; white-space: nowrap; flex-shrink: 0;
}
.bal-history-amount.received { color: var(--approved-color); }
.bal-history-amount.paid     { color: var(--red); }

@media (max-width: 900px) {
  .bal-summary-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bal-summary-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PAYMENT MODAL
   ============================================================ */
.pay-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(2,8,16,0.88);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.pay-modal-overlay.open { opacity: 1; pointer-events: all; }
.pay-modal-box {
  background: var(--navy-mid);
  border: 1px solid rgba(29,191,115,0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%; max-width: 520px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6), 0 0 40px rgba(29,191,115,0.08);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.pay-modal-overlay.open .pay-modal-box { transform: translateY(0); }
.pay-modal-header { margin-bottom: 1.5rem; }
.pay-modal-title { font-size: 1.2rem; font-weight: 800; color: var(--approved-color); }
.pay-modal-sub   { font-size: 0.82rem; color: var(--gray-300); margin-top: 3px; }
.pay-modal-body  { display: flex; flex-direction: column; gap: 0; }
.pay-modal-footer { margin-top: 1.5rem; border-top: 1px solid rgba(59,139,255,0.1); padding-top: 1.25rem; }
.pay-warning {
  font-size: 0.78rem; color: var(--owner-color);
  background: rgba(255,209,102,0.08);
  border: 1px solid rgba(255,209,102,0.2);
  border-radius: var(--radius-sm); padding: 0.65rem 0.9rem;
}

/* Upload zone */
.pay-upload-zone {
  border: 2px dashed rgba(29,191,115,0.35);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: rgba(29,191,115,0.04);
}
.pay-upload-zone:hover {
  border-color: rgba(29,191,115,0.7);
  background: rgba(29,191,115,0.08);
}
.pay-upload-zone.has-file { border-color: var(--approved-color); }
.pay-upload-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.pay-upload-text { font-size: 0.9rem; font-weight: 600; color: var(--gray-100); }
.pay-upload-hint { font-size: 0.75rem; color: var(--gray-500); margin-top: 3px; }

/* Payment proof card shown in Owner view */
.pay-proof-card {
  background: rgba(29,191,115,0.06);
  border: 1px solid rgba(29,191,115,0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
  display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
}
.pay-proof-screenshot {
  width: 100px; height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(29,191,115,0.3);
  cursor: pointer;
  transition: transform 0.2s;
}
.pay-proof-screenshot:hover { transform: scale(1.05); }
.pay-proof-info { flex: 1; min-width: 160px; }
.pay-proof-label { font-size: 0.72rem; font-weight: 700; color: var(--approved-color); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 4px; }
.pay-proof-amount { font-size: 1.1rem; font-weight: 800; color: var(--approved-color); }
.pay-proof-note { font-size: 0.78rem; color: var(--gray-300); margin-top: 3px; }
.pay-proof-date  { font-size: 0.72rem; color: var(--gray-500); margin-top: 2px; }

/* Full-screen image lightbox */
.pay-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.pay-lightbox img {
  max-width: 92vw; max-height: 92vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

/* ============================================================
   GROUP CHAT
   ============================================================ */
.chat-shell {
  display: flex; flex-direction: column;
  height: calc(100vh - 160px);
  background: rgba(10,22,40,0.7);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* Chat header */
.chat-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: rgba(6,13,31,0.85);
  border-bottom: var(--border-glass);
  flex-shrink: 0;
}
.chat-header-avatars { display: flex; gap: -0.4rem; }
.chat-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 1.1rem; font-weight: 700;
  border: 2px solid rgba(59,139,255,0.2);
  margin-right: -8px;
}
.chat-header-title { font-size: 0.95rem; font-weight: 800; color: var(--white); }
.chat-header-sub   { font-size: 0.72rem; color: var(--gray-500); }

.chat-live-dot {
  margin-left: auto; display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700; color: var(--approved-color);
}
.chat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--approved-color);
  box-shadow: 0 0 6px var(--approved-color);
  animation: chat-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes chat-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Messages area */
.chat-messages-wrap {
  flex: 1; overflow-y: auto; padding: 1.25rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  scroll-behavior: smooth;
}
.chat-messages-wrap::-webkit-scrollbar { width: 4px; }
.chat-messages-wrap::-webkit-scrollbar-track { background: transparent; }
.chat-messages-wrap::-webkit-scrollbar-thumb { background: rgba(59,139,255,0.2); border-radius: 4px; }

.chat-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--gray-500); font-size: 0.9rem;
  padding: 3rem 1rem; text-align: center;
}

/* Bubble rows */
.chat-bubble-row {
  display: flex; align-items: flex-end; gap: 0.5rem;
  max-width: 80%;
}
.chat-bubble-row.mine    { align-self: flex-end; flex-direction: row; }
.chat-bubble-row.theirs  { align-self: flex-start; }

.chat-avatar-sm {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.08);
}

.chat-bubble-col {
  display: flex; flex-direction: column; gap: 0.2rem;
  min-width: 0;
}
.chat-bubble-row.mine .chat-bubble-col { align-items: flex-end; }

.chat-sender {
  font-size: 0.72rem; font-weight: 700;
  padding: 0 0.2rem;
  letter-spacing: 0.3px;
}

.chat-bubble {
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.9rem; line-height: 1.55;
  border: 1px solid transparent;
  word-break: break-word;
  max-width: 100%;
  transition: transform 0.15s;
}
.chat-bubble:hover { transform: scale(1.01); }

.chat-bubble-mine {
  background: linear-gradient(135deg, #1565e8, #3b8bff);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 4px 18px rgba(21,101,232,0.35);
}
.chat-bubble-theirs {
  background: rgba(18,32,64,0.9);
  color: var(--gray-100);
  border-radius: 16px 16px 16px 4px;
}

.chat-time {
  font-size: 0.65rem; color: var(--gray-500);
  padding: 0 0.25rem;
}

/* Input bar */
.chat-input-bar {
  border-top: var(--border-glass);
  background: rgba(6,13,31,0.9);
  padding: 0.75rem 1rem;
  flex-shrink: 0;
}

.chat-emoji-row {
  display: none; flex-wrap: wrap; gap: 0.25rem;
  padding: 0.5rem 0.25rem 0.75rem;
  border-bottom: 1px solid rgba(59,139,255,0.08);
  margin-bottom: 0.5rem;
}
.chat-emoji-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.3rem; padding: 0.15rem 0.25rem;
  border-radius: 6px; transition: background 0.15s;
}
.chat-emoji-btn:hover { background: rgba(59,139,255,0.15); }

.chat-input-row {
  display: flex; align-items: flex-end; gap: 0.6rem;
}
.chat-emoji-toggle {
  background: rgba(59,139,255,0.08); border: 1px solid rgba(59,139,255,0.15);
  border-radius: 50%; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; flex-shrink: 0;
  transition: background var(--trans);
}
.chat-emoji-toggle:hover { background: rgba(59,139,255,0.2); }

.chat-input {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(59,139,255,0.2);
  border-radius: 20px; padding: 0.6rem 1rem;
  color: var(--white); font-size: 0.9rem;
  font-family: inherit; outline: none; resize: none;
  line-height: 1.5; transition: border-color var(--trans);
  max-height: 120px; overflow-y: auto;
}
.chat-input:focus { border-color: rgba(59,139,255,0.55); }
.chat-input::placeholder { color: var(--gray-500); }

.chat-send-btn {
  background: var(--gradient-brand); border: none;
  border-radius: 50%; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; cursor: pointer; flex-shrink: 0;
  transition: all var(--trans);
  box-shadow: 0 4px 16px rgba(21,101,232,0.4);
}
.chat-send-btn:hover { transform: scale(1.1) rotate(-5deg); box-shadow: 0 6px 24px rgba(21,101,232,0.6); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .stats-grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .staff-sidebar { width: 220px; }
  .staff-main    { margin-left: 220px; }
  .stats-grid3   { grid-template-columns: 1fr 1fr; }
  .form-row2     { grid-template-columns: 1fr; }
  .chat-bubble-row { max-width: 94%; }
}
@media (max-width: 680px) {
  .staff-sidebar { display: none; }
  .staff-main    { margin-left: 0; padding: 1.25rem; }
  .stats-grid3,
  .stats-grid4   { grid-template-columns: 1fr 1fr; }
  .chat-shell    { height: calc(100vh - 120px); }
}
