/* 
@name           lighthouse.voly.co.uk - Feb 2024
@version        1.3
@description    A new userstyle
@author         Edd Allen MWMW
*/
    
html {
    font-size: 10px;
    font-family: 'Effra', sans-serif;
    font-weight: 300;
    font-style: normal;
}

body > .login {
    background: transparent;
    top: 40%;
}

html {
    background-image: none;
    background-color: #1b365e;
}

.loginfields input:not([type=image]) {
    padding: 2rem;
    box-sizing: border-box;
}


/* TEMPLATE ============================== */


.container div.main {
    /* background-image: url(https://lighthouse.voly.co.uk/css/dw/dANDw.png);
    background-repeat: no-repeat;
    background-position: calc(100% - 4rem) calc(100% - 6rem); */
    background-image: none;
    background-size: 6rem;
    box-sizing: border-box;
    width: calc(100% - 264px) !important;
    height: calc(100% - 2rem);
}

.container .menu {
    padding: 2rem;
    box-sizing: border-box;
}


#menu {
    background: #123
}

#popup div.menuitem {
    background: #123;
}


#popup div.menuitem p {
    font-size: 2rem !important;
}

#menu .menuitem {
    width: 100% !important;
}


#menu .menuitem:last-of-type:before {
    border-bottom: 0;
}

#menu div.menuitem p {
    padding: 2rem;
    width: 100%;
    overflow-wrap: anywhere;
}

div.menuitem p span {
    display: none;
}

.header:before {
    content: ' ';
    position: absolute;
    left: 0;
    width: 264px;
    height: 100%;
    background: #123;
}

.hidemainmenu, .showmainmenu {
    display: none !important;
}




/* HEADER ============================== */

.header .ismsmslogo img {
    padding: 10px;
    box-sizing: border-box;
}

.header .logo,
.header .rys,
.header .ismsmslogo {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    margin: auto;
}

.header .rys img {
    /* LTS-537 rebrand: dw.png is now the wordmark only (no rule, yacht or
       strapline), so it is much wider for a given height. 30px keeps the logo
       at the same ~430px width it occupied before the rebrand. */
    height: 30px;
}

.header .user {
    left: 0;
}

.header .user .logo img {
    height: 120px;
}

.header .user .logo a[href='main.php?y=1'] img {
    height: 110px;
}

