/* ERROR: Failed to compile LESS code:
 Variable references are not allowed in LESS */

:root {
	--themePrimary: #00174c;
	--themePrimaryLight: #95d4fd;
	--themePrimaryDark: #000f32;
	--themeSecondary:#9c6cf9;
	--themeTeritary: #8e9aa7;
	--logoWidth: 80px;
}
/*
.logo {
	background-image: url(https://trainingv3.tsnocode.com/bmsa/media/ts-logo-FFF.1.svg);
	opacity: 1;
}
*/


body:has( div.boardCommand) {
    background-color: var(--themePrimary);
}

.boardCommand h1 { color: #FFFFFF; }

.boardCommand .table>thead>tr>th, 
.boardCommand .table>tbody>tr>td {
    white-space:nowrap;
}

.logo {
	background-image: url(https://trainingv3.tsnocode.com/bmsa/media/bmsa-white.2.svg);
	opacity: 1;
	left: calc(50% - 40px);
}


.debugTime {
	display: none;
}

.LoginPage {
    background-color: var(--themePrimary);
}


/*--- Test Row Hover ---------------------------------------------- */

/* --- Reviced ClickRecord --- */

.clickRecord.btn {
    width: 90%;
    font-size: .9rem;
    border: none;
    background: transparent;
    display: block;
    padding: .55rem;
    margin: 5%;
}

.tsUpdateButtons.row { 
    margin-right: 0px; 
    margin-left: 0px; 
}


.listCommand .tableFiles > tbody > tr > td,
.editCommand .tableFiles > tbody > tr > td,
.listCommand .tableFiles > tbody > tr > td a,
.editCommand .tableFiles > tbody > tr > td a { 
   color: inherit;
   font-size: 1rem; 
}



/* --- Listview Hover on Row ----------------------------------------------------------------- */
.listCommand .viewList thead tr:hover,
.editCommand .viewList thead tr:hover { background-color: transparent; }
.listCommand .viewList tbody tr:hover,
.editCommand .viewList tbody tr:hover { background-color: inherit; color: inherit; cursor: pointer; }
.listCommand .viewList tbody tr:hover .fa,
.editCommand .viewList tbody tr:hover .fa { opacity: 1.0; color: inherit; }

.editCommand .tableFiles > tbody > tr:hover { background-color: inherit; color: var(--themeSecondary); cursor: pointer;}
.editCommand .tableFiles > tbody > tr:hover .fa { opacity: 1.0; color: var(--themeSecondary); }
.editCommand .tableFiles > tbody > tr:hover a { color: var(--themeSecondary); cursor: pointer;}
.editCommand .tableFiles > tbody > tr:hover > td { color: var(--themeSecondary); cursor: pointer;}

.listCommand .viewList .btn:hover,
.editCommand .viewList .btn:hover { background: transparent; }

/* --- Remove margin bottom on nested tables -------------------------------------------------- */

.table-responsive .table-responsive {
  margin-bottom: 0rem;
}
/* --- ClickRecord Private Styles ------------------------------------------------------------- */

tr .fa {
  opacity: 0.2;
}

tr:hover .fa,
tr .TriState .fa {
  opacity: 0.2;
}

.uploadImages tr:hover .fa { 
    color: var(--themeSecondary);
    opacity: 1; 
}

/* --- Changes to be implemeted in core stylesheet --- */

.burger {
	background-color: transparent;
    color: var(--themeLight);
}

.tsUpdateButtons.row {
	margin-left: 0px;
	margin-right: 0px;
}

.btn-personal {
	color: var(--themeLight);
	opacity: 0.6;
}

.btn-personal:hover {
	color: var(--themeLight);
	opacity: 1;
}


.updateSubmit {
    margin-left: .1rem;
    margin-right: .1rem;
    margin-bottom: .25rem;
}

div.swal2-container div.swal2-actions button.swal2-styled, .btn-primary {
    color: var(--themePrimaryLight);
    background-color: var(--themePrimary);
    border-color: var(--themePrimary);
}

div.swal2-container div.swal2-actions button.swal2-styled:hover, div.swal2-container div.swal2-actions button.swal2-styled:active, div.swal2-container div.swal2-actions button.swal2-styled:focus, .btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    color: var(--themePrimary);
    background-color: var(--themePrimaryLight);
    border-color: var(--themePrimaryLight);
    opacity: 1;
}

.param .label {font-size: 0.8rem;background-color: var(--themeGrey);}

.btn-default.active, .btn-default.focus, .btn-default:active, .btn-default:focus, .btn-default:hover, .open>.dropdown-toggle.btn-default {
    color: var(--themeSecondary);
    background-color: transparent;
    border-color: var(--themeSecondary);
}

.toolBar .btn:hover { color: var(--themeSecondary); }


/* --- List Command Styles --- */


.viewList .btn:hover { 
    background: transparent;
    color: inherit; 
}


/* Table Row Backgr */

.listCommand .table-striped>tbody>tr.customStyle_Modtaget { background-color: rgba(255, 61, 87, 0.2); }
.listCommand .table-striped>tbody>tr.customStyle_Planlagt { background-color: rgba(255, 61, 87, 0.2); }
.listCommand .table-striped>tbody>tr.customStyle_Igang { background-color: rgba(255, 176, 0, 0.2); }
.listCommand .table-striped>tbody>tr.customStyle_Godkendt { background-color: rgba(0, 215, 72, 0.2); }
.listCommand .table-striped>tbody>tr.customStyle_Udfrt { background-color: rgba(0, 215, 72, 0.2); }

.listCommand .table-striped>tbody>tr.customStyle_Faktureret { background-color: rgba(0, 215, 72, 0.2); }


.editCommand .table-striped>tbody>tr.customStyle_Modtaget { background-color: rgba(255, 61, 87, 0.2); }
.editCommand .table-striped>tbody>tr.customStyle_Planlagt { background-color: rgba(255, 61, 87, 0.2); }
.editCommand .table-striped>tbody>tr.customStyle_Igang { background-color: rgba(255, 176, 0, 0.2); }
.editCommand .table-striped>tbody>tr.customStyle_Godkendt { background-color: rgba(0, 215, 72, 0.2); }
.editCommand .table-striped>tbody>tr.customStyle_Udfrt { background-color: rgba(0, 215, 72, 0.2); }

.editCommand .table-striped>tbody>tr.customStyle_Faktureret { background-color: rgba(0, 215, 72, 0.2); }



/* Table Row Backgr Hover */

.listCommand .table-striped>tbody>tr.customStyle_Modtaget:hover { background-color: rgba(255, 61, 87, 0.5); }
.listCommand .table-striped>tbody>tr.customStyle_Planlagt:hover { background-color: rgba(255, 61, 87, 0.5); }
.listCommand .table-striped>tbody>tr.customStyle_Igang:hover { background-color: rgba(255, 176, 0, 0.5); }
.listCommand .table-striped>tbody>tr.customStyle_Godkendt:hover { background-color: rgba(0, 215, 72, 0.5); }
.listCommand .table-striped>tbody>tr.customStyle_Udfrt:hover { background-color: rgba(0, 215, 72, 0.5); }

.listCommand .table-striped>tbody>tr.customStyle_Faktureret:hover { background-color: rgba(0, 215, 72, 0.5); }


.editCommand .table-striped>tbody>tr.customStyle_Modtaget:hover { background-color: rgba(255, 61, 87, 0.5); }
.editCommand .table-striped>tbody>tr.customStyle_Planlagt:hover { background-color: rgba(255, 61, 87, 0.5); }
.editCommand .table-striped>tbody>tr.customStyle_Igang:hover { background-color: rgba(255, 176, 0, 0.5); }
.editCommand .table-striped>tbody>tr.customStyle_Godkendt:hover { background-color: rgba(0, 215, 72, 0.5); }
.editCommand .table-striped>tbody>tr.customStyle_Udfrt:hover { background-color: rgba(0, 215, 72, 0.5); }

.editCommand .table-striped>tbody>tr.customStyle_Faktureret:hover { background-color: rgba(0, 215, 72, 0.5); }




.listCommand tr.customStyle_Modtaget>td:first-child,
.listCommand tr.customStyle_Planlagt>td:first-child {
    border-left: 4px solid #FF3D57;
}
 
.listCommand tr.customStyle_Igang>td:first-child {
    border-left: 4px solid #FFB000;
}

.listCommand tr.customStyle_Udfrt>td:first-child,
.listCommand tr.customStyle_Godkendt>td:first-child,
.listCommand tr.customStyle_Faktureret> td:first-child {
    border-left: 4px solid #00D748;
}


/* --- Edit Command Styles --- */

.editCommand .tableList tr.customStyle_Planlagt> td:first-child {
    border-left: 4px solid #FF3D57;
}

.editCommand .tableList tr.customStyle_Igang> td:first-child {
    border-left: 4px solid #FFB000;
}

.editCommand .tableList tr.customStyle_Udfrt> td:first-child,
.editCommand .tableList tr.customStyle_Godkendt> td:first-child,
.editCommand .tableList tr.customStyle_Faktureret> td:first-child {
    border-left: 4px solid #00D748;
}


.custom-file-label::after { height: auto; }

/* --- Dashboard Styles --- */


.boardCommand h3 {
    color: var(--themeLight);
}

.tsWidgetIcon {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--themeLight);
}

