﻿@charset "utf-8";
/* CSS Document */
/*------------- Stylesheet Guide ----------------
- Global
	- General setups
	- Fonts (headings + paragraphs)
	- Hyperlinks
	- Button
- Hyperlinks
	- Login page
	- General Function Pages
		- Top Navigation + Top Additions line
		- Main Content Structures
			- Full width Content row
				- Shadow boxes | Content box structure with heading + linkbox style
			- Column Structures
				- for Mixed Column Layout
				- for Flexible Equal Columns Layout
			- Content row with left Sidebar
				- Left sidebar
				- Right main content block
				- Left sidebar / mobile version
				- LEFT NAVIGATION BLOCK ELEMENTS 
		- Table
		- Modul Popup			
		- Footer
- Forms
------------------------------*/

/* Global */
/*-----------------------------------------------------------*/

/* General setups */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  background: #f9f9f9 url(../images/hexa-bg.png) !important;
  background-position: 0 0 !important;
  background-repeat: repeat !important;
  color: #595959;
}

/* Fonts (headings + paragraphs) */
h1,h2,h3,h4,h5,h6 {
  color: #333;
  padding: 0px 10px 3px 5px;
}
h1,h2 {
  border-bottom: 1px solid #ddd;
}
h1 {
  font-size: 32px;
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 21px;
}
h4 {
  font-size: 18px;
}
h5 {
  font-size: 16px;
}
h6 {
  font-size: 14px;
}
p {
  font-size: 14px;
  line-height: 1.45;
}
.fontplus15 {
	font-size: 115%;
} 
.fontplus20 {
	font-size: 120%;
} 
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.pagination button {
  margin: 0 5px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  background-color: #f8f9fa;
  cursor: pointer;
}
.pagination button.active {
  background-color: #007bff;
  color: #fff;
}
.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.search-container {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}
.search-input {
  width: 300px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.autocomplete-suggestions {
  position: absolute;
  border: 1px solid #ddd;
  background-color: #fff;
  max-height: 150px;
  overflow-y: auto;
  z-index: 1000;
  width: 300px;
}
.autocomplete-suggestion {
  padding: 8px;
  cursor: pointer;
}
.autocomplete-suggestion:hover {
  background-color: #f0f0f0;
}

.label {
  display: block;
}

/* Hyperlinks */
a {
  font-size: 14px; 
  color: #1c62a3;
  text-decoration: none;
}
a:hover {
  color: #0b2f55;
  text-decoration: none;
}
.italic {
	font-style: italic;
	color: #666;
	font-weight: lighter;
}
sub, sup { font-size: .60em }
sub { vertical-align: sub }
sup { vertical-align: super }

.notebox {
	font-size: 120%;
	margin-bottom: 25px;
	padding: 8px 16px;
	background-color: #eee;
	border-left: 5px solid #1c62a3;
}

/* default BUTTON style */
.button {
  display: inline-block;
  padding: 10px 25px;
  margin: 10px 5px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: #1c62a3;
  text-transform: uppercase;
  border-radius: 7px;
}
.button:hover {
    background-color: #102947;
    color: #fff;
    text-decoration: none;
}
.button i {
	color: #102947;
	padding-right: 10px;
	font-size: 120%;
	text-decoration: none;
}
.button:hover i {
	color: #eb3318;
	text-decoration: none;
}

/* LAYOUTS */

/* LOGIN PAGE */
/*-----------------------------------------------------------*/

.centered {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.loginbox {
    box-shadow: 0 8px 10px 0 rgba(0,0,0,0.2); 
    transition: 0.3s; 
    border-radius: 7px;
    background-color: #FFF;
    padding: 25px;
}
.loginbox:hover {
  box-shadow: 0 15px 22px 5px rgba(0,0,0,0.2);
}

.loginbox input[type=text], input[type=password] {
  width: 100%;
  box-sizing: border-box;
  border:  1px solid #bdbdbd;;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f9f9f9;
  background-position: 10px 0; 
  background-repeat: no-repeat;
  padding: 10px 10px 10px 40px;
  margin: 7px 0px;
  transition: .2s; 
}
.loginbox input[type=text]:focus, input[type=password]:focus {
    border-color: #b2b2b2;
    box-shadow: 0 0 10px 0 #b2b2b2;
}
::placeholder {
  color: #bdbdbd;
  opacity: 1; /* Firefox */
}
.loginbox .inputWithIcon input[type=text], input[type=password] {
	padding-left: 40px;
}
.loginbox .inputWithIcon{
	position: relative;
}
.loginbox .inputWithIcon i{
	position: absolute;
	left: 0;
    top: 11px;
    padding: 9px 8px;
    color: #cecece;
    transition: .2s; 
}
.loginbox .inputWithIcon input[type=text]:focus + i, input[type=password]:focus + i {
	color: #cecece;
}
.loginbox input[type=submit] {
  width: 100%;
  background-color: #1c62a3;
  color: white;
  padding: 10px 10px 10px 35px;
  margin: 5px 0px 10px 0px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  display: inline-block;
  float: left; 
}
.loginbox input[type=submit]:hover {
  background-color: #102947;
}

/*General Function Pages */

/* TOP NAVIGATION */ 
/*----------------------------*/
.header-bg { 
  background-image: url(../images/header-redline.png);
  background-repeat: repeat;
  background-position: top; 
  border-bottom: 1px solid #eee;
  margin: 0px important;
  padding: 0px;
  box-shadow: 0 8px 5px -6px #999;
 -webkit-transition: .2s ease;
}
.topnav {
  overflow: hidden;
  margin: auto;
  text-align: center;
  background-color: #fff;
  padding: 20px 5px 20px 5px;
  border-top: 5px solid #102947;
  max-width: 1330px;
}

.topnav a {
  float: left;
  display: block;
  color: #102947;
  text-align: center;
  padding: 3px 16px;
  margin: 3px 0px;
  text-decoration: none;
  font-size: 15px;
  border-right: 1px solid #f2f2f2;
}

.active {
  background-color: #fff;
  color: white;
}

.topnav .icon {
  display: none;
}
.topnav-right {
  float: right;	
}

.2ndlink {
  font-size: 14px;
  padding: 11px 16px;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 14px;    
  border: none;
  outline: none;
  color: #102947;
  padding: 4px 16px;
  border-right: 1px solid #f2f2f2;
  margin: 3px 0px 0px 0px;
  background-color: #fff;
  font-family: inherit;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  font-size: 12px; 
  color: #1c62a3;
  padding: 5px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}
.dropdown-content a:before {
  padding: 10px;
  color: #cecece;
  content: "»";
}

.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #f9f9f9;
  color: #eb3318;
}

.dropdown-content a:hover {
  background-color: #cecece;
  color: #eb3318;
}

.dropdown:hover .dropdown-content {
  display: block;
}

@media screen and (max-width: 800px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
  .topnav-right {
	float: none;
  }
}

@media screen and (max-width: 800px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}

/* Topadditions box */

.topadditions-box {
  padding: 0px 5px;
  margin: 0px;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}
.header-additionals {
   padding: 5px 0px;
   margin: 5px;
}

ul.breadcrumb {
  padding: 0px 5px;
  list-style: none;
  float: left;
  font-size: 12px;
}
ul.breadcrumb li {
  display: inline;
  font-size: 12px;
}
ul.breadcrumb li+li:before {
  padding: 5px;
  color: #eb3318;
  content: "»";
  max-width: 1100 px;
}
ul.breadcrumb li a {
  font-size: 12px;
}
ul.breadcrumbModal {
  padding: 0px 5px;
  list-style: none;
  float: left;
  font-size: 13px;
}
ul.breadcrumbModal li {
  display: inline;
  font-size: 13px;
}
ul.breadcrumbModal li+li:before {
  padding: 5px;
  color: #eb3318;
  content: "»";
  font-size: 13px;
  max-width: 1100 px;
}
ul.breadcrumbModal li a {
  font-size: 13px;
}

.log-timer {
  padding: 17px 10px 10px 10px;
  max-width: 450px;
  float: right;
  text-align: right;
  display: inline;
  font-size: 12px;
}
@media screen and (max-width: 600px) {
  .log-timer {
    display: none;
    text-align: left;
  }
}

/* MAIN CONTENT STRUCTURES */
/*----------------------------*/

.main-contentbox {  /* This is the main container with 1330px */
    display: block;
    padding: 5px 5px;
    max-width: 1330px;
    margin: auto;
    height: 100%;
}

/* FULL-WIDTH Content Layout */
/*----------------------------*/

.full-widthcolumn {
  width: 100%;
}
.welcome-contentbox {
    display: block;
    /*box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;*/
    border-radius: 7px;
    background-color: #FFF;
    padding: 5px 20px;
    max-width: 1330px;
    height: 100%;
}
.welcome-contentbox img {
    max-width: 50%;
}

/* Add a card effect for a content block */

.card-full-width {
  background-color: white;
  padding: 0px;
  margin-top: 5px;
  border-radius: 7px;
  min-height: 700px;
}
.card {
  background-color: white;
  padding: 1px 10px 5px 10px;
  margin-top: 5px;
  border-radius: 7px;
}
.card-rightblock {
  background-color: white;
  padding: 1px 20px 15px 20px;
  margin-top: 5px;
  border-radius: 7px;
  min-height: 700px;
}

/* Shadow boxes | Content box structure with heading + linkbox style */ 

.box {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); 
    transition: 0.3s;
    border-radius: 5px;
    margin-bottom: 25px;
    min-height: 200px;
}
.box-2ndline {
    margin-top: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); 
    transition: 0.3s;
    border-radius: 5px;
}
.box .linkbox-container p {
  min-height: 50px;
}

