/* ReSharper disable once DeclarationIsEmpty */
html, body
{
    margin: 0;
    padding: 0;
    height: 100%;
    min-width: var(--page-min-width);
    min-height: var(--page-min-height);
    font-family: Arial, Tahoma, Verdana, sans-serif;
    font-size: 14px;
    color: White;
    background-color: var(--main-cralog-color-dark);
}

a
{
    color: var(--main-cralog-color);
}

a img
{
    border: none;
}

th
{
    text-align: left;
}

div.Page
{
    min-height: 100%;
    position: relative;
}

div.Header
{
    border-bottom: solid 1px var(--main-cralog-color);
    padding-left: 5px;
    display: grid;
    grid-template-columns: 232px auto;
    position: relative;
}

.Header img
{
    margin-left: auto;
    margin-right: auto;
}

div.HeaderText
{
    font-size: 2.0em;
    margin-right: 10px;
    text-align: right;
    align-self: center;
}

div.Content
{
    position: relative;
}

div.FlexContent
{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
}
table.Grid.FlexContent {
    margin-bottom: 25px;
}

table.Content td
{
}

td.LeftContent
{
    vertical-align: top;
}

td.RightContent
{
    min-width: 700px;
    padding: 0 30px 10px 30px;
    display: block;
    vertical-align: top;
}

@media (max-width: 768px) {
    td.RightContent {
        min-width: 100%;
        padding: 0 10px 10px 10px;
    }
}

div.Footer
{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    border-top: dotted 1px var(--main-cralog-color);
    display: grid;
    grid-template-columns: 250px auto 250px;
    justify-content: space-between;
    align-items: center;
}

div.FooterLeft ul li,
div.FooterLeft
{
    grid-column: 2;
}

div.FooterLeft span
{
    font-size: 13px;
    display: inline;
    padding-right: 15px;
}

div.FooterRight
{
    text-align: right;
    padding-right: 0.5em;
    grid-column: 3;
}

div.FooterRight.Transparent
{
    color: transparent;
}

div.FooterPadding
{
    height: 50px;
}

div.LoginPanel2 {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 230px;
    z-index: 1000;
}

div.LoginPanel {
    color: Black;
    font-size: 16px;
    background-image: url(/Images/LoginPanel.png);
    background-position: left bottom;
}

div.LoginPanelLeft
{
    float: none;
    padding: 10px 0 15px 10px;
    text-align: center;
}

div.LoginPanelRight
{
    float: right;
    padding: 5px;
}

div.QrPanel {
    font-size: 14px;
    color: white;
    text-align: center;
    margin: 5px;
}

div.QrPanel.LoginQrPanel {
    background-color: var(--panel-background-color-grey);
    border: dotted 1px var(--panel-border-color-lightgrey);
    clear: left;
    float: left;
}

div.QrPanel.ProviderQrPanel {
    background-color: var(--panel-background-color-grey);
    border: dotted 1px var(--panel-border-color-lightgrey);
    clear: left;
    float: left;
}

div.QrPanel.ProviderEditQrPanel {
    color:black;

}
div.ProviderEditQrPanel a {
    display: block;
    margin: 5px 10px 10px;
    color:black;
}


div.QrPanel a.ShowPanel {
    background: black;
    margin: 0;
    padding: 5px 5px 5px;
}

div.QrPanel img,
div.UserQrPanel img {
    display: block;
    margin: 3px auto 5px;
}

div.QrPanel a,
div.UserQrPanel a {
    display: block;
    margin: 5px 10px 10px;
}

/* Input control that corresponds to an error */
input.input-validation-error[type="text"],
input.input-validation-error[type="password"],
select.input-validation-error
{
    border: 1px solid Red;
    background-color: #f0A0A0;
}

/* Text rendered by Html.ValidationMessage() */
.field-validation-error
{
    color: Red;
}

/* Text rendered by Html.ValidationSummary() */
.validation-summary-errors
{
    font-weight: bold;
    color: Red;
}

span.InfoLineGreen
{
    display: inline-block;
    color: green;
    padding: 5px;
    margin-bottom: 10px;
    white-space: pre-line;
}

span.InfoLineRed
{
    display: inline-block;
    color: red;
    padding: 5px;
    margin-bottom: 10px;
    white-space: pre-line;
}

span.InfoLineNeutral
{
    display: inline-block;
    padding: 5px;
    margin-bottom: 10px;
    white-space: pre-line;
}


