/* ==========================================================================
   WUG shared graph styles (PHP 8.x / Highcharts 2.1.6)
   Purpose:
   - Keep daily/monthly/year graphs visually consistent
   - Minimal overrides on top of jquery-ui-1.8.2.custom.css
   ========================================================================== */

/* Base page */
html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;
  overflow: hidden;
  font: 12px/1.3 Arial, sans-serif;
  height: 100%;
}

/* Outer wrappers */
.wug-wrap {
  width: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.wug-body {
  padding: 8px 10px;
  background: #fff;
}

/* Chart shell */
.wug-chart-shell {
  background: #000;
  border-radius: 12px;
  padding: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Highcharts render target */
#container {
  width: 100%;
  height: 420px;
  min-height: 420px;
  margin: 0 auto;
  background: transparent;
}

/* Picker wrapper */
.wug-picker-wrap {
  max-width: 220px;
  margin: 12px auto 0;
  padding: 10px 0 0;
  background: #fff;
  text-align: center;
  box-sizing: border-box;
  border: 0;
  box-shadow: none;
}

/* Label above picker */
.wug-picker-label {
  font-size: 14px;
  font-weight: bold;
  color: #000;
  text-align: center;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

/* Center the inline datepicker box */
#datepicker {
  display: table;
  margin: 0 auto;
}

/* Month/Year mode only: hide day grid and button pane */
.wug-month .ui-datepicker-calendar {
  display: none !important;
}

.wug-month .ui-datepicker .ui-datepicker-buttonpane {
  display: none !important;
}

/* Datepicker font */
.ui-datepicker,
.ui-datepicker select,
.ui-datepicker table {
  font-size: 11px !important;
  font-family: Arial, sans-serif !important;
}

/* Add the missing thin line under the grey header area */
#datepicker .ui-datepicker-header {
  border-bottom: 1px solid #666 !important;
  box-sizing: border-box !important;
}

/* Ensure nothing clips the bottom edge */
#datepicker,
#datepicker .ui-datepicker {
  overflow: visible !important;
}

/* Day-graphs picker header alignment */
body.wug-day .wug-picker-wrap {
  text-align: center;
}

body.wug-day .wug-picker-wrap > b {
  display: block;
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
  margin: 0 0 6px 0;
  padding: 0;
}

body.wug-day .wug-picker-wrap #datepicker {
  margin: 0 auto;
  display: inline-block;
}

/* Day-picker title for pages using .wug-picker-wrap */
.wug-picker-wrap > b {
  display: block;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

/* Day graphs: "Valitse päivä" centered and aligned with others */
.wug-wrap .selectDate {
  text-align: center;
  margin-top: 8px;
}

.wug-wrap .selectDate > b {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  margin: 23px 0 8px 0;
}

.wug-wrap .selectDate #datepicker {
  display: inline-block;
  margin: 0 auto;
}

.wug-wrap .selectDate br {
  display: none;
}
