/* ═══════════════════════════════════════════════════════════════════
   EMS Dashboard Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────────────
   TOP NAV — Modern header
   ──────────────────────────────────────────────────────────────────── */

.ems-topnav {
    display: flex;
    align-items: center;
    gap: 0;
    height: 64px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Deep blue gradient with subtle texture */
    background: linear-gradient(135deg, #0d3b7a 0%, #1565C0 60%, #1976D2 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,.08) inset,
                0 4px 20px rgba(0,0,0,.25);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Brand ─────────────────────────────────────────────────────────── */
.ems-topnav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    padding-right: 24px;
}
.ems-topnav-logo {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 0 0 2px rgba(255,255,255,.15);
}
.ems-topnav-logo-fallback {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.2), 0 0 0 2px rgba(255,255,255,.15);
}
.ems-topnav-logo-fallback svg { width: 24px; height: 24px; }
.ems-topnav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.ems-topnav-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.2px;
}
.ems-topnav-brand-sub {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Vertical divider between brand and nav ────────────────────────── */
.ems-topnav-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,.18);
    margin-right: 8px;
    flex-shrink: 0;
}

/* ── Nav links ─────────────────────────────────────────────────────── */
.ems-topnav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.ems-topnav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255,255,255,.78);
    transition: background .15s, color .15s;
    white-space: nowrap;
    height: 38px;
}
.ems-topnav-link:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.ems-topnav-link.active {
    background: rgba(255,255,255,.18);
    color: #fff;
    font-weight: 600;
}
.ems-nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: .85;
}
.ems-topnav-link:hover .ems-nav-icon,
.ems-topnav-link.active .ems-nav-icon { opacity: 1; }

/* ── Right side ────────────────────────────────────────────────────── */
.ems-topnav-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Notification / icon button */
.ems-topnav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.7);
    transition: background .15s, color .15s;
}
.ems-topnav-icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.ems-topnav-icon-btn svg { width: 18px; height: 18px; }

/* User menu trigger */
.ems-topnav-user { position: relative; }
.ems-topnav-user-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 6px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    color: #fff;
    margin-left: 6px;
}
.ems-topnav-user-btn:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.25);
}
.ems-topnav-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.ems-topnav-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    display: block;
}
.ems-avatar-status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4CAF50;
    border: 2px solid #1565C0;
}
.ems-topnav-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}
.ems-topnav-username {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.ems-topnav-user-role {
    font-size: 10.5px;
    color: rgba(255,255,255,.6);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.ems-topnav-chevron {
    width: 14px;
    height: 14px;
    color: rgba(255,255,255,.6);
    transition: transform .2s;
}
.ems-topnav-user-btn[aria-expanded="true"] .ems-topnav-chevron { transform: rotate(180deg); }

/* ── User dropdown ─────────────────────────────────────────────────── */
.ems-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    min-width: 240px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.1);
    border: 1px solid rgba(0,0,0,.08);
    z-index: 1001;
    overflow: hidden;
    animation: ems-dropdown-in .15s ease;
}
.ems-user-dropdown.open { display: block; }

