:root {
	--themePrimary: #50e2c1;
	--themePrimaryLight: #e0fff8;
	--themePrimaryDark: #336666;
	--themeSecondary:#8c2db3;
	--themeTeritary: #8e9aa7;
	--logoWidth: 180px;
}

.logo {
	background-image: url(https://www.tempusserva.dk/share/ts-logo_333.svg);
}

.debugTime {
	display: none;
}
:root {
    --themePrimary: #006666;
    --themePrimaryLight: #b0ebda;
    --themePrimaryDark: #015454;
    --themeSecondary: #9c6cf9;
    --themeGreyDark: #5a626b;
    --themeLightGrey: #f8f9fc;
    --themeLight: #ffffff;

    --headerColor: var(--themeLight);
    --boxColor: var(--themethemeDark);
    --boxBgColor: var(--themeLight); 
	--primaryButtonColor: var(--themeLight);
}

@view-transition {
    navigation: auto;
}

/* --- Adjusting the New Accent Color Property --- */

input, input[type=checkbox], input[type=radio], input[type=range], progress {
    accent-color: var(--themePrimary);
}

.logo {
    background: url(https://alpha.tempusserva.dk/TempusServa/media/ts-logo-FFF.31.svg) no-repeat;
    opacity:1;
}

.dropdown-menu { min-width: 11rem; }

.tsToolbarPersonal .dropdown-menu .fa {
	color: var(--themeGreyDark);
}

.dropdown-item.personal,
.dropdown-item.language {
	color: var(--themeGreyDark);
	font-size: 0.9rem;
}

#VB_DATA_ContactMobile a { display: none; }

.usersOnline, .debugTime {
  clear: both;
  font-size: 0.8em;
  text-align: center;
  color: var(--themeTeritary);
  position: fixed;
  bottom: 0px;
  right: 180px;
  margin-bottom: .8rem;
  z-index: 25; /* Add to Core Style Sheet */
}

.indexCommand .debugTime {
    margin-right: 100px;
}

.listCommand .debugTime {
    margin-right: 0px;
}


.btn-warning {
  color: #336666;
  background-color: #50e3c2;
  border-color: #50e3c2;
  font-size: 13px;
  padding: 4px 10px 4px 10px;
  margin-bottom: 5px;
  margin-left: 5px;
}

.btn-warning:hover {
    color: #50e3c2;
    background-color: #336666;
    border-color: #336666;
}

.LoginPage .btn .btn-warning {
    display: none;
}

h1 { padding-bottom: 2px; }

.btn-personal:hover { color:var(--themeLight);}
.btn-personal:focus { outline: 0; box-shadow: none; }

/* ---- Style Green and Red markers ---- */

.relativeDate.after {
    color: #096f58 !important;
    padding: 0px 5px;
}

.relativeDate.before {
    color: #b87b18 !important;
    padding: 0px 5px;
}


/* --- TableMaster Styles --- */

.tableMasterViewLink {
    font-size: 85%;
    margin-left: 0px;
}

.tableMasterViewLink a {
    color: var(--pageLinkColor);
}

.tableMasterDescription {
    margin-left: 0px;
    margin-bottom: .3rem;
    color: var(--pageBreadcrumbTextColor);
}

.tableMasterDescription a {
    margin-left: 40px;
    color: var(--pageLinkColor);
    opacity: 0.6;
}

/* --------- Listview Align Right ----------- */

.tableList .alignRight input {
    text-align: right;
}


/* ---------- Listview Row hover ------------ */

.listCommand .tableList tr:hover { 
    cursor: pointer;
}

.viewList tr:hover th {
    background-color:none !important;
}

.viewList tr:hover td {
    background-color:#f0f6f9 !important;
}

/* ----Fix Double Icon Positioning  ---- */

.doubleIcon {
   float:left;
}

.doubleIcon img:nth-child(2) {
    margin-left: -12px;
    zoom: 80%;
}

.filedownload {
    margin-left: 5px;
}


/* ---- Fix Footer Buttons  ---- */

footer, .footer { padding-left: 10px; }

footer .btn {
    margin-top: 0px;
    margin-right: 5px;
    opacity: 0.6;
    padding: .25rem;
    min-width: 28px;
}

.footer #menuSearchClear {
    background-color: var(--themePrimary);
    color: #FFFFFF;
    margin-left: 4px;
}


/*------------- Notification ------------------- */
/*
#menuNewNotification {
    float: right;
    color: coral;
}
*/
#menuNewNotification {
    font-size: 0.8rem;
    position: absolute;
    right: 40px;
    margin-right: 10px;
    color: #FFF;
    padding: .20rem .35rem;
}