.header .user .name {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    margin-left: 2rem;
    line-height: 1.75;
    padding-top: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.header .user .logo a {
    height: 110px;
    display: flex;
    align-items: center;
    width: 264px;
    justify-content: center;
    overflow: hidden
}




/* HOME > BOATS ============================== */ 

.container .main .panelouter,
.container .main .panelinner {
    width: auto;
    height: auto;   
}

    
.container .main .panelouter {        
    margin: 0;
    width: calc(33.33% - 2rem);
    vertical-align: top;
    font-family: inherit;
    margin-right: -2rem;
    margin-bottom: -2rem;
}

.container .main .panelouter > .panelinner {
    margin: 2rem;
    padding: 0;
    transition: background 0.3s linear, color 0.3s linear;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid white;
    background: transparent;
    position: relative;
}

.container .main .panelouter > .panelinner:hover {
    color: white;
    border-color: #7FC1F6;
}

/* .container .main .panelouter > .panelinner .yimage {
    opacity: 1;
    mix-blend-mode: overlay;
    filter: grayscale(1) contrast(2) brightness(0.5);
    transition: all 0.3s;
} */


/* .container .main .panelouter > .panelinner:hover .yimage {
    opacity: 1;
    filter: grayscale(1) contrast(1) brightness(1);
} 

.container .main .panelouter > .panelinner:hover:after {
    inset: 3rem;
} */

.container .main > .panelouter > .panelinner:hover:after {
    border-color: #7FC1F6;
}
.container .main > .panelouter > .panelinner:hover > .panelinfo {
    color: #7FC1F6;
}

.container .main .panelouter > .panelinner > .panelinfo {
    height: auto;
    text-align: left;
    margin-top: 2rem;
    transition: color 0.3s linear;
}

.panelinner .yimage {
    width: 100%;
    flex-grow: 1;
    height: 24rem;
    border: 0px;
    border-radius: 0px;
}

.main .displayholder .panelinner .yimage {
    height: 100%;
}



.container .main .panelouter .infoarea {
    height: auto;
    text-align: left;
}

.container .main .panelouter .infoarea:first-child {
    padding-left: 3rem;
    position: relative;
}

.container .main .panelouter .infoarea:last-child {
    margin-top: 1rem;
    padding-left: 3rem;
    padding-bottom: 2rem;
    padding-right: 3rem;
    box-sizing: border-box;
    min-height: 10rem;
}

.container .main .panelouter .infoarea > p {
    margin-top: 1rem;
}

.container .main .panelouter .panelinfo h2 {
    text-transform: uppercase;
    letter-spacing: 2px;
}


.container p.rysalrt, 
.container div.rysalrt, 
.container span.rysalrt {
    color: white;
    font-style: normal;
    font-weight: 300;
}



/* HOME > CONTAINER MENU ========================== */


.container .notifholder, .ycpanelholder {
    height: auto;
    padding: 2rem;
    padding-right: 0;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.container .notifholder .notifhead {
    height: auto;
    padding: 0rem 4rem 0rem 4rem;
    min-height: 10rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notif .notifhead h4 {
    margin-bottom: 0;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0;
    color: #cae2fe;
} 

.notif .notifhead .notifclose,
.notif .notifhead .synclose {
    float: none;
    height: auto;
    margin: 0;
    order: 2;
}

.notif .notifinfo div.menuitem p {
     padding: 1rem 0rem;
    width: 100%;
}

.notifinfo li {
    margin-bottom: 2rem;
}

.container .notifholder .notif {
    margin: 0rem;
    margin-right: -1px;
    border: 1px solid #7fc1f6;
    border-radius: 5px;
    overflow: hidden;
    height: auto;
    min-width: calc(33% - 2rem);
    margin-right: 2rem;
    /*min-width: 0;*/
    /*max-width: 550px;*/
    float: none;
    background: #1b365e;
    box-shadow: 5px 5px 15px 1px #11223352;
}

.container .notifholder .notifinfo {
    padding: 0rem 4rem 4rem 4rem;
    height: auto;
    max-height: 75rem;
}

.notifholder .notif > div:not(.notifgre):not(.notifamb):not(.notifred) {
    background: transparent;
}


.notifl3 .notifhead .menuitem {
    height: auto;
    padding: 1rem 0;
}

.notifl3 .notifhead .menuitem:before {
   content: 'Click to open:';
   displaY: block;
   position: relative;
   color: #7fc1f6; 
   margin-bottom: 0.5rem;   
}

div.menuitem {
    background-color: transparent;
    position: relative;
}

html body .menuitem {
    transition: color 0.2s !important;
}

html body .notifholder .menuitem {
    padding: 0;
    margin-bottom: 1rem
}

.menuitem:after,
.menuitem:before {
    content: ' ';
    position: absolute;
    left: 0;
    bottom: 0;
    border-bottom: 2px solid white;
    right: 0;
}

.container #main .menuitem:before,
#main .menuitem[onclick^="gotop"]:after {
    border-bottom: 0        
}

.menuitem:after {
    border-bottom: 2px solid #7fc1f6;
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: center left;
}

.menuitem:hover:after,
.menuitem.menuactive:after {
    transform: scaleX(1);
}

    
body .menuitem:hover,
body .menuiten:active {
    background: transparent;
}


html body .menuitem:hover,
html body .menuitem.menuactive {
    color: #7fc1f6;
    transition-delay: 0.1s !important;
}


div.notifl2 div.menuitem p, 
div.notifl3 div.menuitem p {
    padding: 0;
}



/* HOME > TRAFFIC LIGHT SYSTEM ========================== */


.container .notifholder:not(.mpnotifholder) {
    display: flex;
    align-items: stretch;
    min-height: 0;
}

.container .notifholder:after {
    content: ' ';
    display: block;
    position: absolute;
    background: #569bd1;
    background-image: url(https://lighthouse.voly.co.uk/css/dw/andry-roby-x29o6PFuAyg-unsplash.jpg);
    background-size: cover;
    background-position: center bottom;
    left: 264px;
    right: 0;
    height: 65%;
    bottom: 0;
    z-index: -1;
    opacity: 0.75;
}

.container .notifholder:not(.mpnotifholder) .notif {
    border: 0;
    width: calc(33% - 2rem);
    height: 75%;
    min-height: 450px;
    min-width: 0;
    max-width: none;
    float: none;
    margin-right: 2rem;
    position: relative;
    z-index: 2;
    background: white;
}

.container .notifholder:not(.mpnotifholder) .notifhead.notifred {
    background: #D90B08;
}

.container .notifholder:not(.mpnotifholder) .notifhead.notifgre {
    background: #50B981;
}

.container .notifholder:not(.mpnotifholder) .notifhead.notifamb {
    background: #DF8B2A;
}
.container .notifholder:not(.mpnotifholder) .notifhead h4 {
    color: white;        
}

.container .notifholder:not(.mpnotifholder) .notifhead {
    padding: 2rem 4rem;
    min-height: 8rem;
}

.container .notifholder:not(.mpnotifholder) .notifinfo {
    padding-top: 4rem;
    background: white;
    color: black;
    border-radius: 0 0 5px 5px;
}

.container .notifholder:not(.mpnotifholder) .notif p {
    margin-bottom: 0;
}

/* .container .notifholder:not(.mpnotifholder) .notifinfo a {
    color: #1b365e;
    padding-left: 2rem;
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
    margin-top: 1rem;
}

.container .notifholder:not(.mpnotifholder) .notifinfo a:after {
    content:' ';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    background: #1b365e;
    border-radius: 200%;
    transition: background 0.3s;
}

.container .notifholder:not(.mpnotifholder) .notifinfo a:hover:after {
    background: #7fc1f6;
} */

.container .notifholder:not(.mpnotifholder) .notifinfo a {
    color: #1b365e;
}



   /* CREW PAGES ========================== */

div.displayholder {
    display: flex;
    flex-wrap: wrap;
    padding-right: 0;
    align-items: stretch;
}
     
.container .main .displayholder .panelouter .panelinner {
    display: flex;
    align-items: center;
    height: calc(100% - 4rem);
    box-sizing: border-box;
}

.container .main .panelouter:not([onclick^='gotop("main.php?page=crewlist']) {
    order: 5;
}

.container .main .panelouter[onclick^='gotop("main.php?page=crewlist'] .panelinner .infoarea.infoareasmlr:not(:first-child) p {
     font-weight: bold;
     font-size: 2rem
}

.container .main .panelouter[onclick^='gotop("main.php?page=crewlist'] .panelinner .infoarea {
    padding: 0;
    margin: 0;
}

.container .main .panelouter[onclick^='gotop("main.php?page=crewlist'] .panelinner img.offrole {
    margin: 0;
    padding: 0;
}

.container .main .panelouter[onclick^='gotop("main.php?page=crewlist'] .panelinner .panelinfo {
    padding: 3rem 2rem;
    margin-top: 0;
}

.container .main .panelouter[onclick^='gotop("main.php?page=crewlist'] .panelinner .cimage {
        height: 32.5rem;
}

.container .main .panelouter[onclick^='gotop("main.php?page=crewlist'] .panelinner .panelinfo > .infoarea:first-child {
    position: absolute;
    width: auto;
    top: 0rem;
    right: 1rem;
    left: 1rem;
    text-align: right;
}

.container .main .displayholder .panelouter:not([onclick^='gotop("main.php?page=crewlist']):last-child .infoarea {
    padding: 0;
}
.container .main .displayholder .panelouter:not([onclick^='gotop("main.php?page=crewlist']):last-child .infoarea > p:first-child {
    text-align: center;
    font-weight: bold;
    font-size: 2rem;
}
.container .main .displayholder .panelouter:not([onclick^='gotop("main.php?page=crewlist']):last-child .yimage.cimage {
    display: none;
}


.main .displayholder.infoholder {
    height: 100%;
    padding-bottom: 0;
    padding-right: 0;
}

.main .yachtcerts {
    margin: 0;
    width: 100% !important;
    height: 100% !important;
    padding: 0;
    display: flex;
    background-color: rgb(225 226 235);
    background-image: url(https://lighthouse.voly.co.uk/css/dw/dANDw.png);
    background-repeat: no-repeat;
    background-position: calc(100% - 4rem) calc(100% - 4rem);
    background-size: 8rem;
}

.main .displayholder.infoholder .yachtcerts.guestdisplay {
    flex-direction: column;
}

.yachtcerts .cdleft {
    height: 100%;
    width: 250px;
    background: #1b365e;
}
    
.yachtcerts .cdleft .cdimage {
    width: 250px;
    height: 250px;
}

.yachtcerts .cdleft .cdimage > img {
    object-fit: cover;
    height: 100% !important;
    width: 100%;
    margin-left: 0 !important;
}

.yachtcerts .cdmenuholder {
    width: 100%;
}

.yachtcerts .cdmenuholder > div {
    padding: 1rem 2rem;
    box-sizing: border-box;
    height: auto;
    font-size: 1.5rem;
    width: 100%;
    background: transparent;
    font-style: normal;
}

.yachtcerts .cdmenuholder > div.cdmenuitema {
    background: rgb(225 226 235);
    font-weight: 500;
    color: #123
}

.yachtcerts .cdmenuholder > div.cdmenuitemi:hover {
    background: #123;
    color: white;
}

.yachtcerts .cdhead .offname,
.yachtcerts .cdhead {
    font-size: 3rem;
    padding-left: 1rem;
}
.yachtcerts .cdhead .offname {
    font-size: 2.5rem;
}
.yachtcerts #cdright {
    padding: 2rem;
    border: 0px;
}

.yachtcerts #cdright #datadisp {
    margin-top: 8rem;
}

.yachtcerts #datadisp .ltitle,
.yachtcerts #datadisp .litem {
    vertical-align: middle;
    padding: 1rem;
}


div#crewpopup {
    box-shadow: 0;
}