@keyframes ems-dropdown-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ems-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8faff;
}
.ems-dropdown-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    flex-shrink: 0;
}
.ems-dropdown-name  { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.ems-dropdown-email { font-size: 11px; color: #888; margin-top: 2px; }

.ems-dropdown-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }

.ems-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #333;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: background .12s;
}
.ems-dropdown-item svg { width: 16px; height: 16px; color: #666; flex-shrink: 0; }
.ems-dropdown-item:hover { background: #f5f7ff; color: #1565C0; }
.ems-dropdown-item:hover svg { color: #1565C0; }
.ems-dropdown-logout { color: #c62828; }
.ems-dropdown-logout svg { color: #c62828; }
.ems-dropdown-logout:hover { background: #fff5f5; color: #c62828; }

/* ── Mobile hamburger ──────────────────────────────────────────────── */
.ems-topnav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    margin-left: 8px;
}
.ems-topnav-toggle svg { width: 20px; height: 20px; }

/* ── Mobile menu panel ─────────────────────────────────────────────── */
.ems-mobile-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 999;
    border-top: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    max-height: 80vh;
    overflow-y: auto;
}
.ems-mobile-menu.open { display: block; }
.ems-mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: #f8faff;
}
.ems-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .12s;
    border-bottom: 1px solid #f5f5f5;
}
.ems-mobile-link svg { width: 18px; height: 18px; color: #666; }
.ems-mobile-link:hover,
.ems-mobile-link.active { background: #f0f5ff; color: #1565C0; }
.ems-mobile-link:hover svg,
.ems-mobile-link.active svg { color: #1565C0; }
.ems-mobile-link.ems-dropdown-logout { color: #c62828; }
.ems-mobile-link.ems-dropdown-logout svg { color: #c62828; }

/* ── Dashboard wrap ──────────────────────────────────────────────── */
.ems-dashboard-wrap {
    max-width: 1100px; margin: 0 auto; padding: 24px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Welcome header ──────────────────────────────────────────────── */
.ems-dash-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 24px; padding: 20px 24px;
    background: #fff; border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07); border: 1px solid #e8e8e8;
}
.ems-avatar { border-radius: 50%; }
.ems-dash-greeting { display: flex; flex-direction: column; }
.ems-greeting-sub  { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.ems-greeting-name { font-size: 22px; font-weight: 700; color: #1a1a1a; }
.ems-dash-date { margin-left: auto; font-size: 14px; color: #888; font-weight: 500; white-space: nowrap; }

/* ── Three-column grid ───────────────────────────────────────────── */
.ems-dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.ems-dash-card {
    background: #fff; border-radius: 10px;
    border: 1px solid #e8e8e8; box-shadow: 0 1px 4px rgba(0,0,0,.07);
    padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.ems-dash-card-title {
    font-size: 14px; font-weight: 700; color: #333;
    border-bottom: 2px solid #f0f0f0; padding-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.ems-card-icon { font-size: 16px; }
.ems-dash-empty {
    text-align: center; padding: 20px 10px; color: #999;
}
.ems-empty-icon { display: block; font-size: 32px; margin-bottom: 8px; }
.ems-empty-hint { font-size: 12px; color: #bbb; margin-top: 4px; }
.ems-dash-view-all {
    display: block; text-align: center; margin-top: auto; padding-top: 12px;
    font-size: 13px; color: #1565C0; text-decoration: none; font-weight: 500;
}
.ems-dash-view-all:hover { text-decoration: underline; }

/* ── Upcoming shifts ─────────────────────────────────────────────── */
.ems-upcoming-list { display: flex; flex-direction: column; gap: 10px; }
.ems-upcoming-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 7px; border-left: 4px solid #ccc;
    background: #fafafa; border: 1px solid #eee; border-left-width: 4px;
}
.ems-upcoming-left { flex: 1; }
.ems-upcoming-date { font-size: 11px; color: #888; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.ems-upcoming-unit { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.ems-upcoming-time { font-size: 12px; color: #555; font-family: monospace; }
.ems-upcoming-actions { display: flex; gap: 4px; flex-shrink: 0; }
.ems-badge-today    { background: #1565C0; color: #fff; padding: 1px 7px; border-radius: 10px; font-size: 10px; font-weight: 700; }
.ems-badge-tomorrow { background: #E65100; color: #fff; padding: 1px 7px; border-radius: 10px; font-size: 10px; font-weight: 700; }
.ems-badge-days     { background: #e0e0e0; color: #555; padding: 1px 7px; border-radius: 10px; font-size: 10px; }
.ems-xs-btn { padding: 3px 8px !important; font-size: 11px !important; border-radius: 4px !important; }

/* ── Request list ────────────────────────────────────────────────── */
.ems-request-list { display: flex; flex-direction: column; gap: 8px; }
.ems-request-row {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px;
    background: #fafafa; border-radius: 7px; border: 1px solid #eee;
}
.ems-request-row.needs-action { background: #fff8e1; border-color: #ffe082; }
.ems-req-type-badge {
    padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.req-pickup { background: #e3f2fd; color: #1565C0; }
.req-drop   { background: #fff3e0; color: #E65100; }
.req-swap   { background: #f3e5f5; color: #6A1B9A; }
.ems-req-info { flex: 1; }
.ems-req-shift  { font-size: 12px; font-weight: 600; color: #333; }
.ems-req-date   { font-size: 11px; color: #888; }
.ems-req-partner { font-size: 11px; color: #6A1B9A; }
.ems-req-status { font-size: 11px; font-weight: 600; white-space: nowrap; }
.ems-req-action-row { display: flex; gap: 4px; margin-top: 6px; }
.status-pending  { color: #E65100; }
.status-approved { color: #2E7D32; }
.status-denied   { color: #C62828; }

/* ── Favorites ───────────────────────────────────────────────────── */
.ems-fav-list { display: flex; flex-direction: column; gap: 8px; }
.ems-fav-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    background: #fafafa; border-radius: 7px; border: 1px solid #eee;
}
.ems-fav-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ems-fav-info { flex: 1; }
.ems-fav-title { font-size: 12px; font-weight: 600; }
.ems-fav-date  { font-size: 11px; color: #888; }
.ems-fav-remove {
    background: none; border: none; color: #ccc; cursor: pointer;
    font-size: 14px; padding: 2px 4px; border-radius: 4px;
    transition: color .15s;
}
.ems-fav-remove:hover { color: #c62828; }

/* ── Quick tiles ─────────────────────────────────────────────────── */
.ems-quick-tiles {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    margin-top: 4px;
}
.ems-tile {
    display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
    padding: 20px; border-radius: 10px; text-decoration: none;
    background: #fff; border: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    border-top: 4px solid var(--tile-color, #1565C0);
    transition: transform .15s, box-shadow .15s;
}
.ems-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.ems-tile-icon  { font-size: 28px; }
.ems-tile-title { font-size: 15px; font-weight: 700; color: #222; }
.ems-tile-desc  { font-size: 12px; color: #888; line-height: 1.4; }

/* ═══════════════════════════════════════════════════════════════════
   Availability Calendar Styles
   ═══════════════════════════════════════════════════════════════════ */

.ems-avail-wrap {
    max-width: 1000px; margin: 0 auto; padding: 0 0 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ems-avail-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
    padding: 16px 20px; background: #fff;
    border: 1px solid #e0e0e0; border-radius: 8px;
}
.ems-avail-nav { display: flex; align-items: center; gap: 12px; }
.ems-avail-nav h2 { margin: 0; font-size: 20px; font-weight: 700; min-width: 180px; text-align: center; }
.ems-avail-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.ems-legend-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #555; }
.ems-legend-dot { width: 12px; height: 12px; border-radius: 3px; }
.avail-selected  .ems-legend-dot,
.ems-legend-dot.avail-selected  { background: #1565C0; }
.avail-submitted .ems-legend-dot,
.ems-legend-dot.avail-submitted { background: #2E7D32; }
.avail-assigned  .ems-legend-dot,
.ems-legend-dot.avail-assigned  { background: #6A1B9A; }

.ems-avail-submitted-banner {
    background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 6px;
    padding: 12px 18px; margin-bottom: 16px; font-size: 14px; color: #2E7D32;
}
.ems-avail-instructions {
    background: #e3f2fd; border: 1px solid #90CAF9; border-radius: 6px;
    padding: 12px 18px; margin-bottom: 16px; font-size: 14px; color: #1565C0;
}

/* Grid */
.ems-avail-grid-wrap { overflow-x: auto; }
.ems-avail-month-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden;
    background: #fff; min-width: 560px;
}
.ems-avail-dow-header {
    padding: 10px 4px; text-align: center; font-size: 12px; font-weight: 700;
    color: #777; text-transform: uppercase; background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0;
}
.ems-avail-day-cell {
    min-height: 120px; padding: 6px 4px;
    border-right: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0;
    background: #fff; transition: background .1s;
}
.ems-avail-day-cell.past   { background: #fafafa; }
.ems-avail-day-cell.today  { background: #E3F2FD; }
.ems-avail-day-cell.ems-avail-blank { background: #f8f9fa; }
.ems-avail-day-num {
    font-size: 13px; font-weight: 700; color: #333; margin-bottom: 4px;
    width: 24px; height: 24px; line-height: 24px; text-align: center;
    border-radius: 50%; display: block;
}
.ems-avail-day-cell.today .ems-avail-day-num { background: #1565C0; color: #fff; }
.ems-avail-day-cell.past .ems-avail-day-num  { color: #ccc; }

/* Slots */
.ems-avail-slots { display: flex; flex-direction: column; gap: 3px; }
.ems-avail-slot {
    padding: 3px 5px; border-radius: 4px; font-size: 10px; font-weight: 600;
    background: #f0f0f0; color: #888; border: 1px solid #e0e0e0;
    display: flex; align-items: center; justify-content: space-between;
    line-height: 1.2; transition: all .12s;
}
.ems-avail-slot.interactive { cursor: pointer; }
.ems-avail-slot.interactive:hover { background: #BBDEFB; color: #1565C0; border-color: #90CAF9; }
.ems-avail-slot.avail-selected  { background: #1565C0; color: #fff; border-color: #0d47a1; }
.ems-avail-slot.avail-submitted { background: #2E7D32; color: #fff; border-color: #1B5E20; cursor: default; }
.ems-avail-slot.avail-assigned  { background: #6A1B9A; color: #fff; border-color: #4A148C; cursor: default; }
.ems-avail-day-cell.past .ems-avail-slot { opacity: .4; pointer-events: none; }
.ems-slot-label { flex: 1; }
.ems-slot-check { font-size: 11px; flex-shrink: 0; }
.ems-slot-badge { font-size: 9px; background: rgba(255,255,255,.25); padding: 1px 4px; border-radius: 6px; flex-shrink: 0; }

/* Footer */
.ems-avail-footer {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
    margin-top: 16px; padding: 16px 20px; background: #fff;
    border: 1px solid #e0e0e0; border-radius: 8px;
}
.ems-avail-summary { font-size: 15px; font-weight: 600; color: #333; }
.ems-avail-actions { display: flex; gap: 10px; margin-left: auto; }
.ems-btn-secondary { background: #e0e0e0; color: #333; }
#ems-avail-submit-msg { width: 100%; font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════════
   Open Shifts Styles
   ═══════════════════════════════════════════════════════════════════ */

.ems-open-shifts-wrap { max-width: 960px; margin: 0 auto; padding-bottom: 40px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.ems-open-header { margin-bottom: 20px; }
.ems-page-title { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.ems-page-subtitle { font-size: 14px; color: #666; margin: 0; }
.ems-open-list { display: flex; flex-direction: column; gap: 20px; }
.ems-open-day-group { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.ems-open-day-header {
    display: flex; align-items: center; gap: 10px; padding: 12px 18px;
    background: #f8f9fa; border-bottom: 1px solid #e8e8e8;
}
.ems-open-dow   { font-size: 13px; font-weight: 700; color: #1565C0; min-width: 28px; }
.ems-open-date  { font-size: 15px; font-weight: 700; }
.ems-open-count { margin-left: auto; font-size: 12px; background: #e3f2fd; color: #1565C0; padding: 2px 10px; border-radius: 10px; font-weight: 600; }
.ems-open-shifts-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0; padding: 12px;
    gap: 10px;
}
.ems-open-shift-card {
    border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .15s;
}
.ems-open-shift-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.ems-open-unit-bar { padding: 6px 12px; font-size: 12px; font-weight: 700; text-align: center; }
.ems-open-shift-body { padding: 10px 12px; flex: 1; }
.ems-open-shift-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ems-open-shift-time  { font-size: 12px; color: #555; font-family: monospace; }
.ems-open-shift-note  { font-size: 11px; color: #888; font-style: italic; margin-top: 4px; }
.ems-open-shift-action { padding: 8px 12px; border-top: 1px solid #f0f0f0; text-align: right; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ems-dash-grid { grid-template-columns: 1fr 1fr; }
    .ems-dash-upcoming { grid-column: 1 / -1; }
    .ems-quick-tiles { grid-template-columns: repeat(2,1fr); }
    .ems-topnav-links { display: none; }
    .ems-topnav-toggle { display: block; }
}
@media (max-width: 600px) {
    .ems-dash-grid { grid-template-columns: 1fr; }
    .ems-quick-tiles { grid-template-columns: 1fr 1fr; }
    .ems-topnav-username { display: none; }
    .ems-avail-header { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════
   Employee Profile & Certifications
   ═══════════════════════════════════════════════════════════════════ */

.ems-profile-wrap { max-width:900px;margin:0 auto;padding-bottom:40px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.ems-profile-saved { background:#e8f5e9;border:1px solid #a5d6a7;border-radius:6px;padding:10px 16px;margin-bottom:16px;color:#2e7d32;font-weight:600; }

.ems-profile-header {
    display:flex;align-items:center;gap:16px;flex-wrap:wrap;
    background:#fff;border:1px solid #e8e8e8;border-radius:10px;
    padding:20px 24px;margin-bottom:20px;box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.ems-profile-avatar { border-radius:50%; }
.ems-profile-info h2 { margin:0 0 4px;font-size:20px; }
.ems-profile-meta { display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:13px;color:#666; }
.ems-role-badge { padding:3px 12px;border-radius:10px;font-size:12px;font-weight:700; }
.ems-role-paramedic { background:#E3F2FD;color:#1565C0; }
.ems-role-emt       { background:#E8F5E9;color:#2E7D32; }
.ems-cert-health { margin-left:auto;text-align:center; }
.ems-cert-health-badge { padding:6px 16px;border-radius:20px;font-size:14px;font-weight:700;margin-bottom:8px;display:inline-block; }
.ems-cert-health-counts { display:flex;gap:6px;flex-wrap:wrap;justify-content:center; }
.ems-cert-count-chip { padding:2px 8px;border-radius:8px;font-size:11px;font-weight:600; }
.cert-ok      { background:#E8F5E9;color:#2E7D32; }
.cert-warning { background:#FFF3E0;color:#E65100; }
.cert-expired { background:#FFEBEE;color:#C62828; }
.cert-missing { background:#F5F5F5;color:#757575; }

.ems-profile-section { background:#fff;border:1px solid #e8e8e8;border-radius:10px;padding:20px;margin-bottom:16px; }
.ems-profile-section-title { font-size:14px;font-weight:700;color:#333;border-bottom:2px solid #f0f0f0;padding-bottom:10px;margin-bottom:16px; }
.ems-role-selector { display:flex;gap:12px; }
.ems-role-option { display:flex;align-items:center;gap:8px;padding:10px 18px;border:2px solid #e0e0e0;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:all .15s; }
.ems-role-option input { margin:0; }
.ems-role-option.selected,.ems-role-option:has(input:checked) { border-color:#1565C0;background:#E3F2FD;color:#1565C0; }

.ems-cert-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px; }
.ems-cert-card {
    background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:14px;
    border-top:4px solid #ccc;
}
.ems-cert-card.status-expired { border-top-color:#C62828;background:#FFFAFA; }
.ems-cert-card.status-warning { border-top-color:#E65100;background:#FFFDF7; }
.ems-cert-card.status-ok      { border-top-color:#2E7D32; }
.ems-cert-card.status-missing { border-top-color:#9E9E9E; }

.ems-cert-card-header { display:flex;justify-content:space-between;align-items:center;margin-bottom:8px; }
.ems-cert-name { font-size:13px;font-weight:700; }
.ems-cert-status-chip { padding:2px 8px;border-radius:8px;font-size:11px;font-weight:700; }
.ems-cert-days { font-size:11px;font-weight:600;margin-bottom:8px;padding:3px 8px;border-radius:4px;display:inline-block; }
.ems-cert-days.expired { background:#FFEBEE;color:#C62828; }
.ems-cert-days.warning { background:#FFF3E0;color:#E65100; }
.ems-cert-days.ok      { background:#E8F5E9;color:#2E7D32; }
.ems-cert-fields { display:flex;flex-direction:column;gap:8px; }
.ems-cert-field label { display:block;font-size:11px;font-weight:600;color:#666;margin-bottom:2px; }
.ems-cert-field input { width:100%;padding:5px 8px;border:1px solid #ddd;border-radius:4px;font-size:13px; }
.ems-cert-field-row { display:grid;grid-template-columns:1fr 1fr;gap:8px; }
.ems-required { color:red; }
.ems-profile-submit { margin-top:20px; }

/* Cert alert banners on dashboard */
.ems-cert-alert {
    padding:12px 20px;border-radius:8px;margin-bottom:16px;
    font-size:14px;display:flex;align-items:center;gap:8px;
}
.ems-cert-alert a { font-weight:700;text-decoration:underline; }
.ems-cert-alert-expired { background:#FFEBEE;border:1px solid #EF9A9A;color:#C62828; }
.ems-cert-alert-warning { background:#FFF3E0;border:1px solid #FFCC80;color:#E65100; }