span.ActionDescription
{
    display: inline-block;
    line-height: 1.3;
    margin-bottom: 10px;
    white-space: pre-line;
}

div.Search
{
    box-sizing: border-box;
    background-color: var(--panel-background-color-grey);
    border: dotted 1px var(--panel-border-color-lightgrey);
    padding: 10px;
    margin-bottom: 10px;
    min-width: fit-content;
    width: clamp(350px, 830px, 100%);
}
div.Search input.DateBox
{
    width: 83px;
    text-align: center;
}
div.Search span
{
    width: 200px;
    margin-right: 100px;
}

div.Search input[type=text], div.Search select
{
    margin-right: 1em;
    margin-left: 0.5em;
}

div.Create
{
    margin-top: 5px;
    margin-bottom: 10px;
}

table.Grid
{
    border-collapse: collapse;
}

table.Grid a
{
    color: White;
    text-decoration: none;
}

table.Grid a:hover
{
    text-decoration: underline;
}

table.Grid th, .GridHeader, .Grid thead th
{
    color: Black;
    background-color: var(--main-cralog-color);
    border-top: solid 1px var(--cell-border-top-color);
    border-bottom: solid 1px var(--cell-border-bottom-color);
}

table.Grid.EquipmentCatalog th:nth-child(3)
{
    width: 400px;
}

table.Grid.EquipmentCatalog th:nth-child(4)
{
    width: 250px;
}

table.Grid th a
{
    color: Black;
}

table.Grid td
{
    padding: 2px 5px;
}

.GridHeader, .GridHeader a
{
    padding: 2px 5px;
    color: black;
}

.GridHeader a
{
    text-decoration: underline;
    cursor: pointer;
}

table.Grid td, td.Grid
{
    border-bottom: dotted 1px #D3DFEE;
    height: 17px;
    padding-top: 5px;
    padding-bottom: 5px;
}
table.Grid tfoot
{
}
table.Grid tfoot td
{
    padding: 0;
    border-bottom: none;
}

table.Grid td table td
{
    border: none 0 black;
}

table.Grid td.Control
{
    padding: 2px 1px;
}

div.GridPager
{
    padding: 5px;
}

div.GridPager a
{
    color: White;
    background-color: var(--panel-background-color-grey);
    border: solid 1px var(--panel-border-color-lightgrey);
    display: inline-block;
    padding: 0 4px;
    margin-right: 2px;
    text-align: center;
}

div.GridPager span.CurrentPage,
div.GridPager span.Separator,
div.GridPager span.GridPageSize span.CurrentPageSize
{
    display: inline-block;
    padding: 0 4px;
    margin-right: 2px;
    font-weight: bold;
}

div.GridPager span.CurrentPage,
div.GridPager span.GridPageSize span.CurrentPageSize
{
    color: Black;
    background-color: White;
    border: solid 1px var(--panel-border-color-lightgrey);
}

div.GridPager span.GridPageSize
{
    display: block;
    float: right;
}

div.GridPager span.GridPageSize form
{
    display: inline;
}

table.Grid.Inspections {
    min-width: 400px;
    max-width: 1500px;
}

table.Grid a.ProviderLink {
    text-decoration: underline;
}

table.Grid.Inspections th[rowspan]:first-child {
    width: 180px;
}

/* Date */
table.Grid.Inspections th:nth-child(2){
    width: 90px;
}

/* Type */
table.Grid.Inspections td:nth-child(4) {
    text-align: center;
}

/* Equipment order */
table.Grid.Inspections th[rowspan]:nth-child(5) {
    width: 30px;
}
table.Grid.Inspections td:nth-child(5) {
    text-align: center;
}

/* IMO Number */
table.Grid.Inspections th:not([colspan]):not([rowspan]):nth-child(1) {
    /*width: 65px;*/
}

/* Name */
table.Grid.Inspections th:not([colspan]):not([rowspan]):nth-child(2) {
    width: 200px;
}

table.Grid.Inspections th:nth-last-child(2) {
    width: 100px;
}

table.Grid tr.Unread, tr.Unread a {
    color: #ffeb3bdb;
}

table.Grid a {
    text-decoration: underline;
}

table.Edit
{
    border-collapse: collapse;
    border: solid 1px var(--main-cralog-color);
}

table.Edit td
{
    padding: 2px 5px;
}

table.Edit>tbody>tr>td:first-child, table.Edit>tr>td:first-child
{
    color: Black;
    background-color: var(--main-cralog-color);
    font-weight: bold;
    white-space: nowrap;
}

