/* ─── Reset & Variables ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:      #0d1b4b;
    --navy-mid:  #1a2f7a;
    --navy-light:#e8edf8;
    --red:       #c62828;
    --red-light: #ffebee;
    --green:     #2e7d32;
    --green-light:#e8f5e9;
    --orange:    #e65100;
    --orange-light:#fff3e0;
    --blue:      #1565c0;
    --blue-light:#e3f2fd;
    --purple:    #6a1b9a;
    --purple-light:#f3e5f5;
    --grey-50:   #fafafa;
    --grey-100:  #f4f6fb;
    --grey-200:  #e8ecf4;
    --grey-300:  #d0d7e8;
    --grey-500:  #8a95b0;
    --grey-700:  #4a5270;
    --grey-900:  #1a1f36;
    --white:     #ffffff;
    --sidebar-w: 220px;
    --radius:    10px;
    --radius-sm: 6px;
    --shadow:    0 2px 8px rgba(13,27,75,.10);
    --shadow-md: 0 4px 16px rgba(13,27,75,.14);
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--grey-100);
    color: var(--grey-900);
    font-size: 14px;
    line-height: 1.5;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ─────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ─── Sidebar ────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--navy);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.sidebar-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.7);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    transition: background .15s, color .15s;
}

.nav-item:hover  { background: rgba(255,255,255,.08); color: var(--white); }
.nav-item.active { background: rgba(255,255,255,.15); color: var(--white); }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-user {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    word-break: break-all;
}

.btn-logout {
    background: none;
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.7);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: all .15s;
}

.btn-logout:hover { border-color: rgba(255,255,255,.5); color: var(--white); }

/* ─── Main Content ───────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}

.page-sub {
    font-size: 12px;
    color: var(--grey-500);
    display: block;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    white-space: nowrap;
}

.btn:active  { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-mid); }

.btn-outline { background: var(--white); border: 1.5px solid var(--grey-300); color: var(--grey-700); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

.btn-success { background: var(--green); color: var(--white); }
.btn-danger  { background: var(--red);   color: var(--white); }

.btn-sm  { padding: 5px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Forms ──────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--grey-700); margin-bottom: 5px; }

.form-group input,
.form-group select,
.form-group textarea,
.select-full,
.textarea-full {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--grey-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--grey-900);
    background: var(--white);
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.select-full:focus,
.textarea-full:focus { border-color: var(--navy); }

.textarea-full { resize: vertical; margin-bottom: 8px; }

.select-sm {
    padding: 7px 12px;
    border: 1.5px solid var(--grey-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--white);
    color: var(--grey-900);
    cursor: pointer;
}

.input-sm {
    padding: 7px 10px;
    border: 1.5px solid var(--grey-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--white);
    width: 100%;
}

/* ─── Alerts ─────────────────────────────────────── */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px; }
.alert-error   { background: var(--red-light);   color: var(--red);   border-left: 3px solid var(--red); }
.alert-success { background: var(--green-light);  color: var(--green); border-left: 3px solid var(--green); }

/* ─── Status Pills ───────────────────────────────── */
.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
}
.status-lg { padding: 5px 14px; font-size: 13px; }

.status-grey   { background: var(--grey-200);     color: var(--grey-700); }
.status-orange { background: var(--orange-light);  color: var(--orange); }
.status-blue   { background: var(--blue-light);    color: var(--blue); }
.status-purple { background: var(--purple-light);  color: var(--purple); }
.status-green  { background: var(--green-light);   color: var(--green); }
.status-red    { background: var(--red-light);     color: var(--red); }

/* ─── Badges ─────────────────────────────────────── */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.badge-red   { background: var(--red-light);   color: var(--red); }
.badge-green { background: var(--green-light);  color: var(--green); }
.badge-grey  { background: var(--grey-200);    color: var(--grey-700); }

