/* RIMS corporate identity (CI guide 2026): theme tokens, typeface and the background watermark.
   The :root block below is the single source of the site's colours: custom.css, rims-skin.css, the masters
   and page styles (e.g. satbrDashboard.aspx) all use var(--rims-*). Change a colour here, not in those files.
   The one value outside CSS is the DevExpress theme baseColor in Web.config (<devExpress><themes>): keep it
   equal to --rims-primary. Load after custom.css and rims-skin.css. Layout is untouched. */

:root {
    /* ---- RIMS CI palette (CI guide 2026). The only place brand hex values live. ---- */
    --rims-navy: #1E2A56;          /* Dark blue */
    --rims-aqua: #0CC0DF;          /* Aqua blue */
    --rims-vivid-cyan: #01CBBD;    /* Vivid cyan */

    /* ---- Theme roles. Everything else (custom.css, rims-skin.css, masters, pages) uses these. ---- */
    --rims-primary: var(--rims-navy);          /* structure: header, buttons, headings, links, main chart series */
    --rims-primary-dark: #151D3D;              /* pressed, user strip, secondary chart series */
    --rims-primary-hover: #2C3C73;
    --rims-secondary: var(--rims-aqua);        /* active/focus accents, second chart series, hover borders */
    --rims-secondary-soft: #A8E6F2;            /* light companion series (e.g. "partial") */
    --rims-accent: var(--rims-vivid-cyan);     /* positive / progress highlights */
    --rims-tint: #E7F8FC;                      /* light surfaces: icon tiles, chips, link pills */
    --rims-tint-border: #C9EEF6;
    --rims-focus-ring: rgba(12, 192, 223, .25);
    --rims-border: #D9DEE8;
    --rims-input-border: #B8C1D3;
    --rims-muted: #5B6478;
    --rims-on-primary-soft: #DCE3F2;           /* secondary text on the primary colour */
    --rims-surface: #FFFFFF;                   /* cards and tiles on a tinted panel */
    --rims-surface-alt: #F6F8FB;               /* quiet panels: popup sections, read-only strips */
    /* Status: "still to do", "differs", "done" (recon popups, status chips) */
    --rims-warning: #8A5A00;
    --rims-warning-soft: #FFF4DC;
    --rims-warning-border: #F0D08A;
    --rims-danger: #B42318;
    --rims-danger-soft: #FDECEA;
    --rims-success: #1F7A4D;
    --rims-success-soft: #E6F5EC;
    --rims-photo-overlay: rgba(30, 42, 86, .86); /* primary at 86% over the login photo */
    --rims-font: Aptos, "Segoe UI Variable Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Bootstrap 4 variables used by DevExpress Bootstrap controls */
    --primary: var(--rims-primary);
    --blue: var(--rims-primary);
    --info: var(--rims-secondary);
    --font-family-sans-serif: var(--rims-font);
}

/* Typeface: Aptos (falls back to Segoe UI where Aptos is not installed) */
body, button, input, select, textarea, .tooltip, .popover, .dropdown-menu,
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.dxbs-control, .dx-theme-material-typography, [class*="dxm"], [class*="dxgv"], [class*="dxe"] {
    font-family: var(--rims-font);
}

/* Background watermark: the CI triangles, fixed bottom right behind the page content.
   On body as well as .page (which is opaque) so it also fills the screen below short pages. */
body.animsition:not(.layout-full), .page {
    background-image: url(/images/brand/rims-watermark.svg);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-attachment: fixed;
    background-size: min(760px, 70vw) auto;
}

/* Header bar (Masterpage.master): CI navy with an aqua rule.
   background-image: material/base/assets/css/site.css paints a gradient over the colour. */
.dashboard-header {
    background-color: var(--rims-primary) !important;
    background-image: none !important;
    box-shadow: inset 0 -3px 0 var(--rims-secondary);
}
.user-info { background-color: var(--rims-primary-dark) !important; }

/* Horizontal menu: active item marked with the aqua accent.
   "body" prefix: Masterpage.master's own <style> block loads after this file. */