table.Edit input[type="text"],
table.Edit input:not([type]),
table.Edit input[type="number"],
table.Edit input[type="email"],
table.Edit input[type="tel"],
table.Edit select
{
    width: 400px;
    box-sizing: border-box;
}

/* Chrome, Safari, Edge, Opera */
table.Edit input::-webkit-outer-spin-button,
table.Edit input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
table.Edit input[type=number] {
    -moz-appearance: textfield;
}

table.Tree
{
    border-collapse: collapse;
}

table.Tree th
{
    color: Black;
    background-color: var(--main-cralog-color);
    border-top: solid 1px var(--cell-border-top-color);
    border-bottom: solid 1px var(--cell-border-bottom-color);
    text-align: left;
    padding: 2px;
    min-width: 75px;
}

table.Tree td
{
    padding-left: 5px;
}

table.Tree a
{
    color: White;
    text-decoration: none;
}

table.Tree a:hover
{
    text-decoration: underline;
}

table.Tree img
{
    border: none;
    margin: 0 3px 1px 0;
}

span.WaitMessage
{
    color: #424242;
    font-style: italic;
}

input.Delete
{
    background: transparent url(/Images/Delete.gif) no-repeat center top;
    border: none;
    text-indent: -50px;
    vertical-align: top;
    cursor: pointer;
}

table.Details
{
    margin-bottom: 10px;
}

table.Details tr td:first-child
{
    font-weight: bold;
    padding-right: 5px;
}

div.Add
{
    background-color: var(--panel-background-color-grey);
    padding: 10px;
    margin: 10px 0;
}

div.Back
{
    margin-bottom: 10px;
}

input.ToggleTextShown, textarea.ToggleTextShown
{
    color: GrayText;
}

div.InactiveUser, tr.InactiveUser td, tr.InactiveUser td a
{
    color: VAR(--standard-inactive-color)
}

div.NoCert, tr.NoCert td, tr.NoCert td a
{
    color: #f08080;
}


div.InactiveProvider, tr.InactiveProvider, tr.InactiveProvider td a span
{
    color: VAR(--standard-inactive-color)
}

div.InvalidEntry, tr.InvalidEntry, .InvalidEntry
{
    color: GrayText;
}

div.NotHandledCatalogEntry, tr.NotHandledCatalogEntry, tr.NotHandledCatalogEntry a, .NotHandledCatalogEntry
{
    color: #f08080;
}

div.NotHandledCatalogEntryWithoutEvidence,
tr.NotHandledCatalogEntryWithoutEvidence,
tr.NotHandledCatalogEntryWithoutEvidence a,
.NotHandledCatalogEntryWithoutEvidence
{
    color: #607d8b;
}

div.LegacyCatalogEntry, tr.LegacyCatalogEntry, tr.LegacyCatalogEntry a, .LegacyCatalogEntry
{
    color: #808080;
}
div.InvalidCatalogEntry, tr.InvalidCatalogEntry, tr.InvalidCatalogEntry a, .InvalidCatalogEntry
{
    color: #808080;
}
div.SeriesCatalogEntry, tr.SeriesCatalogEntry, tr.SeriesCatalogEntry a, .SeriesCatalogEntry
{
}
div.ModelCatalogEntry, tr.ModelCatalogEntry, tr.ModelCatalogEntry a, .ModelCatalogEntry
{
    color: lightgreen;
}
tr.NotHandledCatalogEntry a,
tr.LegacyCatalogEntry a,
tr.InvalidCatalogEntry a,
tr.SeriesCatalogEntry a,
tr.ModelCatalogEntry a
{
    text-decoration: underline;
}
table.Grid tr.InvalidEntry.NotColspan td[rowspan] {
    background-color: black;
}
table.Grid tr.InvalidEntry.NotColspan td:not([rowspan]) {
    background-color: #c33803;
}

div.UserListLegend,
div.ProviderListLegend,
div.EquipmentCatalogLegend,
div.CertificateListLegend
{
    text-align: center;
    font-size: 12px;
    margin: 10px;
}

div.UserListLegend div,
div.ProviderListLegend div,
div.EquipmentCatalogLegend div,
div.CertificateListLegend div
{
    display: inline-block;
    vertical-align: middle;
    margin-inline-start: 15px;
    border: solid 1px var(--panel-border-color-lightgrey);
    height: 15px;
    width: 200px;
}