.tsWidgetIcon:hover {
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--themeLight);
    cursor: pointer;
}

.tsWidgetAmount {
    color: var(--themeLight); 
}

.boardCommand .table {
    color: var(--themeLight);
    background-color: transparent;
}

.boardCommand .table>tbody>tr>th, 
.boardCommand.table>thead>tr>th {
    background-color: tansparent;
    border-color: #FFFFFF;
}

.tsWidgetInnerBC {
    border: 1px solid;
    border-color: transparent;
    background: rgba(255, 255, 255, .1);
    border-radius: .5rem;
    box-shadow: none;
}

.boardCommand .table-striped>tbody>tr:nth-of-type(odd) {
    background-color: transparent;
}

.boardCommand .viewList tbody tr:hover,
.boardCommand .viewList tr:hover td {
    background-color: transparent!important;
}

.boardCommand .viewList tbody tr:hover,
.boardCommand .tsWidgetQuery tbody tr:hover {
    background-color: rgba(0, 0, 0, .1)!important;
    cursor: pointer;
}

.tsWidgetDev {
    color: rgba(255,255,255, .6);
}

.tsDashboardPage > div:not(.row) .tsWidget.tsWidgetEmpty { 
    display: none; 
}

/* --- Tabel Headings --- */
.boardCommand .table>tbody>tr>th, 
.boardCommand .table>thead>tr>th {
    border: 0;
    background-color: transparent;
    color: var(--themeLight);
    font-size: .6rem;
    letter-spacing: .15rem;
}

