@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Nunito:wght@400;500;600;700&display=swap");
:root{--bmg-red:#c61010;--bmg-red-print:#b00f0b;--bmg-grey:#f7f7f7;--bmg-ink:#1c1f26;--bmg-ink-soft:#3a3f4a;--bmg-link:#a30d0a;}
body,.main-container,p,td,input,select,textarea,.form-control,label,.titlebox-content{font-family:"Nunito",-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;}
h1,h2,h3,h4,h5,h6,.titlebox>.titlebox-title,.card>.card-header,.page-title,#header h1,.rtname{font-family:"Montserrat",-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important;font-weight:700 !important;}
body,#body,.titlebox,.card,.card-body,.value,.label,p,td,li,dd,dt{color:var(--bmg-ink) !important;}
td,table.collection-as-table td,.results td,.text-muted,small{color:var(--bmg-ink-soft) !important;}
#rt-header-container,.navbar,#app-nav.toplevel,div#quickbar,#header{background:var(--bmg-red) !important;background-image:linear-gradient(180deg,#d4140f 0%,var(--bmg-red) 100%) !important;}
#rt-header-container,#rt-header-container *,#header,#header *,.navbar,.navbar *,#app-nav.toplevel,#app-nav.toplevel *,div#quickbar,div#quickbar *{color:#ffffff !important;}
#rt-header-container a:hover,.navbar a:hover,#header a:hover,#app-nav.toplevel a:hover{color:var(--bmg-grey) !important;}
.rtname{color:#ffffff !important;}
#body a,.titlebox a,.card-body a,td a,.results a,.main-container a{color:var(--bmg-link) !important;text-decoration:none;}
#body a:hover,.titlebox a:hover,td a:hover,.main-container a:hover{color:var(--bmg-red) !important;text-decoration:underline;}
.btn-primary,button.btn-primary,input.btn-primary,.button-primary{background-color:var(--bmg-red) !important;border-color:var(--bmg-red-print) !important;color:#ffffff !important;}
.btn-primary:hover{background-color:var(--bmg-red-print) !important;}
.titlebox>.titlebox-title,.card>.card-header{border-top:3px solid var(--bmg-red) !important;color:var(--bmg-ink) !important;background-color:#fff !important;}
body.rt-login-page #body,.login-body{border-top:4px solid var(--bmg-red);}
#logo img{max-height:40px;width:auto;}
body{background-color:var(--bmg-grey);}
#body,.titlebox,.card{background-color:#ffffff !important;}
/* page title sits inside red header — force white */
#header h1,#header .page-title,#rt-header-container h1{color:#ffffff !important;}
/* dashboard portlet headers: brand red instead of elevator blue */
.item.ui-sortable-handle,.widget>.titlebox-title,.titlebox-title.ui-sortable-handle{background-color:var(--bmg-red) !important;background-image:none !important;color:#ffffff !important;}
.item.ui-sortable-handle a,.item.ui-sortable-handle a:hover,.widget>.titlebox-title a{color:#ffffff !important;}
/* portlet-header links (e.g. close X) must beat #body a specificity */
#body .item.ui-sortable-handle a,#body .widget>.titlebox-title a,body .item.ui-sortable-handle a{color:#ffffff !important;}
