/* ================================================================
   AMS MEMBER DASHBOARD — design system matching event/course pages
   Font: Mulish | Navy #143b66 | Teal #1499a6 | BG #f5f7fa
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;600;700;800;900&display=swap');

/* ---- Reset ---- */
.md-dashboard-wrapper,
.md-dashboard-wrapper * {
  box-sizing: border-box;
  font-family: 'Mulish', system-ui, -apple-system, sans-serif;
}

/* ================================================================
   LAYOUT
   ================================================================ */
.md-dashboard-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #f5f7fa;
  color: #3f4a57;
  -webkit-font-smoothing: antialiased;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.md-sidebar {
  background: #fff;
  border-right: 1px solid #e4e8ec;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---- Profile block ---- */
.md-profile {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #e4e8ec;
  margin-bottom: 20px;
}

.md-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid #e8f0fa;
}

.md-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-profile h2 {
  font-size: 16px;
  font-weight: 800;
  color: #143b66;
  margin: 0 0 8px;
}

.md-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 999px;
  background: #e8f0fa;
  color: #fff;
}

.md-contact p {
  font-size: 12px;
  color: #82909c;
  margin: 6px 0 0;
  line-height: 1.4;
}

/* ---- Nav ---- */
.md-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.md-nav a,
.md-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3f4a57;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s, color .12s;
  border: none;
  background: transparent;
}

.md-nav a:hover {
  background: #f3f7fb;
  color: #143b66;
}

.md-nav a.active {
  background: #e8f0fa;
  color: #143b66;
  font-weight: 800;
}

.md-logout {
  /* margin-top: auto; */
  padding-top: 20px;
  color: #82909c;
  font-size: 14px;
  font-weight: 600;
}

.md-logout:hover { color: #c0392b; }

/* ---- Nav icons ---- */
.md-icon {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  opacity: .7;
}

.icon-dashboard { background-image: url('./icons/icon_1.png'); }
.icon-profile   { background-image: url('./icons/icon_2.png'); }
.icon-members   { background-image: url('./icons/icon_3.png'); }
.icon-events    { background-image: url('./icons/icon_4.png'); }
.icon-courses   { background-image: url('./icons/icon_5.png'); }
.icon-exams     { background-image: url('./icons/icon_6.png'); }
.icon-credits   { background-image: url('./icons/icon_7.png'); }
.icon-company   { background-image: url('./icons/icon_8.png'); }
.icon-community { background-image: url('./icons/icon_9.png'); }

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.md-main {
  padding: 28px;
  min-width: 0;
}

/* ================================================================
   LOADER
   ================================================================ */
#md-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.md-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e4e8ec;
  border-top-color: #143b66;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   CARDS
   ================================================================ */
.md-card {
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(20,59,102,.07);
  margin-bottom: 20px;
}

.md-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #143b66;
  margin: 0 0 16px;
}

.md-muted {
  font-size: 14px;
  color: #82909c;
}

/* Welcome card */
.wlcm-msg h2 {
  font-size: 22px;
  font-weight: 900;
  color: #143b66;
  margin: 0 0 8px;
}

.wlcm-msg p {
  font-size: 15px;
  color: #5a6776;
  margin: 0;
  line-height: 1.6;
}

/* ================================================================
   GRID LAYOUTS
   ================================================================ */
.md-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.md-grid-2 { grid-template-columns: 1fr 1fr; }
.md-span-2 { grid-column: span 2; }

/* ================================================================
   MEMBERSHIP CARD
   ================================================================ */
.md-membership-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.md-membership-info { flex: 1; }

.md-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.md-upgrade-row { margin-left: 0; }

.md-label {
  width: 130px;
  font-size: 13px;
  color: #82909c;
  font-weight: 600;
  flex-shrink: 0;
}

.md-value {
  font-size: 14px;
  font-weight: 700;
  color: #143b66;
}

