/*Site Shrinking*/
@media (min-width: 992px) {
   .site.wrapper-static {
      max-width: 1200px !important;
      margin: 0 auto !important;
      padding: 0 20px !important;
   }
}

body {
   font-family: Arial, Helvetica, sans-serif;
   zoom: 1;
   background-color: #f2f0f0;
   border-radius: 15px;
}

/*Primary colors*/
@charset "UTF-8";
:root {
   /*--cassiopeia-color-primary: #f1f1f1;*/
   --cassiopeia-color-primary: #ededed;
   --cassiopeia-color-link: #30638d;
   --link-color: #30638d;
   --link-color-rgb: 48, 99, 141;
   --cassiopeia-color-hover: #224faa;
   --link-hover-color: #00b0e6;
   /*--link-hover-color: #954b56;*/
   --link-hover-color-rgb: 149, 75, 86;
}

/* ===== Desktop spacing between header and site grid ===== */
@media (min-width: 992px) {
   .container-header {
      margin-bottom: 1.2rem !important; /* gap below header */
   }

   .site-grid {
      margin-top: 1.2rem !important; /* gap above content */
   }
}

/*Body Layout*/
html {
   background-color: #f2f0f0;
   font-size: 15.5px;
   margin: 20px;
}

a {
   text-decoration: none !important;
   color: #135cae !important;
}

a:hover {
   color: #00b0e6 !important;
   text-decoration: underline !important;
}

p {
   text-align: justify !important;
}

dl {
   margin-left: 10px;
}

h1,
.h1 {
   font-size: 2rem;
}

/*Site Grid Layout*/
.site-grid .grid-child {
   padding: 0 !important;
}

