/* =========================================================
GENERAL PAGE
========================================================= */

.bodyClass {
font-family: "Century Gothic", Helvetica, Arial, sans-serif;
}

/* Hide default navigation */

[role="navigation"] {
display: none;
}

/* Prevent logo from becoming too large */

[role="banner"] {
overflow: hidden;
}

/*.logoReg {
height: 80px;
}

.logoSmall {
height: 80px;
}*/

/* Sticky top bar */

#topbit {
position: sticky !important;
top: 0;
z-index: 9999;
}


/* =========================================================
   NAVIGATION BAR
   ========================================================= */




/* Main navigation bar */
.navbar {
  /*overflow: hidden;*/
  padding-left: 50px;
  background-color: #5ba0c0;
  font-family: "Century Gothic", Arial, Helvetica, sans-serif;
  animation: fadein .8s;
  position: sticky;
  display: flex;
  justify-content: flex-start;
  box-shadow: 0 10px 12px 0px rgb(0 0 0 / 20%);
                         
}


/* Navigation links */
.navbar a {
    float: left;
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Navigation hover */
.navbar a:hover {
   background-color: #002a5c;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


/* Admin menu */
#adminmenu {
    display: inline-block;
    float: right;
    padding: 0 50px 0 0;
}


/* Fade animation */
@keyframes fadein {
    from {
        opacity: .5;
    }

    to {
        opacity: 1;
    }
}
/* =========================================================
ADMIN NAVIGATION BAR
========================================================= */

#mainmenu {
display: flex;
justify-content: space-between;
align-items: stretch;
width: 100%;
box-sizing: border-box;
background: #5ba0c0;
font-family: "Century Gothic", Arial, Helvetica, sans-serif;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* Left side */

#mainmenu .mainmenu-left {
display: flex;
align-items: stretch;
}

/* Right side */

#mainmenu .mainmenu-right {
display: flex;
align-items: stretch;
margin-left: auto;
}

/* Navigation links */

#mainmenu a {
display: flex;
align-items: center;
color: white;
padding: 12px 15px;
text-decoration: none;
font-size: 15px;
}

/* Navigation hover */

#mainmenu a:hover {
background: #002a5c;
}

/* =========================================================
TOP DASHBOARD
My Current Tasks + My Recent Forms
========================================================= */

#toppanels {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 15px;
margin-top: 25px;
margin-bottom: 25px;
}

/* Both top panels */

.dashboard-panel {
background: #ffffff;
border: 1px solid #e1e5e8;
border-radius: 4px;
overflow: hidden;
min-height: 110px;
max-height: 175px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
transition: box-shadow 0.2s ease;
}

.dashboard-panel:hover {
box-shadow: 0 5px 14px rgba(0, 0, 0, 0.10);
}

/* Panel header */

.dashboard-panel .panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 11px 16px;
background: #5ba0c0;
color: white;
}

.dashboard-panel .panel-header h2 {
margin: 0;
font-size: 1em;
font-weight: normal;
text-transform: uppercase;
letter-spacing: 0.03em;
}

/* Panel content */

.dashboard-panel .panel-content {
padding: 10px 15px;
background: white;
overflow-y: auto;
max-height: 115px;
}

/* =========================================================
TOP PANEL FORM LISTS
========================================================= */

#toppanels .formlist {
list-style: none;
margin: 0;
padding: 0;
}

#toppanels .formlist li {
margin: 0;
padding: 0;
}

/* Individual recent form / task */

#toppanels .form a {
display: block;
background: #f7f9fa;
color: #222;
padding: 8px 10px;
margin: 4px 0;
border: 1px solid #edf0f1;
border-radius: 3px;
text-decoration: none;
transition: all 0.15s ease;
}

/* Force identical main text colour */

#toppanels #tasks,
#toppanels #myforms {
color: #000000;
}

#toppanels #tasks a,
#toppanels #myforms a {
color: #000000;
}

#toppanels #tasks a strong,
#toppanels #myforms a strong {
color: #000000;
}

/* Keep recent form metadata grey */

#toppanels #myforms .recent-form-meta {
color: #888888;
}

#toppanels .form a:hover {
background: #eef5f8;
border-color: #c9dfe8;
}

/* Recent form metadata */

.recent-form-meta {
color: #777;
font-size: 0.8em;
}