#menuNewNotification span {
    margin-left: 3px
}

/*------------- Index temp ------------------- */

.indexCommand .tableMasterDescription, 
.indexCommand .tableMasterViewLink {
   font-size: 10pt;
}
.indexCommand td  {
   padding-bottom: 8px;
}

/*------------- Fix vertical alignment of  checkbox  ------------------- */

input[type=checkbox], input[type=radio] {
    vertical-align: text-bottom;
}


/*------------- Fix subform list view stacking  ------------------- */


/*.tableForm > tbody > tr > td {
      width: auto;
}*/

.showCommand .tableForm > tbody > tr > th {
      display: block;
      width: 20%;
      float: left;
      padding: 5px 20px 10px 0px;
}

.showCommand .tableForm > tbody > tr > td { 
      display: block;
      width: 80%;
      float: left;
      padding: 5px 0px 10px 0px;
}

.FieldLabel, .tableFieldTableHeader { 
    white-space: nowrap;
    font-size: .9rem;
    font-weight: bold;
}

.showCommand .tableForm > tbody > tr > td.subtableField {
      float: none;
}

.tableForm .commentList {
    max-width: calc(80vw - 50px);
    max-width: 960px;
}

.commentuser:before {
    font-family: FontAwesome;
    content: "\f007";
    margin-right: 5px;
    font-size: 9px;
    color: #ffffff;
    background: var(--themeSecondary);
    padding: 4px 6px;
    border-radius: 12px;
}

.commenttext { 
      white-space: normal;
}

.tsWidgetListCommand .viewList, .tsWidgetQuery .table-responsive { margin-top: 5px; }

.tsWidgetQuery .table-responsive tr:last-child { border-bottom: 1px solid var(--themeMediumGrey);}

/* ---- Material icon size adjust ---- */
#TempusServaPage .tsWidgetIcon .material-icons {
    font-size: 1rem;
}

.tsDashboardPage .tsWidget:last-of-type {
	margin-bottom: 70px;
}

/* ------------------------------------------------------------------------------------------ */
/* Field validation (New) */
/* ------------------------------------------------------------------------------------------ */

/* When these styles have been succesfully tested remove legacy input-validator */

.input-validator { display: none; }

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.tsValidateTrue .form-control {
    padding-right: calc(1.5em + .75rem);
    background-image: url(http://www.tempusserva.dk/share/icons/check.svg);
    background-repeat: no-repeat;
    background-position: right calc(.375em + .775rem) center;   /* background-position: right calc(.375em + .1875rem) center; */
    background-size: calc(.65em + .375rem) calc(.65em + .375rem);
    border-color: #ced4da;
}

.tsValidateTrue .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40,167,69,.25);
}

.tsValidateFalse .form-control {
    padding-right: calc(1.5em + .75rem);
    background-image: url(http://www.tempusserva.dk/share/icons/exclaim.svg);
    background-repeat: no-repeat;
    background-position: right calc(.375em + .775rem) center;   /* background-position: right calc(.375em + .1875rem) center; */
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
    border-color: #ced4da;
}

.tsValidateFalse .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25);
}

