/**
 * MISTER FAST — RIDER MINI PRESENTATION SYSTEM
 * Scoped stylesheet for Rider MINI Mobile Presentation
 * Standards: Yellow (#FFC400) + Navy Blue (#001B45) + White (#FFFFFF)
 */

:root {
  --mfr-yellow: #FFC400;
  --mfr-yellow-hover: #E5B000;
  --mfr-yellow-light: #FEF9C3;
  --mfr-navy: #001B45;
  --mfr-blue: #003DA5;
  --mfr-blue-light: #0057B8;
  --mfr-sky: #EFF6FF;
  --mfr-text-main: #001B45;
  --mfr-text-sub: #64748B;
  --mfr-border: #E2E8F0;
  --mfr-border-light: #F1F5F9;
  --mfr-bg-page: #F8FAFC;
  --mfr-card-bg: #FFFFFF;
  --mfr-radius-lg: 20px;
  --mfr-radius-md: 14px;
  --mfr-radius-sm: 10px;
  --mfr-shadow-sm: 0 2px 8px rgba(0, 27, 69, 0.06);
  --mfr-shadow-md: 0 4px 16px rgba(0, 27, 69, 0.08);
  --mfr-shadow-lg: 0 10px 25px rgba(0, 27, 69, 0.12);
}

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

body.mfr-mini-body {
  margin: 0;
  padding: 0;
  background-color: var(--mfr-bg-page);
  color: var(--mfr-text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Prompt", sans-serif;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.mfr-mini-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background-color: #FFFFFF;
  min-height: 100vh;
  padding-bottom: 84px; /* Room for bottom nav */
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.08);
}

/* ── 1. HEADER ── */
.mfr-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--mfr-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mfr-mini-hdr-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mfr-mini-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--mfr-border-light);
  background: #FFFFFF;
  color: var(--mfr-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.mfr-mini-btn-icon:hover {
  background: var(--mfr-sky);
  border-color: var(--mfr-border);
}

.mfr-mini-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.mfr-mini-badge-mf {
  background: var(--mfr-navy);
  color: var(--mfr-yellow);
  font-weight: 900;
  font-size: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 6px rgba(0, 27, 69, 0.2);
}

.mfr-mini-brand-text {
  display: flex;
  flex-direction: column;
}

.mfr-mini-brand-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--mfr-navy);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.mfr-mini-brand-sub {
  font-size: 10px;
  color: var(--mfr-text-sub);
  font-weight: 600;
  margin-top: 1px;
}

.mfr-mini-hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mfr-mini-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mfr-yellow);
  color: var(--mfr-navy);
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  text-decoration: none;
}

/* ── 2. SUB-STATUS STRIP ── */
.mfr-mini-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: var(--mfr-navy);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}

.mfr-mini-status-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mfr-mini-dot-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 6px #22C55E;
}

.mfr-mini-live-pill {
  background: var(--mfr-yellow);
  color: var(--mfr-navy);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

/* ── 3. RIDER HERO BANNER ── */
.mfr-mini-hero {
  padding: 12px 16px 8px 16px;
}

.mfr-mini-hero-card {
  background: linear-gradient(135deg, #001B45 0%, #003DA5 100%);
  border-radius: var(--mfr-radius-lg);
  overflow: hidden;
  box-shadow: var(--mfr-shadow-md);
  position: relative;
  color: #FFFFFF;
  padding: 18px 16px 16px 16px;
}

.mfr-mini-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mfr-yellow);
  color: var(--mfr-navy);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mfr-mini-hero-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 6px 0;
  color: #FFFFFF;
}
.mfr-mini-hero-title span {
  color: var(--mfr-yellow);
}

.mfr-mini-hero-desc {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 14px 0;
}

.mfr-mini-hero-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.mfr-mini-highlight-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mfr-mini-highlight-icon {
  font-size: 16px;
}

.mfr-mini-highlight-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}

.mfr-mini-hero-media {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  background: #001B45;
}
.mfr-mini-hero-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ── 4. DUAL HERO ACTION BUTTONS ── */
.mfr-mini-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 10px 16px;
}