/* ─── Table ──────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 20px 28px;
    width: calc(100% - 56px);
}

.data-table thead { background: var(--navy); }
.data-table th {
    padding: 12px 16px;
    color: rgba(255,255,255,.85);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: left;
}

.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--grey-200);
    color: var(--grey-900);
    vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--navy-light); cursor: pointer; }

.ref-num { font-weight: 700; font-family: monospace; font-size: 13px; color: var(--navy); }
.td-time { font-size: 12px; color: var(--grey-500); white-space: nowrap; }

/* ─── Detail Layout ──────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    padding: 24px 28px;
    align-items: start;
}

.detail-col-main { display: flex; flex-direction: column; gap: 16px; padding-right: 20px; }
.detail-col-side { display: flex; flex-direction: column; gap: 16px; }

.detail-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--grey-500);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--grey-200);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item { display: flex; flex-direction: column; gap: 3px; }
.info-item.full { grid-column: 1 / -1; }
.info-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--grey-500); }

/* ─── Actions ────────────────────────────────────── */
.action-card { border-top: 3px solid var(--navy); }
.action-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--grey-200); }
.action-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.action-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--grey-700); margin-bottom: 8px; }
.assign-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.action-msg { font-size: 13px; margin-top: 8px; min-height: 20px; }
.msg-success { color: var(--green); }
.msg-error   { color: var(--red); }

/* ─── Timeline ───────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 12px; }
.timeline-item { display: flex; gap: 12px; align-items: flex-start; }
.timeline-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}
.timeline-dot.status-grey   { background: var(--grey-500); }
.timeline-dot.status-orange { background: var(--orange); }
.timeline-dot.status-blue   { background: var(--blue); }
.timeline-dot.status-purple { background: var(--purple); }
.timeline-dot.status-green  { background: var(--green); }
.timeline-dot.status-red    { background: var(--red); }

.timeline-body { flex: 1; }
.timeline-body strong { font-size: 13px; color: var(--grey-900); }
.timeline-time { font-size: 11px; color: var(--grey-500); display: block; margin-top: 2px; }
.timeline-note { font-size: 12px; color: var(--grey-700); margin-top: 4px; }

/* ─── Row Actions ────────────────────────────────── */
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ─── Login ──────────────────────────────────────── */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #c62828 100%);
    padding: 20px;
}

.login-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 36px 32px;
    width: 100%;
    max-width: 400px;
}

.login-brand { text-align: center; margin-bottom: 28px; }
.login-logo  { width: 160px; height: auto; display: block; margin: 0 auto 14px; }
.login-brand h1 { font-size: 22px; font-weight: 800; color: var(--navy); }
.login-brand p  { font-size: 13px; color: var(--grey-500); margin-top: 4px; }

/* ─── States ─────────────────────────────────────── */
.loading-row  { padding: 48px; text-align: center; color: var(--grey-500); }
.error-row    { padding: 32px; text-align: center; color: var(--red); }
.empty-state  { padding: 64px 32px; text-align: center; color: var(--grey-500); }
.muted        { color: var(--grey-500); font-size: 13px; }
.map-link     { color: var(--blue); font-weight: 600; }

/* ─── Misc ───────────────────────────────────────── */
small.muted { font-size: 12px; color: var(--grey-500); }

/* ─── Admin layout with optional detail panel ────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-layout .admin-sidebar { width: var(--sidebar-w); flex-shrink: 0; }
.admin-layout .admin-main { flex: 1; padding: 28px 32px; min-width: 0; overflow-x: auto; }
.admin-detail-panel { width: 380px; flex-shrink: 0; background: var(--white); border-left: 1px solid var(--grey-200); height: 100vh; position: sticky; top: 0; overflow-y: auto; }
.detail-panel-inner { padding: 20px; }
.detail-panel-hdr   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

/* ─── Admin table ────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 10px 12px; background: var(--grey-100); color: var(--grey-700); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--grey-200); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--grey-200); vertical-align: middle; }
.admin-table tr:hover td { background: var(--grey-50); }
.row-selected td { background: var(--blue-light) !important; }

/* ─── Page header / filter row ───────────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-size: 22px; font-weight: 800; color: var(--navy); }
.filter-row { display: flex; align-items: center; gap: 10px; }
.filter-row select { padding: 7px 12px; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); font-size: 14px; background: var(--white); }

/* ─── Document row (admin) ───────────────────────── */
.doc-upload-list { display: flex; flex-direction: column; gap: 8px; }
.doc-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--grey-200); border-radius: 10px; background: var(--grey-50); }
.doc-row-left { display: flex; align-items: center; gap: 10px; }
.doc-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--grey-200); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--grey-700); flex-shrink: 0; }
.doc-label { font-size: 13px; font-weight: 500; }