div#fppopup {
    background: rgba(27, 54, 94, 0.85);
}



div.fpage, div.page, div.fsub {
    box-shadow: none;
}

.docouter {
    padding-right: 7rem;
}

.container .docouter select {
    padding: 0;
}

div#listofdocs {
    flex-wrap: wrap;
}

#listofdocs .hdlistheader {
    height: auto;
    padding-top: 2rem;
    padding-left: 2rem;
}

#listofdocs .hdlistheader h3 {
    margin-left: 0;       
}

#listofdocs .hdlistarea {
    height: calc(100% - 91px) !important;
    padding: 2rem;
    border: 0px;
    box-sizing: border-box;
}




/* home > RISK MANAGER =================== */


.container .main .infoholder .riskman {
    margin-top: 0px !important;
    background-color: #d9d9d9;
    box-sizing: border-box;
}


.container .main .infoholder #docedit {
    min-width: 0;
    box-sizing: border-box;
    margin-top: 0;
    background-color: #d9d9d9;
    height: 100% !important;
    background-image: url(https://lighthouse.voly.co.uk/css/dw/dANDw.png);
    background-repeat: no-repeat;
    background-position: calc(100% - 4rem) calc(100% - 4rem);
    background-size: 8rem;
}

button {
    padding: 1rem 2rem;
    border: 0;
    border-radius: 5px;
    background: #1b365e;
    border: 1px solid #1b365e;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 80%;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    max-width: 25rem;
    transition: background 0.3s, color 0.3s;
}

button:hover {
    background: #bacfe8;
    color: #1b365e;
}

.container select,
.container input {
    padding: 0.75rem 1rem;
}

.container select {
    height: 3.25rem;
}

