﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Co-brand nav: Weatherzone logo (left) | divider | Light Application mark + wordmark */
.wz-pill {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e3e7eb;
  border-radius: 9px;
  padding: 9px 16px;
}
.wz-pill img {
  height: 26px;
}
.divider {
  width: 1px;
  align-self: stretch;
  margin: 4px 14px 4px 4px;
  background: #2f5f79;
}
.cobrand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
.cobrand .eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: .02em;
  color: #9fb6c3;
  line-height: 1.1;
}
.cobrand .wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .13em;
  color: #fff;
  line-height: 1.15;
}

/* Navy co-brand header (Option B). The nav carries data-bs-theme="dark" so Bootstrap gives the
   toggler, collapse and default link tones their light treatment; these vars set the exact nav-link
   tone and the WZ-navy band, which hold in both the light and dark site themes. */
.navbar-cobrand {
  --bs-navbar-color: #c4d6e0;
  --bs-navbar-hover-color: #fff;
  --bs-navbar-active-color: #fff;
  background-color: #00395A;
  border-bottom: 1px solid #002a42;
}
/* The band deepens in the dark theme (Option B: #00395A light, #002334 dark). */
[data-bs-theme="dark"] .navbar-cobrand {
  background-color: #002334;
  border-bottom-color: #001a27;
}
/* Open section: bold white text + a 2px orange underline drawn inside the link so it adds no height. */
.navbar-cobrand .nav-link.active {
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #F59731;
}

/* Footer credit: light grey, right-aligned on the desktop single row. */
.footer-brand {
  font-size: .8rem;
  color: #adb5bd;
  margin-left: auto;
}

/* Brand palette: Option B header + Option C navy action buttons. Orange is an accent only (nav
   active underline, the LA mark) and is never a button fill. Links use the mockup's steel-blue
   #2b7da8, which carries on both themes. */
a {
  color: #2b7da8;
}

/* Retint Bootstrap's primary family from the stock blue to the brand navy, so every component that
   derives from it follows the theme. The vendored Bootstrap hardcodes #0d6efd in several components
   (form-check, pagination, focus rings, dropdown/list-group active) rather than reading these vars,
   so those carry explicit overrides below. Navy is the brand primary in both light and dark. */
:root {
  --bs-primary: #00395A;
  --bs-primary-rgb: 0, 57, 90;
  --bs-link-color: #2b7da8;
  --bs-link-color-rgb: 43, 125, 168;
  --bs-link-hover-color: #1f5c7c;
  --bs-focus-ring-color: rgba(0, 57, 90, 0.25);
}

/* Steel focus ring on form controls, checkboxes, radios and switches instead of the blue glow. */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #75ADB7;
  box-shadow: 0 0 0 0.25rem rgba(117, 173, 183, 0.3);
}
.form-check-input:checked {
  background-color: #75ADB7;
  border-color: #75ADB7;
}
/* Native checkboxes/radios (e.g. the user site-access list, the map style toggle) don't read the
   .form-check-input rule, so set their accent directly to the same steel. */
input[type="checkbox"],
input[type="radio"] {
  accent-color: #75ADB7;
}

/* Component active-state tokens that hardcode the blue. */
.pagination {
  --bs-pagination-active-bg: #00395A;
  --bs-pagination-active-border-color: #00395A;
}
.dropdown-menu {
  --bs-dropdown-link-active-bg: #00395A;
}
.list-group {
  --bs-list-group-active-bg: #00395A;
  --bs-list-group-active-border-color: #00395A;
}
.progress {
  --bs-progress-bar-bg: #00395A;
}

.btn-primary {
  --bs-btn-bg: #00395A;
  --bs-btn-border-color: #002c45;
  --bs-btn-hover-bg: #002d48;
  --bs-btn-hover-border-color: #00293f;
  --bs-btn-active-bg: #00293f;
  --bs-btn-active-border-color: #00293f;
  --bs-btn-disabled-bg: #00395A;
  --bs-btn-disabled-border-color: #002c45;
  --bs-btn-focus-shadow-rgb: 0, 57, 90;
}

