/* =====================================================
   RK MEDICALS — PARTNER PORTAL STYLES
   ===================================================== */

/* ── Partner login button colour ── */
.partner-btn { background: linear-gradient(135deg, #8b4500 0%, #e67e22 100%) !important; }
.partner-btn:hover { opacity: .9; }

/* ── Partner type grid ── */
.partner-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: 1.1rem;
}
.partner-type-btn {
  padding: .55rem .4rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--green-xlight);
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  line-height: 1.4;
}
.partner-type-btn:hover,
.partner-type-btn.selected {
  background: #e67e22;
  color: #fff;
  border-color: #e67e22;
}

/* =====================================================
   DASHBOARD
   ===================================================== */
.dash-body {
  background: #f1f5f9;
  min-height: 100vh;
}

/* Navbar */
.dash-nav {
  background: linear-gradient(135deg, #6b3000 0%, #e67e22 100%);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.dash-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-nav-name {
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 600;
  margin-right: .75rem;
}
.dash-nav-right { display: flex; align-items: center; }
.dash-logout-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: .4rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.dash-logout-btn:hover { background: rgba(255,255,255,.25); }

/* Loading */
.dash-loading {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
  font-size: .9rem;
}

/* Wrap */
.dash-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
}

/* Welcome Banner */
.dash-welcome {
  background: linear-gradient(135deg, #6b3000 0%, #e67e22 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(230,126,34,.3);
}
.dash-welcome-left { display: flex; align-items: center; gap: 1.1rem; }
.dash-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.4);
  flex-shrink: 0;
}
.dash-welcome h1 {
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 .3rem;
}
.dash-meta-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.dash-type-badge {
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
}
.dash-email-text { color: rgba(255,255,255,.75); font-size: .78rem; }
.dash-wa-btn {
  background: #25d366;
  color: #fff;
  padding: .6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: var(--transition);
  box-shadow: 0 3px 12px rgba(37,211,102,.3);
}
.dash-wa-btn:hover { background: #1ebe5d; color: #fff; }

/* Stats */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dash-stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border: 1.5px solid #e5e7eb;
  transition: var(--transition);
}
.dash-stat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.dash-stat-card.highlight { border-color: var(--green-accent); }
.dash-stat-card.gold { border-color: #f5a623; }
.dsc-icon { font-size: 1.6rem; margin-bottom: .4rem; }
.dsc-num { font-size: 1.75rem; font-weight: 800; font-family: 'Poppins',sans-serif; color: var(--text-dark); margin-bottom: .2rem; }
.dsc-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; }

/* Main grid */
.dash-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Section */
.dash-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.dash-section-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1.5px solid #f3f4f6;
}

/* Quick Actions */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}
.qa-card {
  border-radius: var(--radius);
  padding: 1.1rem .9rem;
  text-align: center;
  transition: var(--transition);
  border: 1.5px solid transparent;
  text-decoration: none;
  display: block;
}
.qa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.qa-icon { font-size: 1.75rem; margin-bottom: .4rem; }
.qa-label { font-size: .82rem; font-weight: 700; color: var(--text-dark); display: block; }
.qa-sub { font-size: .7rem; color: var(--text-muted); margin-top: .15rem; }
.qa-green  { background: #f0fdf4; border-color: #bbf7d0; }
.qa-blue   { background: #eff6ff; border-color: #bfdbfe; }
.qa-teal   { background: #f0fdfa; border-color: #99f6e4; }
.qa-purple { background: #faf5ff; border-color: #e9d5ff; }
.qa-orange { background: #fff7ed; border-color: #fed7aa; }
.qa-gray   { background: #f9fafb; border-color: #e5e7eb; }

/* Profile card */
.profile-card { display: flex; flex-direction: column; gap: .6rem; }
.profile-row { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; border-bottom: 1px solid #f3f4f6; }
.profile-row:last-child { border-bottom: none; }
.profile-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.profile-value { font-size: .82rem; color: var(--text-dark); font-weight: 500; text-align: right; max-width: 180px; word-break: break-all; }
.dash-status-badge {
  background: #dcfce7;
  color: #166534;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 999px;
}

/* Announcements */
.announcement-list { display: flex; flex-direction: column; gap: .85rem; }
.ann-item { display: flex; gap: .6rem; align-items: flex-start; }
.ann-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
  margin-top: .35rem;
}
.ann-item.ann-new .ann-dot { background: var(--green-main); }
.ann-item strong { font-size: .82rem; color: var(--text-dark); display: block; margin-bottom: .15rem; }
.ann-item p { font-size: .75rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Activity Table */
.activity-table-wrap { overflow-x: auto; }
.activity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.activity-table th {
  background: #f9fafb;
  color: var(--text-muted);
  font-weight: 700;
  padding: .65rem 1rem;
  text-align: left;
  border-bottom: 1.5px solid #e5e7eb;
  white-space: nowrap;
}
.activity-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: var(--text-body);
}
.activity-table tr:last-child td { border-bottom: none; }
.act-status {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
}
.act-pending   { background: #fff7ed; color: #c2410c; }
.act-completed { background: #dcfce7; color: #166534; }
.act-progress  { background: #eff6ff; color: #1d4ed8; }

/* Responsive */
@media (max-width: 1024px) {
  .dash-main-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dash-wrap { padding: 1rem 1rem 3rem; }
  .dash-welcome { padding: 1.25rem 1.1rem; flex-direction: column; align-items: flex-start; }
  .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-nav { padding: 0 .75rem; }
  .dash-nav-inner { height: 54px; }
  .dash-nav-name { display: none; }           /* hide name on small screens — shown in welcome banner */
  .dash-nav-right { gap: .35rem; }
  .dash-nav-right button { padding: .35rem .6rem; font-size: .72rem; }
  .dash-logout-btn { padding: .35rem .65rem; font-size: .72rem; }
  .activity-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .activity-table { min-width: 480px; }
}