div#docedit p.man {
    display: flex;
    align-items: center;
}

.container .printitem {
    box-shadow: 0;
}


/* home > certlist =================== */

.displayholder.infoholder .certlist  {
min-width: none;
height: auto;
}

.displayholder.infoholder .certlist table.clist {
width: 100%;
max-width: 100%;
margin: 2rem 0;
}

.displayholder.infoholder .certlist table.clist th.cname,
.displayholder.infoholder .certlist table.clist th {
width: auto;
max-width: none;
min-width: 0;
}

.certlist .csv {    
top: 2rem;
right: 2rem;
left: auto;
}
.certlist .csv > a > img {    
display:none;
}

.certlist .csv > a:after {    
content: 'Download Spreadsheet (CSV)';
}

.certlist .csv > a {
padding: 1rem 2rem;
border: 0;
border-radius: 5px;
background: #1b365e;
border: 1px solid #1b365e;
color: white;
text-transform: uppercase;
letter-spacing: 1px;
font-size: 80%;
display: inline-block;
vertical-align: middle;
cursor: pointer;
max-width: 25rem;
transition: background 0.3s, color 0.3s;
text-decoration: none;
max-width: 10rem;
text-align: center;
}

.certlist .csv > a:hover {
background: #bacfe8;
color: #1b365e;
}

/* Maintenance manager view uses #home > .home */

#container #home {
background-color: transparent;
height: auto;
margin: 0;
width: 100%;
height: 100%;
}

#container #home > .home {
width: 100%;
padding: 50px 100px;
box-sizing: border-box;
background: #d9d9d9;
}

#container #home > .home .hph > div {
margin: 0px;
padding: 0;
margin-bottom: 2rem;
border: 0;
border-radius: 5px;
height: auto !important;
}

#container #home > .home .hph > div:not(#njh) > h2 {
float: left;
width: 100%;
padding: 1rem 2rem;
box-sizing: border-box;
border-radius: 5px 5px 0 0;
height: auto;
color: white;
}

#container #home > .home .hph > div > h2.aok {
background: #50B981;
}

#container #home > .home .hph > div > h2.alert {
background: #D90B08;
}

#container #home > .home .hph > div > h2.warng {
background: #df8b2a;
}

#container #home > .home .hph .hpjl {
min-height: 4rem;
background: white;
border-radius: 0 0 5px 5px;
padding: 1rem 2rem;
box-sizing: border-box;
}

#container #home > .home .hph .divmenu.clickable {
display: none;
}


body > .login {
background: transparent;
top: 0;
width: 100%;
transform: none;
left: 0;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
/* LTS-537 rebrand: served from this host so staging/demo and yacht servers
   show the deployed logo rather than whatever is live on lighthouse. */
background-image: url(/css/dw/dw.png);
background-position: center 4rem;
background-size: auto 31px;
background-repeat: no-repeat;
padding: 10rem;
box-sizing: border-box;
}

body > .login p.centered input[type="submit"] {
transition: color 0.3s, background 0.3s;
}

body > .login > p.centered {
margin-bottom: 2rem;
margin-top: auto;
}

body > .login > .loginfields {
margin-top: 0;
width: 100% !important;
}

/* Welcome / MFA / recovery page: Resend Code button */
#resendbtn {
    text-transform: none;
    letter-spacing: normal;
}
#resendbtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
#resendbtn:disabled:hover {
    opacity: 0.5;
}


.displayholder div.otherdoc object {
margin-top: 2rem;
padding-top: 0;
background: white;
}  

.main #viewdoch + .displayholder.infoholder {
height: auto !important;
display: block;
}





/* MENU BAR  ============================== */


body > .menubar {
    background-color: white;
}


div.menubar #noa a {
    font-weight: 900;   
    font-size: 8px;
    text-align: center;
}

div.menubar img {
    margin-top: 5px;
    height: 20px;
}

div.menubar > div:not(.search) {
    width: 65px !important;
    text-align: center;
    border-left: 1px solid #CCC;
    transition: background 0.3s;
    margin: 0;
}

div.menubar > div[title=Notifications] {
    height: 25px;
    width: 25px;
    margin-top: 2px;
    margin-bottom: 2px;
    background-repeat: no-repeat;
    background-position: center;
}

div.menubar > div:hover {
    background-color: #EEE;
}




#popup p a br {
    margin-bottom: 15px !important;
    display: block !important;
    content: ' ';
}

div#popup > div.menuitem p {
    font-size: 1.6rem !important;
    padding: 2rem 2rem;
    box-sizing: border-box;
}


/* ===================================================================
   Promoted from css/dw/overrides/override.css
   =================================================================== */

@font-face {
    font-family: 'Effra';
    src: url(/css/dw/Effra.eot);
    src: url(/css/dw/Effra.eot?#iefix) format('embedded-opentype'),
         url(/css/dw/Effra.otf) format('otf'),
         url(/css/dw/Effra.svg#Effra) format('svg'),
         url(/css/dw/Effra.ttf) format('truetype'),
         url(/css/dw/Effra.woff) format('woff');
    font-weight: normal;
    font-style: normal;
    ascent-override: 90%;
}

body > #popup > .menuitem {
    display: none;
}

body > #popup {
    background-color: rgb(27 54 94);
    color: white;
    font-size: 14px;
    line-height: 20px;
}

.header .user .logo img {
    height: 120px;
    width: 100%;
    object-fit: cover;
}