.column h5 {
  border-top: 4px solid #102947;
  background-color: #cecece;
  padding: 5px 10px;
  margin: 0px;
}
.column h6 {
  border-bottom: 1px dashed #cecece;
  padding-bottom: 2px;
  margin: 5px 0px 0px 0px;
  font-size: 15px;
  font-weight: normal;
}
.linkbox-container {
  display: inline-block;
  background-color: #fff;
  padding: 5px 15px;
  margin: 0px;
  line-height: 1.6;
  width: 100%;
}
ul.linkbox {
  padding: 0px;
  margin: 5px 0px 10px 0px;
  list-style: none;
  float: left;
}
ul.linkbox li {
  font-size: 14px;

}
ul.linkbox li:before {
  padding-right: 10px;
  color: #eb3318;
  content: "»";
}

/* Column Structures */
/* ------------------------------------------------------------------------- */

/* Flexible Equal Columns */

.columns {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	margin: 10px 0;
}
.column {
	flex: 1;
	border: 0px solid gray;
	margin: 0px 10px;
	padding: 0px 0px;
	&:first-child { margin-left: 0; }
	&:last-child { margin-right: 0; }
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

@media screen and (max-width: 800px) {
   .welcome-contentbox img {
	display: none;
     }
   .main-contentbox {
	 width: 100%;
   }
  .columns .column {
	margin-bottom: 5px;
    flex-basis: 40%;
	&:nth-last-child(2) {
	margin-right: 0;
	}
	&:last-child {
		flex-basis: 100%;
		margin: 0;
		}
	}
}

@media screen and (max-width: 600px) {
	.columns .column {
		flex-basis: 100%;
		margin: 0 0 5px 0;
	}
}

/* Mixed Column Layout */

.col-20 {
  float: left;
  width: 20%;
  padding: 5px 10px;
}
.col-25 {
  float: left;
  width: 25%;
  padding: 5px 10px;
}
.col-25-forms {
  float: left;
  width: 25%;
  padding: 5px 10px;
}
.col-33 {
  float: left;
  width: 33.3%;
  padding: 5px 10px;
}
.col-33-forms {
  float: left;
  width: 33.3%;
  padding: 5px 10px;
}
.col-50 {
  float: left;
  width: 50%;
  padding: 5px 10px;
}
.col-60 {
  float: left;
  width: 60%;
  padding: 5px 10px;
}
.col-66 {
  float: left;
  width: 66.6%;
  padding: 5px 10px;
}
.col-75 {
  float: left;
  width: 75%;
  padding: 5px 10px;
}
.col-80 {
  float: left;
  width: 80%;
  padding: 5px 10px;
}
.col-100 {
  float: left;
  width: 100%;
  padding: 5px 10px;
}

	/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

	/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .col-20, .col-25, .col-33, .col-60, .col-66, .col-75, .col-80 {
    width: 50%;
  }
  .col-25-forms, .col-33-forms {
    width: 100%;
  }
}

	/* Responsive layout - makes 1 column stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .col-20, .col-25, .col-33, .col-33-forms, .col-50, .col-60, .col-66, .col-75, .col-80 {
    width: 100%;
  }
}

@media screen and (max-width: 800px) {
  .col-20, .col-25, .col-25-forms, .col-33, .col-33-forms, .col-60, .col-66, .col-75, .col-80 {
	margin-bottom: 5px;
	&:nth-last-child(2) {
	margin-right: 0;
	}
	&:last-child {
		flex-basis: 100%;
		margin: 0;
		}
	}
}

/* left navigation + right main content block page */
/* ---------------------------------------------------------------- */