.site-grid {
   background: #ffffff;
   border-radius: 5px;
   padding: 25px 30px;
   margin: auto;
   max-width: 1300px;
   border: 2px solid #c7c7c7;
   padding: 8px 10px !important;
   box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/*Left and Right Images*/
img.left {
   float: left;
   clear: left;
   margin: 5px 10px 1px 0px;
}

img.right {
   float: right;
   clear: right;
   margin: 5px 0px 1px 10px;
}

/*Container header*/
.container-header {
   min-height: 150px;
   background-image: linear-gradient(to bottom, #ffffff, #e3e2e2) !important;
   padding: 10px 30px;
   display: flex;
   justify-content: space-between;
   flex-wrap: nowrap;
   border: 2px solid #c7c7c7;
   border-radius: 5px;
   margin-top: 6px;
   box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.container-header .site-description {
   color: #00b0e6;
   font-size: 1.1rem;
   font-weight: 500;
   line-height: 1.4;
   margin-top: 4px;
   white-space: normal;
   text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
   letter-spacing: 0.3px;
}

/*Footer*/
.footer {
   background-image: linear-gradient(to bottom, #ffffff, #e3e2e2) !important;
   color: #fff;
   padding: 10px 30px;
   display: flex;
   color: #005599;
   align-items: center;
   flex-wrap: nowrap;
   border: 2px solid #c7c7c7;
   border-radius: 5px;
   margin-bottom: 10px;
   box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}
.footer .grid-child {
   justify-content: center;
}
/*Mobile View*/
@media (max-width: 768px) {
   .footer {
      font-size: 12.5px;
   }
}

/* Data Server */
table.dataproduct {
   width: 100%;
   border-collapse: separate;
   border-spacing: 0;
   border: 1px solid #dcdcdc;
   border-radius: 8px;
   overflow: hidden;
   font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
   font-size: 0.95rem;
   color: #222;
   background-color: #fff;
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
   margin: 1rem 0;
}

table.dataproduct thead {
   background-color: #003366;
   color: #fff;
   font-weight: 600;
}

table.dataproduct th {
   padding: 10px 12px;
   text-align: left;
}

table.dataproduct tr.e {
   background-color: #f7f7f7;
}

table.dataproduct tr.o {
   background-color: #ededed;
}

table.dataproduct td {
   padding: 8px 12px;
   border-top: 1px solid #ddd;
   vertical-align: middle;
}

table.dataproduct td.t {
   font-weight: 600;
   color: #003366;
}

table.dataproduct td.d {
   font-family: "Courier New", monospace;
   color: #444;
   word-break: break-word;
}

table.dataproduct tr:first-child td {
   border-top: none;
}

@media (max-width: 768px) {
   table.dataproduct,
   table.dataproduct thead,
   table.dataproduct tbody,
   table.dataproduct th,
   table.dataproduct td,
   table.dataproduct tr {
      display: block;
      width: 100%;
   }

   table.dataproduct thead {
      display: none;
   }

   table.dataproduct tr {
      background: #fff;
      margin-bottom: 1rem;
      border: 1px solid #ddd;
      border-radius: 6px;
      padding: 0.75rem;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
   }

   table.dataproduct td {
      border: none;
      display: flex;
      flex-direction: row; /* keep label + value on same line */
      justify-content: flex-start;
   }

   table.dataproduct td::before {
      content: attr(data-label);
      font-weight: 600;
      color: #003366;
      flex-basis: 45%;
   }
}

/* --- MODERN ATTACHMENTS TABLE STYLE --- */
.attachmentsContainer {
   margin: 2rem auto;
   max-width: 100%;
   font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
   color: #212529;
}

.attachmentsContainer table {
   width: 100%;
   border-collapse: separate;
   border-spacing: 0;
   background: #fff;
   border-radius: 0.75rem;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
   overflow: hidden;
   font-size: 0.95rem;
}

.attachmentsContainer caption {
   display: none !important;
}

.attachmentsContainer thead {
   background: linear-gradient(90deg, #003366, #005599);
   color: #fff;
}

.attachmentsContainer th {
   padding: 12px 14px;
   text-align: left;
   letter-spacing: 0.2px;
   border: none;
   white-space: nowrap;
}

.attachmentsContainer tbody tr {
   transition: background 0.2s ease, transform 0.1s ease;
}

.attachmentsContainer tbody tr:nth-child(even) {
   background-color: #f8f9fa;
}

.attachmentsContainer tbody tr:nth-child(odd) {
   background-color: #ffffff;
}

.attachmentsContainer tbody tr:hover {
   background-color: #e9f2fc;
   transform: scale(1.01);
}

.attachmentsContainer td {
   padding: 10px 14px;
   border-top: 1px solid #dee2e6;
   vertical-align: middle;
}

.attachmentsContainer .at_filename a {
   color: #005599;
   text-decoration: none;
   display: inline-flex;
   align-items: center;
   gap: 6px;
}

.attachmentsContainer .at_filename a:hover {
   color: #954b56;
   text-decoration: underline;
}

.attachmentsContainer .at_filename img {
   height: 18px;
   width: 18px;
   vertical-align: middle;
}

.attachmentsContainer .at_description {
   color: #555;
   font-style: italic;
}

.attachmentsContainer .at_user_field {
   color: #003366;
}

.attachmentsContainer .at_file_size,
.attachmentsContainer .at_created_date {
   color: #666;
   text-align: right;
   font-size: 0.9rem;
}

.attachmentsContainer table::after {
   content: "";
   display: block;
   height: 4px;
   background: linear-gradient(90deg, #003366, #005599);
}

.attachmentsContainer th,
.attachmentsContainer td,
.attachmentsContainer a,
.attachmentsContainer tbody tr,
.attachmentsContainer thead tr {
   font-weight: normal !important;
}

.attachmentsContainer thead th {
   color: #111;
}

/* --- FORCE ATTACHMENTS TABLE TO STAY LIGHT IN DARK MODE --- */
.attachmentsContainer table,
.attachmentsContainer thead,
.attachmentsContainer tbody,
.attachmentsContainer tr,
.attachmentsContainer td,
.attachmentsContainer th {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Stop dark-mode “striped” rows */
.attachmentsContainer tbody tr:nth-child(even),
.attachmentsContainer tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

/* Light hover color */
.attachmentsContainer tbody tr:hover {
    background-color: #e9f2fc !important;
}

/* Header stays as your gradient */
.attachmentsContainer thead th {
    background: linear-gradient(90deg, #003366, #005599) !important;
    color: #fff !important;
}


/*Sidebar - Left and Right  Menu*/
.sidebar-left.card {
   margin-block: 0.15rem;
   border-radius: 0 !important;
   background-color: #ededed;
}

.sidebar-left.card li {
   font-size: 15px !important;
}

.sidebar-right.card .card-header {
   background-color: #ededed;
}

.sidebar-right.card {
   border: 1px solid #cac8c8 !important;
   border-radius: 0 !important;
}

.sidebar-right .card-body ul.mod-list {
   list-style: disc !important;
   padding-left: 20px;
   margin: 0;
}

.sidebar-right.card .mod-menu.nav li a {
   font-size: 15px !important;
}

/* ===== Bold ONLY the exact active sidebar item ===== */
.sidebar-left .mod-menu li.current > a,
.sidebar-left .mod-menu li.current > span,
.sidebar-right .mod-menu li.current > a,
.sidebar-right .mod-menu li.current > span {
   font-weight: 800 !important;
   font-size: 1rem !important; /* slightly larger */
   color: #135cae !important;
}

.sidebar-left .mod-menu li:hover,
.sidebar-right .mod-menu li:hover {
   cursor: pointer !important;
}

/* === Unified Compact 3D Pill Menu === */
.navbar {
   background-color: transparent !important;
   display: flex;
   justify-content: center;
   padding: 0;
   border-top: none !important;
}

.navbar .mod-menu {
   display: flex;
   flex-wrap: nowrap;
   justify-content: center;
   align-items: center;
   gap: 0; /* No gaps at all */
   list-style: none;
   margin: 0;
   padding: 0;
}

.navbar .mod-menu > li > a,
.navbar .mod-menu > li > button,
.navbar .mod-menu > li > .mod-menu__separator {
   background-color: #158dc1 !important;
   color: #fff !important;
   font-weight: 500;
   font-size: 0.95rem;
   padding: 0.55rem 1.1rem;

   border-right: none;
   border-radius: 0;
   text-decoration: none !important;
   box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 2px 4px rgba(0, 0, 0, 0.3);
   transition: all 0.2s ease-in-out;
   display: inline-block;
   line-height: 1.2;
   cursor: pointer;
}

.navbar .mod-menu > li:first-child > a,
.navbar .mod-menu > li:first-child > button,
.navbar .mod-menu > li:first-child > .mod-menu__separator {
   border-top-left-radius: 9999px;
   border-bottom-left-radius: 9999px;
}

.navbar .mod-menu > li:last-child > a,
.navbar .mod-menu > li:last-child > button,
.navbar .mod-menu > li:last-child > .mod-menu__separator {
   border-top-right-radius: 9999px;
   border-bottom-right-radius: 9999px;
   border-right: 1px solid #004080;
}

.navbar .mod-menu > li > a:hover,
.navbar .mod-menu > li > button:hover,
.navbar .mod-menu > li > .mod-menu__separator:hover {
   background-color: #0077cc !important;
   box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.25);
   transform: translateY(1px);
}

.navbar .metismenu-item {
   margin: 0 !important;
   padding: 0 !important;
}

.navbar .metismenu-item .mm-collapse {
   border: none;
   margin: 0;
   padding: 0;
}

.navbar .dropdown-menu,
.navbar .mm-collapse {
   background-color: #f9f9f9 !important;
   border: 1px solid #ccc;
   border-radius: 0.5rem;
   margin-top: 0.5rem;
   padding: 0.5rem 0;
}

.navbar .dropdown-menu a,
.navbar .mm-collapse a {
   color: #003366 !important;
   padding: 0.4rem 1rem;
   display: block;
   transition: background 0.2s ease;
}

.navbar .dropdown-menu a:hover,
.navbar .mm-collapse a:hover {
   background-color: #00b0e6 !important;
   color: #fff !important;
}

.navbar .mod-menu > li.deeper.parent {
   position: relative;
}

.navbar .mod-menu > li.deeper.parent > a,
.navbar .mod-menu > li.deeper.parent > .mod-menu__separator {
   padding-right: 2rem;
}

.navbar .mod-menu > li > button.mm-toggler-link {
   background: transparent !important;
   border: none !important;
   box-shadow: none !important;
   padding: 0;
   margin: 0;

   position: absolute;
   top: 50%;
   right: 0.6rem;
   transform: translateY(-50%);

   width: 1.2rem;
   height: 1.2rem;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
}

.navbar .mod-menu > li > button.mm-toggler-link:hover {
   background: transparent !important;
   box-shadow: none !important;
   transform: translateY(-50%);
}

.navbar .mod-menu > li > .mod-menu__separator.mm-toggler-nolink {
   display: flex !important;
   align-items: center;
   justify-content: center;
   gap: 0.4rem;
   position: relative;
}

.navbar .mod-menu > li > .mod-menu__separator.mm-toggler-nolink > .mm-toggler {
   position: relative;
   top: 0 !important;
   transform: none !important;
   margin-left: 0.2rem;
}

@media (min-width: 992px) {
   .navbar .mod-menu > li.deeper.parent:hover > .mm-collapse {
      display: block !important;
      opacity: 1 !important;
      height: auto !important;
      visibility: visible !important;
   }

   .navbar .mod-menu .mm-collapse {
      display: none !important;
      opacity: 0;
      height: 0 !important;
      overflow: hidden;
      position: absolute;
      z-index: 9999;
      transition: opacity 0.2s ease-in-out;
   }

   .navbar .mod-menu > li.deeper.parent {
      position: relative;
   }

   .navbar .mod-menu > li.deeper.parent > .mm-collapse {
      top: 100%;
      left: 0;
      min-width: 200px;
   }
}

/* STACK HEADER: logo above menu */
.header.container-header.full-width {
   display: flex;
   flex-direction: column;
   align-items: center;
   position: relative;

   padding-top: 0.4rem !important;
   padding-bottom: 1rem !important;
}

.header.container-header.full-width > .grid-child {
   width: 100%;
   display: flex;
   justify-content: center;
   padding-top: 0.3rem !important;
   padding-bottom: 0.3rem !important;
}

.header .navbar-brand {
   display: flex;
   justify-content: center;
   margin: 0 !important;
   padding: 0 !important;
}

/* MENU POSITIONING — overlay effect */
@media (min-width: 992px) {
   .header .container-nav {
      display: flex;
      justify-content: center;
   }

   .header .container-nav .navbar {
      position: absolute;
      bottom: -0.8rem !important;
      left: 50%;
      transform: translateX(-50%);
      margin: 0;
   }
}

/*Body Paper layout*/
body.site .container-component,
body.site .site-grid,
body.site #content,
body.site main {
   margin-top: 0.6rem !important;
}

/*Left Menu List Styling*/
.mod-menu li {
   list-style: none;
}
.mod-menu li {
   margin-top: 1px !important;
   margin-bottom: 1px !important;
   padding-top: 0 !important;
   padding-bottom: 0 !important;
}

.mod-menu > li {
   list-style-type: disc !important;
   margin-left: 10px; /* to show bullet properly */
}

.mod-menu li ul > li {
   list-style-type: circle !important;
   margin-left: 12px;
}

.mod-menu li ul li ul > li {
   list-style-type: square !important;
   margin-left: 14px;
}

.mod-menu li a,
.mod-menu li span {
   display: inline-block;
   vertical-align: middle;
}

/*Btton Styling*/
/* --- Common button style --- */
button,
input[type="button"],
input[type="submit"],
a.btn,
.btn {
   background-color: #005599;
   color: #fff !important;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
a.btn:hover,
.btn:hover {
   background-color: #003d80;
}



/*Search Bar*/
.mod-finder__search .js-finder-search-query {
   height: 30px;
   width: auto;
   padding: 10px 10px;
   font-size: 0.9rem;
}

.mod-finder__search .btn {
   margin-left: 5px !important;
   height: 30px;
   padding: 0 12px;
   border-radius: 4px;
   font-weight: bold;
}

.mod-finder__search.input-group {
   display: flex;
   align-items: center;
}

/* Remove button look */
.readmore a.btn,
.readmore a.btn-secondary {
   background: none !important;
   border: none !important;
   padding: 0 !important;
   box-shadow: none !important;
   color: #135cae !important;
   font-weight: normal !important;
   font-size: 1rem !important;
}

/* HYCOM Logo in HTML */
div.moduletable_hycom_logo {
   margin-top: 22px;
   margin-bottom: 10px;
}
span.hycom_logo {
   padding-top: 22px;
   border-top: 4px solid #000099;
   border-bottom: 4px solid #000099;
}
span.hycom_big {
   font-weight: bold;
   font-size: 40px;
   color: #00a1e1;
}
.hycom-blue {
   color: #00a1e1;
}
span.hycom_small {
   font-weight: bold;
   font-size: 15px;
}
.main-top.card._hycom_logo {
   border: none;
}

/*Brand Logo*/
.navbar-brand img {
   height: 6rem !important;
   width: auto !important;
   max-width: 100% !important;
   object-fit: contain;
   display: block;
}

/* === Three-logo header: left | center | right === */
.navbar-brand.three-logos {
   display: flex !important;
   align-items: center !important;
   justify-content: space-between !important;
   width: 100% !important;
   margin: 0 !important;
   padding: 0 !important;
   box-sizing: border-box !important;
}

.navbar-brand.three-logos .logo-left,
.navbar-brand.three-logos .logo-right {
   flex: 0 0 auto;
}

.navbar-brand.three-logos .logo-center {
   flex: 1 1 auto;
   display: flex;
   justify-content: center;
}
.header.container-header.full-width > .grid-child {
   width: 100%;
   display: flex;
   justify-content: center;
}
.header.container-header.full-width > .grid-child:first-child {
   display: block !important;
   justify-content: initial !important;
}

/*Mobile View*/
@media (max-width: 768px) {
   /* 1️⃣ Only show LEFT logo on mobile */
   .navbar-brand.three-logos .logo-center {
      display: none !important;
   }

   .navbar-brand.three-logos {
      justify-content: center !important;
      gap: 30px;
   }

   .navbar {
      justify-content: flex-start;
   }

   .navbar .mod-menu {
      flex-direction: column; /* stack items */
      align-items: stretch;
      gap: 0.1rem;
   }

   .navbar .mod-menu > li > a,
   .navbar .mod-menu > li > button,
   .navbar .mod-menu > li > .mod-menu__separator {
      background: none !important; /* remove pill background */
      box-shadow: none !important;
      border-radius: 0 !important;
      color: #005599 !important;
      padding: 0.5rem 0; /* simple tappable rows */
      text-align: left;
      border-bottom: 1px solid #ddd; /* simple divider */
   }

   .navbar .mod-menu > li > a:hover,
   .navbar .mod-menu > li > button:hover,
   .navbar .mod-menu > li > .mod-menu__separator:hover {
      background-color: #f2f2f2 !important;
      transform: none;
   }

   html {
      margin: 0;
   }

   body {
      zoom: 1 !important;
      border-radius: 0;
   }

   .site-grid {
      max-width: 100% !important;
      border-radius: 0;
      border-left: none;
      border-right: none;
   }
}

/*Banner Styling*/
.breadcrumb {
   background-color: transparent !important;
   font-size: 14px;
}
.container-banner,
.mod-breadcrumbs__wrapper,
.mod-breadcrumbs,
.breadcrumb {
   margin-bottom: 5px !important;
   padding-bottom: 0 !important;
}

.container-banner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   flex-wrap: nowrap;
}

.mod-breadcrumbs__wrapper {
   margin-bottom: 0 !important;
   flex: 1;
}

.banner {
   flex: 1;
   display: flex;
   justify-content: flex-end;
}

/* Mobile: Stack into two lines */
@media (max-width: 768px) {
   .container-banner {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
   }

   .banner {
      width: 100%;
      justify-content: flex-start;
   }
}

joomla-tab[view="tabs"] > div[role="tablist"] {
   white-space: nowrap;
   background-color: #005599;
   padding: 8px;
   display: flex;
   gap: 6px;
   border-bottom: none !important;
   box-shadow: none !important;
}

/* Individual tabs inside the tablist */
joomla-tab[view="tabs"] > div[role="tablist"] button[role="tab"] {
   background: rgba(255, 255, 255, 0.15);
   color: #fff;
   border: none;
   padding: 8px 16px;
   cursor: pointer;
   font-size: 14px;
   transition: background 0.2s ease, color 0.2s ease;
   border: none !important;
   box-shadow: none !important;
}

/* Hover effect */
joomla-tab[view="tabs"] > div[role="tablist"] button[role="tab"]:hover {
   background: rgba(255, 255, 255, 0.25);
}

/* Active (selected) tab */
joomla-tab[view="tabs"] > div[role="tablist"] button[aria-selected="true"] {
   background: #005599;
   color: #005599;
   font-weight: bold;
   border: none !important;
   box-shadow: none !important;
}

.icon-location.icon-fw::before {
    content: "\203A" !important; /* › chevron right */
    font-family: inherit;
}

/*Attachment and Edit button after login*/
.modal-button {
    color: red !important;
}

.modal-button:hover {
    color: red !important;
    text-decoration: underline;
}
.float-end a {
    color: red !important;
    text-decoration: none;
}

.float-end a:hover {
    color: red !important;
    text-decoration: underline;
}


table[border="1"],
table[border="1"] th,
table[border="1"] td {
    border: 1px solid #000;
    border-collapse: collapse;
   font-size: inherit;  
}
table[border="1"] td:first-child,
table[border="1"] th:first-child {
    white-space: nowrap;     
}


/*Data Serrver*/
/* First button container */
.button.left {
    max-width: 300px;
    margin: 20px auto;
    color: #30638d;
    text-align: center;
}

/* Text line */
.button.left span.support-line {
    display: inline;
    white-space: nowrap;
    text-align: center;
    font-weight: normal;
    color: #30638d;
}

.button.left span.support-line b {
    font-weight: bold;
    color: #000;
}

/* Second button style (ACCESS DATA HERE) */
.btn {
    font-weight: bold;
    border-radius: 8px;
    background-color: #30638d;
    border-color: #30638d;
    color: #fff;
    transition: 0.2s ease;
}

.btn a {
    color: #fff;
    text-decoration: none;
}

.btn:hover {
    background-color: #234d6b;
    border-color: #234d6b;
    opacity: 1;
}