.menubar {
    overflow: hidden;
}

body > div.menubar > div.alerts[title=Notifications],
body > div.menubar > div.alert[title=Notifications] {
    background: none;
    width: 150px !important;
}

div.menubar #noa a {
    font-weight: 900;
    font-size: 14px;
    text-align: center;
}

div.menubar div.alerts a {
    color: #bf1522;
}

div.menubar #noa a:before {
    content: 'Notifications:';
    display: inline;
    margin-right: 0.5rem;
    color: #112233;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.menubar > * {
    position: relative;
    z-index: 99;
}

div.menubar button.alt {
    height: 30px;
    margin: 0;
    font-size: 12px;
    padding: 0.5rem 2rem;
    border-bottom: 0;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
}


div.menubar .history-back-btn.alt {
    float: right;
}

div.menubar button.alt:hover {
    background-color: #EEE;
}

html > body > div.menubar > .search-container {
    position: absolute !important;
    left: 0;
    right: 0;
    width: auto !important;
    top: 0;
    height: 30px;
    font-size: 14px;
    display: flex;
    transform: translateY(100%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    background: #ffffffc9;
    backdrop-filter: blur(2px);
    cursor: unset;
}

.menubar > .search-container.open {
    pointer-events: all;
    transform: translateX(0%);
    opacity: 1;
}

.search-container > p {
    display: flex;
    align-items: center;
    width: 100%;
    margin-left: 50px;
}

.search-container > p > *:not(:first-child) {
    margin: 0px 10px 0 25px;
}

.search-container #fdt,
.search-container .ycschin {
    margin-left: 10px;
    padding: 4px;
}

/* the certificate search reuses the document search panel, so give its input
   the same width the document one gets from its size attribute */
.search-container .ycschin {
    min-width: 260px;
}

#main > #fd {
    position: absolute;
    inset: 0;
    left: 264px;
    padding: 30px;
    background: #1b365ee8;
    backdrop-filter: blur(4px);
    display: grid;
    overflow: auto;
    grid-gap: 20px;
    z-index: 9;
    grid-template-columns: 2fr 2fr 2fr;
    grid-auto-rows: min-content;
    z-index: 999;
}

#main #fd > img {
    filter: invert(1) blur(0px);
    position: absolute;
    inset: 0;
    margin: auto;
    width: 80px;
    opacity: 0.5;
    mix-blend-mode: plus-lighter;
    left: -270px;
}

#main .hdlistarea > #fd {
    margin: 0;
    border: 0;
    display: grid;
    overflow: auto;
    grid-gap: 20px;
    z-index: 9;
    grid-template-columns: 2fr 2fr 2fr;
    grid-auto-rows: min-content;
    margin-bottom: 2rem;
}

.hdocuments #main .hdlistarea,
.hrecords #main .hdlistarea {
    overflow: initial;
    overflow-y: scroll; /* Added to fix scroll issue. */
}

#main .hdlistarea > #fd p.id {
    margin-left: 0px !important;
}

#main > #fd > h3:first-child,
#main .hdlistarea > #fd > h3:first-child {
    grid-column: 1 / 4;
    font-size: 22px;
    margin-left: 0px !important;
}

#main > #fd .id a {
    text-decoration: none;
    color: white;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.15s;
}

    #main > #fd .id a:before {
    content: '';
    height: 1px;
    background: #FFFFFF1a;
    transform: scaleX(1);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0
}

#main > #fd .id a:after {
    content: '';
    height: 1px;
    background: #7fc1f6;
    transform: scaleX(0);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    transition: transform 0.3s;
    transform-origin: left;
}

#main > #fd .id:focus a:after {
    transform: scaleX(1);
}

#main > #fd .id:hover a {
    color: #7fc1f6;
}

html > body > div.menubar > .search-container button.search-close-btn.alt {
    padding-left: 290px;
    box-sizing: content-box;
    padding-top: 0;
}

.search-container button.search {
    height: 28px;
    padding: 0 2rem;
    border-radius: 0;
    margin-right: 0;
}

#main .menuitem,
#main .menuitem > p {
    width: auto !important;
}

#main .menuitem > p {
    display: inline-block;
    position: relative;
}

#main div:not(.notifhead) > .menuitem:before,
#main div:not(.notifhead) > .menuitem:after {
    content: none;
}

#main .menuitem > p:before,
#main .menuitem > p:after {
    content: ' ';
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    border-bottom: 2px solid #ffffff21;
}

html body .menuitem:hover {
    transition-delay: 0;
}

.header .user .logo a[href='main.php?y=1'] img {
    object-fit: contain;
}

#main .menuitem > p:after {
   border-bottom: 2px solid #7fc1f6;
   transform: scaleX(0);
   transition: transform 0.3s;
   transform-origin: center left;
}

#main .menuitem.menuactive > p:after {
   transform: scaleX(1);
}

#menu, 
#menu .menuitem {
    overflow: visible;
}

#menu .menuitem.open > P,
#menu .menu-popup.open .menuitem:hover > P {
    color:#7fc1f6;
    transition: color 0.3s;
}

#menu .menuitem.open:after {
transform: scaleX(1);
}

#menu .menuitem:after, 
#menu .menuitem:before {
    border-width: 1px;
}