/* Left column */

.leftcolumn {    	/* Create two unequal columns that floats next to each other */
  float: left;
  width: 20%;
  max-width: 280px;
}

/* Right MAIN Content column */
.rightcolumn {
  float: left;
  width: 80%;
  padding-left: 20px;
}
/* RESPONSIVE SIDENAV BLOCK */
.mobilesidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 2;
  position: fixed;
  top: 0;
  right: -35px;
  background-color: #f2f2f2;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 0px;
  padding-right: 20px;
  padding-left: 10px;
  padding-bottom: 15px;
  border-left: 1px solid #cecece;
}
.mobilesidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #1c62a3;
  display: block;
  transition: 0.3s;
}

.mobilesidenav a:hover {
  color: #eb3318;
}

.mobilesidenav .closebtn {
  position: absolute;
  top: 0;
  right: 30px;
  font-size: 30px;
  margin-left: 50px;
}
.mobilesidenav .closebutton {
  background-color: #fff;
  color: #1c62a3;
  padding: 5px 10px;
  margin: auto;
  border: 2px solid #1c62a3;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  text-transform: uppercase;
  text-align: center;
  max-width: 80%;
}
.mobilesidenav .closebutton:hover {
  background-color: #102947;
  color: white;
}
.mobilesidenav .closebutton i {
  color: #1c62a3;
  margin-right: 10px;
  font-size: 120%;
}
.mobilesidenav .closebutton:hover i {
  color: #eb3318;
}
.hided {
  text-decoration: none;
  background-color: #102947;
  box-shadow: 0 -9px 7px -5px #999;
  padding: 8px 25px;
  position: fixed;
  margin: 0px;
  bottom: 0;
  left: 0;
  z-index: 1;
  text-align: right;
  width: 100%;
}

@media screen and (max-height: 450px) {
  .mobilesidenav {padding-top: 15px;}
}
@media screen and (min-width: 800px) {
  .mobilesidenav {display: none;}
  .hided {display: none;}

}

/* LEFT NAVIGATION BLOCK ELEMENTS  */
/* --------------------------------------------------------------- */

.leftblock {
  background-color: #fff;
  padding: 0px;
  margin: 0px 5px 15px 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
  border-top: 0px;
}
.leftblock h5 {
  border-top: 4px solid #102947;
  background-color: #cecece;
  padding: 5px 10px;
  margin: 0px 0px 5px 0px;
  color: #333;
}
.leftblock .leftmenulink {
  padding: 5px 10px;
  font-size: 13px;
  display: block;
}
.leftblock .leftmenulink:before {
  padding-right: 5px;
  color: #eb3318;
  content: "»";
}
.leftblock .leftmenulink:hover {
  text-decoration: none !important;
}
.leftblock .button {
  display: inline-block;
  padding: 10px 25px;
  margin: 10px 5px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: #1c62a3;
  text-transform: uppercase;
  border-radius: 7px;
}
.leftblock .button:hover {
    text-decoration: underline;
    background-color: #102947;
    color: #fff;
    text-decoration: none;
}
.barcode-block {
  padding: 5px;
  margin: 0px 5px 10px 5px;
  border-top: 1px dashed #cecece;
  border-bottom: 1px dashed #cecece;
  max-width: 100%;
  text-align: center;
}
.barcode-block img {
  max-width: 100%;
  text-align: center;
}
/* leftmenu search form */

.leftblock-search {
  background-color: #f9f9f9;
  padding: 10px 5px 10px 5px;
  margin: 0px 5px 20px 5px;
  border: 0px solid #ddd;
  border-radius: 5px;
}

form.leftsearch input[type=text] {
  padding:  8px 10px;
  font-size: 14px;
  border:  1px solid #bdbdbd;
  border-radius: 7px 0px 0px 7px;
  float: left;
  width: 80%;
  background-color: #fff;
}

form.leftsearch button {
  float: left;
  width: 20%;
  padding: 8px;
  color: #fff;
  background-color: #1c62a3;
  text-transform: uppercase;
  border-radius: 0px 7px 7px 0px;
  font-size: 14px;
  border: 1px solid grey;
  border-left: none;
  cursor: pointer;
}

form.leftsearch button:hover {
    background-color: #102947;
    color: #fff;
    text-decoration: none;
}

