/* ==========================================================================
   Role dashboards — shared look
   Header: .mil-dash-hero  ·  Body: <section class="mil-dash">
   Keeps the site's palette (green #138a08 / dark #0f6b07 / black) and Outfit type.
   ========================================================================== */

:root {
    --dash-green: #138a08;
    --dash-green-dark: #0f6b07;
    --dash-green-soft: #edf8ea;
    --dash-ink: #1d1d1f;
    --dash-muted: #6b7280;
    --dash-line: #eceff1;
    --dash-bg: #f6f8f5;
    --dash-card: #ffffff;
    --dash-radius: 16px;
    --dash-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 24px rgba(16, 24, 40, 0.06);
}

/* ---------- Header ---------- */
.mil-dash-hero {
    position: relative;
    background: radial-gradient(1200px 400px at 85% -10%, rgba(19, 138, 8, 0.35), transparent 60%), #0c0f0c;
    color: #fff;
    padding: 130px 0 46px;
    overflow: hidden;
}
.mil-dash-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.015), 0 0 0 120px rgba(255, 255, 255, 0.01);
    pointer-events: none;
}
.mil-dash-crumbs { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 10px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.mil-dash-crumbs li + li::before { content: "/"; margin-right: 10px; color: rgba(255, 255, 255, 0.3); }
.mil-dash-crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.mil-dash-crumbs a:hover { color: #fff; }
.mil-dash-hero-row { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.mil-dash-hero-text { min-width: 0; max-width: 760px; }
.mil-dash-role { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px; background: rgba(19, 138, 8, 0.18); border: 1px solid rgba(61, 187, 34, 0.35); color: #9be58a; font-size: 13px; font-weight: 600; letter-spacing: .3px; margin-bottom: 18px; }
.mil-dash-hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; font-weight: 500; margin: 0 0 12px; }
.mil-dash-hero h1 span { font-weight: 300; color: rgba(255, 255, 255, 0.82); }
.mil-dash-sub { color: rgba(255, 255, 255, 0.72); font-size: 17px; line-height: 1.6; margin: 0 0 18px; max-width: 640px; }
.mil-dash-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.mil-dash-meta i { color: #6fd35a; margin-right: 6px; }
.mil-dash-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mil-dash-hero-actions .mil-hero-btn,
.mil-dash-hero-actions a,
.mil-dash-hero-actions button {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
    font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all .2s ease;
    background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.16);
}
.mil-dash-hero-actions .mil-hero-btn:hover,
.mil-dash-hero-actions a:hover,
.mil-dash-hero-actions button:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-1px); }
.mil-dash-hero-actions .mil-hero-primary { background: var(--dash-green); border-color: var(--dash-green); }
.mil-dash-hero-actions .mil-hero-primary:hover { background: #17a40a; border-color: #17a40a; }

/* ---------- Body ---------- */
.mil-dash { background: var(--dash-bg); }
.mil-dash .container.mil-p-120-90 { padding-top: 44px; padding-bottom: 70px; }
.mil-dash .mil-light-soft { color: var(--dash-muted); }
.mil-dash h3, .mil-dash h4, .mil-dash h5 { color: var(--dash-ink); }
.mil-dash .mil-mb-60 { margin-bottom: 36px; }
.mil-dash .mil-mt-60 { margin-top: 36px; }
.mil-dash .mil-mb-40 { margin-bottom: 28px; }

/* Stat cards: both the new StatCard and the existing .mil-stat-card markup */
.mil-dash .mil-stat-card,
.mil-dash-stat {
    display: flex; align-items: center; gap: 14px; height: 100%; min-width: 0;
    background: var(--dash-card); border-radius: var(--dash-radius); padding: 20px 18px;
    box-shadow: var(--dash-shadow); border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform .2s ease, box-shadow .2s ease;
}
.mil-dash .mil-stat-card:hover, .mil-dash-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16, 24, 40, 0.09); }
.mil-dash .mil-stat-icon,
.mil-dash-stat-icon {
    flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--dash-green-soft); color: var(--dash-green); font-size: 21px;
}
.mil-dash .mil-stat-content, .mil-dash-stat-body { min-width: 0; flex: 1; }
.mil-dash .mil-stat-content h2,
.mil-dash-stat-value {
    font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; font-weight: 700; color: var(--dash-ink); margin: 0 0 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; letter-spacing: -0.3px;
}
.mil-dash .mil-stat-content h2.mil-accent { color: var(--dash-ink); }
.mil-dash .mil-stat-content p,
.mil-dash-stat-label { font-size: 13px; color: var(--dash-muted); margin: 0; font-weight: 500; letter-spacing: .2px; }
.mil-dash-stat-hint, .mil-dash .mil-stat-trend { font-size: 12px; color: var(--dash-green); margin-top: 4px; font-weight: 600; }
/* Cycle the icon tint across a row of stat cards */
.mil-dash .row > div:nth-child(4n+2) .mil-stat-icon, .mil-tone-blue .mil-dash-stat-icon { background: #e8f1fb; color: #1d6fb8; }
.mil-dash .row > div:nth-child(4n+3) .mil-stat-icon, .mil-tone-amber .mil-dash-stat-icon { background: #fff4e0; color: #b7791f; }
.mil-dash .row > div:nth-child(4n+4) .mil-stat-icon, .mil-tone-violet .mil-dash-stat-icon { background: #f1ebfb; color: #6b3fb5; }

/* Cards */
.mil-dash .mil-card {
    background: var(--dash-card); border-radius: var(--dash-radius); box-shadow: var(--dash-shadow);
    border: 1px solid rgba(0, 0, 0, 0.02); overflow: hidden; margin-bottom: 30px;
}
.mil-dash .mil-card-header {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    padding: 18px 22px; border-bottom: 1px solid var(--dash-line);
}
.mil-dash .mil-card-header h4 { font-size: 18px; font-weight: 600; margin: 0; }
.mil-dash .mil-card-header h4 .mil-thin { font-weight: 300; }
.mil-dash .mil-card-header .mil-link,
.mil-dash .mil-card-header a:not(.mil-btn):not(.mil-action-btn) { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--dash-green); font-weight: 600; text-decoration: none; }
.mil-dash .mil-card-body { padding: 22px; }
.mil-dash .mil-card-body.mil-p-0 { padding: 0; }
.mil-dash .mil-card-footer { padding: 14px 22px; border-top: 1px solid var(--dash-line); background: #fbfcfb; }

/* Section headings outside cards */
.mil-dash .mil-section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.mil-dash .mil-section-header h3, .mil-dash .mil-section-header h4 { margin: 0; }

/* Tables */
.mil-dash .mil-table-responsive { margin-top: 0; overflow-x: auto; }
.mil-dash .mil-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mil-dash .mil-table th {
    background: #f8faf7; color: #5b6470; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
    padding: 12px 18px; border-bottom: 1px solid var(--dash-line); white-space: nowrap; text-align: left;
}
.mil-dash .mil-table td { padding: 14px 18px; border-bottom: 1px solid var(--dash-line); color: #2b2f33; vertical-align: middle; }
.mil-dash .mil-table tbody tr:last-child td { border-bottom: none; }
.mil-dash .mil-table tbody tr:hover td { background: #fafcf9; }
.mil-dash .mil-table td:first-child { font-weight: 600; white-space: nowrap; }
.mil-dash .mil-card > .mil-table-responsive,
.mil-dash .mil-card-body > .mil-table-responsive { margin: 0; }
/* tables sitting directly in the page (not in a card) get a card frame */
.mil-dash .container > .mil-table-responsive,
.mil-dash .row > div > .mil-table-responsive,
.mil-dash .mil-section-anchor > .mil-table-responsive { background: #fff; border-radius: var(--dash-radius); box-shadow: var(--dash-shadow); margin: 14px 0 30px; }

.mil-dash-empty-row td { text-align: center; padding: 34px 18px !important; color: var(--dash-muted); font-weight: 400 !important; white-space: normal !important; }
.mil-dash-empty-row i { display: block; font-size: 26px; color: #c9d3c6; margin-bottom: 8px; }
.mil-dash-empty, .mil-dash .mil-empty-state { text-align: center; padding: 34px 20px; color: var(--dash-muted); }
.mil-dash-empty i, .mil-dash .mil-empty-state i { display: block; font-size: 30px; color: #c9d3c6; margin-bottom: 10px; }
.mil-dash-empty p { margin: 0 0 14px; }

/* Badges */
.mil-dash .mil-badge, .mil-dash .mil-status-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 600; text-transform: capitalize; white-space: nowrap; background: #eef1f4; color: #475467;
}
.mil-dash .mil-badge::before, .mil-dash .mil-status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.mil-dash .mil-badge-pending, .mil-dash .mil-status-pending, .mil-dash .mil-badge-created, .mil-dash .mil-badge-warning { background: #fff5e1; color: #9a6400; }
.mil-dash .mil-badge-processing, .mil-dash .mil-badge-aggregated, .mil-dash .mil-badge-info, .mil-dash .mil-badge-assigned, .mil-dash .mil-badge-picked_up { background: #e8f1fb; color: #1d5fa0; }
.mil-dash .mil-badge-in_transit, .mil-dash .mil-badge-dispatched, .mil-dash .mil-badge-warehouse { background: #f1ebfb; color: #5b34a0; }
.mil-dash .mil-badge-delivered, .mil-dash .mil-badge-active, .mil-dash .mil-status-active, .mil-dash .mil-status-approved, .mil-dash .mil-badge-approved, .mil-dash .mil-badge-completed { background: var(--dash-green-soft); color: var(--dash-green-dark); }
.mil-dash .mil-badge-cancelled, .mil-dash .mil-badge-rejected, .mil-dash .mil-status-rejected, .mil-dash .mil-status-inactive, .mil-dash .mil-badge-failed { background: #fdecee; color: #a4202f; }
.mil-dash .mil-status-sold { background: #eef1f4; color: #475467; }

/* Buttons */
.mil-dash .mil-btn { border-radius: 12px; font-size: 15px; padding: 12px 22px; text-decoration: none; justify-content: center; }
.mil-dash .mil-btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.mil-dash .mil-btn-primary { background: var(--dash-green); color: #fff; }
.mil-dash .mil-btn-primary:hover { background: var(--dash-green-dark); }
.mil-dash .mil-btn-outline { border: 1.5px solid var(--dash-green); color: var(--dash-green); background: #fff; }
.mil-dash .mil-btn-outline:hover { background: var(--dash-green); color: #fff; }
.mil-dash .mil-btn-success { background: var(--dash-green); color: #fff; }
.mil-dash .mil-btn-danger { background: #dc3545; color: #fff; }
.mil-dash .mil-btn-secondary { background: #eef1f4; color: #344054; }
.mil-dash .mil-btn-secondary:hover { background: #e2e6ea; }
.mil-dash .mil-full-width { width: 100%; }

.mil-dash .mil-quick-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mil-dash .mil-action-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px;
    background: #fff; border: 1px solid var(--dash-line); color: var(--dash-ink); font-size: 14px; font-weight: 600;
    text-decoration: none; cursor: pointer; box-shadow: var(--dash-shadow); transition: all .2s ease;
}
.mil-dash .mil-action-btn i { color: var(--dash-green); }
.mil-dash .mil-action-btn:hover { border-color: var(--dash-green); color: var(--dash-green); transform: translateY(-1px); }

.mil-dash .mil-icon-btn, .mil-dash .mil-pagination-btn {
    width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--dash-line); background: #fff; color: #475467;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s ease; margin-right: 4px;
}
.mil-dash .mil-icon-btn:hover, .mil-dash .mil-pagination-btn:hover { border-color: var(--dash-green); color: var(--dash-green); background: var(--dash-green-soft); }
.mil-dash .mil-icon-btn.mil-danger:hover { border-color: #dc3545; color: #dc3545; background: #fdecee; }
.mil-dash .mil-icon-btn.mil-success:hover { border-color: var(--dash-green); }
.mil-dash .mil-action-buttons { display: flex; flex-wrap: wrap; gap: 6px; }

/* Text links styled as "View all" */
.mil-dash a.mil-link { color: var(--dash-green); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }

/* Forms / filters */
.mil-dash .mil-form-control, .mil-dash .mil-filter-select, .mil-dash .mil-search-input {
    border: 1px solid #dfe4e8; border-radius: 10px; padding: 10px 14px; font-size: 14px; background: #fff; color: var(--dash-ink); max-width: 100%;
}
.mil-dash .mil-form-control:focus, .mil-dash .mil-filter-select:focus, .mil-dash .mil-search-input:focus { outline: none; border-color: var(--dash-green); box-shadow: 0 0 0 3px rgba(19, 138, 8, 0.12); }
.mil-dash .mil-filter-group, .mil-dash .mil-section-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mil-dash .mil-search-box { position: relative; flex: 1; min-width: 200px; }
.mil-dash .mil-search-box .mil-search-input { width: 100%; padding-left: 38px; }
.mil-dash .mil-search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #98a2b3; }

/* Lists used on several dashboards */
.mil-dash .mil-inventory-stats { display: flex; flex-direction: column; gap: 10px; }
.mil-dash .mil-inventory-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: #f8faf7; text-transform: capitalize; }
.mil-dash .mil-inventory-value { font-weight: 700; color: var(--dash-green-dark); }

.mil-dash .mil-schedule-list, .mil-dash .mil-order-list, .mil-dash .mil-delivery-list, .mil-dash .mil-activity-log { display: flex; flex-direction: column; gap: 12px; }
.mil-dash .mil-schedule-item { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--dash-line); background: #fff; }
.mil-dash .mil-activity-item { display: flex; gap: 12px; align-items: flex-start; }
.mil-dash .mil-order-header, .mil-dash .mil-delivery-header, .mil-dash .mil-listing-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mil-dash .mil-order-amount { font-weight: 700; color: var(--dash-ink); }
.mil-dash .mil-order-progress, .mil-dash .mil-progress-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.mil-dash .mil-order-progress > *, .mil-dash .mil-progress-steps > * { font-size: 11px; padding: 3px 9px; border-radius: 12px; background: #f1f3f5; color: #667085; }
.mil-dash .mil-order-progress > .active, .mil-dash .mil-progress-steps > .active,
.mil-dash .mil-order-progress > .completed, .mil-dash .mil-progress-steps > .completed { background: var(--dash-green-soft); color: var(--dash-green-dark); font-weight: 600; }

.mil-dash .mil-delivery-card, .mil-dash .mil-listing-card, .mil-dash .mil-product-card {
    background: #fff; border: 1px solid var(--dash-line); border-radius: 14px; padding: 18px; transition: box-shadow .2s ease, border-color .2s ease;
}
.mil-dash .mil-delivery-card:hover, .mil-dash .mil-listing-card:hover, .mil-dash .mil-product-card:hover { border-color: #cfe5c9; box-shadow: var(--dash-shadow); }
.mil-dash .mil-listings-grid, .mil-dash .mil-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.mil-dash .mil-listing-details p, .mil-dash .mil-product-details p { margin: 0 0 4px; font-size: 14px; color: #475467; }
.mil-dash .mil-listing-actions, .mil-dash .mil-delivery-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mil-dash .mil-delivery-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; font-size: 14px; }
.mil-dash .mil-item-badge, .mil-dash .mil-item-tag, .mil-dash .mil-product-badge { display: inline-block; padding: 3px 9px; border-radius: 12px; background: var(--dash-green-soft); color: var(--dash-green-dark); font-size: 12px; font-weight: 600; margin: 0 4px 4px 0; }

/* Superadmin metrics & charts */
.mil-dash .mil-metric-card { background: #fff; border-radius: 14px; padding: 18px; border: 1px solid var(--dash-line); height: 100%; }
.mil-dash .mil-chart-box { position: relative; height: 280px; }
.mil-dash .mil-legend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.mil-dash .mil-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mil-dash .mil-legend-color { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
.mil-dash .mil-legend-value { margin-left: auto; font-weight: 700; }

/* Stat cards with a trend line under the numbers (superadmin) */
.mil-dash .mil-stat-card { flex-wrap: wrap; cursor: default; }
.mil-dash .mil-stat-card .mil-stat-trend { flex-basis: 100%; margin: 2px 0 0 62px; font-size: 12px; font-weight: 600; color: var(--dash-green); }
.mil-dash .mil-stat-trend.warning { color: #b7791f; }
.mil-dash .mil-stat-trend.info { color: #1d6fb8; }
.mil-dash .mil-stat-trend i { margin-right: 4px; }

/* Timeline / activity / order lists (superadmin) */
.mil-dash .mil-timeline, .mil-dash .mil-order-list { padding: 8px 0; }
.mil-dash .mil-timeline-item, .mil-dash .mil-order-item {
    display: flex; gap: 14px; align-items: flex-start; padding: 16px 22px; border: none; border-radius: 0;
    border-bottom: 1px solid var(--dash-line); background: transparent;
}
.mil-dash .mil-timeline-item:last-child, .mil-dash .mil-order-item:last-child { border-bottom: none; }
.mil-dash .mil-timeline-icon, .mil-dash .mil-activity-icon {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: var(--dash-green-soft); color: var(--dash-green); font-size: 15px;
}
.mil-dash .mil-timeline-content, .mil-dash .mil-order-details, .mil-dash .mil-activity-content { flex: 1; min-width: 0; }
.mil-dash .mil-timeline-header, .mil-dash .mil-order-header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.mil-dash .mil-timeline-header h6, .mil-dash .mil-order-header h6 { font-size: 15px; font-weight: 700; margin: 0; color: var(--dash-ink); }
.mil-dash .mil-timeline-time { font-size: 12px; color: var(--dash-muted); white-space: nowrap; }
.mil-dash .mil-timeline-content p { font-size: 14px; color: #475467; margin: 0 0 8px; }
.mil-dash .mil-timeline-items { margin-bottom: 10px; }
.mil-dash .mil-timeline-actions .mil-btn-sm, .mil-dash .mil-btn-sm.mil-btn-primary { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.mil-dash .mil-order-status { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: capitalize; color: #1d5fa0; background: #e8f1fb; padding: 4px 10px; border-radius: 20px; margin-top: 2px; }
.mil-dash .mil-order-status .mil-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mil-dash .mil-order-status.created { color: #9a6400; background: #fff5e1; }
.mil-dash .mil-order-status.warehouse, .mil-dash .mil-order-status.dispatched { color: #5b34a0; background: #f1ebfb; }
.mil-dash .mil-order-partners { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--dash-muted); }
.mil-dash .mil-order-partners i { color: var(--dash-green); margin-right: 4px; }
.mil-dash .mil-order-progress .mil-progress-steps { margin: 0; }
.mil-dash .mil-activity-item { padding: 12px 0; border: none; border-bottom: 1px solid var(--dash-line); border-radius: 0; }
.mil-dash .mil-activity-item:last-child { border-bottom: none; }
.mil-dash .mil-activity-item p { margin: 0; font-size: 14px; color: var(--dash-ink); }
.mil-dash .mil-activity-item span, .mil-dash .mil-activity-item small { font-size: 12px; color: var(--dash-muted); }

/* Simple timelines elsewhere */
.mil-dash .mil-timeline-dot { position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--dash-green); box-shadow: 0 0 0 3px var(--dash-green-soft); }

/* Profile blocks (solicitor etc.) */
.mil-dash .pf-card-lite { box-shadow: var(--dash-shadow); border: 1px solid rgba(0,0,0,.02); }

/* Modals opened from dashboards keep the dashboard look */
.mil-modal .mil-modal-content { border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); }

/* Promoter dashboard */
.mil-dash .mil-promo-link { display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 16px; border: 1px solid #d9ead4; background: #f7faf6; border-radius: 12px; }
.mil-dash .mil-promo-link input { flex: 1; min-width: 0; height: auto !important; margin: 0 !important; letter-spacing: 0 !important; border: none !important; background: transparent !important; padding: 6px 0 !important; font-size: 14px; color: var(--dash-ink); outline: none; box-shadow: none !important; }
.mil-dash .mil-promo-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mil-dash .mil-promo-share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.mil-dash .mil-promo-share-btn:hover { opacity: .9; color: #fff; }
.mil-dash .mil-share-whatsapp { background: #25d366; }
.mil-dash .mil-share-facebook { background: #1877f2; }
.mil-dash .mil-share-twitter { background: #111; }
.mil-dash .mil-share-telegram { background: #229ed9; }
.mil-dash .mil-share-email { background: #6b7280; }
.mil-dash .mil-promo-qr { width: 100%; max-width: 220px; border-radius: 14px; border: 1px solid var(--dash-line); padding: 8px; background: #fff; margin-bottom: 12px; }
.mil-dash .mil-promo-roles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mil-dash .mil-promo-roles li { display: grid; grid-template-columns: 1fr 90px 28px; align-items: center; gap: 10px; font-size: 14px; }
.mil-dash .mil-promo-bar { height: 8px; background: #eef1f4; border-radius: 6px; overflow: hidden; }
.mil-dash .mil-promo-bar span { display: block; height: 100%; background: var(--dash-green); border-radius: 6px; }
.mil-dash .mil-promo-roles strong { text-align: right; }
.mil-dash .mil-promo-steps { margin: 0 0 14px; padding-left: 20px; }
.mil-dash .mil-promo-steps li { margin-bottom: 10px; font-size: 14px; color: #475467; line-height: 1.5; list-style: decimal; }
.mil-dash-hero-actions .mil-hero-primary { background: var(--dash-green); border-color: var(--dash-green); }

/* Responsive */
@media (max-width: 991px) {
    .mil-dash-hero { padding: 115px 0 36px; }
    .mil-dash-hero-actions { width: 100%; }
}
@media (max-width: 575px) {
    .mil-dash-hero h1 { font-size: 30px; }
    .mil-dash-sub { font-size: 15px; }
    .mil-dash .mil-stat-card, .mil-dash-stat { padding: 16px; gap: 12px; }
    .mil-dash .mil-stat-icon, .mil-dash-stat-icon { width: 44px; height: 44px; flex-basis: 44px; font-size: 18px; border-radius: 12px; }
    .mil-dash .mil-stat-content h2, .mil-dash-stat-value { font-size: 22px; }
    .mil-dash .mil-card-header, .mil-dash .mil-card-body { padding: 16px; }
    .mil-dash .mil-table th, .mil-dash .mil-table td { padding: 12px 14px; }
    .mil-dash-hero-actions a, .mil-dash-hero-actions button { flex: 1 1 auto; justify-content: center; }
}

/* Login: choose which role account to open */
.mil-role-choose-head { text-align: center; margin-bottom: 30px; }
.mil-role-choose-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 40px; background: #edf8ea; color: #138a08; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.mil-role-choose-head h4 { margin-bottom: 12px; }
.mil-role-choose-head p { color: #707070; font-size: 15px; line-height: 1.6; margin: 0; }
.mil-role-choose-head p strong { color: #000; font-weight: 600; word-break: break-all; }
.mil-role-choose-list { display: flex; flex-direction: column; gap: 14px; }
.mil-role-option { position: relative; display: flex; align-items: center; gap: 18px; width: 100%; padding: 16px 18px 16px 16px; border: 1px solid #e6e6e6; border-radius: 18px; background: #fff; cursor: pointer; text-align: left; font-family: "Outfit", sans-serif; color: #000; overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s; }
.mil-role-option::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: rgb(25,165,0); transform: scaleY(0); transition: transform .25s; }
.mil-role-option:hover:not(:disabled), .mil-role-option:focus-visible { border-color: rgba(25,165,0,.55); box-shadow: 0 14px 30px rgba(15,107,7,.12); transform: translateY(-2px); outline: none; }
.mil-role-option:hover:not(:disabled)::before, .mil-role-option:focus-visible::before, .mil-role-option.is-busy::before { transform: scaleY(1); }
.mil-role-option:disabled { cursor: default; }
.mil-role-option:disabled:not(.is-busy) { opacity: .5; }
.mil-role-option-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: #edf8ea; color: #138a08; display: grid; place-items: center; font-size: 20px; transition: background .25s, color .25s; }
.mil-role-option:hover:not(:disabled) .mil-role-option-icon, .mil-role-option.is-busy .mil-role-option-icon { background: rgb(25,165,0); color: #fff; }
.mil-role-option-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mil-role-option-label { font-size: 17px; font-weight: 600; line-height: 1.25; }
.mil-role-option-name { font-size: 13px; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mil-role-option-go { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e6e6e6; color: #000; display: grid; place-items: center; font-size: 14px; transition: background .25s, border-color .25s, color .25s, transform .25s; }
.mil-role-option:hover:not(:disabled) .mil-role-option-go, .mil-role-option.is-busy .mil-role-option-go { background: rgb(25,165,0); border-color: rgb(25,165,0); color: #fff; }
.mil-role-option:hover:not(:disabled) .mil-role-option-go i { transform: translateX(2px); }
.mil-role-choose-foot { text-align: center; margin: 28px 0 0; font-size: 14px; }
.mil-role-choose-foot i { font-size: 12px; margin-right: 6px; }
@media (max-width: 575px) {
  .mil-role-option { gap: 14px; padding: 14px; border-radius: 16px; }
  .mil-role-option-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
  .mil-role-option-go { width: 34px; height: 34px; }
}
/* Menu: switch role */
.mil-switch-role { margin: 0; }
.mil-switch-role button { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-align: left; opacity: .8; transition: color .3s, opacity .3s; }
.mil-switch-role button i { font-size: .8em; color: rgb(25,165,0); }
.mil-switch-role button:hover { opacity: 1; color: rgb(25,165,0); }
