/* ================================================================
   MedHub MAR - Medication Administration Record Styles
   ================================================================ */

/* ── Page / search bar ─────────────────────────────────────────── */
.icare-mar-page { background: #F0F4F8; min-height: 100vh; }
.icare-mar-search-bar {
    background: #0B2D4E; padding: 12px 18px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.icare-mar-brand { font-size: 16px; font-weight: 800; color: #fff; white-space: nowrap; }
.icare-mar-brand span { color: #4FC3F7; }
.icare-mar-search-wrap { flex: 1; position: relative; min-width: 200px; }
.icare-mar-search-input {
    width: 100%; padding: 9px 14px; border: none; border-radius: 8px;
    font-size: 14px; font-family: inherit; outline: none;
}
.icare-mar-pt-results {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
    background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15);
    display: none; max-height: 240px; overflow-y: auto;
}
.mar-pt-result {
    padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #F3F4F6;
    font-size: 13px; font-weight: 600; color: #1A1523;
    display: flex; justify-content: space-between; align-items: center;
}
.mar-pt-result span { font-size: 11px; color: #9CA3AF; font-weight: 400; }
.mar-pt-result:hover { background: #EFF6FF; }
.icare-mar-date-input {
    border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1);
    color: #fff; border-radius: 8px; padding: 7px 12px; font-size: 13px;
    font-family: inherit; outline: none;
}

/* ── Empty state / loading ─────────────────────────────────────── */
.mar-empty { text-align: center; padding: 48px 24px; color: #9CA3AF; }
.mar-empty div { font-size: 48px; margin-bottom: 12px; }
.mar-empty p   { font-size: 13px; }
.mar-loading   { text-align: center; padding: 32px; color: #9CA3AF; font-size: 13px; }

/* ── Patient header ────────────────────────────────────────────── */
.mar-pt-header {
    background: linear-gradient(135deg, #0B2D4E, #1D4E8F);
    padding: 12px 18px; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.mar-pt-name { font-size: 18px; font-weight: 800; color: #fff; }
.mar-pt-meta { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }
.mar-allergy-badge { border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 700; }
.mar-allergy-safe  { background: #ECFDF5; color: #059669; }
.mar-allergy-alert { background: #FEF2F2; color: #DC2626; }

/* ── Stats ─────────────────────────────────────────────────────── */
.mar-stats-row { display: flex; gap: 8px; padding: 12px 18px; flex-wrap: wrap; background: #fff; border-bottom: 1px solid #E5E7EB; }
.mar-stat { flex: 1; min-width: 80px; text-align: center; padding: 8px 10px; border-radius: 10px; background: #F8FAFC; }
.mar-stat-n { font-size: 20px; font-weight: 800; color: #0B2D4E; }
.mar-stat-l { font-size: 10px; color: #9CA3AF; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.mar-stat-given   .mar-stat-n { color: #059669; }
.mar-stat-missed  .mar-stat-n { color: #DC2626; }
.mar-stat-pending .mar-stat-n { color: #D97706; }
.mar-stat-held    .mar-stat-n { color: #7C3AED; }

/* ── Toolbar ───────────────────────────────────────────────────── */
.mar-toolbar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 18px; background: #fff; border-bottom: 1px solid #E5E7EB;
}
.mar-shift-tabs { display: flex; gap: 4px; }
.mar-shift-btn {
    background: #F1F5F9; border: 1.5px solid #E5E7EB;
    border-radius: 20px; padding: 5px 12px; font-size: 12px;
    font-weight: 600; color: #374151; cursor: pointer;
}
.mar-shift-btn.active { background: #0B2D4E; color: #fff; border-color: #0B2D4E; }
.mar-date-input {
    border: 1.5px solid #E5E7EB; border-radius: 8px; padding: 6px 10px;
    font-size: 13px; font-family: inherit; outline: none;
}
.mar-import-btn {
    background: #EFF6FF; color: #1D4ED8; border: 1.5px solid #BFDBFE;
    border-radius: 8px; padding: 6px 14px; font-size: 12px;
    font-weight: 700; cursor: pointer; margin-left: auto;
}
.mar-import-btn:hover { background: #DBEAFE; }
.mar-add-btn {
    background: #0B2D4E; color: #fff; border: none;
    border-radius: 8px; padding: 6px 14px; font-size: 12px;
    font-weight: 700; cursor: pointer;
}

/* ── Legend ────────────────────────────────────────────────────── */
.mar-legend { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 18px; background: #F8FAFC; border-bottom: 1px solid #E5E7EB; }
.mar-li { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #374151; }
.mar-ld { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.mar-ld.mar-given   { background: #ECFDF5; border: 1.5px solid #6EE7B7; }
.mar-ld.mar-late    { background: #FFFBEB; border: 1.5px solid #FDE68A; }
.mar-ld.mar-missed  { background: #FEF2F2; border: 1.5px solid #FCA5A5; }
.mar-ld.mar-held    { background: #F5F3FF; border: 1.5px solid #DDD6FE; }
.mar-ld.mar-pending { background: #F8FAFC; border: 1.5px dashed #D1D5DB; }

/* ── MAR Grid table ────────────────────────────────────────────── */
.mar-table-wrap { overflow-x: auto; padding: 14px 18px 0; }
.mar-table { border-collapse: collapse; width: 100%; min-width: 700px; }
.mar-drug-th {
    background: #0B2D4E; color: #fff; text-align: left;
    padding: 8px 14px; font-size: 11px; min-width: 190px;
    border-radius: 8px 0 0 0;
}
.mar-time-th {
    background: #0B2D4E; color: rgba(255,255,255,.8);
    text-align: center; padding: 8px 4px; font-size: 11px;
    font-weight: 700; min-width: 56px;
}
.mar-note-th {
    background: #0B2D4E; color: rgba(255,255,255,.8);
    text-align: left; padding: 8px 10px; font-size: 11px;
    min-width: 110px; border-radius: 0 8px 0 0;
}

/* Section rows */
.mar-sec-row td {
    background: #EFF6FF; color: #1D4ED8; font-size: 10px;
    font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
    padding: 5px 14px; border-top: 2px solid #BFDBFE;
}

/* Drug rows */
.mar-drug-row { border-bottom: 1px solid #F3F4F6; }
.mar-drug-row:hover { background: #FAFBFF; }
.mar-drug-row.mar-row-held { background: #F9F7FF; }
.mar-drug-cell { padding: 10px 14px; vertical-align: top; }
.mar-dn { font-size: 13px; font-weight: 700; color: #1A1523; }
.mar-dd { font-size: 11px; color: #9CA3AF; margin-top: 2px; }
.mar-dfreq { font-size: 10px; color: #9CA3AF; }
.mar-held-tag {
    display: inline-block; background: #F5F3FF; color: #7C3AED;
    font-size: 9px; font-weight: 700; padding: 1px 6px;
    border-radius: 8px; margin-left: 4px;
}
.mar-dbtns { display: flex; gap: 4px; margin-top: 5px; }
.mar-daction {
    background: #F1F5F9; border: 1px solid #E5E7EB; border-radius: 6px;
    padding: 2px 8px; font-size: 10px; color: #374151;
    cursor: pointer; font-weight: 600;
}
.mar-daction:hover { background: #E0E7FF; }
.mar-daction-del { color: #DC2626; }
.mar-daction-del:hover { background: #FEF2F2; }

/* Cells */
.mar-cell { text-align: center; padding: 5px 3px; border: 1px solid #F3F4F6; vertical-align: middle; }
.mar-pill {
    width: 38px; height: 38px; border-radius: 8px; display: flex;
    align-items: center; justify-content: center; font-size: 14px;
    margin: 0 auto; cursor: pointer; transition: transform .1s;
}
.mar-pill:hover:not(.mar-pill-na) { transform: scale(1.1); }
.mar-pill-na { cursor: default !important; }
.mar-given   { background: #ECFDF5; border: 1.5px solid #6EE7B7; }
.mar-late    { background: #FFFBEB; border: 1.5px solid #FDE68A; }
.mar-missed  { background: #FEF2F2; border: 1.5px solid #FCA5A5; }
.mar-held    { background: #F5F3FF; border: 1.5px solid #DDD6FE; }
.mar-pending { background: #F8FAFC; border: 1.5px dashed #D1D5DB; }
.mar-na      { background: #F3F4F6; border: 1px solid #E5E7EB; opacity: .3; }
.mar-pill-time { font-size: 8px; color: #9CA3AF; text-align: center; margin-top: 2px; }
.mar-pill-by   { font-size: 8px; color: #6B7280; text-align: center; }
.mar-note-cell { font-size: 10px; color: #6B7280; padding: 0 10px; vertical-align: middle; line-height: 1.4; }

/* ── PRN section ───────────────────────────────────────────────── */
.mar-prn-section { background: #fff; border-radius: 14px; margin: 16px 18px 0; box-shadow: 0 2px 10px rgba(0,0,0,.07); overflow: hidden; }
.mar-prn-head { background: #FFF7ED; padding: 10px 14px; font-size: 12px; font-weight: 800; color: #92400E; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid #FDE68A; }
.mar-prn-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #F9FAFB; flex-wrap: wrap; }
.mar-prn-row:last-child { border: none; }
.mar-prn-drug { flex: 1; min-width: 130px; }
.mar-prn-count { font-size: 12px; color: #374151; }
.mar-prn-count b { font-weight: 700; color: #0B2D4E; }
.mar-prn-give-btn {
    background: #059669; color: #fff; border: none; border-radius: 8px;
    padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
    white-space: nowrap;
}
.mar-prn-give-btn:disabled { opacity: .5; cursor: default; }

/* ── Fluid section ─────────────────────────────────────────────── */
.mar-fluid-section { background: #fff; border-radius: 14px; margin: 14px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.07); overflow: hidden; }
.mar-fluid-head { background: #EFF6FF; padding: 10px 14px; font-size: 12px; font-weight: 800; color: #1D4ED8; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid #BFDBFE; }
.mar-fluid-body { padding: 12px 14px; }

/* ── Add drug panel ────────────────────────────────────────────── */
.mar-add-panel { background: #F0F7FF; border: 1.5px solid #BFDBFE; border-radius: 12px; margin: 14px 18px; padding: 14px; }
.mar-add-title { font-size: 13px; font-weight: 800; color: #1D4ED8; margin-bottom: 12px; }
.mar-add-form { display: flex; flex-direction: column; gap: 10px; }
.mar-add-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mar-add-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 120px; }
.mar-add-field-wide { flex: 2; }
.mar-add-field label { font-size: 10px; font-weight: 700; color: #6B7280; text-transform: uppercase; letter-spacing: .5px; }
.mar-add-field input[type="text"],
.mar-add-field input[type="number"] {
    border: 1.5px solid #BFDBFE; border-radius: 8px; padding: 7px 10px;
    font-size: 14px; font-family: inherit; outline: none;
}
.mar-add-field input:focus { border-color: #1D72D8; }
.mar-add-actions { display: flex; gap: 8px; margin-top: 4px; }

/* ── Buttons ───────────────────────────────────────────────────── */
.mar-btn-primary {
    background: #0B2D4E; color: #fff; border: none;
    border-radius: 8px; padding: 8px 18px; font-size: 13px;
    font-weight: 700; cursor: pointer;
}
.mar-btn-sec {
    background: #fff; color: #374151; border: 1.5px solid #E5E7EB;
    border-radius: 8px; padding: 8px 16px; font-size: 13px;
    font-weight: 600; cursor: pointer;
}
.mar-btn-hold {
    background: #F5F3FF; color: #7C3AED; border: 1.5px solid #DDD6FE;
    border-radius: 8px; padding: 8px 14px; font-size: 12px;
    font-weight: 700; cursor: pointer; margin-left: auto;
}

/* ── Cell modal ────────────────────────────────────────────────── */
.mar-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.4);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.mar-modal-box {
    background: #fff; border-radius: 16px; padding: 20px 22px;
    max-width: 360px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.mar-modal-title { font-size: 16px; font-weight: 800; color: #0B2D4E; margin-bottom: 4px; }
.mar-modal-drug-info { font-size: 12px; color: #9CA3AF; margin-bottom: 12px; }
.mar-modal-existing { background: #F8FAFC; border-radius: 8px; padding: 8px 12px; font-size: 12px; color: #374151; margin-bottom: 12px; }
.mar-modal-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: #6B7280; margin-bottom: 7px; }
.mar-modal-status-btns { display: flex; gap: 8px; }
.mar-status-opt {
    flex: 1; padding: 10px; border: 2px solid #E5E7EB; border-radius: 10px;
    font-size: 13px; font-weight: 700; cursor: pointer; background: #fff;
    text-align: center; transition: all .12s;
}
.mar-status-opt.selected { border-color: #0B2D4E; background: #0B2D4E; color: #fff; }
.mar-status-opt.mar-given:not(.selected):hover  { border-color: #059669; background: #ECFDF5; }
.mar-status-opt.mar-missed:not(.selected):hover { border-color: #DC2626; background: #FEF2F2; }

/* ── MAR Inner Tabs ─────────────────────────────────────────────── */
.icare-mar-inner-tabs {
    background: #fff; border-bottom: 2px solid #E5E7EB;
    display: flex; padding: 0 18px; overflow-x: auto;
}
.icare-mar-itab {
    padding: 9px 16px; font-size: 12px; font-weight: 700; color: #9CA3AF;
    border: none; background: none; cursor: pointer; white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.icare-mar-itab.active { color: #0B2D4E; border-bottom-color: #0B2D4E; }

/* ── Medication Summary ─────────────────────────────────────────── */
.mar-sum-admit-note {
    background: #EFF6FF; border-radius: 10px; padding: 10px 14px;
    font-size: 12px; color: #1D4ED8; margin-bottom: 14px;
}
.mar-sum-totals {
    display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.mar-sum-total {
    flex: 1; min-width: 80px; background: #fff; border-radius: 10px;
    padding: 10px; text-align: center; box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.mar-sum-total-n { font-size: 22px; font-weight: 800; color: #0B2D4E; }
.mar-sum-total-n.g { color: #059669; }
.mar-sum-total-n.r { color: #DC2626; }
.mar-sum-total-n.p { color: #7C3AED; }
.mar-sum-total-l { font-size: 10px; color: #9CA3AF; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.mar-sum-section-hd {
    font-size: 10px; font-weight: 800; color: #9CA3AF; text-transform: uppercase;
    letter-spacing: .7px; margin: 14px 0 8px; padding-top: 4px;
}
.mar-sum-section-card {
    background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.07);
    margin-bottom: 10px; overflow: hidden;
}
.mar-sum-row {
    display: flex; gap: 0; border-bottom: 1px solid #F3F4F6; align-items: stretch;
    flex-wrap: nowrap;
}
.mar-sum-row:last-child { border: none; }
.mar-sum-drug { padding: 12px 14px; flex: 2; min-width: 150px; }
.mar-sum-name { font-size: 13px; font-weight: 700; color: #1A1523; }
.mar-sum-detail { font-size: 11px; color: #9CA3AF; margin-top: 2px; }
.mar-sum-col {
    padding: 10px 8px; flex: 1; text-align: center; border-left: 1px solid #F9FAFB;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-width: 60px;
}
.mar-sum-col-hd { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #9CA3AF; }
.mar-sum-n { font-size: 18px; font-weight: 800; color: #0B2D4E; }
.mar-sum-n-g { color: #059669; }
.mar-sum-n-r { color: #DC2626; }
.mar-sum-sub { font-size: 10px; color: #9CA3AF; }
/* Adherence */
.mar-adh-pct { font-size: 14px; font-weight: 800; }
.mar-adh-green { color: #059669; }
.mar-adh-amber { color: #D97706; }
.mar-adh-red   { color: #DC2626; }
.mar-adh-bar-wrap { width: 48px; height: 5px; background: #F3F4F6; border-radius: 4px; margin-top: 3px; }
.mar-adh-bar { height: 5px; border-radius: 4px; }
.mar-adh-bar.mar-adh-green { background: #059669; }
.mar-adh-bar.mar-adh-amber { background: #D97706; }
.mar-adh-bar.mar-adh-red   { background: #DC2626; }
/* Status badges */
.mar-sum-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.mar-sb-active  { background: #ECFDF5; color: #059669; }
.mar-sb-held    { background: #F5F3FF; color: #7C3AED; }
.mar-sb-stopped { background: #F3F4F6; color: #6B7280; }
/* Hold strip */
.mar-hold-strip {
    background: #F5F3FF; border-top: 1px solid #EDE9FE;
    padding: 8px 14px; display: flex; align-items: center; gap: 10px;
    font-size: 11px; flex-wrap: wrap;
}
.mar-hold-text { flex: 1; color: #374151; }
.mar-hold-text b { color: #7C3AED; font-weight: 700; }
.mar-hold-days-badge {
    background: #7C3AED; color: #fff; font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}
.mar-hold-log-btn {
    background: none; border: 1px solid #DDD6FE; border-radius: 6px;
    padding: 2px 8px; font-size: 10px; color: #7C3AED; cursor: pointer;
}
.mar-missed-note {
    background: #FFF5F5; border-top: 1px solid #FEE2E2;
    padding: 6px 14px; font-size: 11px; color: #DC2626; cursor: pointer;
}

/* ── Antibiotic Stewardship Card ────────────────────────────────── */
#icare-mar-abx-wrap { padding: 14px 18px; }
.mar-add-abx-btn {
    width: 100%; background: #DC2626; color: #fff; border: none;
    border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 700;
    cursor: pointer; margin-bottom: 14px; display: flex;
    align-items: center; justify-content: center; gap: 8px;
}
.mar-add-abx-btn:hover { background: #B91C1C; }
.mar-abx-section-hd {
    font-size: 10px; font-weight: 800; color: #9CA3AF;
    text-transform: uppercase; letter-spacing: .7px; margin: 4px 0 10px;
}
.mar-abx-card {
    border-radius: 14px; box-shadow: 0 2px 14px rgba(0,0,0,.09);
    margin-bottom: 16px; overflow: hidden; border-left: 4px solid;
}
.mar-abx-active  { border-left-color: #DC2626; }
.mar-abx-stopped { border-left-color: #9CA3AF; opacity: .85; }
.mar-abx-head {
    padding: 12px 14px; display: flex; justify-content: space-between;
    align-items: flex-start; gap: 8px; flex-wrap: wrap;
}
.mar-abx-active  .mar-abx-head { background: #FEF2F2; }
.mar-abx-stopped .mar-abx-head { background: #F3F4F6; }
.mar-abx-drug-name { font-size: 15px; font-weight: 800; }
.mar-abx-active  .mar-abx-drug-name { color: #991B1B; }
.mar-abx-stopped .mar-abx-drug-name { color: #6B7280; }
.mar-abx-drug-detail { font-size: 12px; color: #6B7280; margin-top: 2px; }
.mar-abx-stopped-tag { font-size: 11px; font-weight: 400; color: #9CA3AF; }
.mar-abx-dot-num { font-size: 18px; font-weight: 800; color: #DC2626; text-align: right; }
.mar-abx-stopped .mar-abx-dot-num { color: #9CA3AF; }
.mar-abx-dot-label { font-size: 10px; color: #9CA3AF; text-align: right; }
.mar-abx-status-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-top: 4px; display: inline-block; }
.mar-abs-active  { background: #FEF2F2; color: #DC2626; }
.mar-abs-stopped { background: #F3F4F6; color: #6B7280; }
/* Body */
.mar-abx-body { background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.mar-abx-row { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.mar-abx-row-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #9CA3AF; min-width: 90px; flex-shrink: 0; padding-top: 2px; }
.mar-abx-row-val { flex: 1; font-size: 13px; color: #374151; line-height: 1.55; }
/* IV-oral badges */
.mar-iv-oral-ok { background: #ECFDF5; color: #059669; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.mar-iv-oral-no { background: #FEF2F2; color: #DC2626; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
/* Timeline */
.mar-abx-timeline { display: flex; gap: 2px; overflow-x: auto; padding-bottom: 4px; }
.mar-tl-day { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 36px; }
.mar-tl-num  { font-size: 9px; color: #9CA3AF; font-weight: 600; }
.mar-tl-date { font-size: 8px; color: #D1D5DB; }
.mar-tl-dot  { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.mar-tl-given   { background: #ECFDF5; border: 2px solid #6EE7B7; color: #059669; }
.mar-tl-today   { background: #0B2D4E; border: 2px solid #0B2D4E; color: #fff; }
.mar-tl-stopped { background: #FEF2F2; border: 2px solid #FCA5A5; color: #DC2626; }
.mar-tl-planned { background: #F3F4F6; border: 2px dashed #D1D5DB; color: #9CA3AF; }
.mar-tl-legend  { font-size: 10px; color: #9CA3AF; margin-top: 5px; }
/* Actions */
.mar-abx-actions {
    background: #F9FAFB; border-top: 1px solid #F3F4F6;
    padding: 10px 14px; display: flex; gap: 8px; flex-wrap: wrap;
}
.mar-abx-btn { padding: 6px 14px; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; border: 1.5px solid; }
.mar-btn-review2 { background: #FFF7ED; color: #C2410C; border-color: #FDE68A; }
.mar-btn-change  { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.mar-btn-stop2   { background: #FEF2F2; color: #DC2626; border-color: #FCA5A5; }
.mar-abx-stopped-footer { background: #F3F4F6; border-top: 1px solid #E5E7EB; padding: 8px 14px; font-size: 11px; color: #6B7280; }
/* Culture cards */
.mar-cult-card {
    background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 10px;
    padding: 10px 12px; margin-bottom: 8px;
}
.mar-cult-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 7px; flex-wrap: wrap; gap: 5px; }
.mar-cult-specimen { font-size: 12px; font-weight: 700; color: #374151; }
.mar-cult-date { font-size: 10px; color: #9CA3AF; margin-top: 2px; }
.mar-cult-final    { font-size: 10px; font-weight: 700; background: #ECFDF5; color: #059669; padding: 2px 8px; border-radius: 10px; }
.mar-cult-pending  { font-size: 10px; font-weight: 700; background: #FFF7ED; color: #C2410C; padding: 2px 8px; border-radius: 10px; }
.mar-cult-nogrowth { font-size: 10px; font-weight: 700; background: #F1F5F9; color: #6B7280; padding: 2px 8px; border-radius: 10px; }
.mar-cult-org { font-size: 13px; font-weight: 700; color: #DC2626; margin-bottom: 6px; }
.mar-cult-sens { display: flex; gap: 8px; flex-wrap: wrap; }
.mar-sens-group { flex: 1; min-width: 110px; }
.mar-sens-lbl { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.mar-sl-s { color: #059669; }
.mar-sl-r { color: #DC2626; }
.mar-sl-i { color: #D97706; }
.mar-sens-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 7px; margin: 2px 2px 0 0; }
.mar-st-s { background: #ECFDF5; color: #065F46; }
.mar-st-r { background: #FEF2F2; color: #991B1B; }
.mar-st-i { background: #FFF7ED; color: #92400E; }
.mar-cult-notes { font-size: 11px; color: #6B7280; margin-top: 7px; font-style: italic; line-height: 1.5; }
.mar-cult-actions { display: flex; gap: 6px; margin-top: 8px; }
.mar-cult-edit-btn, .mar-cult-del-btn {
    background: none; border: 1px solid #E5E7EB; border-radius: 6px;
    padding: 2px 8px; font-size: 10px; color: #6B7280; cursor: pointer;
}
.mar-cult-del-btn:hover { border-color: #FCA5A5; color: #DC2626; }
.mar-add-cult-btn {
    background: #ECFDF5; color: #059669; border: 1.5px solid #6EE7B7;
    border-radius: 8px; padding: 6px 14px; font-size: 12px; font-weight: 700;
    cursor: pointer; margin-top: 6px; display: block; width: 100%;
}
/* Add ABX / culture forms */
.mar-abx-form {
    background: #FFF5F5; border: 1.5px solid #FCA5A5; border-radius: 12px;
    padding: 14px; margin-bottom: 16px;
}
.mar-form-title { font-size: 13px; font-weight: 800; color: #DC2626; margin-bottom: 12px; }
.mar-form-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.mar-form-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 120px; }
.mar-form-field.mar-ff-wide { flex: 2; min-width: 200px; }
.mar-form-field.mar-ff-full { flex: 100%; }
.mar-form-field label { font-size: 10px; font-weight: 700; color: #6B7280; text-transform: uppercase; letter-spacing: .5px; }
.mar-form-field input[type="text"],
.mar-form-field input[type="date"],
.mar-form-field select,
.mar-form-field textarea {
    border: 1.5px solid #FCA5A5; border-radius: 8px; padding: 7px 10px;
    font-size: 14px; font-family: inherit; outline: none;
    background: #fff;
}
.mar-form-field input:focus,
.mar-form-field select:focus,
.mar-form-field textarea:focus { border-color: #DC2626; }
.mar-form-actions { display: flex; gap: 8px; margin-top: 12px; }