form.leftsearch::after {
  content: "";
  clear: both;
  display: table;
}

.leftblock-search .leftmenulink {
  padding: 5px 10px;
  font-size: 13px;
  display: block;
}
.leftblock-search .leftmenulink:before {
  padding-right: 5px;
  color: #cecece;
  content: "★";
}
.leftblock-search .leftmenulink:hover {
  text-decoration: none !important;
}

@media screen and (max-width: 800px) {
  .leftcolumn {    
      display: none;
  }
  .rightcolumn {   
    width: 100%;
    padding: 0;
    margin-left: 0px;
  }
 .leftblock-search {
   background-color: #cecece;
   padding-bottom: 10px;
  }
  #SearchInput {
   border: 1px solid #999;
  }
  .leftblock-search .leftmenulink:before {
  color: #fff;
  content: "★";
  }
  .card-rightblock {
	  min-height: 400px;
	  }
  .card-full-width {
  	  min-height: 400px;
	  }
}
/* TABLE */
/* --------------------------------------------------------------------- */
#TableInput {
  background-image: url('searchicon.png');
  background-position: 10px 10px;
  background-repeat: no-repeat;
  width: 90%;
  font-size: 14px;
  padding: 10px 20px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 12px;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  cellspacing: 0;
  border: 1px solid #ddd;
  width: 100%;
  margin-bottom: 15px;
  font-size: 13px;
}
table .filters {
  text-align: center;
  padding: 5px 0px 15px 0px;
  background-color: #f9f9f9;
  color: #333;
  /*cursor: pointer;*/
  border: 1px solid #fff;
  font-size: 14px;
}
th {
  text-align: left;
  padding: 5px;
  background-color: #102947;
  cursor: pointer;
  color: #FFFFFF;
  border: 1px solid #ddd;
  font-size: 14px;
}
td {
  text-align: left;
  border-spacing: 0;
  padding: 8px;
  border: 1px solid #ddd;
  font-size: 13px;
}
td a {
  font-size: 13px;
}
a.icon-button {
  margin-right: 15px;
}
.center {
  text-align: center;
  align: center;
  padding: 8px;
  margin: auto;
  max-width: 30px;
}
.centertype {
  text-align: center;
  width: 20px;
}
tr:nth-child(even){background-color: #f2f2f2}

/* The checkbox container */
.container {
  display: block;
  position: relative;
  padding: 0px 3px;
  margin-bottom: 18px;
  margin-right: 3px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
  /*position: absolute;*/
  display: inline-flex;
  opacity: 1;
  cursor: initial;
  height: 25px;
  width: 25%;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 16px;
  width: 16px;
  background-color: #f9f9f9;
  border: 1px solid #1c62a3;
  border-radius: 4px;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #1c62a3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 5px;
  top: 1px;
  width: 3px;
  height: 8px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

th.group-table, th.project-name-table {
  width: 35%;
}

.card-title {
  background-color: #cecece;
  margin: 0;
  padding: 12px 15px;
  border-top: 5px solid #102947;
}

.card-body h2 {
  background-color: #cecece;
  margin: 0;
  padding: 12px 15px;
  border-top: 5px solid #102947;	
}


.card-body > div {
  position: relative;
  margin: 10% auto;
  padding: 0;
  border: 1px solid #888;
  background-color: #fff;
  min-width: 350px;
  max-width: 500px;
  border-radius: 7px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.card-body-content {
  padding: 10px 20px 20px 20px;
}
.formtitle {
  color: #333;
  padding: 10px 10px 5px 5px;
  margin: 10px 3px 0px 3px;
  border-bottom: 1px dashed #bdbdbd; 	color: #102947;
  font-size: 110%;
  font-weight: bolder;
}
.formtitle-card-body {
  color: #102947;
  padding: 10px 10px 5px 5px;
  border-bottom: 1px dashed #bdbdbd;
  font-size: 110%;
  font-weight: bolder;
}
.detailsline {
  color: #888;
  font-size: 13px;
  margin-bottom: 5px;
}
.card-body input[type=checkbox] {
  width: auto;
  box-sizing: border-box;
  border: 1px solid #bdbdbd;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f9f9f9;
  background-position: 10px 0; 
  background-repeat: no-repeat;
  padding: 10px 10px 10px 40px;
  margin: 7px 0px;
  transition: .2s; 
}
.card-body input[type=text], .card-body input[type=email] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #bdbdbd;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f9f9f9;
  background-position: 10px 0; 
  background-repeat: no-repeat;
  padding: 7px;
  margin: 0px 0px;
  transition: .2s;
  min-height: 35px;
}
.card-body input[type=submit] {
  width: 100%;
  background-color: #1c62a3;
  color: white;
  padding: 10px 20px;
  margin: 5px 0px 10px 0px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  height: 50px;
}
.card-body input[type=submit]:hover {
  background-color: #102947;
}

.card-body .btn.btn-secondary {
  background-image: url(../images/close-icon.png);
  background-position: 10px 15px;  
  background-repeat: no-repeat; 
  border-color: 0px solid #c6c6c6 /*#1c62a3;*/;
  border: none;
  background-color: #eee;
  padding: 10px 10px 10px 35px;
  margin: 10px 15px 10px 0px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  color: #1c62a3;
  display: inline-block;
  max-width: 115px;
  height: 50px;
}
.card-body .btn.btn-secondary:hover {
  color: #eb3318;
  background-image: url(../images/close-icon-hover.png);
}

.card-body-inputWithIcon input[type=text], .card-body-inputWithIcon input[type=email] {
	padding-left: 40px;
}
.card-body-inputWithIcon {
	position: relative;
  margin-top: 15px;
}
.card-body-inputWithIcon i {
	position: absolute;
	left: 0;
  top: 3px;
  padding: 9px 8px;
  color: #cecece;
  transition: .2s; 
}
.card-body-inputWithIcon input[type=text]:focus + i {
	color: #cecece;
}

.card-body-inputWithoutIcon {
	position: relative;
  margin-top: 15px;
}

.card-body-inputWithoutIcon input[type=text], .card-body-inputWithoutIcon input[type=email] {
	padding-left: 10px;
}

.card .card-body form#editGroupForm .col-50, .card .card-body form#createGroupForm .col-50 {
  padding-bottom: 2rem;
  text-align: left;
  padding-top: 15px;
}

.card .card-body form#createGroupForm .col-50 .card-body-inputWithIcon select#projectId, .card .card-body form#editGroupForm .col-50 .card-body-inputWithIcon select#projectId {
  width: 65%;
}