/* =========================================================
RECENT FORMS - VIEW ALL
========================================================= */

/* View All link in My Recent Forms header */

.dashboard-panel .panel-header .myformsall {
    margin-left: auto;
    white-space: nowrap;
}


.dashboard-panel .panel-header .myformsall a {
    color: white !important;
    text-decoration: none;
    font-size: 0.85em;
}


.dashboard-panel .panel-header .myformsall a:hover {
    color: white !important;
    text-decoration: underline;
}

/* =========================================================
COMMON FORM LIST
========================================================= */

.formlist {
list-style: none;
margin: 0;
padding: 0;
}

.formlist li {
margin: 0;
padding: 0;
}

/* =========================================================
FORMS DASHBOARD
========================================================= */

#forms-dashboard {
margin-top: 20px;
max-width: 1500px;
}

/* Forms title + search */

.forms-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 15px;
}

.forms-header h1 {
margin: 0;
font-size: 26px;
font-weight: normal;
color: #1d1d2c;
}

.forms-subtitle {
display: block;
margin-top: 3px;
color: #777;
font-size: 0.85em;
}

/* =========================================================
FORM SEARCH
========================================================= */

.form-search {
display: flex;
align-items: center;
background: white;
border: 1px solid #d8dde0;
border-radius: 4px;
padding: 0 10px;
width: 280px;
height: 38px;
box-sizing: border-box;
}

.form-search .icon-search {
color: #777;
margin-right: 7px;
}

.form-search input {
width: 100%;
border: none;
outline: none;
padding: 8px 5px;
font-family: inherit;
font-size: 0.9em;
background: transparent;
}

/* =========================================================
MAIN FORM NAVIGATION
========================================================= */

#form-navigation {
display: grid;
grid-template-columns: 230px minmax(0, 1fr);
min-height: 400px;
background: white;
border: 1px solid #e0e4e7;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* =========================================================
LEFT CATEGORY MENU
========================================================= */

.category-menu {
background: #f4f6f7;
border-right: 1px solid #e0e4e7;
padding: 15px 0;
}

.category-menu-title {
padding: 0 18px 10px;
color: #777;
font-size: 0.75em;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.08em;
}

/* Category buttons */

.category-button {
display: flex;
align-items: center;
width: 100%;
box-sizing: border-box;
border: none;
border-left: 3px solid transparent;
padding: 13px 15px;
background: transparent;
color: #333;
text-align: left;
font-family: inherit;
font-size: 0.9em;
cursor: pointer;
transition: all 0.15s ease;
}

/* Category icons */

.category-button i {
width: 24px;
margin-right: 8px;
color: #777;
text-align: center;
}

/* Category hover */

.category-button:hover {
background: #e8eef1;
color: #1d1d2c;
}

/* Active category */

.category-button.active {
background: white;
border-left-color: #5ba0c0;
color: #2d718f;
font-weight: bold;
}

.category-button.active i {
color: #5ba0c0;
}

.category-button.selected {
    background: white;
    border-left: 4px solid #5ba0c0;
    color: #2d718f;
    font-weight: bold;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.08);
}

.category-button.selected i {
    color: #5ba0c0;
}

/* =========================================================
ALL FORMS TITLE
========================================================= */

#all-forms-title {
    display: block;
    color: #1d1d2c;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #e5e8ea;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

#form-content.show-all #all-forms-title {
    display: block;
}

/* =========================================================
RIGHT FORM CONTENT
========================================================= */

#form-content {
min-width: 0;
background: white;
padding: 20px 25px;
max-height:  max(400px, calc(100vh - 550px));
overflow-y: auto;
box-sizing: border-box;
}

/* Hide inactive categories */

.form-category {
display: none;
}

.form-category.active {
display: block;
}
/*
NEXT ADDED AS TEST
*/
.form-category.show-all {
    display: block;
}
.form-category.show-all .category-content-header {
    display: none;
}

/* Category heading */

.category-content-header {
border-bottom: 1px solid #e5e8ea;
margin-bottom: 12px;
padding-bottom: 10px;
}

.category-content-header h2 {
margin: 0;
color: #1d1d2c;
font-size: 1.25em;
font-weight: normal;
}

.category-content-header {
display: block;
margin-top: 3px;
color: #888;
font-size: 0.8em;
}

