/* ══════════════════════════════════════════════════════════════════
   MVR SIGNATURE SPACES CRM — COMPLETE STYLESHEET
   ══════════════════════════════════════════════════════════════════ */

:root{
  --bg:#f5f6f8;
  --panel:#ffffff;
  --panel2:#f8f9fb;
  --line:#e2e5e9;
  --text:#1f2429;
  --muted:#6d7580;
  --gold:#b8892a;
  --gold2:#8c691d;
  --danger:#dc3545;
  --ok:#1e8e5a;
}

*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:14px Inter,Segoe UI,Arial,sans-serif}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}

/* ─── Layout ──────────────────────────────────────────── */
.app{display:flex;min-height:100vh}
.sidebar{
  width:250px;background:#fff;border-right:1px solid var(--line);
  padding:16px 12px;position:fixed;inset:0 auto 0 0;overflow:auto;z-index:20;
}
.brand{display:flex;align-items:center;gap:10px;padding:8px 8px 18px;border-bottom:1px solid var(--line);margin-bottom:12px}
.brand img{width:52px;height:52px;object-fit:contain;border-radius:10px}
.brand strong{font-size:13px;letter-spacing:.5px;color:#1f2429}
.brand span{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.nav button{
  display:flex;width:100%;align-items:center;gap:10px;border:0;
  background:transparent;color:#4d5661;padding:10px 11px;
  border-radius:9px;margin:2px 0;text-align:left;font-weight:500;
}
.nav button:hover{background:#f1f2f4;color:#17191c}
.nav button.active{background:#fbf3df;color:#8c691d;font-weight:700}
.nav .section{color:#8892a0;font-size:10px;text-transform:uppercase;letter-spacing:1px;padding:14px 10px 5px}
.main{margin-left:250px;width:calc(100% - 250px)}
.top{
  height:68px;border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 22px;position:sticky;top:0;
  background:rgba(255,255,255,.96);backdrop-filter:blur(12px);z-index:10;
}
.search{width:min(480px,50vw);background:#fff;border:1px solid var(--line);border-radius:9px;padding:10px 13px;color:var(--text);outline:none}
.search::placeholder{color:#98a2b3}
.userbox{display:flex;align-items:center;gap:10px}
.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#fbf3df;color:#8c691d;font-weight:700;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.content{padding:22px}

/* ─── Page header ─────────────────────────────────────── */
.pagehead{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:18px;flex-wrap:wrap}
.pagehead h1{font-size:23px;margin:0;color:#1f2429}
.sub{color:var(--muted);margin-top:4px}

/* ─── Buttons ─────────────────────────────────────────── */
.btn{border:1px solid var(--line);background:#fff;color:#1f2429;padding:9px 13px;border-radius:8px;font-weight:500}
.btn:hover{background:#f1f2f4}
.btn.gold{background:var(--gold);color:#fff;border-color:var(--gold);font-weight:700}
.btn.gold:hover{background:#9e741c}
.btn.danger{border-color:#f0c2c2;color:#c93030;background:#fff}
.btn.danger:hover{background:#fdf3f3}
.btn.sm{padding:6px 9px;font-size:12px}

/* ─── Grid + cards ────────────────────────────────────── */
.grid{display:grid;gap:14px}
.kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;box-shadow:0 1px 2px rgba(20,25,30,.03)}
.card h3{margin:0 0 12px;font-size:15px;color:#1f2429}
.kpi .label{color:var(--muted);font-size:12px}
.kpi .num{font-size:26px;font-weight:750;margin-top:8px;color:#1f2429}
.goldtext{color:var(--gold2)}
.two{grid-template-columns:1.4fr 1fr}
.three{grid-template-columns:repeat(3,1fr)}

/* ─── Toolbar + forms ─────────────────────────────────── */
.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.toolbar input,.toolbar select,.form input,.form select,.form textarea{background:#fff;border:1px solid var(--line);color:var(--text);border-radius:8px;padding:9px 10px;outline:none}
.toolbar input:focus,.form input:focus,.form select:focus,.form textarea:focus{border-color:var(--gold)}
.form textarea{min-height:90px;resize:vertical}

/* ─── Tables ──────────────────────────────────────────── */
.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff;max-width:100%}
.table{width:100%;border-collapse:separate;border-spacing:0;min-width:950px}
.table th,.table td{padding:11px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;color:#1f2429;background:#fff}
.table th{color:#67707a;font-size:11px;text-transform:uppercase;letter-spacing:.5px;background:#f7f8fa;position:sticky;top:0;font-weight:700;z-index:2}
.table tr:hover td{background:#fafbfc}

/* ─── Sticky checkbox column ──────────────────────────── */
.table th.checkbox-col,
.table td.checkbox-col{
  width:44px;min-width:44px;max-width:44px;
  text-align:center;padding:8px 6px;
  background:#fbf8ef;
  position:sticky;left:0;z-index:3;
  border-right:1px solid var(--line);
}
.table th.checkbox-col{background:#f7f2e0;z-index:4}
.table tr:hover td.checkbox-col{background:#f7f2e0}
.table td.checkbox-col{cursor:pointer;user-select:none}

/* ─── Checkbox ────────────────────────────────────────── */
.table input[type="checkbox"]{
  width:18px;height:18px;
  accent-color:var(--gold);
  cursor:pointer;
  vertical-align:middle;
  margin:0;
}

/* ─── Badges ──────────────────────────────────────────── */
.badge{display:inline-block;padding:4px 7px;border-radius:999px;font-size:11px;background:#eef0f3;color:#4d5661;font-weight:600}
.badge.gold{background:#fbf3df;color:#8c691d}
.badge.green{background:#e7f6ee;color:#1e8e5a}
.badge.red{background:#fdecec;color:#c93030}
.badge.blue{background:#e8f0fe;color:#1a5fc4}
.badge.orange{background:#fef3e2;color:#b16f00}

/* ─── Modal ───────────────────────────────────────────── */
.modal{position:fixed;inset:0;background:rgba(20,25,30,.5);display:none;align-items:center;justify-content:center;padding:20px;z-index:30}
.modal.show{display:flex}
.modalbox{background:#fff;border:1px solid var(--line);border-radius:14px;width:min(1000px,96vw);max-height:92vh;overflow:auto;box-shadow:0 12px 40px rgba(20,25,30,.18)}
.modalhead{padding:15px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
.modalhead b{color:#1f2429}
.modalbody{padding:18px}

/* ─── Forms ───────────────────────────────────────────── */
.formgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.field label{display:block;color:#67707a;font-size:11px;margin:0 0 5px;font-weight:600}
.field.full{grid-column:1/-1}
.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}

/* ─── Project cards ───────────────────────────────────── */
.projectgrid{grid-template-columns:repeat(4,minmax(0,1fr))}
.project{padding:0;overflow:hidden}
.project .cover{height:145px;background:linear-gradient(135deg,#fbf3df,#e8ddc4);display:grid;place-items:center;color:#8c691d;font-size:12px;font-weight:600}
.project img{width:100%;height:145px;object-fit:cover}
.project .pbody{padding:13px}
.project h3{margin:0 0 6px;font-size:15px;color:#1f2429}
.project p{margin:3px 0;color:var(--muted);font-size:12px}

/* ─── Utilities ───────────────────────────────────────── */
.flex{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.right{margin-left:auto}
.bar{height:9px;border-radius:99px;background:#eaeef2;overflow:hidden}
.bar i{display:block;height:100%;background:var(--gold);border-radius:99px}
.muted{color:var(--muted)}
.empty{padding:35px;text-align:center;color:var(--muted)}
.notice{background:#fbf8ef;border:1px solid #e8d8ad;color:#6b5520;border-radius:9px;padding:10px;margin-top:12px;font-size:12px}

/* ─── Pipeline ────────────────────────────────────────── */
.kanban{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.col{background:#f7f8fa;border:1px solid var(--line);border-radius:10px;padding:10px;min-height:350px}
.leadcard{background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px;margin-top:8px}
.leadcard strong{display:block;color:#1f2429}

/* ─── Login ───────────────────────────────────────────── */
.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 50% 0,#fbf3df 0,#f5f6f8 42%)}
.loginbox{width:min(420px,92vw);background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px;box-shadow:0 12px 40px rgba(20,25,30,.08)}
.loginbox img{width:90px;height:90px;object-fit:contain;display:block;margin:auto}
.loginbox h1{text-align:center;font-size:21px;color:#1f2429}
.loginbox p{text-align:center;color:var(--muted)}
.loginbox input{width:100%;margin:6px 0;background:#fff;border:1px solid var(--line);color:var(--text);padding:12px 44px 12px 12px;border-radius:9px;outline:none;box-sizing:border-box}
.loginbox input:focus{border-color:var(--gold)}

/* ─── Password eye ────────────────────────────────────── */
.password-wrap{position:relative;width:100%;display:block;margin:6px 0}
.password-wrap input{margin:0!important;padding-right:44px!important;width:100%!important;box-sizing:border-box!important}
.password-eye{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:32px;height:32px;display:grid;place-items:center;background:transparent;border:0;cursor:pointer;color:#8a94a0;padding:0;border-radius:6px}
.password-eye:hover{color:var(--gold)}
.password-eye .mvr-eye-svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}

/* ─── Profile pic ─────────────────────────────────────── */
.profile-pic{width:96px;height:96px;border-radius:50%;object-fit:cover;border:3px solid #fbf3df;background:#f7f8fa;display:block;margin:0 auto 12px}

/* ─── MOBILE / DESKTOP SWITCH ─────────────────────────── */
.mobile-only { display: none !important; }
.desktop-only { display: block; }

/* Hide hamburger on desktop */
@media (min-width: 801px) {
  #mvr-menu-btn,
  .mvr-menu-btn,
  .mvr-top-logo,
  #mvr-overlay {
    display: none !important;
  }
}

/* ─── Responsive ──────────────────────────────────────── */
@media(max-width:1100px){
  .projectgrid{grid-template-columns:repeat(3,1fr)}
  .kpis{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:800px){
  .main{margin-left:0;width:100%}
  .sidebar{
    position:fixed;left:-290px;top:0;bottom:0;width:280px;max-width:84vw;
    z-index:30000;background:#fff;transition:left .22s ease;
    overflow-y:auto;padding:14px;box-shadow:12px 0 35px rgba(20,25,30,.18);
  }
  .sidebar.mvr-mobile-open{left:0}
  .content{padding:12px}
  .top{display:flex;align-items:center;gap:8px;padding:8px 10px;height:auto;min-height:60px;flex-wrap:wrap;background:#fff}
  .top .search{order:3;width:100%;margin-top:6px}
  .userbox{margin-left:auto}
  
  .mvr-menu-btn{
    display:flex;align-items:center;justify-content:center;
    width:44px;height:44px;flex:0 0 44px;
    border:1px solid var(--line);background:#fff;color:#1f2429;
    border-radius:10px;font-size:22px;cursor:pointer;
  }
  .mvr-menu-btn:hover{background:#fbf3df;border-color:var(--gold)}
  
  .grid.two,.grid.three,.formgrid,.projectgrid{grid-template-columns:1fr!important}
  .kpis{grid-template-columns:repeat(2,1fr)!important}
  
  .btn,button{min-height:42px;font-size:13px}
  .tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  table{min-width:680px}
  
  .modal{padding:8px;align-items:flex-start;overflow-y:auto}
  .modalbox{max-height:calc(100vh - 20px);margin:8px auto}
  
  .mobile-only { display: block !important; }
  .desktop-only { display: none !important; }
  
  .pagehead {
    flex-direction: column;
    align-items: stretch !important;
  }
  .pagehead > .flex {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
  }
  .pagehead > .flex > button,
  .pagehead > .flex > a {
    width: 100%;
    text-align: center;
  }
  
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar input,
  .toolbar select { width: 100%; }
  
  #leadBulkBar > .flex,
  #empBulkBar > .flex {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  #leadBulkBar .right,
  #empBulkBar .right {
    margin-left: 0;
    flex-direction: column;
  }
  #leadBulkBar .right > button,
  #empBulkBar .right > button {
    width: 100%;
    justify-content: center;
  }
  
  .lead-card-mobile {
    box-shadow: 0 1px 3px rgba(20,25,30,.05);
  }
  .tablewrap.desktop-only { display: none !important; }
  .directory-card { padding: 12px !important; }
}

@media(max-width:520px){
  .projectgrid,.kpis{grid-template-columns:1fr}
  .content{padding:13px}
}

#mvr-overlay{position:fixed;inset:0;background:rgba(20,25,30,.4);display:none;z-index:29999}
#mvr-overlay.mvr-show{display:block}
.mvr-top-logo{display:none;width:40px;height:40px;object-fit:contain;border-radius:8px;flex:0 0 40px}

/* ══════════════════════════════════════════════════════════════════
   DP (Display Picture) — Circular & Consistent
   ══════════════════════════════════════════════════════════════════ */
img.profile-pic {
  image-rendering: -webkit-optimize-contrast;
}

#avatar {
  cursor: pointer;
  transition: transform .15s;
}
#avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(184, 137, 42, 0.15);
}

/* ══════════════════════════════════════════════════════════════════
   DISPOSITION BADGES
   ══════════════════════════════════════════════════════════════════ */
.badge.dispo-connected { background: #e8f0fe; color: #1a5fc4; }
.badge.dispo-not-connected { background: #fdecec; color: #c93030; }
.badge.dispo-interested { background: #e7f6ee; color: #1e8e5a; }
.badge.dispo-follow-up { background: #fef3e2; color: #b16f00; }
.badge.dispo-call-back { background: #fbf3df; color: #8c691d; }
.badge.dispo-site-visit { background: #f3e8ff; color: #7e22ce; }
.badge.dispo-converted { background: #e7f6ee; color: #15803d; }
.badge.dispo-lost { background: #f1f3f5; color: #6b7280; }

/* ══════════════════════════════════════════════════════════════════
   BREAK BUTTON (topbar)
   ══════════════════════════════════════════════════════════════════ */
.top button[onclick*="openBreakMenu"] {
  background: linear-gradient(135deg, #b8892a, #8c691d);
  color: #fff;
  border: 0;
  font-weight: 600;
}
.top button[onclick*="openBreakMenu"]:hover {
  opacity: 0.9;
}

/* ══════════════════════════════════════════════════════════════════
   REPORT CARDS
   ══════════════════════════════════════════════════════════════════ */
.report-stat {
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  background: #fafbfc;
  border: 1px solid var(--line);
  transition: all .2s;
}
.report-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20,25,30,.06);
}
/* ══════════════════════════════════════════════════════════════════
   DISPOSITION TABS (Leads page)
   ══════════════════════════════════════════════════════════════════ */
.lead-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.lead-tabs button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: #4d5661;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-size: 13px;
}

.lead-tabs button:hover {
  background: #f7f8fa;
  border-color: #c8ccd2;
}

.lead-tabs button.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  font-weight: 700;
}

.lead-tabs button .count-badge {
  display: inline-block;
  background: rgba(0,0,0,.06);
  color: inherit;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 5px;
  font-size: 11px;
  font-weight: 600;
}

.lead-tabs button.active .count-badge {
  background: rgba(255,255,255,.3);
}

/* Mobile — smaller tabs */
@media (max-width: 800px) {
  .lead-tabs {
    gap: 6px;
    padding: 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .lead-tabs button {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* ══════════════════════════════════════════════════════════════════
   LEAD CARDS (mobile view with disposition color)
   ══════════════════════════════════════════════════════════════════ */
.lead-card-mobile {
  transition: box-shadow .15s;
}
.lead-card-mobile:hover {
  box-shadow: 0 4px 12px rgba(20,25,30,.08);
}

/* ══════════════════════════════════════════════════════════════════
   BREAK TIMER
   ══════════════════════════════════════════════════════════════════ */
#breakTimer {
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

/* ══════════════════════════════════════════════════════════════════
   PROFESSIONAL DASHBOARD STYLES
   ══════════════════════════════════════════════════════════════════ */

.dash-hero{
  background:linear-gradient(135deg,#fbf8ef 0%,#fff 60%);
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px 24px;
  margin-bottom:20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  box-shadow:0 2px 8px rgba(20,25,30,.03);
}
.dash-hero-left{display:flex;gap:16px;align-items:center;flex:1;min-width:280px}
.dash-hero-title{margin:0;font-size:22px;color:#1f2429;font-weight:800;letter-spacing:-0.3px}
.dash-hero-sub{margin:4px 0 0;color:#6d7580;font-size:13px}
.dash-hero-right{display:flex;gap:8px;flex-wrap:wrap}

.dash-alert{display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:12px;margin-bottom:16px;font-size:13px;transition:transform .15s}
.dash-alert:hover{transform:translateY(-1px)}
.dash-alert-warn{background:linear-gradient(135deg,#fff8e1,#fef3e2);border:1px solid #e8d8ad;color:#8c691d}
.dash-pulse-dot{width:12px;height:12px;border-radius:50%;background:#dc3545;box-shadow:0 0 0 0 rgba(220,53,69,.7);animation:pulse 1.6s infinite}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(220,53,69,.7)}
  70%{box-shadow:0 0 0 10px rgba(220,53,69,0)}
  100%{box-shadow:0 0 0 0 rgba(220,53,69,0)}
}

.dash-section-title{font-size:11px;text-transform:uppercase;letter-spacing:1.2px;color:#8892a0;font-weight:700;margin:20px 0 10px;padding-left:2px}

.dash-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.dash-kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;position:relative;overflow:hidden;transition:all .2s}
.dash-kpi:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(20,25,30,.06)}
.dash-kpi::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--line)}
.dash-kpi.kpi-green::before{background:linear-gradient(90deg,#1e8e5a,#4caf7a)}
.dash-kpi.kpi-blue::before{background:linear-gradient(90deg,#1a5fc4,#4a90e2)}
.dash-kpi.kpi-orange::before{background:linear-gradient(90deg,#b16f00,#e8a020)}
.dash-kpi.kpi-purple::before{background:linear-gradient(90deg,#7e22ce,#a855f7)}
.dash-kpi.kpi-gray::before{background:linear-gradient(90deg,#8892a0,#b8c0cc)}
.dash-kpi-icon{font-size:22px;margin-bottom:8px}
.dash-kpi-label{font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:#8892a0;font-weight:600;margin-bottom:4px}
.dash-kpi-value{font-size:24px;font-weight:800;color:#1f2429;line-height:1.2;letter-spacing:-0.5px}
.dash-kpi-meta{font-size:11px;color:#6d7580;margin-top:4px}

.dash-main-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:16px}
.dash-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 1px 3px rgba(20,25,30,.03)}
.dash-card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px;gap:10px;flex-wrap:wrap}
.dash-card-title{margin:0;font-size:14px;font-weight:700;color:#1f2429;letter-spacing:-0.2px}
.dash-card-sub{margin:4px 0 0;font-size:11px;color:#8892a0}

.dash-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:16px}
.dash-stat{text-align:center;padding:12px 6px;background:#fafbfc;border-radius:10px;border:1px solid var(--line)}
.dash-stat-value{font-size:20px;font-weight:800;letter-spacing:-0.5px}
.dash-stat-label{font-size:10px;color:#8892a0;text-transform:uppercase;letter-spacing:.5px;margin-top:2px;font-weight:600}

.dash-progress-wrap{padding-top:6px}
.dash-progress-label{display:flex;justify-content:space-between;font-size:12px;color:#4d5661;margin-bottom:8px}
.dash-progress-label b{color:#8c691d;font-weight:700}
.dash-progress-foot{font-size:10px;color:#8892a0;margin-top:6px;text-align:right}

.dash-pipeline{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.dash-pipe-item{padding:14px;border-radius:12px;text-align:center;border:1px solid rgba(0,0,0,.04)}
.dash-pipe-num{font-size:22px;font-weight:800;line-height:1;letter-spacing:-0.5px}
.dash-pipe-label{font-size:11px;font-weight:600;margin-top:6px;opacity:.85}

.dash-break-list{display:flex;flex-direction:column;gap:8px}
.dash-break-item{display:flex;align-items:center;gap:12px;padding:10px 12px;background:#fafbfc;border-radius:10px;border:1px solid var(--line)}
.dash-break-icon{width:36px;height:36px;display:grid;place-items:center;background:#fff;border-radius:9px;font-size:18px;border:1px solid var(--line)}

.dash-empty{padding:24px 16px;text-align:center;color:#8892a0}
.dash-empty p{margin:8px 0 12px;font-size:13px}

.dash-punch-detail{display:flex;flex-direction:column;gap:10px}
.dash-punch-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding:8px 0;border-bottom:1px dashed #eef0f3}
.dash-punch-row:last-child{border-bottom:0}
.dash-punch-row span{color:#6d7580}
.dash-punch-row b{color:#1f2429;font-weight:700}

.dash-slip{background:linear-gradient(135deg,#fbf3df,#fff8e1);border:1px solid #e8d8ad;border-radius:12px;padding:16px;text-align:center}
.dash-slip-month{font-size:11px;color:#8c691d;text-transform:uppercase;letter-spacing:1px;font-weight:700}
.dash-slip-net{font-size:28px;font-weight:800;color:#8c691d;margin:8px 0;letter-spacing:-1px}
.dash-slip-meta{display:flex;justify-content:center;gap:16px;font-size:11px;color:#8c691d;opacity:.85}

.dash-leave-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.dash-leave-item{text-align:center;padding:12px 6px;background:#fafbfc;border-radius:10px;border:1px solid var(--line)}
.dash-leave-num{font-size:20px;font-weight:800;color:#1f2429;letter-spacing:-0.5px}
.dash-leave-label{font-size:10px;color:#8892a0;text-transform:uppercase;letter-spacing:.5px;margin-top:2px;font-weight:600}

.dash-quick-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.dash-quick-btn{padding:12px 8px;background:#fafbfc;border:1px solid var(--line);border-radius:10px;font-size:12px;font-weight:600;color:#4d5661;cursor:pointer;transition:all .15s;text-align:center}
.dash-quick-btn:hover{background:#fbf3df;border-color:#e8d8ad;color:#8c691d;transform:translateY(-1px)}

@media(max-width:1100px){
  .dash-kpi-grid{grid-template-columns:repeat(2,1fr)}
  .dash-main-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .dash-hero{padding:16px}
  .dash-hero-title{font-size:18px}
  .dash-kpi-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .dash-kpi{padding:12px}
  .dash-kpi-value{font-size:20px}
  .dash-stat-row{grid-template-columns:repeat(2,1fr)}
}
/* ══════════════════════════════════════════════════════════════════
   MOBILE FIXES
   ══════════════════════════════════════════════════════════════════ */

@media(max-width:600px){
  #topBreakBtn{
    padding:6px 10px !important;
    font-size:12px !important;
    margin-right:4px !important;
  }
  .modal{
    padding:0 !important;
    align-items:flex-start !important;
  }
  .modalbox{
    width:100vw !important;
    max-width:100vw !important;
    border-radius:0 !important;
    max-height:100vh !important;
    margin:0 !important;
  }
  .modalhead{
    position:sticky;
    top:0;
    background:#fff;
    z-index:10;
    border-bottom:1px solid var(--line);
  }
  #breakTimer{
    font-size:32px !important;
    letter-spacing:1px !important;
  }
  .dash-hero{
    padding:14px !important;
  }
  .dash-hero-left{
    min-width:0 !important;
    width:100%;
  }
  .dash-hero-title{
    font-size:18px !important;
  }
  .dash-hero-sub{
    font-size:12px !important;
  }
  .dash-hero-right{
    width:100%;
    flex-direction:column;
    gap:6px !important;
  }
  .dash-hero-right button{
    width:100%;
  }
  .dash-kpi-grid{
    grid-template-columns:repeat(2,1fr) !important;
    gap:8px !important;
  }
  .dash-kpi{
    padding:12px !important;
  }
  .dash-kpi-icon{
    font-size:18px !important;
  }
  .dash-kpi-value{
    font-size:18px !important;
  }
  .dash-kpi-label{
    font-size:10px !important;
  }
  .dash-kpi-meta{
    font-size:10px !important;
  }
  .dash-stat-row{
    grid-template-columns:repeat(2,1fr) !important;
  }
  .dash-pipeline{
    grid-template-columns:repeat(2,1fr) !important;
  }
  .dash-quick-actions{
    grid-template-columns:repeat(2,1fr) !important;
  }
  .tablewrap{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  .table{
    min-width:700px;
  }
  #amBody .card{
    padding:12px !important;
  }
  .dash-break-item{
    padding:8px 10px !important;
  }
  .dash-break-icon{
    width:32px !important;
    height:32px !important;
    font-size:16px !important;
  }
  .dash-punch-row{
    font-size:12px !important;
  }
  .dash-slip-net{
    font-size:24px !important;
  }
  .dash-leave-grid{
    gap:6px !important;
  }
  .dash-leave-num{
    font-size:18px !important;
  }
}

@media(max-width:400px){
  .dash-kpi-grid{
    grid-template-columns:1fr !important;
  }
  .dash-kpi-value{
    font-size:20px !important;
  }
  .dash-pipeline{
    grid-template-columns:1fr !important;
  }
}

/* ⚡ Online status dot — blinking green */
.mvr-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e8e5a;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(30, 142, 90, 0.7);
  animation: mvr-blink-green 1.5s infinite;
}

@keyframes mvr-blink-green {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 142, 90, 0.7);
    background: #1e8e5a;
  }
  70% {
    box-shadow: 0 0 0 8px rgba(30, 142, 90, 0);
    background: #4caf7a;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 142, 90, 0);
    background: #1e8e5a;
  }
}

/* ══════════════════════════════════════════════════════════════════
   APP FOOTER
   ══════════════════════════════════════════════════════════════════ */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 12px;
  color: #8892a0;
  border-top: 1px solid #e2e5e9;
  background: #fff;
  letter-spacing: 0.3px;
  font-weight: 500;
  flex-shrink: 0;
}

.footer-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}

.app-footer b {
  color: #1a3d7a;
  font-weight: 700;
}