.form-input-description{
  font-size: 14px;
  line-height: 1.45;
  display: block;
}

#available-users-list {
  max-height: 350px; /* Adjust height as needed */
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 5px;
}

/* Make buttons look like links */
.btn-link {
  background: none;
  border: none;
  color: #1c62a3; /* Link color */
  text-decoration: underline;
  font-size: 16px; /* Adjust font size to match link appearance */
  cursor: pointer;
  padding: 0; /* Remove padding to make it look more like a link */
  display: inline-flex;
  align-items: center; /* Keep icons aligned */
}

/* Hover effect similar to links */
.btn-link:hover {
  color: #89c6ff; /* Darker color on hover */
  text-decoration: underline;
  background: transparent;
  border-color: transparent;
}

.btn-link.btn-danger:hover {
  color: #ff0000;
  background-color: transparent;
  border-color: transparent;
}

/* Style the icon within the button (if needed) */
.btn-link i {
  margin-right: 5px; /* Space between icon and text */
}

/* Optional: Button-specific styles for color adjustments */
.btn-link.btn-danger {
  color: #dc3545; /* Red color for delete */
  background-color: transparent;
  border-color: transparent;
}

.btn-link.btn-info {
  color: #1c62a3; /* Blue color for info button */
  background-color: #ffffff;
  border-color: #17a2b8;
}

.btn-link.btn-info:hover {
	background-color: #17a2b8;
	color: #ffffff;
}

/* The modal background overlay */
.delete-confirmation-dialog .dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  z-index: 999; /* Ensure it's on top */
}

/* The actual modal content */
.delete-confirmation-dialog .dialog-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the modal */
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  z-index: 1000; /* Ensure it's on top of the overlay */
  max-width: 400px;
  width: 100%;
  text-align: center;
}

/* Style for the buttons inside the modal */
.delete-confirmation-dialog .dialog-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

/* Optional styling for buttons */
.delete-confirmation-dialog .btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.delete-confirmation-dialog .btn-danger {
  background-color: #d9534f;
  color: white;
}

/* ACCORDION */
/* --------------------------------------------------------------------- */
.accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  line-height: 1.2;
  
  background-color: #fff;
  width: 100%;
  cursor: pointer;
  width: 100%;
  border: none;
  text-align: left;
  float: left;
  outline: none;
  font-size: 12px;
  transition: 0.4s;
  margin-top: 0px;
  margin-bottom: 0px;
  
  background-image: linear-gradient(#fff, #f0f0f0);
  color: #333;
  border-bottom: 1px dashed #999;
}