#menu .menu-popup {
    position: absolute;
    left: 100%;
    z-index: 9999;
    background: #112233;
    top: 0;
    padding-left: 2rem;
    overflow: hidden;
    transform: translateX(5%);
    opacity: 0;
    pointer-events: none;
}

#menu .menu-popup.open {
    width: 100%;
    transform: translateX(0%);
    opacity: 1;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: all;
}

#menu .menuitem > p {
    color: white;
}

.menuopen div#main {
    opacity: 0.5;
    filter: blur(3px);
    pointer-events: none;
}

.yachtcerts #main {
    height: 100%;
}

.yachtcerts #main #datadisp,
.yachtcerts #cdright,
.yachtcerts #main.main .yachtcerts,
.yachtcerts .cdaddnew {
    height: auto !important;
}

.container .notifholder .notifhead {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
    min-height: 0;
}

.container .notifholder:not(.mpnotifholder) .notifhead.notifred {
    background: #832137;
}

.container .notifholder:not(.mpnotifholder) .notifhead.notifgre {
    background: rgb(57 130 114);
}

.container .notifholder:not(.mpnotifholder) .notifhead.notifamb {
    background: rgb(172 114 35);
}

.container .notifl3 > .notifhead {
    height: 110px;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.container .notifholder .notif {
    background: linear-gradient(360deg, #1b365ea3, #1b365e);
    box-shadow: 5px 5px 15px 1px #11223352;
    width: calc(100% - 2px);
    backdrop-filter: blur(3px);
    max-width: none;
    overflow-y: auto;
}

.container .notifholder .notifinfo {
max-height: none;
overflow: visible !important;
}

.container .notifholder, 
.container .notifholder:not(.mpnotifholder),
.ycpanelholder {
    padding: 2rem;
    padding-right: 2rem;
    display: grid !important;
    align-items: stretch;
    flex-wrap: wrap;
    grid-auto-flow: dense;
    grid-template-columns: 2fr 2fr 2fr;
    grid-template-rows: 1fr;
    grid-gap: 2rem;
    height: 100%;
}


.notif .notifhead h4 {
    letter-spacing: 0.08em;
}

.notif .notifhead .notifclose, 
.notif .notifhead .synclose {
    position: absolute;
    right: 2rem;
    top: 2rem;
}

.container .notifholder:after {
    height: calc(100% - 6rem);
}
  
div.ismsmslogo {
    right: 1rem;
}

.container .notifholder:not(.mpnotifholder) .notif {
    width: 100%;
    height: auto;
    background: transparent;
}

.container .notifholder:not(.mpnotifholder) .notifinfo {
    background: transparent;
    padding-top: 3rem;
}

.container .notifholder:not(.mpnotifholder) .notif li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ffffff1a;
    color: white;
    font-size: 16px;
}

.container .notifholder:not(.mpnotifholder) .notif li a {
    color: white;
    transition: color 0.3s;
}

.container .notifholder:not(.mpnotifholder) .notif li a:hover {
    text-decoration: none;
    color: #7fc1f6;
}


.container .notifholder:not(.mpnotifholder) .notif li:last-child {
    border-bottom: 0px;
    padding-bottom: 0;
}

#fppopup {
    overflow-y: auto;
}

#fppopup > .newcapinfo {
    width: calc(100% - 4rem);
    padding: 4rem;
    max-width: 767px;
    line-height: 1.75;
    max-height: none;
    min-width: 0;
    margin: 4rem auto;
    overflow-y: visible;
}

#fppopup > .newcapinfo  p.closenewcapinfo {
    margin-top: 2rem;
    width: 100%;
}


/* UPDATE: */

html > body > .container > #main .notifholder > .notif {
    background: #1b365e75;
}

.notifholder .notif > div.notifhead:not(.notifgre):not(.notifamb):not(.notifred) {
    background: #1b365e;
}

html > body > .container > #main .notifholder > .notif > .notifinfo {
    background: linear-gradient(360deg, #1b365e00, #1b365e);
}


/* docs viewer changes */

.hdlistarea {
    position: relative;
    overflow-y: auto;
}

.hdlistarea .ml-pair {
    width: calc(33% - 2rem);
    margin-right: 2rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1b365e1a;
    font-size: 16px;
}

.ml-pair p.ml {
    font-size: inherit;
}

.hdlistarea .ml-pair .mll {
    position: absolute;
    left: 33.33%;
    top: 2rem;
    width: calc(33.33% - 2rem);
}
    
.hdlistarea .ml-pair .hdsd-pair {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 1rem;
    border-bottom: 1px solid #1b365e1a;
}
    

.hdlistarea .ml-pair span[onclick] {
    padding: 1rem 1rem 1rem 0;
}

/* whole row toggles (jsupdate.js), so the whole row gets the pointer */
.hdlistarea p.ml,
.hdlistarea p.hdoc,
.hdlistarea p.hd {
    cursor: pointer;
}

/* holding document level (records page): nests inside column two */
.hdlistarea .ml-pair .hdoc-pair {
    margin-right: 2rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 1rem;
    border-bottom: 1px solid #1b365e1a;
    font-size: 14px;
    position: relative;
}

.hdlistarea .ml-pair .hdoc-pair.open {
    background: #1b365e0f;
    border-bottom: 2px solid #7fc1f6;
}

.hdlistarea .ml-pair .hdoc-pair > p.hdoc {
    font-size: inherit;
    margin-left: 0 !important;
}

