body {
    background-color: #ffffff;
    background: linear-gradient(to bottom, #ffffff 0%, #dddddd 100%) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

/* Allows alert to be shown over nav-bar */
#top-alert {
  background-color: #f6fff6;
  position: fixed;
  top: 0;
  z-index: 99999;
}
.helptext {
  font-size: 8pt;
  padding-top: 5px;
}

tcselecthxtag {

}

.topstatus {
    max-height: 20px
    top: 0;
    background-color:#d0d0d0;
    margin-left:4px;
    margin-right:4px;
}

.topstatus a {
    padding:2px 2px 2px 2px;
    text-decoration: none;
    color: #818181;
}

.topstatuslogo {
    width: auto;
    max-width: 300px;
    height: auto;
    max-height: 40px;
    align:center;
}

/*
.sidenav {
    height:100%;
    width:15%;
    position: fixed;
    z-index:1;
/*    top:0; 
    left:0;
/*    background-color:#111;
    overflow-x: :hidden;
    overflow-y: scroll;
    padding-top:4px;
    padding-left:4px;
}

.sidenav a {
    padding:6px 8px 6px 16px;
    text-decoration: none;
    font-size:11pt;
    color: #818181;
    display:block;
}

.sidenav a:hover{
    color:#210011;
}

.sidenav ul {
    list-style-type: none;
    padding:0;
    margin:0;
}
*/
.main {
    margin-left:15%;
    margin-right:15%;
    padding: 0px 10px;
}

.maincard {
    margin-left: 5%;
    width: 90%;
    border-radius: 1rem;
}

.maindashcard {
    border-radius: 1rem;
}

.maincardheader {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.pbx-actions {
  padding: 10px;
  border-top: none;
  border-bottom: none;
  line-height: 24px;
  color: #666;
  width: 100%;
}

.pbx-actions select {
  vertical-align: top;
  height: 24px;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  font-size: 14px;
  padding: 0 0 0 4px;
  margin-left: 10px;
}

.pbx-actions button {
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  box-shadow: 0 -15px 20px -10px rgba(0, 0, 0, 0.15) inset;
  cursor: pointer;
  height: 24px;
  line-height: 1;
  padding: 4px 8px;
  margin: 0;
  color: #333;
}

.pbx-action-select {
  padding-right: 1px;

}

.pbx-action-toggle {
  padding-right: 1px;

}

.pbx-footer {
  text-align:center;
  margin-top: 10px;
  font-size: 12px
}

/*
CSS for colours
*/
.cardbody1 {
    background-color: #fffff6 !important;
    font-size: 11pt;
    border-radius: 1rem;
}
.cardbody2 {
    background-color: #fff6ff !important;
    font-size: 11pt;
}
.cardbody3 {
    background-color: #f6ffff !important;
    font-size: 11pt;
}
.cardbody4 {
    background-color: #fff6f6 !important;
    font-size: 11pt;
}
.tablecolumn1 {
    width: 10%;
    background-color: #f6f6ff !important;
    font-size: 11pt;
}

.ccwb-card-hdr {
    background-color: #6c757e !important;
    color: white;
    font-size: 1vw;
}

.ccwb-fill-card-hdr {
    background-color: #e1e1e1 !important;
    color: white;
    font-size: 1vw;
}

.ccwb-clock {
    background-color: #0078ff !important;
    color: white;
    font-size: 1vw;
    padding-bottom: 0;
}

.ccwb-queue {
    background-color: #0078ff !important;
    color: white;
    font-size: 1vw;
    padding-bottom: 0;
}

.ccwb-logged-out {
    background-color: #6c757e !important;
    color: white;
    font-size: 1vw;
    padding-bottom: 0;
}

.ccwb-on-break {
    background-color: #06637a !important;
    color: white;
    font-size: 1vw;
    padding-bottom: 0;
}

.ccwb-logged-in {
    background-color: #00a2ba !important;
    color: white;
    font-size: 1vw;
    padding-bottom: 0;
}

.ccwb-info {
    background-color: #00a2ba !important;
    color: white;
    font-size: 1vw;
    padding-bottom: 0;
}

.ccwb-ok {
    background-color: #13a93d !important;
    color: white;
    font-size: 1vw;
    padding-bottom: 0;
}

.ccwb-warn {
    background-color: #ffc200 !important;
    color: white;
    font-size: 1vw;
    padding-bottom: 0;
}

.ccwb-crit {
    background-color: #e02f40 !important;
    color: white;
    font-size: 1vw;
    padding-bottom: 0;
}

.ccwb-fill {
    background-color: #e1e1e1 !important;
    color: white;
    font-size: 1vw;
    padding-bottom: 0;
}

.ccwb-big {
    color: white;
    font-size: 2.5vw;
}

.ccwb-footer {
    color: white;
    font-size: 1vw;
    margin-bottom: 0;
}


/*
CSS for log in screen
*/
.login {
    width: 35%;
    max-width: 400px;
    min-width: 250px;
    background-color: #fafafa;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
    margin: 100px auto;
    border-radius: 1rem;
}
.login h1 {
    text-align: center;
    color: #d54a54;
    font-size: 36px;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #dee0e4;
}
.login img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 75%;
    padding: 20px 0 0 0;
}
.login form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}
.login form label {
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    width: 50px;
    height: 50px;
    background-color: #79aec8;
    color: #ffffff;
}
.login form input[type="password"], .login form input[type="text"] {
    width: 75%;
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    margin-right: 5px;
    padding: 0 15px;
}
.login form input[type="submit"] {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #79aec8;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}
.login form input[type="submit"]:hover {
    background-color: #2868c7;
    transition: background-color 0.2s;
}

.dash-card-head {
    background-color: #fafafa;
    color: #555555;
    text-align: center;
    margin-bottom: 0px;
    padding: 0 0 0 0;

}

.dash-card-head h1{
    font-size: 48pt;
    text-shadow: 3px 3px 3px grey;
}

tr.nobttm {
    border-bottom: none !important;
}

nav.navbar {
    background-color: #e0e0e0;
    padding: .2rem 1rem;
}

/* top navbar css - not currently used */
/* menu brand text */
a.navbar-brand {
    color: #141414;
    font-size: 11pt;
    white-space: nowrap;
}

/* menu brand text hover */
a.navbar-brand:hover {
    color: #4ac1f7 !important;
}

/* main menu item */
ul.navbar-nav > li.nav-item > a.nav-link {
    font-family: arial;
    font-size: 11pt;
    color: #141414;
    /*padding: 15px 10px 14px 10px; !important;*/
}

ul.navbar-nav > li.nav-item:hover > a.nav-link,
ul.navbar-nav > li.nav-item:focus > a.nav-link,
ul.navbar-nav > li.nav-item:active > a.nav-link {
    color: #4ac1f7;
    background: #e0e0e0;
}

/* sub menu container */
div.dropdown-menu > a.dropdown-item {
    background-color: #e0e0e0;
    color: #141414;
    font-family: arial;
    font-size: 11pt;
}

div.dropdown-menu > a.dropdown-item:hover,
div.dropdown-menu > a.dropdown-item:focus,
div.dropdown-menu > a.dropdown-item:active {
    background-color: #e0e0e0;
    color: #4ac1f7;
}

div.dropdown-menu {
    background-color: #e0e0e0;
    border: none;
}
/*
.table-container th.asc:after {
    content: '\0000a0\0025b2';
    float: right;
}
.table-container th.desc:after {
    content: '\0000a0\0025bc';
    float: right;
}
*/

table.formtable td,
table.formtable th {
    padding: 5px;
    line-height: 13px;
    text-align: left;
}

table.pbxtable td,
table.pbxtable th {
    padding: 5px;
    line-height: 13px;
    text-align: left;
    vertical-align:top;
}

table.pbxformtable {
    border-collapse: collapse;
    border-color: #CCC;
    border: 1px solid #DDD;
}

table.pbxformtable tr {
    border-bottom: 1px solid #f0f0f0;
}

table.pbxformtable td {
    padding: 5px;
    padding-left: 20px;
    line-height: 13px;
    text-align: left;
/*    background-color: #fefefe !important;*/
    vertical-align:top;
}

table.pbxformtable th {
    padding: 5px;
    padding-left: 20px;
    line-height: 13px;
    text-align: left;
    vertical-align:top;
    border-right: 1px solid #f0f0f0;
    background-color: #f6f6ff !important;
}

table.pbxformtable tr.odd {
    background-color: #fcfcfc;
}

table.pbxformtable tr.even {
    background-color: white;
}

table.pbxformtable tr {
    background-color: white;
}

table.pbxformtable a:link,
table.pbxformtable a:visited {
    color: #444;
    text-decoration: none;
}

table.pbxformtable a:hover {
    color: #806060;
    text-decoration: none;
}

.table-borderless th {
    border: 0;
}

ul.pagination {
    --bs-pagination-color: #444;
    --bs-pagination-hover-color: #222;
    --bs-pagination-active-color: #222;
    --bs-pagination-active-bg: #f6f6ff;
    --bs-pagination-active-border-color: #222;
}

/*
CSS for django-tables2
*/
table.paleblue {
    width: 100%;
    border-collapse: collapse;
    border-color: #CCC;
    border: 1px solid #DDD;
}

table.paleblue,
table.paleblue +  ul.pagination {
    font: normal 10pt/12pt 'Lucida Grande', Verdana, Helvetica, Arial, sans-serif;
}

table.paleblue a:link,
table.paleblue a:visited,
table.paleblue + ul.pagination > li > a {
    color: #444;
    text-decoration: none;
    font-weight: bold;
}

table.paleblue a:hover {
    color: #036;
}

table.paleblue td,
table.paleblue th {
    padding: 5px;
    line-height: 13px;
    border-bottom: 1px solid #EEE;
    border-left: 1px solid #DDD;
    text-align: left;
}

table.paleblue thead th:first-child,
table.paleblue thead td:first-child {
    border-left: none !important;
}

table.paleblue thead th,
table.paleblue thead td {
    background: #FCFCFC url(../img/header-bg.png) left bottom repeat-x;
    border-bottom: 1px solid #DDD;
    padding: 2px 5px;
    font-size: 11pt;
    vertical-align: middle;
    color: #666;
}

table.paleblue thead th > a:link,
table.paleblue thead th > a:visited {
    color: #666;
}

table.paleblue thead th.orderable > a {
    padding-right: 20px;
    background: url(../img/arrow-inactive-up.png) right center no-repeat;
}
table.paleblue thead th.orderable.asc > a {
    background-image: url(../img/arrow-active-up.png);
}
table.paleblue thead th.orderable.desc > a {
    background-image: url(../img/arrow-active-down.png);
}

table.paleblue tr.odd {
    background-color: #f6f6ff;
}

table.paleblue tr.even {
    background-color: white;
}

table.paleblue + ul.pagination {
    background: white url(../img/pagination-bg.gif) left 180% repeat-x;
    overflow: auto;
    margin: 0;
    padding: 10px;
    border: 1px solid #DDD;
    list-style: none;
}

table.paleblue + ul.pagination > li {
    float: left;
    line-height: 22px;
    margin-left: 10px;
}

table.paleblue + ul.pagination > li:first-child {
    margin-left: 0;
}

table.paleblue + ul.pagination > li.cardinality {
    float: right;
    color: #8d8d8d;
}

table.paleblue > tbody > tr > td > span.true,
table.paleblue > tbody > tr > td > span.false {
    background-position: top left;
    background-repeat: no-repeat;
    display: inline-block;
    height: 10px;
    overflow: hidden;
    text-indent: -200px;
    width: 10px;
}

table.paleblue > tbody > tr > td > .missing {
    background: transparent url(../img/missing.png) right center no-repeat;
    color: #717171;
    padding-right: 20px;
}

table.paleblue > tbody > tr > td > .missing:hover {
    color: #333;
}

table.paleblue > tbody > tr > td > span.true {
    background-image: url(../img/true.gif);
}

table.paleblue > tbody > tr > td > span.false {
    background-image: url(../img/false.gif);
}


div.cardbody1 > div > nav > ul.pagination > li.active {
    border: 1px solid #0000ff;

}

div.cardbody1 > div > nav > ul.pagination > li {
    display: flex;
    background-color: #fffff6;
    padding: 0px 5px;
    margin-top: 5px;
    text-align: center;
    display: inline-block;
    border: 1px solid #DDD;

}

div.cardbody1 > div > nav > ul.pagination > li > a{
    color: #717171;
}

div.cardbody1 > div > nav > ul.pagination > li {
    float: left;
    margin-left: 5px;
}

div.cardbody1 > div > nav > ul.pagination > li:first-child {
    margin-left: 0;
}

div.table-container {
    display: inline-block;
}

/*
CSS for forms

.form-inline .form-group {
  margin-right:20px;
}
*/
.filter-inline-container {
    font-size: 13px;
}
.filter-inline-container input {
    margin-right: 5px;
}
.filter-inline-container select {
    margin-right: 5px;
}
/*
CSS for help pages
*/
pre {
    display: block;
    padding: 10px;
    background-color: #edffec;
    border: 1px solid #b3f4ae;
    border-radius: 4px;
    -webkit-box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.5);
    box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.5);
    }