.accordion.active, .accordion:hover {
  color: #eb3318;
}
.accordion.active {
  color: #3180c3;
  
  background-image: linear-gradient(#eee, #fff);
  border-top: 2px solid #102947;
  border-bottom: 0px dashed #ccc;
  margin-top: 5px;
}

.accordion:hover {
  background-image: linear-gradient(#ccc, #fff);
  border-top: 2px solid #102947;
  margin-top: 0px;
}

.accordion.active .strongline {
  font-weight: bold;
  color: #eb3318;
}
.accordion.active .strongline i {
	color: #eb3318;
	text-decoration: none;
}

.accordion .title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  padding: 0;
  color: #1c62a3;

  font-family: 'Open Sans', sans-serif;

}
.accordion.active .title {
  font-weight: bold; 
}
.accordion:after {
  content: '\23F7';
  color: #1c62a3;
  font-size: 16px;


  padding: 0px 2px;
  border-radius: 3px;
  box-shadow: 0 3px 5px 0 rgba(0,0,0,0.2); 
  background-color: #fff;
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  margin: 0;          /* remove old margin */
  float: none;        /* disable float */
}
.accordion.active:after {
  font-family: "Font Awesome 5 Free";
  content: "\23F6";
  margin: -2px 0px 5px 15px;
  padding: 0px 2px;
  font-size: 16px;
  font-weight: normal;
  font-family: 'Open Sans', sans-serif;
  color: #eb3318;
  border-color: #fff;
}
.accordion.edit:after {
  font-family: "Font Awesome 5 Free";
  content: '\f044';
  color: #1c62a3;
  font-size: 13px;
  float: right;
  margin: -2px 0px 5px 5px;
  padding: 4px 4px;
  border-radius: 3px;
  box-shadow: 0 3px 5px 0 rgba(0,0,0,0.2); 
  background-color: #fff;
  display: inline-block;
}

.panel {
  position: relative;
  padding: 0;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  border: 0px solid #c6c6c6;
  margin: 0px;
  clear: both;
}

.accordion-leftmenu {
  cursor: pointer;
  text-align: left;
  float: left;
  margin: 12px 5px 0px 5px; 
  padding: 5px 3px 5px 2px; 
  font-family: 'Open Sans', sans-serif;
  color: #102947;
  border-top: 0px solid #f9f9f9;
  border-right: 0px dashed #f9f9f9;
  border-bottom: 1px dashed #f9f9f9;
  border-left: 0px dashed #f9f9f9; 
  background-image: linear-gradient(#eee, #fff);
  display: inline-block;
  width: 96%;
  transition: 0.4s;
  margin-top: 0px;
  margin-bottom: 0px;
  display: inline-block;
}
.accordion-leftmenu:hover {
  color: #eb3318;
}
.accordion-leftmenu.active {
  border-bottom: 1px dashed #102947;
  font-weight: bold;
  color: #102947;
  background: #eee;
}
.accordion-leftmenu.active:focus {
  border: 0px;
  border-color: #fff;
  box-shadow: 0;
}
.accordion-leftmenu:after {
  content: '\FF0B';
  color: #eb3318;
  font-weight: bolder;
  float: left;
  margin: 0px 5px 5px 2px;
  display: inline-block;
  font-weight: bold;
}
.accordion-leftmenu.active:after {
  content: "\25B4"; /*"\2212";*/
  margin: -2px 5px 0px 2px;
  font-size: 16px;
}
.accordion-leftmenu .panel {
  padding: 0px;
  background-color: #f9f9f9;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  border-left: 2px solid #c6c6c6;
  margin: 0px 0px 10px 0px;
  clear: both;
}


/* Status colors */
.status-red { color:red;} 
.status-orange { color:orange;}
.status-yellow { color:gold;}
.status-green { color:green;} 

/* MODAL POPUP */
/* --------------------------------------------------------------------- */
.modalDialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    z-index: 99999;
    opacity:0;
        -webkit-transition: opacity 400ms ease-in;
        -moz-transition: opacity 400ms ease-in;
        transition: opacity 400ms ease-in;
        pointer-events: none;
	overflow: auto;
	overflow-y: auto; 
    }

.modalDialog h2 {
	background-color: #cecece;
	margin: 0;
	padding: 12px 15px;
	border-top: 5px solid #102947;	
}

.modalDialog:target {
    opacity:1;
    pointer-events: auto;
}

.modalDialog > div {
    position: relative;
    margin: 10% auto;
	padding: 0;
    border: 1px solid #888;
	background-color: #fff;
	min-width: 350px;
	max-width: 500px;
	border-radius: 7px;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.close {
    background: #fff;
    color: #eb3318;
    line-height: 25px;
    position: absolute;
    right: -12px;
    text-align: center;
    top: -10px;
    width: 24px;
    text-decoration: none;
    font-weight: bold;
    -webkit-border-radius: 12px;
        -moz-border-radius: 12px;
        border-radius: 12px;
        -moz-box-shadow: 1px 1px 3px #000;
        -webkit-box-shadow: 1px 1px 3px #000;
        box-shadow: 1px 1px 3px #000;
}

.close:hover { background: #eb3318; color: #fff;}

.modal-content {
	padding: 10px 20px 20px 20px;
}
.formtitle {
  color: #333;
  padding: 10px 10px 5px 5px;
  margin: 10px 3px 0px 3px;
  border-bottom: 1px dashed #bdbdbd; 	color: #102947;
  font-size: 110%;
  font-weight: bolder;
}
.formtitle-Modal {
  color: #102947;
  padding: 1px 10px 5px 5px;
  margin: 10px 3px 0px 3px;
  border-bottom: 1px dashed #bdbdbd;
  font-size: 110%;
  font-weight: bolder;
}
.detailsline {
	color: #888;
	font-size: 13px;
	margin-bottom: 5px;
}
.modalDialog input[type=text] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #bdbdbd;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f9f9f9;
  background-position: 10px 0; 
  background-repeat: no-repeat;
  padding: 10px 10px 10px 40px;
  margin: 7px 0px;
  transition: .2s; 
}
.modalDialog input[type=submit] {
  width: 100%;
  background-color: #1c62a3;
  color: white;
  padding: 10px 20px;
  margin: 5px 0px 20px 0px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
.modalDialog input[type=submit]:hover {
  background-color: #102947;
}

.fa-check:before, .fa-close:before, .fa-multiply:before, .fa-remove:before, .fa-times:before, .fa-xmark:before {
  color: #fff;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 26px; width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider-switch {
  background-color: #28a745;
}

input:checked + .slider-switch:before {
  transform: translateX(26px);
}

.status-label {
  margin-top: 10px;
  display: block;
  font-weight: 500;
}

/* FOOTER */
/* --------------------------------------------------------------------- */
.footer {
   position: relative;
   left: 0;
   bottom: 0;
   overflow-x: auto;
   background-color: #102947;
   color: white;
   padding: 10px 5px;
   margin-top: 60px; 
   font-size: 12px;
   box-shadow: 0 -5px 8px -1px #999;
   -webkit-transition: .2s ease;
}
.footeradditions-box {
  max-width: 1330px; 
  margin: auto;
  margin-top: 0px !important;
}
.footer-left {
  float: left;
  display: block;
  text-align: left;
  max-width: 50%;
}
.footer-right {
  float: right;
}
ul.footeradditions-box li a {
  color: #1c62a3;
  text-decoration: none;
  margin: 0;
  padding: 0;
}
ul.footeradditions-box li a:hover {
  color: #eb3318;
  text-decoration: underline;
}
@media (max-width: 800px) {
 
  .footer-left {
    display: none;
  }
  .footer-right {
    display: table;
    clear: both;
    align: center;
  }
}

/* FORMS */
/* --------------------------------------------------------------------- */

#reports label {
  display: block;
  font-size: 17px;
  color: #333;
  border-bottom: 1px dashed #ccc;
  margin-top: 10px;
  margin-bottom: 5px;
}
.form-inline {  
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}
.form-inline label {
  margin: 5px 10px 5px 0;
}
.form-inline input {
  vertical-align: middle;
  margin: 5px 0px 25px 0;
  padding: 10px 10px 10px 40px;
  background-color: #fff;
  border: 1px solid #bdbdbd;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f9f9f9;
  background-position: 10px 0;
  background-repeat: no-repeat;
  margin: 7px 0px;
  transition: .2s; 
}
input {
  margin: 0px 0px 25px 0;
  padding: 10px;
  min-width: 21%;
  background-color: #fff;
  border: 1px solid #bdbdbd;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f9f9f9;
  background-position: 10px 0;
  background-repeat: no-repeat;
  margin: 7px 0px;
  transition: .2s; 
}
input[type=text]:focus {
    border-color: #b2b2b2;
    box-shadow: 0 0 10px 0 #b2b2b2;
}
::placeholder {
  color: #bdbdbd;
  opacity: 1; /* Firefox */
}
select {
  width: 95%;
  box-sizing: border-box;
  border: 1px solid #bdbdbd;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f9f9f9;
  padding: 7px;
  margin: 7px 0px;
  transition: .2s; 
}
select:focus{
    border-color: #b2b2b2;
    box-shadow: 0 0 10px 0 #b2b2b2;
}
input[type=date] {
  width: 95%;
  box-sizing: border-box;
  border: 1px solid #bdbdbd;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f9f9f9;
  padding: 7px;
  margin: 7px 0px;
  transition: .2s; 
  min-height: 35px;
}
input[type=radio] {
  font-size: 14px;
}
input[type=date]:focus{
    border-color: #b2b2b2;
    box-shadow: 0 0 10px 0 #b2b2b2;
}
.inputWithIcon input[type=text] {
	padding-left: 40px;
}
.inputWithIcon {
	position: relative;
}
.inputWithIcon i {
	position: absolute;
	left: 0;
    top: 8px;
    padding: 9px 8px;
    color: #cecece;
    transition: .2s; 
}
.inputWithIcon input[type=text]:focus + i {
	color: #cecece;
}
.form-inline button {
  background-color: #1c62a3;
  color: white;
  padding: 9px 20px;
  margin: 10px 5px 15px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  text-transform: uppercase;
}
.form-inline button:hover {
  background-color: #102947;
}
textarea {
  width: 100%;
  height: 110px;
  box-sizing: border-box;
  resize: none;
  margin: 10px 5px 15px 0;
  padding: 10px;
  border: 1px solid #bdbdbd;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f9f9f9;
  transition: .2s; 
}
textarea:focus {
    border-color: #b2b2b2;
    box-shadow: 0 0 10px 0 #b2b2b2;
}
input[type=file] {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #bdbdbd;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f9f9f9;
  padding: 7px;
  margin: 5px;
  transition: .2s; 
 }
input[type=file]:focus {
    border-color: #b2b2b2;
    box-shadow: 0 0 10px 0 #b2b2b2;
}
.custom-file-input::-webkit-file-upload-button {
  visibility: hidden;
}
.custom-file-input::before {
  content: 'Select a file';
  display: inline-block;
  outline: none;
  color: #fff;
  background-color: #1c62a3;
  text-transform: None;
  padding: 7px 10px;
  border-radius: 5px;
  white-space: nowrap;
  -webkit-user-select: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 10pt;
}
.custom-file-input:hover::before {
    background-color: #102947;
}
.custom-file-input:active::before {
  background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);
}
input[type=cancel] {
  background-image: url('../images/close-icon.png'); 
  background-position: 10px 10px;  
  background-repeat: no-repeat; 
  margin: 5px 10px 10px 0px;
  border-color: 0px solid #c6c6c6 /*#1c62a3;*/;
  border: none;
  background-color: #eee;
  padding: 10px 10px 10px 35px;
  margin: 10px 15px 10px 0px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  color: #1c62a3;
  display: inline-block;
  max-width: 115px;
}
input[type=cancel]:hover {
  color: #eb3318;
  background-image: url('../images/close-icon-hover.png'); 
}
@media (max-width: 600px) {
  .form-inline input {
    margin: 10px 0;
  }
  .form-inline {
    flex-direction: column;
    align-items: stretch;
  }
  input[type=cancel] {
	text-align: center;
	margin: 15px;}
}

/* leftmenu search form */

form.leftsearch input[type=text] {
  padding:  8px 10px;
  font-size: 14px;
  border: 1px solid grey;
  border-radius: 7px 0px 0px 7px;
  margin-top: 0px;
  float: left;
  width: 80%;
  background: #f1f1f1;
}

form.leftsearch button {
  float: left;
  width: 20%;
  padding: 8px;
  color: #fff;
  background-color: #1c62a3;
  text-transform: uppercase;
  border-radius: 0px 7px 7px 0px;
  font-size: 14px;
  border: 1px solid grey;
  border-left: none;
  cursor: pointer;
}

form.leftsearch button:hover {
    background-color: #102947;
    color: #fff;
    text-decoration: none;
}

form.leftsearch::after {
  content: "";
  clear: both;
  display: table;
}

.error{
	color: red;
	font-style: italic;
	font-weight: bold;
}

/* Extra CSS from John */
.icon-button-wrapper {
  display: inline-flex;
}

#available-groups-list {
    max-height: 400px;
    overflow-y: auto;
}
#included-groups-list {
    max-height: 300px;
    overflow-y: auto;
}
.clickable-group {
    cursor: pointer;
    transition: background 0.2s;
}
.clickable-group:hover {
    background: #e7f1fc;
}

