/* CEMR application styles: grid colour aliases (--cemr-grid-*) used by cemr-app-global.css, and
   the Pharmacy grid card.
   Moved from cemr-grid-standard.css.
   Bootstrap 5.3 theme switch: Syncfusion controls (.e-*) are styled only by the
   Syncfusion theme and theme-manager.js. Do not add .e-* rules here. */

/* ============================================================
   CEMR GRID STANDARD
   The one place that sets how every Syncfusion SfGrid looks.
   Load this after all other application stylesheets.
   Colours come from the shared theme tokens, so light mode, dark
   mode and any chosen theme colour all work. Do not restyle grids
   in page <style> blocks; change this file instead.
   ============================================================ */

:root {
    --cemr-grid-bg: var(--md-sys-color-surface, #ffffff);
    --cemr-grid-header-bg: var(--md-sys-color-surface-container-low, #f7f7fb);
    --cemr-grid-hover: var(--md-sys-color-surface-container, #f3f4f5);
    --cemr-grid-selected: var(--md-sys-color-primary-container);
    --cemr-grid-selected-text: var(--md-sys-color-on-primary-container);
    --cemr-grid-text: var(--md-sys-color-on-surface, #1c1d1f);
    --cemr-grid-muted: var(--md-sys-color-on-surface-variant, #48494e);
    --cemr-grid-border: var(--md-sys-color-outline-variant, #e0e1e4);
    --cemr-grid-primary: var(--md-sys-color-primary, #00696b);
    --cemr-grid-on-primary: var(--md-sys-color-on-primary, #ffffff);
    --cemr-grid-radius: 0px;
}

/* Pharmacy cards are the frame for their full-height grids. */

html.cemr-theme .pharmacy-grid-card {
    border-color: var(--cemr-ui-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