pre > code {
    font-family: Courier New, monospace;
    color: #16980c;
    }

.btn-info, .btn-info:active, .btn-info:visited {
    color: #ffffff; !important;
    background-color: #17a2b8; !important;
}

.btn-info:hover {
    color: #ffffff; !important;
    background-color: #18b1c9; !important;
}

/* Side Nav CSS below */
:root {
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
}

body {
    overflow-x: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(135deg, #fffff6 0%, #d6d6ff 100%);
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-link {
    color: #868686;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-link:hover {
    color: #1f1f1f;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-link.active {
    color: #1f1f1f;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-dropdown {
    background: linear-gradient(45deg, #eeeeef, #e6e6ff);
    border-radius: 1rem;
}

.sidebar-dropdown-item {
    color: #868686;
    border-radius: 1rem;
}

.logo-text {
    background: linear-gradient(45deg, #2f2f2f, #d6d6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.notification-badge {
    background: #ff6b6b;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
}

.profile-section {
    border-top: 1px solid rgba(55, 55, 55, 0.1);
}

.profile-section a:link,
.profile-section a:visited {
    color: #868686;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.profile-section a:hover {
    color: #1f1f1f;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.main-content {
    margin-left: var(--sidebar-width);
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

.wallboard-content {
    margin-left: 0px;
    margin-right: 2px;
    background: linear-gradient(180deg, #fffff6 0%, #d6d6ff 100%);
/*    background-color: #f8f9fa; */
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

.collapsed~.main-content {
    margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
    position: absolute;
    right: -15px;
    top: 20px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}

.collapsed .logo-text {
    opacity: 0;
}

.collapsed .profile-info {
    opacity: 50;
    margin-left: 0 !important;
}

.collapsed .sidebar-link {
    text-align: center;
    padding: 1rem !important;
    margin: 4px 8px;
}

.collapsed .sidebar-link i {
    margin: 0 !important;
}

.profile-info {
    transition: opacity 0.2s ease;
}

.gauge-container > .gauge > .dial {
  stroke: #334455;
  stroke-width: 4;
}

.gauge-container > .gauge > .value {
  stroke: rgb(47, 227, 255);
  stroke-width: 4;
}

.gauge-container > .gauge > .value-text {
  fill: rgb(47, 227, 255);
  font-family: sans, 'sans-serif';
  font-weight: bold;
  font-size: 0.6em;
}