/* === Permissions table & icons === */
#ResponsiveTablePerms td {
  border: 1px #DDD solid;
  padding: 8px;
  text-align: center;
}

#ResponsiveTablePerms th:not(:first-child),
#ResponsiveTablePerms td:not(:first-child) {
  min-width: 90px;
  width: 90px;
  max-width: 90px;
  text-align: center;
}

/* Legend table centered at 50% width */
.legend-table {
  width: 50%;            /* make it half the container */
  margin: 20px auto 0;   /* 20px top margin, auto left/right, 0 bottom */
  border-collapse: collapse;
}

.legend-table td {
  border: 1px #DDD solid;
  padding: 5px 10px;
  text-align: center;
}

/* Icon colors */
.icon-allowed {
  color: green;
}
.icon-denied {
  color: red;
}

/* Clickable permission icons */
.clickable-icon {
  cursor: pointer;
  display: inline-block;
  padding: 4px;
}
.clickable-icon:hover {
  opacity: 0.8;
}

/* ===== Sticky bar styling ===== */
#actionBar {
  display: none;               /* hidden until .visible */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  z-index: 1000;
}

/* reveal when toggled */
#actionBar.visible {
  display: block !important;
}

/* make this a flex container to center its children horizontally */
#actionBar .action-container {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #eee;
  padding: 5px 0;
}