/* =========================================================
MAIN FORM LINKS
========================================================= */

#form-content .form {
margin-bottom: 5px;
}

#form-content .form a {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 42px;
box-sizing: border-box;
padding: 10px 12px;
background: #f7f9fa;
border: 1px solid #edf0f1;
border-radius: 3px;
color: #333;
text-decoration: none;
transition: all 0.15s ease;
}

#form-content .form a:hover {
background: #eef6f9;
border-color: #c9dfe8;
color: #2d718f;
padding-left: 16px;
}

/* External link icon */

#form-content .icon-external-link {
color: #aaa;
margin-left: 10px;
}

#form-content .form a:hover .icon-external-link {
color: #5ba0c0;
}

/* =========================================================
EMPTY LIST
========================================================= */

.empty-message {
padding: 8px 10px;
color: #000000;
font-size: inherit;
}

/* =========================================================
EXISTING FORM / SYSTEM STYLING
========================================================= */

#dropdown {
z-index: 99999 !important;
}

.filterDropdown {
display: block;
margin-top: 10px;
font-size: 0.5em;
padding: 5px;
}

.linkDropdownItem {
font-size: 0.9em;
}

/* Navigation icons */

.icon-forward,
.icon-backward,
.icon-step-backward {
font-size: 1.7em;
color: #000;
}

/* Dropdown */

#dropdown table:nth-child(3) td {
background: aliceblue;
text-align: left !important;
border-top: 1px solid;
}

#dropdown table {
max-width: 1670px !important;
}

/* =========================================================
BUTTONS
========================================================= */

.actionButton {
background: #5ba0c0;
color: white !important;
padding: 0.6em;
text-decoration: none;
text-transform: uppercase;
margin: 0.5em;
border-radius: 50px;
border: 1px solid #5ba0c0;
transition: all 0.2s ease;
}

.actionButton:hover {
font-weight: normal;
background: white;
color: #5ba0c0 !important;
box-shadow: 0 0 10px 2px rgba(0,0,0,0.2);
border: 1px solid #5ba0c0;
text-shadow: none;
border-radius: 50px;
}

/* =========================================================
GRID HEADERS
========================================================= */

.grid .header td a {
color: white;
opacity: 1;
text-transform: uppercase;
background-color: #5ba0c0;
}

.grid .header td {
background-color: #5ba0c0;
}

/* =========================================================
FIELD GROUPS
========================================================= */

.fieldGroup {
font-size: 1.3em;
}

.fieldGroup .title {
box-shadow: 6px 6px 12px 0 rgba(0, 0, 0, 0.1);
}

input:disabled {
opacity: 0.7 !important;
}

.fieldLabel td label {
opacity: 1 !important;
}

/* =========================================================
COMPATIBILITY
========================================================= */

.panel {
transition: 0.3s;
}

.panel:hover {
box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.2);
}

/* =========================================================
RESPONSIVE - TABLET
========================================================= */

@media (max-width: 800px) {


#toppanels {
    grid-template-columns: 1fr;
}


#form-navigation {
    grid-template-columns: 1fr;
}


.category-menu {
    display: flex;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid #e0e4e7;
    padding: 5px;
}


.category-menu-title {
    width: 100%;
    padding: 8px 10px;
}


.category-button {
    width: auto;
    flex: 1 1 auto;
    border-left: none;
    border-bottom: 3px solid transparent;
    justify-content: center;
    padding: 10px;
}


.category-button.active {
    border-left: none;
    border-bottom-color: #5ba0c0;
}


.forms-header {
    display: block;
}


.form-search {
    width: 100%;
    margin-top: 12px;
}


#form-content {
    padding: 15px;
}


}

/* =========================================================
RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 500px) {


.category-button i {
    display: none;
}


.category-button span {
    font-size: 0.85em;
}


.forms-header h1 {
    font-size: 1.3em;
}


#form-content {
    padding: 12px;
}


.category-button {
    padding: 8px 6px;
}


.dashboard-panel .panel-header {
    padding: 10px 12px;
}


.dashboard-panel .panel-content {
    padding: 8px 10px;
}


}

/* =========================================================
Grid Table Rows
========================================================= */

.grid tr.row.hover td,
.grid tr.row.hover td * {
    color: #DEDCDC !important;
}