/* 
    Document   : jevcustom
    Created on : 22-Apr-2013, 14:12:51
    Author     : Tony Partridge - GWE Systems Ltd
    Description: To allow customisation of CSS Strings where they can never be lost.
    Purpose of the stylesheet follows.
*/

/* ========================================================================
   JEVENTS OVERRIDES - REFINED TRADITIONALIST PALETTE
   ======================================================================== */

/* CSS Variables for JEvents Scope */
:root {
  --ems-blue: #1E3A8A;
  --ems-navy: #0A192F;
  --ems-gold: #F59E0B;
  --ems-red: #E11D48;
  --ems-gray: #F3F4F6;
  --ems-white: #FFFFFF;
}

/* --- Calendar Navigation & View Headers --- */
.moredays_link,
.jev_pagination,
.month_navigation,
.event_navigation {
  background-color: var(--ems-white) !important;
  border-color: var(--ems-blue) !important;
}

/* Month/Year title headers in calendar views */
.jev_header, 
.jev_toprow,
#jev_mainbody table.maintable th {
  background-color: var(--ems-blue) !important;
  color: var(--ems-white) !important;
}

/* Links inside JEvents views */
#jev_mainbody a {
  color: var(--ems-blue);
  font-weight: 600;
}

#jev_mainbody a:hover {
  color: var(--ems-red);
}

/* --- Calendar Grid & Day Headers --- */
/* Current/Today highlight in calendar grid */
#jev_mainbody td.today,
#jev_mainbody td.cal_today {
  background-color: #FEF3C7 !important; /* Soft gold tint for current day */
  border: 2px solid var(--ems-gold) !important;
}

/* Event Titles in Month/Week Grid Views */
.event_title a,
a.event_title {
  color: var(--ems-navy) !important;
}

.event_title a:hover {
  color: var(--ems-blue) !important;
}

/* --- Buttons & Filters --- */
/* Search & Filter Buttons */
#jev_mainbody .btn-primary,
#jev_mainbody input[type="submit"],
#jev_mainbody button[type="submit"] {
  background-color: var(--ems-gold) !important;
  border-color: var(--ems-gold) !important;
  color: #1E1B4B !important;
  font-weight: bold;
}

#jev_mainbody .btn-primary:hover,
#jev_mainbody input[type="submit"]:hover,
#jev_mainbody button[type="submit"]:hover {
  background-color: #D97706 !important;
  border-color: #D97706 !important;
  color: var(--ems-white) !important;
}

/* Urgent/Important Event Badges or Categories */
.jev_event_urgent,
.jev_legend_urgent {
  background-color: var(--ems-red) !important;
  color: var(--ems-white) !important;
}

/* Event Detail Box Container */
.jev_evdetails,
.jev_details_page {
  background-color: var(--ems-white);
  border-left: 4px solid var(--ems-blue);
  padding: 15px;
}

/* ========================================================================
   JEVENTS DEFAULT RED OVERRIDES
   ======================================================================== */

/* Fix 1: Next / Previous Month Backgrounds (Out-of-Month Days) */
#jev_mainbody td.cal_dayoutofmonth,
#jev_mainbody td.cal_dayoutofmonth_bg,
.cal_dayoutofmonth {
  background-color: var(--ems-gray) !important; /* Soft warm gray instead of default red/pink */
  color: #9CA3AF !important;                     /* Subtle gray text for non-current month dates */
}

/* Fix 2: Current View Selection / Active View Tabs (Month, Week, Day) */
#jev_mainbody .nav-tabs > li.active > a,
#jev_mainbody .nav-pills > li.active > a,
#jev_mainbody .jev_viewnav .active a,
#jev_mainbody ul.jev_viewnav li.active {
  background-color: var(--ems-blue) !important; /* Cobalt Blue active tab */
  border-color: var(--ems-blue) !important;
  color: var(--ems-white) !important;
}

/* Fix 3: Prev / Next Navigation Arrows & Header Links */
#jev_mainbody .jev_header a,
#jev_mainbody .month_navigation a,
#jev_mainbody .jev_next a,
#jev_mainbody .jev_prev a {
  color: var(--ems-blue) !important;
  text-decoration: none;
}

#jev_mainbody .jev_header a:hover,
#jev_mainbody .month_navigation a:hover {
  color: var(--ems-red) !important; /* Crimson hover accent */
}