.tsValidateFalse .custom-file-label { 
    border: 1px solid #dc3545; 
    box-shadow: 0 0 0 0.2rem rgb(220 53 69 / 25%);
    padding-right: calc(1.5em + .75rem);
    background-image: url(http://www.tempusserva.dk/share/icons/exclaim.svg);
    background-repeat: no-repeat;
    background-position: right calc(5.75em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.tsValidateTrue .custom-file-label {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40,167,69,.25);
     padding-right: calc(1.5em + .75rem);
    background-image: url(http://www.tempusserva.dk/share/icons/check.svg);
    background-repeat: no-repeat;
    background-position: right calc(5.75em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

/* --- Fix TS Update Submit Buttons --- */

.tsUpdateButtons .updateSubmit {
    margin-bottom: 0.25rem;
    margin-right: 4px;
    margin-left: 0px;
    width: 32.999999%;
    float: left;
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    color: #b0ebda;
    color: var(--themePrimaryLight);
}

.tsUpdateButtons .updateSubmit:last-child { margin-right: 0px; }

.tsUpdateButtons .updateSubmit:focus {
    color: var(--themePrimaryLight);
    background-color: var(--themePrimaryDark);
}

/* --- New TS Update Submit Buttons --- */
.tsUpdateButtons.row { margin-left: 0px; margin-right: 0px; }


/* --- Fix Narrow Columns in Lists (display on hover) -------------------------- */

.isNarrow {
    width: 44px;
}

.isNarrow>a:not(.fieldFilter) {
    display: inline-block;
    width: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: text-bottom;
    transition: .6s;
    transition-timing-function: ease-in-out;
}

.isNarrow>a:not(.fieldFilter):hover { 
    width: 140px;
    transition: width .5s
}

/* ---- Matrial Icons Temp Styles --------------------------------------------- */

.material-icons {
    font-size: 20px;
    vertical-align: text-bottom;
}

.viewList .material-icons {
    Font-size: 15px;
}

.viewList tr .material-icons { opacity: 0.2; }
.viewList tr:hover .fa, tr:hover .material-icons { opacity: 1; }

.toolBar span.material-icons { margin-left: 0px; }
.toolBar span.material-icons { margin-right: 0px; }
.dropdown-menu span.material-icons { margin-right: 0px; }  
.burger .material-icons { font-size: 24px; }

.dropdown-item { padding: .25rem 1.25rem; }
/* Personal Menu */
.dropdown-item span { margin-left: 5px; }
.dropdown-item span.material-icons { margin-left: 0px; }

.editCommand .input-group-prepend,
.editCommand .input-group-addon,
.editCommand .input-group-addon {
    padding: 0.55rem;
}
.editCommand .input-group-addon span.material-icons, 
.editCommand .input-group-append span.material-icons, 
.editCommand .tsParentLink span.material-icons { font-size: 16px; }

/* --- Dialogue Serach --- */
.dialogueSearch .tableSearchValue>.input-group {
   margin-bottom: 0rem;
}


/* Fix toggle-password for font-awsome icon */
.LoginPage #toggle-password .fa { font-size: 16px; padding: 0px 2px 0px 2px; }

/* --- TOTP Adjustment --- */

.totp-input { zoom: 80%; }

.LoginPagePasscode .formLogin .btn {
    margin-left: calc(50% - 50px);
}

/* Param Label Adjustment */
.param .label { 
    font-size: 0.8rem; 
    background-color: var(--themePrimary); 
    color: var(--themeLight); 
}
.param .label a {
    color: var(--themePrimaryLight); 
    margin-right: 3px;
}

/* Fix TS Widget Icons */

.tsWidgetIcon {
    background-color: #9c6cf945;
    padding: 8px 0px;
    color: var(--themeSecondary);
    border-radius: .25rem;
    position: absolute;
    top: 1.5rem;
    text-align: center;
    width: 2rem;
    height: 2rem;
    min-width: auto;
    font-size: .9rem;
}

#TempusServaPage .tsWidgetIcon .fa {font-size: inherit;}

/* --- Fix Account Alert --- */

.editCommand h1 span,
.sendCommand h1 span,
.showCommand h1 span {
   margin-left: 5px;
   font-size: 1.25rem;
   vertical-align: middle;
}

/* --- Fix Main Width --- */

/* --- Main Width --- */
.editCommand main,
.sendCommand main,
.showCommand main { 
    max-width: 1280px; 
}

.tsSidebar { background: linear-gradient(-303deg,#015454,#006666 50%,#006666); }
.tsSidebar { 
    background: linear-gradient(-303deg,var(--themePrimaryDark),var(--themePrimary) 50%,var(--themePrimary));
}

/* --------------------------------------------------------------------------- */


@media screen and (max-width: 800px) {

.formpageselector {
      min-width: 92vw;
}

.showCommand .tableForm > tbody > tr > th { width: 35%; }
.showCommand .tableForm > tbody > tr > td { width: 65%; }

.FieldLabel { 
      margin-top: 0rem; 
      margin-bottom: 0rem;
}

#PAGE_0 .submitOption,
.tsUpdateButtons .updateSubmit { 
    width: 100%;
    float: none;
    margin-right: 0px;
    max-width: 100%;
}

#tsUserFullname { color: var(--themePrimary); }


}

/* From Wrapper */

@media only screen and (min-width: 1700px) {   
    #param { margin-left: calc(50% - 830px); }
}


#menuSearchClear span { margin-left: 5px; } 

#menuSearchClear:hover {
    background-color: var(--defaultButtonColorHover);
    border-color: var(--defaultButtonColorHover);
    color: #FFFFFF;
    opacity: 1;
    text-decoration: none;
}

.optionFullWidth #param { 
margin-left: 0px;
width: calc(100% - 195px);
flex-grow: 1;
display: flex; 
align-items: center;
position: relative; 
overflow: auto;
scrollbar-width: none;
border-radius: .25rem;
}

.footer { margin-bottom: none; }
.debugTime { display: none; }

footer, .footer { padding: 5px 10px 5px 10px!important } 
footer .btn { margin-top: 0px!important; }
#infoSidebarButton { margin-top: 0px; }
#param, #menuSearchClear { margin-top: 0px; }


@media only screen and (min-width: 1350px) {   

  .tsUpdateButtons {
     position: fixed;
     bottom: 2px;
     width: 92%;
     max-width: 1200px;
     padding: 0px 0px 2px 0px;
     z-index: 26;
     background-color: transparent;
     opacity: 1;
  }

  .StatusHeader { display: flex; }
  .StatusHeader > th { display: none !important; }
  .tableForm .updateSubmit { margin-bottom: 0px; }

}

#infoSidebarButton { display: none; }
.tsWidgetListCommand .viewList, .tsWidgetQuery .table-responsive {
    margin-top: 10px;
}

/* Chart Buttons */

.tsWidget .chartSelector { display: none; }
.tsWidget #chartExport { display:none; }

.tsDashboardPage .tsWidgetQuery a:not(.tsWidgetIcon) {
    background-color: rgba(222,226,230, .2);
    color: rgba(142,154,167, .5);
    border: 1px solid transparent;
    border-radius: .25rem;
    padding: 4px;
    min-width: 24px;
    text-align: center;
}

.tsDashboardPage .tsWidgetQuery a:not(.tsWidgetIcon):hover {
    background-color: var(--themeSecondary);
    color: rgba(255, 255, 255, 1);
}

div.chart-js-target {
    margin-bottom: 10px;
}


/* Search */
.searchPage {
    max-width: 992px;
}

.searchResultItem { 
    font-size: 1rem;
    margin-bottom: 1rem;
}

.searchTermFound {
    color: var(--blue);
}

/* Update Buttons In Footer */

 .tableForm .updateSubmit { margin-bottom: 2px; }

.tsUpdateButtons {
    position: fixed;
    bottom: 0px;
    width: 92%;
    max-width: 1200px;
    padding: 0px 0px 2px 0px;
    z-index: 26;
    background-color: transparent;
    opacity: 1;
}

.param .label a {
    color: var(--defaultButtonColorHover);
    margin-right: 3px;
}

.submitOption, .updateSubmit {
    max-width: 22%;
    line-height: 1;
    height: 30px;
    margin-right: 4px;
}

.submitOption, .updateSubmit:last-child {
    margin-right: 0px;
}


/* TVI Fix højde (dobbelt scroll) */

main {
    padding-bottom: 40px;
}
.viewList {
    max-height: calc(72vh - 80px);
}

@media only screen and (min-height: 1000px) {
    .viewList {
        max-height: calc(81vh - 80px);
    }
}