.hdlistarea .ml-pair .hdoc-pair > p.hdoc span.shd {
    font-size: inherit;
    margin-left: 0 !important;
}

.hdlistarea .ml-pair .hdoc-pair > .hdl {
    padding-left: 1.5rem;
}

/* records page: column two now holds only the holding docs, so it keeps the standard
   column width rather than swallowing column three */
.hrecords .hdlistarea .ml-pair .mll {
    width: calc(33.33% - 2rem);
}

/* ...and each holding doc's form list opens into column three, using the same offset
   the docs page uses to push .sd across. Records then stack inline under their form
   there (see the .hrecords .sd rule below), keeping the whole page to three columns. */
.hrecords .hdlistarea .ml-pair .hdoc-pair > .hdl {
    position: absolute;
    left: calc(100% + 2rem);
    top: 0;
    width: 100%;
    padding-left: 0;
}

/* Search results (sa()) expand every holding doc at once, which would pile the
   absolutely positioned lists on top of each other - fall back to nesting inline. */
.hrecords .hdlistarea.multiopen .ml-pair .mll {
    width: calc(66.66% - 2rem);
}

.hrecords .hdlistarea.multiopen .ml-pair .hdoc-pair > .hdl {
    position: static;
    padding-left: 1.5rem;
}

/* ...and the same one level up: cun() and sa() open every destination, and column two
   is absolutely positioned, so those lists would stack on each other. Give each
   destination the full width and nest its list underneath. Must stay after the
   .multiopen block above - same specificity, so source order decides. */
.hrecords .hdlistarea.multidest .ml-pair {
    width: calc(100% - 2rem);
}

.hrecords .hdlistarea.multidest .ml-pair .mll {
    position: static;
    width: auto;
    padding-left: 1.5rem;
}

.hrecords .hdlistarea.multidest .ml-pair .hdoc-pair > .hdl {
    position: static;
    padding-left: 1.5rem;
}

.hdlistarea .ml-pair .hdsd-pair {
    margin-right: 2rem;
    border-bottom: 1px solid #1b365e1a;
    font-size: 14px;
    position: relative;
}

.hdlistarea .ml-pair .hdsd-pair .sd span.sdi {
    margin-bottom: 1rem;
    display: inline-block;
}

.ml-pair.open,
.hdlistarea .ml-pair .hdsd-pair.open {
    background: #1b365e0f;
    border-bottom: 2px solid #7fc1f6;
}

.hdlistarea .ml-pair .hdsd-pair > .sd {
    position: absolute;
    left: calc(100% + 2rem);
    top: 0;
    width: 100%;
    margin-left: 0 !important;
}

/* indent with padding, not left: - a shifted 100% width row overhung the shaded
   .hdsd-pair by the offset, so long rows (Forms In Progress) ran outside it.
   left: 0 must stay - it cancels the docs page's calc(100% + 2rem) column push above */
.hrecords .hdlistarea .ml-pair .hdsd-pair > .sd {
    position: relative;
    left: 0;
    padding-left: 30px;
    box-sizing: border-box;
}

.hdlistarea .ml-pair .hdsd-pair span.ssd,
.hdlistarea .ml-pair .hdsd-pair p.id {
    margin-left: 0 !important;
}



/* EDGY change */
.container .main#main {
    height: 100%;
}

.hdocuments .menubar .search-toggle-btn,
.hrecords .menubar .search-toggle-btn,
.yachtcerts .menubar .search-toggle-btn {
    display: none;
}


#main div.document-portrait-holder, 
#main div.document-landscape-holder {
    overflow: auto;
    height: auto;
}


/* #viewdoco changes */

#viewdoch #viewdoco,
#viewformh #viewformo,
#viewformo .viewform {
    overflow: unset;
    position: initial !important;
    width: auto;
}

div#viewformo,
div#viewdoco {
    margin-right: auto;
    max-width: 1080px;
    margin-left: auto;
}
/* 
#main > .fsub {
    display: none;
} */

.settings-menu-outer .settings-menu #fscnt {
    padding: 1rem;
    box-sizing: border-box;
    background: #bacfe8;
}

.settings-menu-outer .settings-menu #fscnt button {
    margin: 0;
    margin-top: 5px;
}

button.settings-btn {
    float: right;
    right: 2rem;
    height: 30px;
    padding: 0 2rem;
    background: #bacfe8;
    color: rgb(27, 54, 94);
    border-bottom: 0;
    border: 0;
    border-radius: 10px 10px 0 0;
}

ul.settings-menu li a {
    color: #1b365e;
    text-decoration: none;
}
ul.settings-menu {
    border: 1px solid #7fc1f6;
    box-shadow: 5px 5px 15px 1px #11223352;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow: hidden;
    z-index: 1000;
    background: #bacfe8;
    border-radius: 1rem 0;
}

.settings-menu-outer {
    height: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    top: 140px;
    right: 20px;
}

.settings-menu-outer.open {
    height: 100%;
    pointer-events: all;
}



/* Vessels page ==== 1px solid #7fc1f6 */

body.vessels #main .ycpanelholder {
    height: auto;
}

body.vessels #main .panelouter {
    height: auto;
    width: 100%;
    margin: 0;
}
    
.vessels .container .main .panelinner {
    margin: 0;
    transition: border 0.3s;
    border: 1px solid;
    border-color: #FFFFFF1a;
}

