/* EPT Dashboard Global Styles */

:root{
  --ept-primary: #325A03;
  --ept-accent: #CE9326;
  --ept-bg: #0b1220;          /* dark CRM background */
  --ept-card: #111a2e;        /* card background */
  --ept-border: rgba(255,255,255,.08);
  --ept-text: rgba(255,255,255,.92);
  --ept-muted: rgba(255,255,255,.65);
}


.ept-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 16px;
  color: var(--ept-text);
}

.ept-muted{ color: var(--ept-muted); }

.ept-card{
  background: linear-gradient(180deg, rgba(17,26,46,.95), rgba(17,26,46,.85));
  border: 1px solid var(--ept-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

.ept-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
  padding: 14px 16px;
  border: 1px solid var(--ept-border);
  border-radius: 18px;
  background: rgba(17,26,46,.6);
  backdrop-filter: blur(10px);
}

.ept-title{
  margin:0;
  font-size:22px;
  line-height:1.2;
}

.ept-kpi{
  border-left: 4px solid var(--ept-accent);
}

.ept-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 12px;
  border: 1px solid var(--ept-border);
  background: rgba(255,255,255,.06);
  color: var(--ept-text);
  text-decoration:none;
  cursor:pointer;
}

.ept-btn:hover{
  border-color: rgba(206,147,38,.6);
}

.ept-avatar{
  border-radius: 14px;
  border: 2px solid rgba(206,147,38,.55);
}


/* ===== EPT Topbar/Header (Global) ===== */
.ept-header{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  height:64px;
  padding:0 24px;
  border-bottom:1px solid rgba(206,147,38,.15);
  background:#0f1a0a;
}

.ept-header-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.ept-header-title{
  font-size:18px;
  font-weight:700;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ept-header-right{
  display:flex;
  align-items:center;
  gap:14px;
}

.ept-header-user{
  display:flex;
  align-items:center;
  gap:10px;
}

.ept-avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  background:#1a2b12;
  border:1px solid rgba(206,147,38,.25);
  overflow:hidden;
}

.ept-user-meta{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.ept-user-name{
  color:#fff;
  font-weight:600;
  font-size:13px;
}

.ept-role-pill{
  margin-top:3px;
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  color:#111;
  background:#CE9326;
  width:max-content;
}

.ept-logout-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#325A03;
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
}
.ept-logout-btn:hover{ filter:brightness(1.05); }

.ept-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  background:#325A03;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:700;
  border:0;
  cursor:pointer;
}

.ept-btn:hover{ opacity:.92; }

.ept-btn-ghost{
  background:transparent;
  border:1px solid rgba(0,0,0,.12);
  color:#111 !important;
}

.ept-avatar-wrap{
  position:relative;
  display:inline-block;
}

.ept-avatar-wrap .ept-avatar{
  border-radius:12px;
}

.ept-avatar-edit{
  position:absolute;
  bottom:-6px;
  right:-6px;
  width:22px;
  height:22px;
  border-radius:999px;
  background:#CE9326;
  color:#111 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
  text-decoration:none !important;
  box-shadow:0 6px 14px rgba(0,0,0,.12);
}

/* Modal (avatar + call log) */
.ept-modal{ position:fixed; inset:0; display:none; z-index:99999; }
.ept-modal.is-open{ display:block; }
.ept-modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.ept-modal-card{ position:relative; width:min(520px, calc(100% - 28px)); margin:7vh auto 0; background:#fff; border-radius:18px; overflow:hidden; box-shadow:0 22px 60px rgba(0,0,0,.25); }
.ept-modal-head{ display:flex; justify-content:space-between; gap:12px; padding:16px 16px 10px; border-bottom:1px solid rgba(0,0,0,.08); }
.ept-modal-title{ font-weight:800; font-size:16px; }
.ept-modal-x{ border:0; background:transparent; font-size:22px; line-height:1; cursor:pointer; padding:0 6px; }
.ept-modal-body{ padding:16px; }
.ept-modal-body input[type="text"],
.ept-modal-body input[type="file"],
.ept-modal-body select,
.ept-modal-body textarea{
  width:100%; padding:10px; border-radius:12px; border:1px solid rgba(0,0,0,.15);
}
.ept-modal-body textarea{ resize:vertical; }
.ept-modal-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }

/* Floating action button (call log) */
.ept-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  width:52px;
  height:52px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#CE9326;
  color:#111;
  font-size:20px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 16px 34px rgba(0,0,0,.25);
  animation:eptPulse 1.8s ease-in-out infinite;
}

@keyframes eptPulse{
  0%, 100%{ transform:translateY(0) scale(1); }
  50%{ transform:translateY(-2px) scale(1.04); }
}


body.page .site, body.page{
  background: radial-gradient(900px 500px at 20% 0%, rgba(206,147,38,.15), transparent 55%),
              radial-gradient(900px 500px at 80% 10%, rgba(50,90,3,.18), transparent 50%),
              var(--ept-bg);
}

  
  .ept-col-12{ grid-column: span 12; }
  .ept-col-6{ grid-column: span 6; }
  .ept-col-4{ grid-column: span 4; }
  .ept-col-3 { grid-column: span 3; }

  
  @media (max-width: 900px){
    .ept-col-6, .ept-col-4 { grid-column: span 12; }
  }
  