.mfr-btn-cta-primary {
  background: linear-gradient(135deg, #FFC400 0%, #FFB800 100%);
  color: var(--mfr-navy);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  text-decoration: none;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 3px 10px rgba(255, 196, 0, 0.35);
  transition: transform 0.15s ease;
}
.mfr-btn-cta-primary:active { transform: scale(0.98); }

.mfr-btn-cta-secondary {
  background: #FFFFFF;
  color: var(--mfr-navy);
  border: 1px solid var(--mfr-border);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  text-decoration: none;
  font-weight: 900;
  font-size: 12px;
  box-shadow: var(--mfr-shadow-sm);
  transition: transform 0.15s ease;
}
.mfr-btn-cta-secondary:active { transform: scale(0.98); }

.mfr-btn-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mfr-btn-content strong {
  font-size: 12.5px;
  line-height: 1.15;
}
.mfr-btn-content small {
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0.8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mfr-btn-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 27, 69, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.mfr-btn-cta-primary .mfr-btn-icon-wrap {
  background: var(--mfr-navy);
  color: var(--mfr-yellow);
}

/* ── 5. WORK STATUS CARD ── */
.mfr-mini-work-status-wrap {
  padding: 4px 16px 12px 16px;
}

.mfr-mini-work-status-card {
  background: var(--mfr-navy);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--mfr-shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mfr-status-col {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.mfr-toggle-wrap {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.mfr-toggle-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}
.mfr-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #475569;
  transition: .3s;
  border-radius: 24px;
}
.mfr-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
.mfr-toggle-wrap input:checked + .mfr-toggle-slider {
  background-color: #22C55E;
}
.mfr-toggle-wrap input:checked + .mfr-toggle-slider:before {
  transform: translateX(20px);
}

.mfr-status-info {
  display: flex;
  flex-direction: column;
}
.mfr-status-info strong {
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.1;
}
.mfr-status-info small {
  font-size: 9.5px;
  opacity: 0.75;
  margin-top: 2px;
}

.mfr-metric-col {
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.mfr-metric-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.mfr-metric-data {
  display: flex;
  flex-direction: column;
}
.mfr-metric-data small {
  font-size: 9.5px;
  opacity: 0.75;
}
.mfr-metric-data strong {
  font-size: 13px;
  font-weight: 900;
  color: var(--mfr-yellow);
}

/* ── 6. RIDER SERVICE GRID (5x2) ── */
.mfr-mini-grid-section {
  padding: 6px 16px 16px 16px;
}

.mfr-mini-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mfr-mini-section-title {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--mfr-navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mfr-mini-services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mfr-service-tile {
  background: #FFFFFF;
  border: 1px solid var(--mfr-border-light);
  border-radius: 14px;
  padding: 8px 3px 6px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--mfr-text-main);
  box-shadow: var(--mfr-shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}
.mfr-service-tile:active {
  transform: scale(0.96);
  border-color: var(--mfr-border);
}

.mfr-tile-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--mfr-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  transition: background 0.2s;
  box-sizing: border-box;
  overflow: hidden;
}

.mfr-tile-icon-box img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
  display: block;
}

.mfr-service-tile:nth-child(1) .mfr-tile-icon-box { background: #FEF3C7; color: #D97706; }
.mfr-service-tile:nth-child(2) .mfr-tile-icon-box { background: #EFF6FF; color: #2563EB; }
.mfr-service-tile:nth-child(3) .mfr-tile-icon-box { background: #FEF9C3; color: #CA8A04; }
.mfr-service-tile:nth-child(4) .mfr-tile-icon-box { background: #FCE7F3; color: #DB2777; }
.mfr-service-tile:nth-child(5) .mfr-tile-icon-box { background: #E0E7FF; color: #4F46E5; }
.mfr-service-tile:nth-child(6) .mfr-tile-icon-box { background: #E0F2FE; color: #0284C7; }
.mfr-service-tile:nth-child(7) .mfr-tile-icon-box { background: #F1F5F9; color: #475569; }
.mfr-service-tile:nth-child(8) .mfr-tile-icon-box { background: #FEF08A; color: #854D0E; }
.mfr-service-tile:nth-child(9) .mfr-tile-icon-box { background: #DCFCE7; color: #16A34A; }
.mfr-service-tile:nth-child(10) .mfr-tile-icon-box { background: #F1F5F9; color: #334155; }

.mfr-tile-label {
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--mfr-navy);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.mfr-tile-sub {
  font-size: 8px;
  color: var(--mfr-text-sub);
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

@media (max-width: 380px) {
  .mfr-mini-services-grid {
    gap: 6px;
  }
  .mfr-service-tile {
    padding: 7px 2px 5px 2px;
  }
  .mfr-tile-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 4px;
  }
  .mfr-tile-icon-box img {
    width: 33px;
    height: 33px;
    max-width: 33px;
    max-height: 33px;
  }
  .mfr-tile-label {
    font-size: 10px;
  }
  .mfr-tile-sub {
    font-size: 7.5px;
  }
}

/* ── 7. PROMO CONTINUOUS WORK BANNER ── */
.mfr-mini-promo-wrap {
  padding: 0 16px 14px 16px;
}

.mfr-mini-promo-card {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #BFDBFE;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--mfr-shadow-sm);
}

.mfr-promo-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.mfr-promo-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.mfr-promo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mfr-promo-text strong {
  font-size: 12.5px;
  font-weight: 900;
  color: var(--mfr-navy);
  line-height: 1.2;
}

.mfr-promo-text small {
  font-size: 10px;
  color: #3B82F6;
  font-weight: 700;
  margin-top: 2px;
}

.mfr-btn-promo-action {
  background: var(--mfr-yellow);
  color: var(--mfr-navy);
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(255, 196, 0, 0.4);
}

/* ── 8. PRIMARY MINI BOTTOM NAVIGATION — Reused from modules/livemapchat/assets/mf-mini-mobile-phase1.css ── */

/* ── 9. MODAL ── */
.mfr-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 27, 69, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.mfr-modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  padding: 20px;
  box-shadow: var(--mfr-shadow-lg);
  animation: mfrPopIn 0.25s ease-out;
}

@keyframes mfrPopIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.mfr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mfr-modal-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--mfr-navy);
  margin: 0;
}
.mfr-modal-close {
  background: var(--mfr-border-light);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mfr-text-sub);
}

/* ── 10. OFFCANVAS DRAWER ── */
.mfr-drawer-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 27, 69, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mfr-drawer-backdrop.is-open { opacity: 1; }

.mfr-drawer-panel {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 290px;
  max-width: 80vw;
  background: #FFFFFF;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 27, 69, 0.15);
}
.mfr-drawer-panel.is-open { transform: translateX(0); }

.mfr-drawer-head {
  padding: 16px;
  background: var(--mfr-navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mfr-drawer-nav {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  flex: 1;
}
.mfr-drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--mfr-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.15s;
}
.mfr-drawer-nav-item:hover {
  background: var(--mfr-sky);
}

/* ── 11. RIDER FUNCTIONAL SUBPAGES (V1) ── */
.mfr-subpage-container {
  padding: 12px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mfr-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.mfr-btn-back {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: var(--mfr-navy);
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 27, 69, 0.05);
  flex-shrink: 0;
  transition: all 0.15s;
}
.mfr-btn-back:active {
  background: #F1F5F9;
  transform: scale(0.96);
}

.mfr-page-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mfr-page-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--mfr-navy);
  margin: 0;
  line-height: 1.2;
}

.mfr-page-subtitle {
  font-size: 11px;
  color: var(--mfr-text-sub);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mfr-filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mfr-filter-tabs::-webkit-scrollbar { display: none; }

.mfr-tab-pill {
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
}
.mfr-tab-pill.is-active {
  background: var(--mfr-navy);
  color: #FFFFFF;
}

.mfr-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 27, 69, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s;
}

.mfr-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mfr-card-code {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--mfr-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mfr-status-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.status-pending { background: #FEF3C7; color: #D97706; }
.status-accepted { background: #EFF6FF; color: #2563EB; }
.status-pickup { background: #FEF9C3; color: #CA8A04; }
.status-delivering { background: #E0E7FF; color: #4F46E5; }
.status-completed { background: #DCFCE7; color: #16A34A; }
.status-cancelled { background: #FEE2E2; color: #DC2626; }

.mfr-loc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mfr-card-loc-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: #334155;
  line-height: 1.4;
}

.mfr-card-loc-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 13px;
}

.mfr-card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
}

.mfr-card-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--mfr-blue);
}

.mfr-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.mfr-btn-action {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s;
}
.mfr-btn-action:active { transform: scale(0.97); }

.btn-primary { background: var(--mfr-yellow); color: var(--mfr-navy); }
.btn-secondary { background: #F1F5F9; color: var(--mfr-navy); }
.btn-danger { background: #FEE2E2; color: #DC2626; }
.btn-success { background: #10B981; color: #FFFFFF; }
.btn-blue { background: #003DA5; color: #FFFFFF; }

.mfr-empty-state {
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 16px;
  padding: 36px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mfr-empty-icon {
  font-size: 38px;
  margin-bottom: 2px;
}

.mfr-empty-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--mfr-navy);
}

.mfr-empty-desc {
  font-size: 11.5px;
  color: var(--mfr-text-sub);
  max-width: 270px;
  line-height: 1.5;
}

.mfr-auth-card {
  background: #FFFFFF;
  border: 1px solid #FED7AA;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mfr-auth-icon { font-size: 36px; }
.mfr-auth-title { font-size: 15px; font-weight: 800; color: var(--mfr-navy); }
.mfr-auth-sub { font-size: 12px; color: #64748B; line-height: 1.5; max-width: 280px; }

.mfr-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.mfr-metric-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 1px 4px rgba(0,27,69,0.03);
}
.mfr-metric-label { font-size: 10.5px; color: #64748B; font-weight: 600; }
.mfr-metric-value { font-size: 17px; font-weight: 900; color: var(--mfr-navy); }

.mfr-info-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #334155;
}
.mfr-notice-warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #92400E;
}