body.vessels #main.main .panelouter > .panelinner .infoarea:first-child {
padding: 0 3rem;
}

body.vessels #main.main .panelouter > .panelinner .infoarea:last-child {
    font-size: 16px;
}

body.vessels #main.main .panelouter > .panelinner .infoarea > p {
    margin-top: 0.5rem;
}

.crewlist .displayholder .panelinfo .infoarea span[title="Change Rank"] img {
    display: none;
}

.crewlist #main .panelouter .panelinfo .infoareasmlr:nth-child(2) > p > span,
.crewlist #cdright .cdhead .offname > .rank {
    display: block;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    color: #7fc1f6;
}

.crewlist #cdright .cdhead, 
.crewlist #cdright .offname {
    height: 50px;
}

.crewlist #cdright .cdhead .offname > .rank {
    color: #003a70;
}

.crewlist .container .main .panelouter[onclick^='gotop("main.php?page=crewlist'] .infoarea.infoareasmlr:first-child {
    display: none;
}

.crewlist .container .main .panelouter[onclick^='gotop("main.php?page=crewlist'] .infoarea.infoareasmlr:nth-child(2) {
    margin-bottom: 40px;
}

.crewlist .container .main .panelouter[onclick^='gotop("main.php?page=crewlist'] .infoarea.infoareasmlr:nth-child(2) > P {
    font-size: 24px;
}

.crewlist .container .main .panelouter[onclick^='gotop("main.php?page=crewlist'] .infoarea p.pamt[onclick="shopte(event,this);"] {
    color: #7fc1f6;
}

.crewlist .container .main .panelouter[onclick^='gotop("main.php?page=crewlist'] .infoarea p.pamt:not([onclick="shopte(event,this);"]) {
    font-size: 14px;
}

.crewlist .container .main .panelouter .infoarea > p:nth-child(3), 
.crewlist .container .main .panelouter .infoarea > p:nth-child(4) {
    display: none;
}

.crewlist .container #main,
.vessels .container #main {
    background: #112233;
}

.container .main .panelouter > .panelinner {
    border: 1px solid #ffffff00;
    background: #1b365e;
    transition: border 0.3s linear;
    border-radius: 3px;
}

.crewlist .container .main .panelouter[onclick^='gotop("main.php?page=crewlist'] .panelinner .cimage {
    height: auto;
    background-position: top;
}

.crewlist .container .main .displayholder .panelouter .panelinner {
    align-items: stretch;
}

.crewlist .yachtcerts .cdleft .cdimage > img {
    object-position: 50% 20%;
}


div.menubar > div:not(.search) {
    width: auto !important;
    min-width: 65px; 
}


/* YACH CERTS */

button {
    font-family: inherit;
}

div.certrow, .ltitle, .litem {
    border: 0;
}

.certrow .critemw {
    width: 40%;
}

button.alt {
    padding: 1rem;
    background: transparent;
    color: #1b365e;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid;
    padding: 0.5rem;
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
    transition: opacity 0.3s;
}

button.alt:hover {
    opacity: 0.5;
}

.displayholder #datadisp .certlist .litem.critemi.critemc {
    height: auto;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: right;
}

.certlist > P > B {
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    margin-top: 1.5rem;
    color: #112233;
    font-weight: 900;
    letter-spacing: 1px;
    /* text-align: right; */
}

.yachtcerts #cdright #datadisp,
.main .yachtcerts {
    height: auto !important;
}

.yachtcerts #datadisp .ltitle, 
.yachtcerts #datadisp .litem {
    vertical-align: middle;
    padding: 1rem;
    margin: 15px 5px 15px auto;
}

.yachtcerts #datadisp .critem {
    width: auto
}

.yachtcerts #datadisp .critemc {
    display: table-cell;
}

.litem.critemi.critemc > button {
    background: #FFFFFF52;
    color: #1b365e;
    border: 0;
    border: 1px solid #1b365e;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin: 0;
    width: 100%;
    margin: 0.5rem 0rem 0;
    transition: all 0.3s;
    max-width: 100px;
}

.certrow .litem.critemi.critemc:last-child > button {
    margin: 0.5rem 0;
}

.certrow .litem.critemi.critemc > button.alt:hover {
    opacity: 1;
    background: #FFFFFF;
}

.certlist .certrow .ltitle.critemi.critemc:last-child {
    margin: 1rem 3rem;
    padding: .75rem;
    text-align: center;
    display: flex !important;
    justify-content: center;
    align-items: center;
    transition: color 0.3s, border 0.3s;
    box-sizing: border-box;
    margin-right: 1rem;
    border: 1px solid white;
    border-radius: 10px;
    box-sizing: content-box;
    padding: 0.1rem 1rem !important;
}

.certlist .certrow .ltitle.critemi.critemc:last-child > img {
    display: none;
}

.certlist .certrow .ltitle.critemi.critemc:last-child:after {
    content: 'Add New';
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 60px;
}

.certlist .certrow .ltitle.critemi.critemc:last-child:hover {
    border-color: #7fc1f6;;
    color: #7fc1f6;
}

.menubar > .cagl:last-child {
    width: auto !important;
}

.menubar .cagl {
    border-left: 0px;
}

.menubar .cagl > button.alt {
    width: auto !important;
    height: 31px;
    font-weight: 300;
    font-size: 12px;
    border-right: 0px;
}