/* Secondary action: steel outline (Option B), lightened on the dark theme. */
.btn-outline-secondary {
  --bs-btn-color: #00395A;
  --bs-btn-border-color: #75ADB7;
  --bs-btn-hover-bg: #75ADB7;
  --bs-btn-hover-color: #06242a;
  --bs-btn-hover-border-color: #75ADB7;
  --bs-btn-active-bg: #75ADB7;
  --bs-btn-active-color: #06242a;
  --bs-btn-active-border-color: #75ADB7;
}
[data-bs-theme="dark"] .btn-outline-secondary {
  --bs-btn-color: #9fc6cf;
  --bs-btn-border-color: #4e7f88;
  --bs-btn-hover-bg: #4e7f88;
  --bs-btn-hover-color: #06242a;
  --bs-btn-hover-border-color: #4e7f88;
  --bs-btn-active-bg: #4e7f88;
  --bs-btn-active-color: #06242a;
  --bs-btn-active-border-color: #4e7f88;
}

.btn-outline-primary {
  --bs-btn-color: #00395A;
  --bs-btn-border-color: #00395A;
  --bs-btn-hover-bg: #00395A;
  --bs-btn-hover-border-color: #00395A;
  --bs-btn-active-bg: #00395A;
  --bs-btn-active-border-color: #00395A;
  --bs-btn-focus-shadow-rgb: 0, 57, 90;
}
[data-bs-theme="dark"] .btn-outline-primary {
  --bs-btn-color: #75ADB7;
  --bs-btn-border-color: #75ADB7;
  --bs-btn-hover-bg: #75ADB7;
  --bs-btn-hover-color: #002234;
  --bs-btn-hover-border-color: #75ADB7;
  --bs-btn-active-bg: #75ADB7;
  --bs-btn-active-color: #002234;
  --bs-btn-active-border-color: #75ADB7;
  --bs-btn-focus-shadow-rgb: 117, 173, 183;
}

.nav-pills {
  --bs-nav-pills-link-active-bg: #00395A;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Flex sticky footer: body is a column and the main content region grows to fill,
   so the footer sits below the content on short and long pages alike. Replaces the
   old position:absolute footer, which overlapped content once a page ran past the
   viewport height. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > .container {
  flex: 1 0 auto;
}
.footer {
  flex-shrink: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Phone footer + co-brand overrides. Kept after the base .footer rule above so its
   line-height/white-space win. On phones: drop the co-brand wordmark (the target mark
   still signals Light Application) so the nav fits and the toggler stays on the brand
   row; stack the footer username and credit left-aligned with a small gap. */
@media (max-width: 575.98px) {
  .cobrand > span {
    display: none;
  }
  .footer {
    line-height: 1.4;
    white-space: normal;
  }
  .footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .footer-brand {
    margin-left: 0;
  }
}

/* Support for larger resolution displays */
@media (min-width: 1440px) {
  .container {
    max-width: 1300px;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1456px;
  }
}

@media (min-width: 1900px) {
  .container {
    max-width: 1806px;
  }
}

/* Mobile only visibility */
.show-on-mobile {
    display: none;
}

@media (max-width: 575px) {
    .show-on-mobile {
        display: block;
    }
}

.table td {
    white-space: nowrap;
}

.max-width-col {
    text-overflow: ellipsis;
    overflow: hidden;
}

.clickable:hover {
  cursor: pointer;
}

.clickable[disabled] {
  cursor: default;
  pointer-events: none;
}

.clickable[disabled] > i {
  opacity: 0.75;
  color: #c1c1c1 !important;
}

.drag_drop_area {
  border: 2px dashed #ced4da;
  border-radius: 0.25rem;
  min-height: 125px;
  margin-top: 15px;
  color: darkgray;
  display: flex;
  justify-content: center;
  align-items: center;
}

.drag_drop_area > span {
  max-width: 90%;
}

.drag_drop_area.file_present {
  border: 3px dashed #00395A;
}

[data-bs-theme="dark"] .drag_drop_area.file_present {
  border-color: #75ADB7;
}

.attachments_area {
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  min-height: 35px;
}