body .horizontal-menu .dxm-item.dxm-selected {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 0 !important;
    box-shadow: inset 0 -3px 0 var(--rims-secondary) !important;
}
body .horizontal-menu .dxm-item:focus { outline-color: var(--rims-secondary) !important; }
.horizontal-menu .dxm-dropDown { border-color: var(--rims-primary) !important; }
.horizontal-menu .dxm-dropDown .dxm-item:hover,
.horizontal-menu .dxm-dropDown .dxm-item:focus {
    background: var(--rims-primary) !important;
    outline-color: var(--rims-secondary) !important;
}

/* Solid buttons rendered as links (DevExpress Bootstrap command buttons and BootstrapButtons with btn-link, e.g. the
   edit/download icons in grids): .btn-link's link colour would put a navy icon on a navy button, so keep them white. */
.btn.btn-primary.btn-link, .btn.btn-danger.btn-link, .btn.btn-success.btn-link, .btn.btn-info.btn-link, .btn.btn-warning.btn-link, .btn.btn-dark.btn-link, .btn.btn-secondary.btn-link,
.btn.btn-primary.btn-link:hover, .btn.btn-danger.btn-link:hover, .btn.btn-success.btn-link:hover, .btn.btn-info.btn-link:hover, .btn.btn-warning.btn-link:hover, .btn.btn-dark.btn-link:hover, .btn.btn-secondary.btn-link:hover,
.btn.btn-primary.btn-link:focus, .btn.btn-danger.btn-link:focus, .btn.btn-success.btn-link:focus, .btn.btn-info.btn-link:focus, .btn.btn-warning.btn-link:focus, .btn.btn-dark.btn-link:focus, .btn.btn-secondary.btn-link:focus {
    color: #fff;
}

/* Solid buttons written as plain links inside a DevExpress grid (asp:LinkButton with btn-primary, e.g. the cashup
   document download icons): the grid theme colours every link with the base colour (.dxgvControl_Material a), which
   put a navy icon on a navy button. */
[class*="dxgvControl"] a.btn.btn-primary, [class*="dxgvControl"] a.btn.btn-danger, [class*="dxgvControl"] a.btn.btn-success, [class*="dxgvControl"] a.btn.btn-info, [class*="dxgvControl"] a.btn.btn-warning, [class*="dxgvControl"] a.btn.btn-dark, [class*="dxgvControl"] a.btn.btn-secondary,
[class*="dxgvControl"] a.btn.btn-primary:hover, [class*="dxgvControl"] a.btn.btn-danger:hover, [class*="dxgvControl"] a.btn.btn-success:hover, [class*="dxgvControl"] a.btn.btn-info:hover, [class*="dxgvControl"] a.btn.btn-warning:hover, [class*="dxgvControl"] a.btn.btn-dark:hover, [class*="dxgvControl"] a.btn.btn-secondary:hover,
[class*="dxgvControl"] a.btn.btn-primary:focus, [class*="dxgvControl"] a.btn.btn-danger:focus, [class*="dxgvControl"] a.btn.btn-success:focus, [class*="dxgvControl"] a.btn.btn-info:focus, [class*="dxgvControl"] a.btn.btn-warning:focus, [class*="dxgvControl"] a.btn.btn-dark:focus, [class*="dxgvControl"] a.btn.btn-secondary:focus {
    color: #fff;
}

/* Focus ring: aqua, as in the CI accent use */
.form-control:focus { border-color: var(--rims-secondary); box-shadow: 0 0 0 3px var(--rims-focus-ring); }

/* Blue masters: the logo sits on the navy navbar, so per the CI it gets a white container */
.site-navbar .navbar-brand-logo, .site-navbar .navbar-brand-logo-small {
    background: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Pre-login pages that show the logo above the card (request/change password etc.): white container on navy */
img.brand-img[src*="/images/brand/"] {
    height: 76px;
    width: auto;
    background: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Pre-login pages (PreLogin.master): CI triangles over the photo */
.rims-login-shapes, .rims-login-corner {
    position: fixed;
    right: 0;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
}
.rims-login-shapes {
    bottom: 0;
    width: 62vw;
    max-width: 900px;
    height: 100vh;
    background-image: url(/images/brand/rims-login-shapes.svg);
    background-position: right bottom;
    background-size: contain;
}
.rims-login-corner {
    top: 0;
    width: 140px;
    height: 140px;
    background-image: url(/images/brand/rims-corner.svg);
    background-size: 140px 140px;
}
.rims-login-form { position: relative; z-index: 1; }

/* Page title */
.page-title, #title h2 { color: var(--rims-primary); }