.boardCommand .table-bordered td, 
.boardCommand .table-bordered th {
    border: 0px solid #FFFFFF;
    border-bottom: 1px dotted;
    border-color: rgba(255, 255, 255, 0.5);
}

.boardCommand .table-bordered td:first-child, 
.boardCommand .table-bordered th:first-child { display: none;}

.boardCommand .table-bordered th:nth-child(2) { width: 20%;}

.boardCommand .table-bordered td:nth-child(4), 
.boardCommand .table-bordered th:nth-child(4) { width: 10%;}

/* Section Headers */

.pageSectionLayout .tableForm > tbody > tr > td.sectionTitle {
    position: relative;
}

.pageSectionLayout .tableForm > tbody > tr > td.sectionTitle::after {
    font-family: 'Material Icons';
    content:"arrow_forward";
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    color:inherit;
    position: absolute;
    top: 10px;
    right: 15px;
    transition: .6s;
}

.pageSectionLayout .tableForm > tbody > tr > td.sectionTitle:hover::after {
    font-family: 'Material Icons';
    content:"arrow_downward";
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    color:inherit;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Fix tableImage in section Layout. The original styling should be deleted in core. */

.pageSectionLayout .tableForm .tableImages,
.tsLayoutColumnsTwo .pageSectionLayout .tableForm .tableImages { 
    display: table;
    border-collapse: separate;
    border-spacing: 0; 
    margin-bottom: 0rem; 
    background-color: transparent; 
}

.pageSectionLayout .tableForm .tableImages tr,
.tsLayoutColumnsTwo .pageSectionLayout .tableForm .tableImages tr {
    display: table-row;
}

.pageSectionLayout .tableForm .tableImages tr td,
.tsLayoutColumnsTwo .pageSectionLayout .tableForm .tableImages tr td { 
    display: table-cell;
    float: none; 
    width: auto; 
    border: 0; 
    padding: .55rem .275rem;
    margin: 0rem;
}

.pageSectionLayout .tableImages .thumbnail { 
    display: inline-block;
    margin: 0px; 
    margin-right: 0px;
    margin-bottom: 0px; 
}
.pageSectionLayout .tableImages .thumbnail img { 
    width: 100%; 
    height: auto; 
    min-width: 50px; 
    object-fit: cover; 
}

/* --- Pager Adjustments --- */

.pagerLink.btn.btn-default.disabled {
    color: #8e9aa7;
    background-color: var(--themeLight);
    border-color: var(--defaultButtonBorderColor);
    cursor: default;
}

.pagerSelected.btn:hover {
    color: #8e9aa7;
    background-color: #e9ecef;
    border-color: var(--defaultButtonBorderColor);
    cursor: default;
} 





@media screen and (max-width: 800px) {

#tsUserFullname {
    color: var(--themePrimary);
    background: var(--themePrimaryLight);
}

.pageSectionLayout .tableForm tbody tr td { width: auto; }
.FieldLabel { margin-bottom: .15rem; }

}


@media screen and (max-width: 768px) {

  .tsWidget { margin-bottom: 15px; }



}