div.CertificateListLegend div
{
    height: 15px;
    width: 150px;
}

div.UserListLegend div:first-child,
div.ProviderListLegend div:first-child,
div.EquipmentCatalogLegend div:first-child,
div.CertificateListLegend div:first-child
{
    margin-inline-start: 0;
}

div.InactiveUserCertificate,
tr.InactiveUserCertificate,
div.NotLinkedUserCertificate, 
tr.NotLinkedUserCertificate,
/*Color of links*/
a.InactiveUserCertificate:link,
a.InactiveUserCertificate:visited,
a.InactiveUserCertificate:hover,
a.NotLinkedUserCertificate:link,
a.NotLinkedUserCertificate:visited,
a.NotLinkedUserCertificate:hover
    
{
    color: #808080;
}

div.ExpiredCertificate, 
tr.ExpiredCertificate, 
/*Color of links*/
a.ExpiredCertificate:link,
a.ExpiredCertificate:visited,
a.ExpiredCertificate:hover
{
    color: #f08080;
}

div.ActiveCertificate, 
tr.ActiveCertificate,
tr.ActiveCertificate td a,
/*Color of links*/
a.ActiveCertificate:link,
a.ActiveCertificate:visited,
a.ActiveCertificate:hover
{
    color: lightgreen;
}

.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}

div.popupTextContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: rgba(40, 40, 40, 0.9);
}

div.popupTextWindow {
    background: black;
    position: absolute;
    height: 300px;
    width: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 5px;
    border-radius: 5px;
}

div.popupTextTitle {
    background-color: var(--cell-border-top-color);
    padding: 10px;
    font-size: 15px;
    border-radius: 5px;
    padding-left: 20px;
    font-weight: bold;
}

div.popupTextContent {
    padding-left: 20px;
    padding-right: 20px;
}

.popupTextButton {
    position: absolute;
    right: 30px;
    bottom: 20px;
}

.spoilerButton {
    border: none;
    background: transparent;
    color: white;
    border-bottom: 1px dotted white;
    cursor: pointer;
}

.spoilerButton:focus {
    outline: none;
}

td.secondaryHeader, 
tr.secondaryHeader td    
{
    text-align: left !important;
    font-weight: bold;
    font-size: 90%;
    color: black !important;
    border-bottom: none !important;
    border-top: none;
    border-right: none;
    border-left: none;
    background-color: #afafaf;
    border-color: #afafaf;
}

td.flagCell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space:nowrap;
}

table.EquipmentList select.InspectionType {
    width: 100%;
}

#flagRulesPartialContainer img {
    vertical-align: middle;
}

div.MainSubMenu {
    margin-top: 30px;
}

div.QrPanel.MainMenuQrPanel {
    background-color: var(--panel-background-color-grey);
    border: dotted 1px var(--panel-border-color-lightgrey);
    margin: auto;
    clear: right;
}

tr.CreditsAdded
{
    color: green;
}
tr.CreditsWithdrawn
{
    color: red;
}

input.ec-datefield {
    width: 195px;
    margin-left: 0.5em;
}

div.centerScreen {
    position: fixed;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

div.centerScreenMessage {
    text-align: left;
    padding: 10px;
}

select.staffDropDown {
    min-width: 110px;
}

.AttentionInfo {
    color: #dad55e; 
    float: none;
    font-style: italic;
    font-size: 1.1em;
    font-weight: normal;
    padding-left: 5px;    
    margin-top: 10px;    
}

.InactiveLink {
    color: grey;
    text-decoration: underline; 
}


table.Edit select.IsoTypeSelect {
    width: 1000px;
}


.spinner {
    border: 16px solid silver;
    border-top: 16px solid var(--main-cralog-color);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    animation: spin 700ms linear infinite;
    top: 215px;
    left: 600px;
    position: absolute;
}

.disabled-button {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.center-text {
    text-align: center;
}

.Absent {
    background-color: #f08080;
    border-width: 1px;
    border-color: red;
}

@media (max-width: 768px) {
    .ui-dialog {
        width: 90vw !important;
        left: 5vw !important;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

button.MenuToggle {
    display: none;
    position: absolute;
    left: 5px;
    top: 5px;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 768px) {
    button.MenuToggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    td.LeftContent {
        display: none;
    }

    td.LeftContent.ShowMenu {
        display: table-cell;
        position: absolute;
        z-index: 1000;
        background-color: var(--main-cralog-color-dark);
        width: 235px;
    }
}