/* ─── Form messages ──────────────────────────────── */
.form-msg { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-top: 8px; }
.form-msg-ok  { background: var(--green-light); color: var(--green); }
.form-msg-err { background: var(--red-light);   color: var(--red); }

/* ─── Empty / error inline ───────────────────────── */
.empty-row { padding: 48px; text-align: center; color: var(--grey-500); }

/* ─── Nav item for providers ─────────────────────── */
.snav-item.active { background: rgba(255,255,255,.15); font-weight: 700; }

/* ─── Detail panel tabs ──────────────────────────── */
.detail-tabs { display: flex; border-bottom: 2px solid var(--grey-200); margin: 0 0 4px; }
.detail-tab { flex: 1; padding: 10px 6px; font-size: 13px; font-weight: 600; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; color: var(--grey-500); cursor: pointer; transition: color .15s, border-color .15s; }
.detail-tab:hover { color: var(--navy); }
.detail-tab.tab-active { color: var(--navy); border-bottom-color: var(--navy); }
.tab-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; vertical-align: middle; margin-left: 3px; }

/* ─── Sidebar — polished ─────────────────────────── */
.sidebar-shield { width:36px; height:36px; border-radius:10px; background:rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0; }
.sidebar-brand-name { font-size:15px; font-weight:700; color:#fff; line-height:1.2; }
.sidebar-brand-sub  { font-size:11px; color:rgba(255,255,255,.5); }
.sidebar-user-row   { display:flex; align-items:center; gap:10px; padding:4px 0 10px; }
.sidebar-avatar     { width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.2); color:#fff; font-size:14px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.sidebar-user-email { font-size:12px; color:rgba(255,255,255,.7); word-break:break-all; line-height:1.3; }
.sidebar-user-role  { font-size:11px; color:rgba(255,255,255,.4); }
.btn-logout { display:flex; align-items:center; gap:6px; justify-content:center; }

/* ─── Detail panel — flex column ─────────────────── */
.admin-detail-panel { flex-direction:column; }

/* ─── Detail panel header ────────────────────────── */
.dp-header { display:flex; align-items:center; justify-content:space-between; padding:14px 18px 12px; border-bottom:1px solid var(--grey-200); flex-shrink:0; }
.dp-close-btn { display:inline-flex; align-items:center; gap:4px; background:var(--grey-100); border:1.5px solid var(--grey-200); color:var(--grey-700); padding:5px 12px; border-radius:var(--radius-sm); font-size:13px; font-weight:600; cursor:pointer; transition:all .15s; }
.dp-close-btn:hover { background:var(--grey-200); color:var(--navy); }

/* ─── Detail panel hero ──────────────────────────── */
.dp-hero { display:flex; align-items:center; gap:14px; padding:16px 18px 14px; border-bottom:1px solid var(--grey-200); flex-shrink:0; }
.dp-avatar { width:54px; height:54px; border-radius:12px; background:var(--navy); color:#fff; font-size:22px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.dp-hero-name { font-size:16px; font-weight:700; color:var(--grey-900); }
.dp-hero-sub  { font-size:13px; color:var(--grey-500); margin-top:2px; }

/* ─── Detail panel body (scrollable) ────────────── */
.dp-body { flex:1; min-height:0; overflow-y:auto; padding:0; }
.dp-section { padding:16px 18px; border-bottom:1px solid var(--grey-200); }
.dp-section-hdr { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; color:var(--grey-900); margin-bottom:12px; }
.dp-icon-circle { width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.dp-icon-blue { background:var(--blue-light); color:var(--blue); }
.dp-kv { display:flex; justify-content:space-between; align-items:center; padding:5px 0; border-bottom:1px solid var(--grey-100); font-size:13px; gap:12px; }
.dp-kv:last-child { border-bottom:none; }
.dp-kv-label { color:var(--grey-500); flex-shrink:0; }
.dp-kv-val   { color:var(--grey-900); font-weight:500; text-align:right; }
.dp-status-cards { display:flex; gap:10px; margin-bottom:12px; }
.dp-status-card { flex:1; border:1.5px solid var(--grey-200); border-radius:var(--radius-sm); padding:10px 12px; text-align:center; }
.dp-status-label { font-size:11px; color:var(--grey-500); margin-bottom:6px; font-weight:600; text-transform:uppercase; letter-spacing:.4px; }

/* ─── Detail panel footer (fixed actions) ────────── */
.dp-footer { flex-shrink:0; padding:14px 18px; border-top:1.5px solid var(--grey-200); background:var(--white); }
.dp-footer-row { display:flex; gap:8px; margin-bottom:8px; }
.dp-act-btn { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:9px 8px; border-radius:var(--radius-sm); font-size:13px; font-weight:600; border:none; cursor:pointer; transition:opacity .15s; }
.dp-act-btn:disabled { opacity:.5; cursor:not-allowed; }
.dp-act-green { background:var(--green); color:#fff; }
.dp-act-amber { background:#d97706; color:#fff; }
.dp-act-red   { background:var(--red);   color:#fff; }
.dp-offline-btn { width:100%; display:flex; align-items:center; justify-content:center; gap:6px; padding:8px; border-radius:var(--radius-sm); background:var(--grey-100); border:1.5px solid var(--grey-200); color:var(--grey-700); font-size:13px; font-weight:600; cursor:pointer; transition:all .15s; }
.dp-offline-btn:hover { background:var(--grey-200); color:var(--navy); }

/* ─── Pagination ─────────────────────────────────── */
.pagination-bar { align-items:center; justify-content:space-between; padding:12px 28px; background:var(--white); border-top:1px solid var(--grey-200); font-size:13px; }
.pg-info { color:var(--grey-500); }
.pg-controls { display:flex; align-items:center; gap:4px; }
.pg-btn { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border-radius:var(--radius-sm); border:1.5px solid var(--grey-200); background:var(--white); color:var(--grey-700); cursor:pointer; font-size:13px; font-weight:600; transition:all .15s; }
.pg-btn:hover:not(:disabled) { border-color:var(--navy); color:var(--navy); }
.pg-btn:disabled { opacity:.4; cursor:not-allowed; }
.pg-btn.pg-active { background:var(--navy); color:#fff; border-color:var(--navy); }

/* ─── Modal ──────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}
.modal-card {
    background: #fff;
    border-radius: 12px;
    width: 100%; margin: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    display: flex; flex-direction: column;
    max-height: 90vh; overflow: hidden;
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--grey-200);
    font-weight: 700; font-size: 15px; color: var(--navy);
}
.modal-close-btn {
    background: none; border: none; font-size: 22px;
    cursor: pointer; color: var(--grey-500); line-height: 1;
    padding: 0 4px;
}
.modal-close-btn:hover { color: var(--navy); }
.modal-body  { padding: 20px; overflow-y: auto; }
.modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--grey-200);
}

/* ─── Form controls in modals ───────────────────── */
.form-label {
    display: block;
    font-size: 11px; font-weight: 700; letter-spacing: .05em;
    color: var(--grey-500); margin-bottom: 5px;
    text-transform: uppercase;
}
.form-input {
    width: 100%; box-sizing: border-box;
    padding: 10px 12px;
    border: 1.5px solid var(--grey-200); border-radius: 8px;
    font-size: 14px; color: var(--navy);
    background: #fff; outline: none;
    transition: border-color .15s;
}
.form-input:focus { border-color: var(--navy); }
.toggle-label {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--navy); cursor: pointer;
}

/* ─── Table action buttons ───────────────────────── */
.td-actions { white-space: nowrap; text-align: right; }
.btn-icon-sm {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 6px;
    border: 1.5px solid var(--grey-200); background: #fff;
    cursor: pointer; color: var(--navy);
    transition: background .15s, border-color .15s;
}
.btn-icon-sm:hover { background: var(--grey-100); border-color: var(--grey-300); }
.btn-del:hover { color: var(--red); border-color: var(--red); }
.btn-icon-muted { color: var(--grey-400); }

/* ─── Badge colours ──────────────────────────────── */
.badge-grey { background: var(--grey-200); color: var(--grey-600); }

/* ─── Card table wrap ────────────────────────────── */
.card-table-wrap {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--grey-200);
    overflow: hidden;
    margin-top: 4px;
}

.recommendation-list {
    display: grid;
    gap: 8px;
}

.recommendation-card {
    width: 100%;
    text-align: left;
    border: 1px solid var(--grey-200);
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
}

.recommendation-card:hover {
    border-color: var(--navy);
    background: #f8fafc;
}

.recommendation-top,
.recommendation-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.recommendation-meta {
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 12px;
    color: var(--grey-600);
}
