/* custom.css — AL-500 HMIS Dashboard */

/* Fix value box icon containment */
.small-box .icon-large {
  font-size: 60px;
  top: 5px;
  right: 10px;
  position: absolute;
  opacity: 0.15;
  overflow: hidden;
}

.small-box {
  overflow: hidden;
  position: relative;
}

.small-box .inner {
  padding: 10px;
}

.small-box h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 5px 0;
  white-space: nowrap;
}

.small-box p {
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Card styling */
.box.box-solid.box-primary > .box-header {
  background-color: #1B4965;
  border-color: #1B4965;
}

.box.box-solid.box-primary {
  border-color: #1B4965;
}

/* Content background */
.content-wrapper, .right-side {
  background-color: #f8f9fa;
}

/* Sidebar styling */
.skin-blue .main-sidebar {
  background-color: #1B4965;
}

.skin-blue .sidebar-menu > li.active > a {
  border-left-color: #62B6CB;
  background-color: rgba(255, 255, 255, 0.1);
}

.skin-blue .main-header .logo {
  background-color: #153B54;
  font-weight: 700;
}

.skin-blue .main-header .navbar {
  background-color: #1B4965;
}

/* Sidebar filter inputs */
.sidebar .form-group {
  padding: 0 15px;
  margin-bottom: 10px;
}

.sidebar label {
  color: #ccc;
  font-size: 0.8rem;
  font-weight: 600;
}

.sidebar hr {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 10px 15px;
}

/* Box header title full width for flex layout */
.box-header .box-title {
  width: 100%;
}

/* Plotly charts: transparent background, fill container, auto-resize */
.plotly .main-svg {
  background: transparent !important;
}

.plotly, .js-plotly-plot, .plot-container {
  width: 100% !important;
}

.js-plotly-plot .plotly {
  width: 100% !important;
  height: 100% !important;
}

/* Force boxes to respect their column width */
.box {
  width: 100%;
}

/* Plotly responsive on window resize */
.plotly-graph-div {
  width: 100% !important;
}

/* Data vintage footer in the sidebar. Muted on purpose — this is provenance,
   not a headline. Shown on every tab so a stale deploy is visible at a glance. */
.sidebar-vintage {
  padding: 4px 15px 18px;
  font-size: 11px;
  line-height: 1.5;
  color: #9bb3c4;
}
.sidebar-vintage hr {
  border-top: 1px solid #2a5470;
  margin: 6px 0 10px;
}
.sidebar-vintage strong { color: #cfe3ee; }

/* --- Text size (Jeri, 2026-11-25) ------------------------------------------
   About 10% smaller than the AdminLTE defaults, so on a laptop-size monitor
   the headings and value boxes leave more room for the charts. Bootstrap 3
   sets the html font size to 10px, so 1rem = 10px here. Defaults in the
   comments. Phone sizes below override the value boxes again. */
body { font-size: 13px; }                                   /* 14px */
.content-wrapper h3 { font-size: 21px; margin-top: 12px; }  /* 24px */
.content-wrapper h4 { font-size: 16px; }                    /* 18px */
.box-header .box-title { font-size: 16px; }                 /* 18px */
.nav-tabs > li > a,
.nav-tabs-custom > .nav-tabs > li > a { font-size: 13px; }  /* 14px */
.sidebar-menu > li > a { font-size: 13px; }                 /* 14px */
.main-header .logo { font-size: 18px; }                     /* 20px */
.small-box h3 { font-size: 2rem; }                          /* 2.2rem here */
.small-box p  { font-size: 1.2rem; }                        /* 1.3rem here */

/* --- Phones (< 768 px) ----------------------------------------------------
   The chart drag fix and legend move are in the ui.R head script; these are
   the parts CSS can do. */

/* Filter note: phones only. */
.mobile-filter-note { display: none; }

@media (max-width: 767px) {
  .mobile-filter-note {
    display: block;
    margin: 0 0 10px;
    padding: 8px 12px;
    background: #e8f1f6;
    border-left: 4px solid #62B6CB;
    font-size: 13px;
    color: #153B54;
  }
  .mobile-filter-note i { margin-right: 6px; }
  .mobile-filter-hint {
    display: block;
    font-size: 12px;
    color: #4a6b80;
  }

  /* Plotly toolbar: covers the chart on tap, little use on a phone. */
  .js-plotly-plot .modebar-container,
  .js-plotly-plot .modebar { display: none !important; }

  /* Sub-tab rows scroll sideways on one line instead of wrapping into a
     tall block (A Deeper Dive has 12). */
  .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .nav-tabs > li { float: none; flex: 0 0 auto; }
  .nav-tabs > li > a { white-space: nowrap; }

  /* Value boxes: let long numbers wrap and shrink a little. */
  .small-box h3 {
    white-space: normal;
    font-size: 1.8rem;
  }

  /* Less padding, more room for charts. */
  .content { padding: 10px 8px; }
}