/* give each button‐wrapper a little breathing room */
#actionBar .action-button {
  margin: 0 10px;
}

/* primary button styling */
button.btn.btn-primary {
  color: #fff;
  background-color: #1c62a3;
  border-color: #1c62a3;
  padding: 0.7rem;
  cursor: pointer;
}
button.btn.btn-primary:hover {
  background-color: #102947;
}

button#modalCancel, #btnCancel {
	background-image: url(../images/close-icon.png);
    background-position: 10px 10px;
    background-repeat: no-repeat;
    margin: 5px 10px 10px 0px;
    border: none;
    background-color: #eee;
    padding: 10px 10px 10px 35px;
    margin: 10px 15px 10px 0px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    color: #1c62a3;
    display: inline-block;
    max-width: 115px;
}

button#modalCancel:hover, #btnCancel:hover {
	color: #eb3318;
    background-image: url(../images/close-icon-hover.png);
}

/* reset the cancel wrapper’s own margin so flex spacing takes over */
.action-button a#btnCancel {
  margin: 0;           /* remove the 10px bottom that was stacking it */
  display: inline-block;
  /* (keep the rest of your cancel styles—icons, padding, etc.) */
}

.modalDialog {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modalDialog[style*="display: flex"] {
  opacity: 1;
  pointer-events: auto;
}

.modalDialog {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  display:flex;              /* <-- must be flex */
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,0.5);
  z-index:2000;
}
.modalDialog .modal-content {
  background:#fff;
  padding:20px;
  border-radius:4px;
  width:300px;
  text-align:center;
}

/* ================================
   Workflows Admin (list + edit)
   ================================ */

/* Badges */
.badge { padding: 2px 8px; border-radius: 10px; font-size: 12px; display:inline-block; }
.badge-success   { background: #28a745; color: #fff; }
.badge-secondary { background: #6c757d; color: #fff; }

/* Utility */
.nowrap { white-space: nowrap; }
.muted  { color: #777; font-size: 13px; }

/* Buttons used by workflows pages */
.btn { display:inline-block; padding:6px 10px; border:1px solid #ccc; border-radius:4px; text-decoration:none; cursor:pointer; background:#fff; }
.btn + .btn { margin-left:6px; }
.btn-primary          { background:#007bff; color:#fff; border-color:#007bff; }
.btn-outline-primary  { color:#007bff; border-color:#007bff; background:transparent; }
.btn-outline-warning  { color:#ffc107; border-color:#ffc107; background:transparent; }
.btn-outline-secondary{ color:#6c757d; border-color:#6c757d; background:transparent; }
.btn-outline-danger   { color:#dc3545; border-color:#dc3545; background:transparent; }

/* Table helpers (keep light-touch — your global table styles remain authoritative) */
.table { width:100%; border-collapse:collapse; }
.table th, .table td { padding:8px; border-bottom:1px solid #eee; vertical-align: unset; }

/* ====== Workflows list (admin_workflows.html) ====== */

/* Expand/accordion controls */
.expand-cell { width:144px; text-align:center; }
.expand-btn { border:1px solid #ccc; background:#fff; cursor:pointer; padding:4px 8px; border-radius:4px; }
.expand-btn .fa { transition: transform .15s ease; }
.expand-btn[aria-expanded="true"] .fa { transform: rotate(90deg); }

/* Inner accordion row */
tr.accordion { background:#f7fbff; }
tr.accordion > td { border-top:none; }
.accordion-wrap { padding:8px 4px 2px 4px; }
.accordion-head { display:flex; align-items:center; gap:8px; }
.accordion-head .rule { flex:1; height:1px; background:#e5f0ff; }
.accordion-inner-table { background:#ffffff; border:1px solid #cfe2ff; border-radius:6px; }
.accordion-inner-table th { background:#f0f6ff; color:#000; }

/* Header button row (Create / Expand-Collapse) */
.card-body .wf-admn-btn-row,
.card-body .wf-bck-btn {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:12px;
  margin: auto 0 12px auto;
  min-width:auto;
  max-width:100%;
  box-shadow:none;
  border:none;
}
.wf-admn-btn-row .left,
.wf-admn-btn-row .right {
  display:flex;
  align-items:center;
  gap:8px;
}

/* ====== Workflow editor (admin_workflow_edit.html) ====== */

/* Top grid (name + enabled) */
.top-grid {
  display:grid;
  grid-template-columns: 1fr auto;
  gap:24px;
  align-items:end;
}
.top-field h3 { margin:0 0 6px; }
.status-wrap { display:flex; align-items:center; gap:8px; }

/* States table specifics */
input[type="number"].order-input { width:100%; height:35px; } /* optional: add class in HTML if you want */
.actions-col { white-space:nowrap; }

.order-input {
  width: 100px;          /* fixed width so number is visible */
  margin: 0 !important;
  color: #333 !important;
  text-align: left;
  box-sizing: border-box;
  border: 1px solid #bdbdbd;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f9f9f9;
}

/* Validation visuals (Thymeleaf) */
.error-summary{
  border:1px solid #dc3545; background:#fff5f5; color:#721c24;
  padding:10px 12px; border-radius:6px; margin:12px 0;
}
.error-summary ul{ margin:6px 0 0 18px; }
.field-error{ color:#dc3545; font-size:12px; margin-top:4px; display:block; }
.is-invalid{ border-color:#dc3545 !important; box-shadow:none; }