/* Status badges */
.md-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-active   { background: #e9f8f1; color: #0f5e3e; }
.status-expired  { background: #fdecea; color: #c0392b; }
.status-pending  { background: #fff8e1; color: #7a5800; }
.status-inactive { background: #f3f5f7; color: #82909c; }

/* Upgrade link */
.md-upgrade-btn {
  font-size: 13px;
  color: #1499a6;
  font-weight: 700;
  text-decoration: underline;
}

/* Expiry ring */
.md-ring-pie {
  width: 110px;
  height: 110px;
  min-width: 110px;
  border-radius: 50%;
  background: conic-gradient(
    #143b66 calc(var(--progress) * 1%),
    #e4e8ec 0%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.md-ring-pie::before {
  content: '';
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
}

.md-ring-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}

.md-ring-inner strong {
  font-size: 22px;
  font-weight: 900;
  color: #143b66;
  display: block;
  line-height: 1;
}

.md-ring-inner span {
  font-size: 11px;
  color: #82909c;
  font-weight: 600;
}

/* Renew CTA */
.md-renew-cta {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #fff8e1;
  border: 1px solid #f0d060;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.md-renew-cta .cta-content strong {
  display: block;
  color: #7a5800;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}

.md-renew-cta .cta-content p {
  margin: 0;
  font-size: 13px;
  color: #7a5800;
}

/* ================================================================
   STATS ROW
   ================================================================ */
.md-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.div-count-box {
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(20,59,102,.07);
  transition: box-shadow .15s;
}

.div-count-box:hover {
  box-shadow: 0 3px 10px rgba(20,59,102,.12);
}

.div-count-box img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.stats-text { display: flex; flex-direction: column; }

.stats-text strong {
  font-size: 24px;
  font-weight: 900;
  color: #143b66;
  line-height: 1;
}

.stats-text span {
  font-size: 12px;
  color: #82909c;
  font-weight: 600;
  margin-top: 3px;
}

/* ================================================================
   COURSES
   ================================================================ */
.course-wrap { display: flex; flex-direction: column; gap: 14px; }

.md-course-card {
  background: #f7f9fb;
  border: 1px solid #e4e8ec;
  border-radius: 10px;
  padding: 16px 18px;
  transition: box-shadow .15s;
}

.md-course-card:hover {
  box-shadow: 0 2px 8px rgba(20,59,102,.10);
}

.course-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.course-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: #143b66;
  margin: 0;
  line-height: 1.3;
}

.course-percent {
  font-size: 13px;
  font-weight: 800;
  color: #1499a6;
  flex-shrink: 0;
  margin-left: 10px;
}

.md-progress {
  height: 6px;
  background: #e4e8ec;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.md-progress span {
  display: block;
  height: 100%;
  background: #143b66;
  border-radius: 999px;
  transition: width .3s;
}

/* .course-footer { display: flex; justify-content: flex-end; } */
.new-certificate-btn{ margin-left: 1%; }
.course-btn {
  padding: 7px 18px;
  border-radius: 999px;
  background: #e8f0fa;
  color: #143b66;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background .12s, color .12s;
}

.course-btn:hover { background: #143b66; color: #fff; }

/* ================================================================
   EVENTS
   ================================================================ */
.md-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.md-event-card {
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s;
}

.md-event-card:hover {
  box-shadow: 0 3px 12px rgba(20,59,102,.12);
}

.event-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.event-body {
  padding: 16px;
}

.event-body h3 {
  font-size: 15px;
  font-weight: 800;
  color: #143b66;
  margin: 0 0 8px;
}

.event-meta {
  font-size: 12px;
  color: #82909c;
  margin-bottom: 5px;
}

.event-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin: 6px 0 0;
}

.event-desc {
  font-size: 13px;
  color: #5a6776;
  margin-top: 8px;
  line-height: 1.5;
}

.md-event {
  padding: 12px 0;
  border-bottom: 1px solid #eceff2;
}

.md-event:last-child { border-bottom: none; }
.md-event strong { font-size: 14px; font-weight: 800; color: #143b66; }
.md-event p { font-size: 12px; color: #82909c; margin: 4px 0 6px; }

/* ================================================================
   BUTTONS
   ================================================================ */
.cmn-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, color .12s;
  border: none;
}

.cmn-btn.primary {
  background: #143b66;
  color: #fff;
}

/* .cmn-btn.primary:hover { background: #0f2d50; } */

.cmn-btn:not(.primary) {
  background: transparent;
  color: #143b66;
  border: 1.5px solid #cdd6de;
}

.cmn-btn:not(.primary):hover {
  background: #f3f7fb;
  border-color: #143b66;
}

/* ================================================================
   CE CREDITS
   ================================================================ */

/* ---- legacy row styles (kept for back-compat) ---- */
.md-ce-card h3 { margin-bottom: 0; }
.ce_outer_container { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 16px; }
.ce_container { flex: 1; }
.md-ce-row { padding: 12px 0; border-bottom: 1px solid #eceff2; }
.md-ce-row:last-child { border-bottom: none; }
.md-ce-row strong { font-size: 14px; font-weight: 800; color: #143b66; }
.md-ce-row p { font-size: 12px; color: #82909c; margin: 4px 0 0; }
.md-ce-pending { opacity: .7; }

/* CE ring */
.md-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 6px solid #e8f0fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.md-ce-ring { border-color: #143b66; }

/* ---- NEW TABLE LAYOUT ---- */
.md-ce-table-card { padding: 22px 24px; }

.md-ce-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.md-ce-table-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #143b66;
}

.md-ce-count {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
}

.md-ce-count--approved { background: #e9f8f1; color: #0f5e3e; }
.md-ce-count--pending  {
  background: #e9f8f1;
  color: #0f5e3e;
}

.md-ce-table-wrap { overflow-x: auto; }

.md-ce-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Mulish', sans-serif;
  font-size: 13px;
}

/* thead */
.md-ce-table thead th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid #e4e8ec;
  white-space: nowrap;
  text-align: left;
}

.md-ce-thead--approved { background: #f3f7fb; }
.md-ce-thead--approved th { color: #143b66; }

/* .md-ce-thead--pending { background: #fff8e1; } */
.md-ce-thead--pending th { border-bottom-color: #f0d060; }

.md-ce-th-center { text-align: center !important; }

/* tbody */
.md-ce-table tbody tr { border-bottom: 1px solid #eceff2; transition: background .1s; }
.md-ce-table tbody tr:last-child { border-bottom: none; }
.md-ce-table tbody tr:hover { background: #f7f9fb; }

.md-ce-table td { padding: 11px 14px; color: #3f4a57; vertical-align: middle; }

.md-ce-td-num    { color: #82909c; width: 36px; }
.md-ce-td-source { font-weight: 700; color: #143b66; }
.md-ce-td-date   { color: #5a6776; white-space: nowrap; }
.md-ce-td-pts    { text-align: center; font-weight: 800; color: #143b66; }
.md-ce-td-status { text-align: center; }

/* Type badge */
.md-ce-type-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e8f0fa;
  color: #143b66;
}

/* Status badges */
.md-ce-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.md-ce-status--approved { background: #e9f8f1; color: #0f5e3e; }
.md-ce-status--pending  { 
  background: #e9f8f1;
  color: #0f5e3e;
}

/* tfoot */
.md-ce-table tfoot td {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
}

.md-ce-tfoot--approved {
  background: #f7f9fb;
}
.md-ce-tfoot--approved td {
  color: #143b66;
  border-top: 2px solid #143b66;
}

/* .md-ce-tfoot--pending {
  background: #fffdf0;
} */
.md-ce-tfoot--pending td {
  color: #143b66;
  border-top: 2px solid #143b66;
}

/* CTA card */
.md-ce-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f9fb;
  border: 1px solid #e4e8ec;
  gap: 16px;
}

.md-ce-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.md-ce-cta h3 { margin: 0; }

/* ================================================================
   PROFILE FORM
   ================================================================ */
#my-profile-form {
  max-width: 760px;
}

.profile-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acc-item {
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 12px;
  overflow: hidden;
}

.acc-header {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 800;
  color: #143b66;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.acc-header::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 20px;
  font-weight: 400;
  color: #82909c;
}

.acc-item.active .acc-header::after { content: '−'; }

.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  padding: 0 20px;
}

.acc-item.active .acc-content {
  max-height: 1200px;
  padding: 20px;
}

/* Section icon backgrounds — keep existing img references */
.pd_section {
  background: url('management.png') no-repeat 15px 50%;
  background-size: auto 60%;
  padding-left: 72px;
}

.bill_item {
  background: url('biilling.png') no-repeat 15px 50%;
  background-size: auto 60%;
  padding-left: 72px;
}

.ship_item {
  background: url('shipping.png') no-repeat 15px 50%;
  background-size: auto 60%;
  padding-left: 72px;
}

.password_change {
  background: url('password.png') no-repeat 15px 50%;
  background-size: auto 60%;
  padding-left: 72px;
}

/* Form fields */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group.half { flex: 1; }

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #5a6776;
}

.form-group input,
.form-group textarea,
#my-profile-form input,
#my-profile-form textarea {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid #cdd6de;
  border-radius: 8px;
  font-size: 14px;
  color: #3f4a57;
  background: #fff;
  font-family: 'Mulish', sans-serif;
  transition: border-color .12s;
}

#my-profile-form textarea { height: auto; padding: 10px 13px; }

.form-group input:focus,
#my-profile-form input:focus,
#my-profile-form textarea:focus {
  outline: none;
  border-color: #143b66;
}

#my-profile-form input[disabled] {
  background: #f5f7fa;
  color: #94a0ab;
  cursor: not-allowed;
}

#my-profile-form button[type=submit] {
  margin-top: 10px;
  padding: 12px 32px;
  border-radius: 999px;
  border: none;
  background: #143b66;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
  transition: background .12s;
}

#my-profile-form button[type=submit]:hover { background: #0f2d50; }

/* Profile image */
#profile-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e8f0fa;
  margin-bottom: 10px;
}

/* Password strength */
.password-strength { margin-top: 8px; }

.strength-bar {
  height: 5px;
  background: #e4e8ec;
  border-radius: 999px;
  width: 0%;
  transition: width .3s, background .3s;
}

.strength-bar.level-1 { background: #e74c3c; width: 25%; }
.strength-bar.level-2 { background: #f39c12; width: 50%; }
.strength-bar.level-3 { background: #27ae60; width: 75%; }
.strength-bar.level-4 { background: #1a8a4a; width: 100%; }

.strength-text { font-size: 12px; color: #82909c; margin-top: 4px; display: block; }

/* ================================================================
   COMPANY PROFILE FORM
   ================================================================ */
#company-profile-form {
  max-width: 700px;
}

#company-profile-form .form-group { margin-bottom: 18px; }

#company-profile-form label {
  font-size: 13px;
  font-weight: 700;
  color: #5a6776;
  display: block;
  margin-bottom: 5px;
}

#company-profile-form input,
#company-profile-form textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #cdd6de;
  border-radius: 8px;
  font-size: 14px;
  color: #3f4a57;
  background: #fff;
  font-family: 'Mulish', sans-serif;
  transition: border-color .12s;
}

#company-profile-form input:focus,
#company-profile-form textarea:focus {
  outline: none;
  border-color: #143b66;
}

#company-profile-form textarea { min-height: 90px; resize: vertical; }

#company-profile-form input[type=file] {
  padding: 8px;
  background: #f7f9fb;
  border: 1px dashed #cdd6de;
  cursor: pointer;
}

#company-profile-form img {
  border-radius: 8px;
  border: 1px solid #e4e8ec;
  margin-bottom: 8px;
}

#company-profile-form .cmn-btn.primary { margin-top: 6px; }

#company-profile-msg { margin-top: 12px; font-size: 14px; }

/* ================================================================
   MANAGE ROSTER / MEMBER TABLE
   ================================================================ */
#member-panel-container {
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(20,59,102,.07);
}

#member-panel-container h3 {
  font-size: 16px;
  font-weight: 800;
  color: #143b66;
  margin: 0 0 16px;
}

.member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
    /* table-layout: fixed; */
}

.member-table thead th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #82909c;
  border-bottom: 1px solid #e4e8ec;
}

.member-table tbody tr {
  border-bottom: 1px solid #eceff2;
  transition: background .1s;
}

.member-table tbody tr:last-child { border-bottom: none; }
.member-table tbody tr:hover { background: #f7f9fb; }

.member-table td {
  padding: 12px;
  color: #3f4a57;
  vertical-align: middle;
}

/* Role badges */
.member_role {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  margin: 2px 2px 0 0;
}

.member_role.owner    { background: #e8f0fa; color: #143b66; }
.member_role.primary  { background: #e7f4f6; color: #0f7d8a; }
.member_role.billing  { background: #fff8e1; color: #7a5800; }
.member_role.secondary { background: #f3f5f7; color: #5a6776; }
.member_role.member   { background: #f3f5f7; color: #5a6776; }
.member_role.code\ coordinator { background: #e9f8f1; color: #0f5e3e; }

.bcell { max-width: 200px; }
.bchips { display: flex; flex-wrap: wrap; gap: 4px; }

.bch {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f4f6;
  color: #0f7d8a;
  white-space: normal;      /* ← CHANGED from nowrap: lets long chip text wrap inside the pill */
  line-height: 1.3;
  display: inline-block;
  max-width: 100%;
}

/* Credit column */
.ccell { min-width: 140px; }
.cwrap { padding: 4px 0; }
.cnum { font-size: 13px; color: #3f4a57; }
.cnum b { font-size: 15px; font-weight: 800; color: #143b66; }
.cbar { height: 6px; border-radius: 999px; background: #e4e8ec; overflow: hidden; margin: 6px 0 4px; }
.cbar i { display: block; height: 100%; border-radius: 999px; background: #143b66; }
.cleft { font-size: 11px; color: #82909c; }
.cleft a { color: #1499a6; font-weight: 700; }

/* Action buttons */
.action-btn {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s, color .12s;
  margin-bottom:2%;
}

.edit-btn  { background: #e8f0fa; color: #143b66; }
.edit-btn:hover  { background: #143b66; color: #fff; }
.delete-btn { background: #fdecea; color: #c0392b; }
.delete-btn:hover { background: #c0392b; color: #fff; }

/* CSV upload */
#csv-upload-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

#csv-upload-form input[type=file] {
  padding: 8px 10px;
  border: 1px dashed #cdd6de;
  border-radius: 8px;
  background: #f7f9fb;
  font-size: 13px;
  cursor: pointer;
  width: 240px;
}

#csv-upload-form button {
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: #143b66;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
}

.sample_csv,
.add_single_member {
  padding: 9px 16px;
  border-radius: 999px;
  background: #e8f0fa;
  color: #143b66 !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s;
}

.sample_csv:hover,
.add_single_member:hover { background: #143b66; color: #fff !important; }

/* Import status */
#import-status {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e4e8ec;
  border-radius: 10px;
  background: #f7f9fb;
  margin-top: 12px;
  font-size: 13px;
  color: #3f4a57;
  font-weight: 600;
}

#import-status.active { display: flex; }
#import-status.success { background: #e9f8f1; border-color: #7fd6b3; color: #0f5e3e; }
#import-status.error   { background: #fdecea; border-color: #f0b0a8; color: #c0392b; }

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e4e8ec;
  border-top-color: #143b66;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}

/* Credit card block */
.credit-card {
  background: #f7f9fb;
  border: 1px solid #e4e8ec;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.cc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cc-head .t {
  font-size: 15px;
  font-weight: 800;
  color: #143b66;
}

.cstats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cstat b { font-size: 24px; font-weight: 900; display: block; line-height: 1; color: #143b66; }
.cstat.used b { color: #1499a6; }
.cstat.rem b  { color: #0f7a5e; }
.cstat.un b   { color: #82909c; }
.cstat span   { font-size: 12px; color: #82909c; font-weight: 600; }

.cprog {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: #e4e8ec;
  margin-bottom: 10px;
}

.cprog i { height: 100%; display: block; }

.clegend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #82909c;
}

.clegend .k { display: flex; align-items: center; gap: 6px; }
.clegend .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.btnn {
  background: #143b66 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 20px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  font-family: 'Mulish', sans-serif !important;
}

.btnn:hover { background: #0f2d50 !important; }

/* ================================================================
   MODALS
   ================================================================ */
.member-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,59,102,.45);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.member-modal.active { display: flex; }

.modal-content {
  background: #fff !important;
  border-radius: 14px !important;
  padding: 28px !important;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(20,59,102,.2);
  position: relative;
  animation: modalIn .2s ease;
}

@keyframes modalIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-content h3 {
  font-size: 17px;
  font-weight: 800;
  color: #143b66;
  margin: 0 0 16px;
}

.modal-content p {
  font-size: 14px;
  color: #5a6776;
  margin: 0 0 20px;
  line-height: 1.5;
}

.close-modal {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e4e8ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20,59,102,.12);
  transition: background .12s;
}

.close-modal:hover { background: #f3f7fb; }

/* Modal inputs */
.modal-content input,
.modal-content select {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid #cdd6de;
  border-radius: 8px;
  font-size: 14px;
  color: #3f4a57;
  background: #fff;
  margin-bottom: 12px;
  font-family: 'Mulish', sans-serif;
  transition: border-color .12s;
}

.modal-content input:focus,
.modal-content select:focus {
  outline: none;
  border-color: #143b66;
}

.modal-content input[readonly] {
  background: #f5f7fa;
  color: #94a0ab;
}

/* Modal buttons */
#save-member,
#create-member-btn {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  text-align: center;
  border-radius: 999px;
  background: #143b66;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
  transition: background .12s;
}

#save-member:hover,
#create-member-btn:hover { background: #0f2d50; }

#save-member .btn-text, #create-member-btn .btn-text { display: inline; }
#save-member .btn-loader, #create-member-btn .btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto;
}

#save-member.loading .btn-text,
#create-member-btn.loading .btn-text { display: none; }

#save-member.loading .btn-loader,
#create-member-btn.loading .btn-loader { display: block; }

/* Delete modal */
#deleteModal .modal-content,
#addMemberModal .modal-content { max-width: 420px; }

#confirm-delete {
  all: unset;
  box-sizing: border-box;
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 999px;
  background: #c0392b;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
  transition: background .12s;
}

#confirm-delete:hover { background: #a93226; }

#cancel-delete {
  all: unset;
  box-sizing: border-box;
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 999px;
  background: #f5f7fa;
  color: #5a6776;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
  border: 1px solid #e4e8ec;
  transition: background .12s;
}

#cancel-delete:hover { background: #e4e8ec; }

#success-ok {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  border-radius: 999px;
  background: #143b66;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
  transition: background .12s;
}

#success-ok:hover { background: #0f2d50; }

/* Logout modal */
.md-modal {
  position: fixed;
  inset: 0;
  background: rgba(20,59,102,.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 99999;
  transition: all .2s;
}

.md-modal.active { opacity: 1; visibility: visible; }

.md-modal-content {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  width: 360px;
  box-shadow: 0 20px 60px rgba(20,59,102,.2);
  transform: scale(.95);
  transition: transform .2s;
}

.md-modal.active .md-modal-content { transform: scale(1); }

.md-modal-content h3 {
  font-size: 17px;
  font-weight: 800;
  color: #143b66;
  margin: 0 0 8px;
}

.md-modal-content p {
  font-size: 14px;
  color: #5a6776;
  margin: 0 0 20px;
}

.md-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.md-modal-actions button {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
  transition: background .12s;
}

button.danger { background: #c0392b; color: #fff; }
button.danger:hover { background: #a93226; }
#cancel-logout { background: #f5f7fa; color: #5a6776; border: 1px solid #e4e8ec; }
#cancel-logout:hover { background: #e4e8ec; }

/* ================================================================
   ATTENDEE / EVENT MANAGEMENT
   ================================================================ */
#md-change-attendee-modal {
  position: fixed;
  inset: 0;
  background: rgba(20,59,102,.45);
  display: none;
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

.pac-container {
    z-index: 999999 !important;
}

#md-change-attendee-modal.show { display: flex; }

#md-change-attendee-modal .md-modal-inner {
  background: #fff;
  width: 700px;
  max-width: 90%;
  overflow-y: auto;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(20,59,102,.2);
}

/* Attendee table */
.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.shop_table thead th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #82909c;
  border-bottom: 1px solid #e4e8ec;
}

.shop_table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid #eceff2;
  color: #3f4a57;
}

/* .shop_table tbody tr:last-child td { border-bottom: none; } */

.md-select-attendee,
.md-change-attendee {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
  transition: background .12s;
}

.md-select-attendee { background: #e8f0fa; color: #143b66; }
.md-select-attendee:hover { background: #143b66; color: #fff; }
.md-change-attendee { background: #e7f4f6; color: #0f7d8a; }
.md-change-attendee:hover { background: #1499a6; color: #fff; }

.md-manage-attendees {
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  background: #143b66;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
  transition: background .12s;
}

.md-manage-attendees:hover { background: #0f2d50; }

#md-back-events {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid #cdd6de;
  background: #fff;
  color: #143b66;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
}

/* ================================================================
   BENEFITS
   ================================================================ */
.bsummary {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bstat {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 12px;
  padding: 16px 18px;
}

.bstat b { font-size: 28px; font-weight: 900; display: block; line-height: 1; color: #143b66; }
.bstat span { font-size: 13px; color: #82909c; }
.bstat.inc b { color: #143b66; }
.bstat.used b { color: #0f7a5e; }
.bstat.un b  { color: #7a5800; }
.bstat.exp b { color: #c0392b; }
.uchip.expired { background:#fdecea; color:#c0392b; }
.usebox {
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.usebox .ut {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: #5a6776;
}

.usebar {
  height: 10px;
  border-radius: 999px;
  background: #e4e8ec;
  overflow: hidden;
}

.usebar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #0f7a5e;
}

.bhead {
  display: grid;
  grid-template-columns: 44px 1fr 200px;
  gap: 14px;
  align-items: center;
  padding: 10px 18px;
  background: #f7f9fb;
  border: 1px solid #e4e8ec;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #82909c;
}

.blist {
  border: 1px solid #e4e8ec;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: #fff;
}

.brow {
  display: grid;
  grid-template-columns: 44px 1fr 200px;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-top: 1px solid #eceff2;
}

.brow:first-child { border-top: none; }

.bicon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-top: 2px;
}

.bicon.on   { background: #e9f8f1; color: #0f5e3e; }
.bicon.idle { background: #f3f5f7; color: #82909c; border: 1.5px dashed #cdd6de; }

.btitle { font-size: 14px; font-weight: 800; color: #143b66; }
.bdesc  { font-size: 12px; color: #82909c; margin-top: 2px; }

.buse   { font-size: 12px; margin-top: 5px; font-weight: 700; }
.buse.y { color: #0f7a5e; }
.buse.n { color: #7a5800; }

.bstatus {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.uchip {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.uchip.used   { background: #e9f8f1; color: #0f5e3e; }
.uchip.unused { background: #fff8e1; color: #7a5800; }

.baction {
  font-size: 12px;
  font-weight: 700;
  color: #1499a6;
}

.upsell {
  margin-top: 16px;
  background: #143b66;
  color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.upsell b    { font-size: 15px; }
.upsell span { font-size: 13px; color: #b8ccec; }
.upsell .btn {
  background: #fff;
  color: #143b66;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Mulish', sans-serif;
  transition: background .12s;
}

.upsell .btn:hover { background: #e8f0fa; }

/* ================================================================
   COMPANY DIRECTORY
   ================================================================ */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.company-card {
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(20,59,102,.07);
  transition: box-shadow .15s;
}

.company-card:hover { box-shadow: 0 3px 12px rgba(20,59,102,.12); }

.company-logo {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f7f9fb;
}

.company-logo img { width: 100%; height: 100%; object-fit: cover; }

.company-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: #143b66;
  margin: 0 0 8px;
}

.company-card p { font-size: 13px; color: #5a6776; margin: 0 0 6px; }

.company-desc { line-height: 1.5; }

.company-social { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }

.company-social .social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6776;
  transition: background .12s, color .12s;
}

.company-social .facebook:hover  { background: #1877f2; color: #fff; }
.company-social .instagram:hover { background: #e4405f; color: #fff; }
.company-social .linkedin:hover  { background: #0a66c2; color: #fff; }

/* ================================================================
   MEMBER STEP REGISTRATION
   ================================================================ */
.member-step-wrapper {
  max-width: 720px;
  margin: 40px auto;
  padding: 36px;
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(20,59,102,.07);
}

.member-step-wrapper p.org-message {
  font-size: 14px;
  color: #5a6776;
  line-height: 1.6;
  margin-bottom: 20px;
}

.member-step-wrapper p.org-message.success {
  background: #e9f8f1;
  border: 1px solid #7fd6b3;
  border-radius: 8px;
  padding: 14px 16px;
  color: #0f5e3e;
}

.member-step-wrapper input[type=text],
.member-step-wrapper input[type=email] {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid #cdd6de;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  font-family: 'Mulish', sans-serif;
  transition: border-color .12s;
}

.member-step-wrapper input:focus {
  outline: none;
  border-color: #143b66;
}

.member-step-wrapper button {
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  background: #143b66;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Mulish', sans-serif;
  cursor: pointer;
  transition: background .12s;
}

.member-step-wrapper button:hover { background: #0f2d50; }

.org-result-item {
  padding: 11px 12px;
  border-bottom: 1px solid #eceff2;
  cursor: pointer;
  font-size: 14px;
  color: #3f4a57;
  transition: background .1s;
}

.org-result-item:hover { background: #f3f7fb; color: #143b66; }

.success-box {
  background: #e9f8f1;
  border: 1px solid #7fd6b3;
  border-radius: 10px;
  padding: 16px 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #0f5e3e;
  margin-top: 16px;
}

/* ================================================================
   MISC
   ================================================================ */

/* Manage attendee table wrapper */
.md-attendee-wrapper { overflow-x: auto; }

/* Order confirmation page */
#gf-prod-pipeline {
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 4px rgba(20,59,102,.07);
  font-family: 'Mulish', sans-serif;
}

.thanks_message {
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 20px;
  color: #143b66;
}

.woocommerce-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.woocommerce-table thead { background: #f7f9fb; }
.woocommerce-table th   { text-align: left; padding: 10px 14px; font-weight: 800; color: #143b66; border-bottom: 1px solid #e4e8ec; }
.woocommerce-table td   { padding: 12px 14px; color: #3f4a57; border-bottom: 1px solid #eceff2; }
.woocommerce-table tfoot td, .woocommerce-table tfoot th { font-weight: 800; }

a.visit_dashboard {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  background: #143b66;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  font-family: 'Mulish', sans-serif;
  transition: background .12s;
}

a.visit_dashboard:hover { background: #0f2d50; }

/* Roster section */
.gf-event-roster {
  margin-top: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 10px;
}

.gf-event-roster h4 {
  font-size: 15px;
  font-weight: 800;
  color: #143b66;
  margin: 0 0 14px;
}

.roster-item {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.roster-item:hover { background: #f7f9fb; }

.roster-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #3f4a57;
  font-weight: 600;
  cursor: pointer;
}

.roster-item:has(input:checked) { background: #e8f0fa; }


/* ================================================================
   MEMBERSHIP DETAIL TAB — Chapters
   ================================================================ */
.md-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.md-chapter-item {
  padding: 12px 16px;
  border: 1px solid #e4e8ec;
  border-radius: 10px;
  transition: background .1s, border-color .1s;
}

.md-chapter-item:has(.md-chapter-checkbox:checked) {
  background: #f0f5ff;
  border-color: #b8ccec;
}

.md-chapter-item:hover {
  background: #f7f9fb;
}

.md-chapter-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #3f4a57;
  margin: 0;
}

.md-chapter-checkbox {
  width: 18px !important;
  height: 18px !important;
  accent-color: #143b66;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 4px;
}

.md-chapter-name {
  font-size: 14px;
  font-weight: 600;
  color: #143b66;
  line-height: 1.4;
}

.md-chapter-item:has(.md-chapter-checkbox:not(:checked)) .md-chapter-name {
  color: #82909c;
  text-decoration: line-through;
  opacity: .7;
}

/* Download Invoice Button */
.md-ce-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 8px 14px;
    border-radius: 6px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    background: #143b66;
    color: #ffffff !important;

    border: 1px solid #143b66;

    transition: all 0.2s ease;
}

.md-ce-btn-download:hover {
    background: #ffffff;
    color: #143b66 !important;
    border-color: #143b66;
}

.md-invoice-icon {
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
}
.bch.used      { background:#e9f8f1; color:#0f5e3e; }
.bch.expired   { background:#fdecea; color:#c0392b; }
/* .bch.unused    { background:#fff8e1; color:#7a5800; } */
.bch.bch-empty { background:#f3f5f7; color:#82909c; font-style:italic; }
/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .md-dashboard-wrapper { grid-template-columns: 1fr; }
  .md-sidebar { border-right: none; border-bottom: 1px solid #e4e8ec; }
  .md-grid-2, .md-stats { grid-template-columns: 1fr; }
  .md-span-2 { grid-column: span 1; }
  .bhead, .brow { grid-template-columns: 34px 1fr; }
  .bhead span:last-child { display: none; }
  .bstatus { grid-column: 1 / 3; align-items: flex-start; flex-direction: row; }
}

@media (max-width: 600px) {
  .md-main { padding: 16px; }
  .md-stats { grid-template-columns: 1fr 1fr; }
  .md-events-grid { grid-template-columns: 1fr; }
}