/* color palette:
 - green:      #32A620
 - darkgreen:  #397F19
 - tan:        #F7F1CD
 - rust:       #7D1921
 - navy:       #2E3959
 - orange:     #FFC900
 - blue:       #4F62D8
*/
@import url(/static/fonts/opensans.css);

body {
    margin:0px;
    padding:0px;
    background-color:#397F19;
    font-family: 'Open Sans', calibri;
    font-size:12pt;
}

div, p {
    margin:0px;
}

/******** Overall Layout Styles **********/

/* Ported from base: */
.bluebg {background-color:lightblue;}
.opOn, .wlOn, .rsOff {color:green;}
.opOff, .wlOff, .rsOn {color:red;}
.rdOff {color:black;}
.rdOn {color:red;}
.rsNA, .station_waiting {color:gray;}
.station_disabled {color:gray;}
#lastRun {color:gray;}
#stations {width:100%;}
#pluginMenu{display: none; z-index: 99}
.program {line-height:22px}
.strike {text-decoration:line-through;}
.progstation_on {background-color:#9AFA9A; color:black; font-size:10pt}
.progstation_off {background-color:white; color:lightgray; font-size:10pt}
button#tooltip {height:24px;}
.tooltip {background-color:#FFF2B8; display:none; font-size:10pt; margin-left:4px;}
.label {font-weight:bold; float:left; width:210px; text-align:right; padding-right:4px;}
.option {margin: 6px 0px; clear:both;}
#optionsForm .option {min-height:26px; overflow:visible;}
#optionsForm .label {
    box-sizing:border-box;
    width:320px;
    max-width:42%;
    line-height:1.25;
    white-space:normal;
    overflow-wrap:break-word;
}

.pluginUpdateSummary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 9px 0;
    padding: 9px 12px;
    border: 1px solid #b8bcc8;
    border-left: 5px solid #6d7787;
    border-radius: 8px;
    background: #f3f5f8;
}
.pluginUpdateSummary.isChecking { border-left-color: #d29400; background: #fff7dc; }
.pluginUpdateSummary.isCurrent { border-left-color: #2f8b25; background: #edf7eb; }
.pluginUpdateSummary.hasUpdates { border-left-color: #d29400; background: #fff2bd; }
.pluginUpdateSummary.hasError { border-left-color: #a01d28; background: #fdebed; }
.pluginUpdateSummary.isDisabled { color: #5f6670; }
.pluginUpdateSummary.isChecking #pluginUpdateSummaryTitle::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border: 2px solid #d29400;
    border-right-color: transparent;
    border-radius: 50%;
    animation: pluginSummarySpin .8s linear infinite;
}
.pluginUpdateSummaryDetail { display: inline-flex; flex-wrap: wrap; gap: 5px 10px; }
.pluginUpdateSummaryDetail a { color: #164f91; text-decoration: underline; font-weight: bold; }
@keyframes pluginSummarySpin { to { transform: rotate(360deg); } }
td.stationNumber, td.stationShow, td.stationIgnore, td.activateMaster {text-align:center}
td.stationName {text-align:left; padding-left:1em;}
.piDatFooter {background-color:white; color:black; font-size:12pt; margin-bottom:10px; padding:0px 4px 0px 4px;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  padding-top: 4vh; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

.modal-body {
  padding: 2px 16px;
  overflow-y: auto;
}

.modal-content.globalErrorModal {
  border: 2px solid #941f2b;
}

.globalErrorModal .modal-header {
  background-color: #941f2b;
}

.globalDiagnosticsErrorList {
  max-height: 60vh;
  overflow-y: auto;
}

.globalDiagnosticsErrorItem {
  margin: 8px 0;
  padding: 8px 12px;
  border-left: 4px solid #b3202a;
  background-color: #fff0f1;
  color: #321013;
}

.globalDiagnosticsErrorItem h3,
.globalDiagnosticsErrorItem p {
  margin: 4px 0;
}

.globalDiagnosticsSolution {
  color: #5f171d;
}

.update-plugin-list {
  max-height: 45vh;
  overflow-y: auto;
  border: 1px solid #ddd;
  margin: 8px 0;
  padding: 6px 12px;
}

.update-plugin-list ul {
  margin: 0;
  padding-left: 18px;
}

.update-plugin-list li {
  padding: 2px 0;
}

.modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

/* alerts */

#refreshLight {
  color: #f44336;
}

#red_circle {
  width: 50px;
  height: 50px;
  background: red;
  border-radius: 50%
}

#green_circle {
  width: 50px;
  height: 50px;
  background: green;
  border-radius: 50%
}

.alert {
  padding: 20px;
  background-color: #f44336;
  color: white;
  opacity: 1;
  transition: opacity 0.6s;
  margin-bottom: 15px;
}

.alert.success {background-color: #4CAF50;}
.alert.info {background-color: #2196F3;}
.alert.warning {background-color: #ff9800;}

.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.closebtn:hover {
  color: black;
}

table td.shrink {
    width: 1px;
    white-space:nowrap
}

table td.expand {
    width: 99%
}

div.header {
    background-image: url('logo.png');
    background-repeat: no-repeat;
    background-position: 42px 20px;
    background-color: #32A620;
    height:80px;
}

div.header div.title {
    font-family: 'Open Sans', sans-serif;
    font-size: 24pt;
    text-transform:uppercase;
    text-align:right;
    color:white;
    padding-top:10px;
    padding-right:16px;
}

.headerTitleRow {display:flex; justify-content:flex-end; align-items:center; gap:12px; min-width:0;}
.headerSystemName {min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.headerFeedbackButton {display:inline-block; flex:0 0 auto; padding:5px 10px; border:1px solid rgba(255,255,255,.9); border-radius:6px; background:rgba(46,57,89,.32); color:#fff; font-size:10pt; font-weight:bold; line-height:1.3; text-decoration:none; text-transform:none;}
.headerFeedbackButton:hover, .headerFeedbackButton:focus, .headerFeedbackButton.here {background:#fff; color:#2E3959; text-decoration:none;}

#Userinfo {
    font-size: 10pt;
    color:white;
    padding-left:18px;
}


div.header div.titlenote {
    font-size: 10pt;
    color:white;
    padding-left:8px;
}

div.footer {
    background-image: url(grass.jpg);
    background-position: top right -200px;
    background-repeat: no-repeat;
    background-color: #32A620;
    color:white;
    text-align: right;
    padding: 16px 170px 16px 16px;
    font-size:9pt;
    clear: both;
}

.footer a:link, .footer a:visited {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: black;
    text-decoration: none;
}

.footer a:active {
  color: white;
  text-decoration: none;
}

#pluginFooter{
    border:3px solid #2E3959;
    border-radius: 12px;
    padding: 4px;
    border-spacing: 0px;
    background-color: white;
}

/******** Checkbox **********/

/* The container */
.container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -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;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  height: 20px;
  width: 20px;
  background-color: #bbb;
  border-radius: 20%;
  border: 1px solid #333;
  margin: -4px;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #eee;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: rgb(50, 166, 32);
}

/* 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: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  margin: -4px;
}

/******** Changes the appearance of a link **********/

div.content {
    background-color: #FCFAEB;
    color:black;
}

div.body {
    margin:0px;
    padding:0px;
    background-image: url(grass.jpg);
}

div.panel {
    margin-left: 240px;
    padding:12px;
    background-color: white;
    min-height: 200px;
}

div.panel div.title {
    font-weight: 700;
    font-size: 20pt;
    margin-bottom: 8px;
}

div.controlblock, div.simpleblock, div.simpleinlineblock {
    border:3px solid #2E3959;
    border-radius: 12px;
    margin: 8px 0px;
}

div.simpleinlineblock {
    display: inline-block;
}

div.controlblock p, div.controlblock div {
    padding: 2px 24px;
}

span.stationName:after {
    content: ",";
}

span.stationName:last-child:after {
    content: "";
}

.program {
    width:95%;
    border-bottom: 1px solid #2E3959;
    margin-bottom: 8px;
    padding-bottom: 6px;
}

.pluginPageMeta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 8px;
    padding: 6px 10px;
    border-left: 4px solid #2e8b20;
    background: #eef4ec;
    color: #263326;
    font-size: 0.9em;
}

.pluginPageMetaName { font-weight: 600; }
.pluginPageMetaVersion { white-space: nowrap; }

@media screen and (max-width: 600px) {
    .pluginPageMeta { flex-wrap: wrap; }
}

.programGroup .program:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.programGroup {
    border: 2px solid #397F19;
    border-radius: 10px;
    margin: 10px 0;
    padding: 8px;
    background-color: rgba(57, 127, 25, 0.04);
}

.programGroup summary {
    margin: -8px -8px 8px -8px;
    padding: 6px 10px;
    border-bottom: 1px solid #397F19;
    background-color: rgba(57, 127, 25, 0.10);
    cursor: pointer;
}

.programSequenceLabel {
    margin: 4px 8px 2px 8px;
    padding: 0 !important;
    color: #2E3959;
    font-size: 10pt;
    font-weight: 700;
}

.programSequence {
    display: flex;
    align-items: stretch;
    gap: 3px;
    margin: 2px 8px 8px 8px;
    padding: 5px !important;
    border: 1px dashed #C86B16;
    border-radius: 6px;
    min-height: 26px;
    overflow: visible;
}

.programSequenceBlock {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 34px;
    max-width: 180px;
    padding: 3px 7px;
    border-radius: 6px;
    background-color: #D9771F;
    color: white;
    font-size: 10pt;
    line-height: 18px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
    cursor: help;
}

.programSequenceBlock:hover,
.programSequenceBlock:focus {
    background-color: #B85F12;
    outline: 2px solid #F2B36A;
    outline-offset: 1px;
}

.programSequenceBlock:hover::after,
.programSequenceBlock:focus::after {
    content: attr(data-title);
    position: absolute;
    left: 0;
    top: calc(100% + 5px);
    z-index: 20;
    max-width: 260px;
    min-width: 160px;
    padding: 6px 8px;
    border: 1px solid #C86B16;
    border-radius: 4px;
    background: #FFF7E8;
    color: #2E3959;
    white-space: normal;
    line-height: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

.programSequenceNumber {
    font-weight: 700;
    margin-right: 5px;
}

.programSequenceName {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.programSequenceDivider {
    border-top: 1px solid #2E3959;
    margin: 0 24px 8px 24px;
    padding: 0 !important;
}

.programGroupDivider {
    border-top: 1px solid #2E3959;
    margin: 6px 24px 8px 24px;
    padding: 0 !important;
}

.programAddRow {
    margin: 8px 8px 6px 8px;
}

.programPostponementRow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 8px 8px 8px;
}

.programGroupActions {
    margin-top: 0;
}

.programPostponementForm,
.programPostponementStatus {
    display: inline-block;
}

.programPostponementForm[hidden] {
    display: none;
}

.programPostponementForm input[type="datetime-local"] {
    margin: 0 4px;
}

.programPostponementForm form {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.programPostponementPreview {
    flex-basis: 100%;
    margin-top: 4px;
}
.programPostponementDialog {width:min(92vw, 520px); box-sizing:border-box; border:0; border-radius:12px; padding:0; color:#222; background:#fff; box-shadow:0 18px 55px rgba(0,0,0,.35);}
.programPostponementDialog::backdrop {background:rgba(0,0,0,.55);}
.programPostponementDialog form {display:block !important; padding:20px;}
.programPostponementDialogHeader {display:flex; align-items:flex-start; justify-content:space-between; gap:12px;}
.programPostponementDialogHeader h3 {margin:0; font-size:20px;}
.programPostponementClose {border:0; background:transparent; color:inherit; font-size:30px; line-height:24px; cursor:pointer; padding:0 2px;}
.programPostponementHelp {margin:10px 0 18px; color:#555;}
.programPostponementDateTime {display:block; font-weight:bold;}
.programPostponementDateTime span {display:block; margin-bottom:6px;}
.programPostponementDateTime input {display:block; box-sizing:border-box; width:100%; min-height:46px; margin:0; padding:8px 10px; font-size:17px;}
.programPostponementPreview {display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0; padding:12px; border-radius:8px; background:#f1f3f5;}
.programPostponementDialogActions {display:flex; justify-content:flex-end; gap:8px;}
.programPostponementDialogActions .button {min-height:40px;}
.weatherLocationCard {box-sizing:border-box; margin:12px 0; padding:12px 14px; border:3px solid #2E3959; border-radius:12px; background:transparent;}
.weatherLocationCardHeader {display:flex; align-items:baseline; flex-wrap:wrap; gap:6px;}
.weatherLocationCardHeader h3 {margin:0; font-size:18px;}
.weatherLocationName {font-size:16px;}
.weatherLocationState {margin:0;}
.weatherLocationStateOk {color:#24752a;}
.weatherLocationStateError {color:#a51f28;}
.weatherForecast {display:grid; grid-template-columns:repeat(3, minmax(90px, 150px)); gap:9px; margin-top:10px;}
.weatherForecastCard {display:grid; grid-template-columns:42px 1fr; grid-template-rows:auto auto auto; align-items:center; column-gap:8px; box-sizing:border-box; min-width:0; padding:8px 10px; border:1px solid #b8bcc8; border-radius:9px; background:rgba(238,241,246,.72);}
.weatherForecastCard time {grid-column:2; font-size:12px; color:#555;}
.weatherForecastCard img {grid-column:1; grid-row:1 / span 3; width:42px; height:42px;}
.weatherForecastCard strong {grid-column:2; font-size:15px; white-space:nowrap;}
.weatherForecastCard span {grid-column:2; font-size:11px; white-space:nowrap;}
.weatherForecastUnavailable {margin-top:9px; color:#666; font-size:12px;}
@media (max-width:600px) {.weatherForecast {grid-template-columns:repeat(3, minmax(0, 1fr)); gap:5px;}.weatherForecastCard {display:flex; flex-direction:column; gap:2px; padding:7px 3px; text-align:center;}.weatherForecastCard img {width:38px; height:38px;}.weatherForecastCard strong {font-size:13px;}.weatherForecastCard span {font-size:9px;}}
.weatherLocationButtons {display:flex; flex-wrap:wrap; gap:7px; margin-top:10px;}
.weatherLocationDetails {margin-top:12px;}
.weatherLocationDetails summary {cursor:pointer; font-weight:bold;}
.weatherLocationDetails div {margin-top:4px;}
.twoFactorSelector {display:flex; flex-wrap:wrap; gap:8px 24px; margin:18px 0; padding:12px; border:3px solid #2E3959; border-radius:12px;}
.twoFactorSelector legend {font-weight:bold; padding:0 6px;}
.twoFactorMethodCard {padding:14px; border:3px solid #2E3959; border-radius:12px;}
.twoFactorMethodCard form {display:flex; align-items:center; flex-wrap:wrap; gap:8px;}
.twoFactorMethodCard h4 {margin-top:0;}
.twoFactorMessage {padding:8px 10px; border-radius:6px;}
.twoFactorError {color:#a51f28;}
.twoFactorNotice {color:#24752a;}
.twoFactorQr {display:block; max-width:100%; height:auto;}
.twoFactorVerifyForm {margin-top:12px;}
.feedbackPage {box-sizing:border-box; width:min(100%, 900px); padding:12px 14px 18px;}
.feedbackPage > h2 {margin:0 0 8px;}
.feedbackForm {display:grid; gap:7px; margin-top:16px; padding:16px; border:3px solid #2E3959; border-radius:12px;}
.feedbackForm > label:not(.feedbackIncludeSystem) {font-weight:bold; margin-top:4px;}
.feedbackForm input[type="text"], .feedbackForm select, .feedbackForm textarea {box-sizing:border-box; width:100%; max-width:100%; padding:8px; font:inherit;}
.feedbackForm textarea {min-height:180px; resize:vertical;}
.feedbackHint, .feedbackPrivacy {font-size:10pt; color:#555;}
.feedbackError {margin-top:12px; padding:9px 11px; border-radius:6px; background:#ffe7e9; color:#a51f28;}
.feedbackIncludeSystem {display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:10px; font-weight:bold; cursor:pointer;}
.feedbackSwitch {position:relative; display:inline-block; flex:0 0 auto; width:50px; height:24px;}
.feedbackSwitch input {position:absolute; width:1px; height:1px; margin:0; opacity:0;}
.feedbackSlider {position:absolute; cursor:pointer; top:0; right:0; bottom:0; left:0; border-radius:34px; background-color:#ff4d4d; transition:background-color .4s;}
.feedbackSlider::before {position:absolute; content:""; width:18px; height:18px; left:4px; bottom:3px; border-radius:50%; background-color:#fff; transition:transform .4s;}
.feedbackSwitch input:checked + .feedbackSlider {background-color:#4caf50;}
.feedbackSwitch input:checked + .feedbackSlider::before {transform:translateX(26px);}
.feedbackSwitch input:focus-visible + .feedbackSlider {outline:3px solid #2E3959; outline-offset:2px;}
.feedbackSystemPreview {margin-top:5px; padding:12px; border:1px solid #b8bcc8; border-radius:8px; background:#f5f6f8;}
.feedbackSystemPreview h3 {margin:0 0 8px;}
.feedbackSystemPreview table {width:100%; border-collapse:collapse; margin-bottom:8px;}
.feedbackSystemPreview th, .feedbackSystemPreview td {padding:5px 7px; border:1px solid #c7cbd4; text-align:left; vertical-align:top;}
.feedbackSystemPreview th {width:34%;}
.feedbackActions {display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-top:10px;}
@media (max-width:600px) {.headerTitleRow {gap:6px;}.headerFeedbackButton {padding:4px 7px; font-size:8pt;}.headerSystemName {font-size:12pt;}.feedbackPage {padding:10px 6px 14px;}.feedbackForm {padding:12px;}.feedbackSystemPreview {overflow-x:auto;}.feedbackActions {flex-direction:column-reverse;}.feedbackActions .button {box-sizing:border-box; width:100%; min-height:44px; text-align:center;}}
.weatherLocationOption .weatherLocationSelection {display:inline-block; margin-left:8px;}
.weatherMapDialog {width:min(94vw, 760px); box-sizing:border-box; border:0; border-radius:12px; padding:16px; color:#222; background:#fff; box-shadow:0 18px 55px rgba(0,0,0,.4);}
.weatherMapDialog::backdrop {background:rgba(0,0,0,.6);}
.weatherMapHeader {display:flex; justify-content:space-between; align-items:flex-start; gap:12px;}
.weatherMapHeader h3 {margin:0;}
.weatherMapClose {border:0; background:transparent; color:inherit; font-size:30px; line-height:24px; cursor:pointer;}
.weatherMapCanvas {width:100%; height:min(58vh, 480px); min-height:280px; border-radius:8px;}
.weatherMapInfo {display:flex; justify-content:space-between; gap:10px; margin:10px 0; min-height:20px;}
.weatherMapStatus {color:#a51f28;}
.weatherMapActions {display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px;}
@media (max-width:600px) {.weatherLocationCard {padding:13px;}.weatherLocationButtons {flex-direction:column;}.weatherLocationButtons .button {width:100%; min-height:44px;}.weatherMapDialog {width:calc(100vw - 12px); max-height:calc(100vh - 12px); padding:12px;}.weatherMapCanvas {height:55vh; min-height:260px;}.weatherMapInfo {display:block;}.weatherMapActions {flex-direction:column-reverse;}.weatherMapActions .button {width:100%; min-height:46px;}}
@media (max-width:600px) {.programPostponementDialog {width:calc(100vw - 20px); max-height:calc(100vh - 20px);}.programPostponementDialog form {padding:16px;}.programPostponementPreview {grid-template-columns:1fr;}.programPostponementDialogActions {flex-direction:column-reverse;}.programPostponementDialogActions .button {width:100%; min-height:46px;}}

.program p:first-child {
    background-color: #2E3959;
    color: white
}

.program.disabled {
    border-color: #7D1921;
}

.program.disabled p:first-child {
    background-color: #7D1921;
    color: white
}

/******** General Global Styles **********/

#errorHint {
    color: #7D1921;
}

.inputError {
    color: #7D1921;
}

.showInterval {
    text-align:center;
}

.program p:first-child .val {
    color: white;
}

.val {
    font-weight: 700;
    color: #397F19;
}

/******** Clock Styles **********/

div#status {
    float:left;
    width: 240px;
    text-align:center;
    color:white;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    padding-top: 23px;
    padding-bottom: 12px;
    background-color: #397F19;
    opacity: .85;
}

#deviceTime {
    font-size: 24pt;
}

#deviceTime span {
    display:inline-block;
    position:relative;
    top: 6px;
    font-size:42pt;
    width: 60px;
    text-align:center;
    letter-spacing: -3px;
}

#deviceTime span.sep {
    text-align: center;
    width: 8px;
    font-size: 24pt;
    top: -4px;
}

#deviceTime span.hour {
    text-align:right;
}

#deviceTime span.second {
    text-align:left;
    font-size:18pt;
    letter-spacing: -1px;
    top: -16px;
    left: 6px;
    width: 36px;
}

#deviceTime span.ampm {
    position:relative;
    top:6px;
    left: -32px;
    font-size:18pt;
    width: 36px;
    text-transform:uppercase;
    letter-spacing: 0px;
    text-align: right;
}

#deviceDate {
    margin-top:16px;
    font-weight:400;
}

.countdown, .rainsense {
    color: #7D1921;
    font-family: 'Open Sans', sans-serif;
    font-size: 12pt;
    font-weight: 700;
    text-transform:uppercase;
}

/******** Navigation Button Styles **********/

#nav {
    margin-bottom:16px;
    display: flex;
    justify-content: left;   /* center buttons to left*/
    flex-wrap: wrap;         /* more line if needed */
}

#nav .button {
    background-color: #2E3959;
    border: 0px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 16pt;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 14pt;
    margin: 10px 10px;
    padding: 12px 22px;
    text-align: center;
    text-decoration: none;
    text-indent: 0px;
    text-rendering: auto;
    text-shadow: none;
    text-transform: uppercase;
    vertical-align: middle;
    word-spacing: normal;
}

#nav .button.here {
    background-color: #32A620;
    height: 34px;
}


/******** Navigation Icon Button Styles **********/

#nav .button.ico-here {
    background-color: #32A620 !important;
    height: 40px;
    width: 40px;
}

#nav .button.ico-home {
    mask-image: url('home.svg');
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 40px 40px; 
    height: 40px;
    width: 40px;
    background-color: #2E3959;
}

#nav .button.ico-options {
    mask-image: url('settings.svg');
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 40px 40px; 
    height: 40px;
    width: 40px;
    background-color: #2E3959;
}

#nav .button.ico-programs {
    mask-image: url('schedule-time-and-date.svg');
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 40px 40px; 
    height: 40px;
    width: 40px;
    background-color: #2E3959;
}

#nav .button.ico-start {
    mask-image: url('switch.svg');
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 40px 40px; 
    height: 40px;
    width: 40px;
    background-color: #2E3959;
}

#nav .button.ico-plugins {
    mask-image: url('packages.svg');
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 40px 40px; 
    height: 40px;
    width: 40px;
    background-color: #2E3959;
}

#nav .button.ico-log {
    mask-image: url('panel-log.svg');
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 40px 40px; 
    height: 40px;
    width: 40px;
    background-color: #2E3959;
}

#nav .button.ico-stations {
    mask-image: url('relay.svg');
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 40px 40px; 
    height: 40px;
    width: 40px;
    background-color: #2E3959;
}

#nav .button.ico-sensors {
    mask-image: url('sensors.svg');
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 40px 40px; 
    height: 40px;
    width: 40px;
    background-color: #2E3959;
}

#nav .button.ico-help {
    mask-image: url('help.svg');
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 40px 40px; 
    height: 40px;
    width: 40px;
    background-color: #2E3959;
}

#nav .button.ico-logout {
    mask-image: url('logout.svg');
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 40px 40px; 
    height: 40px;
    width: 40px;
    background-color: #2E3959;
}

/******** Button Styles **********/

button, .button {
    padding: 4px 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12pt;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    line-height: 14pt;
    color: white;
    background-color: #397F19;
    border: 0px;
    border-radius: 12px;
    cursor: pointer;
    margin: 2px 0;
    display: inline-block;
}

button:hover, .button:hover {
    color: #F7F1CD;
}

button.on, .button.on {
    background-color: #397F19;
}

button.off, .button.off {
    background-color: #7D1921;
}

button.execute, .button.execute {
    background-color: #2E3959;
}

button.toggle, .button.toggle {
    background-repeat: no-repeat;
    background-position: center center;
    width: 304px;
    padding: 4px;
    text-align: center;
    color: #DDD;
}

button.toggle.on, .button.toggle.on {
    background-color: #397F19;
    background-image: url('on.png');
}

button.toggle.on:hover, .button.toggle.on:hover {
    color: #F7F1CD;
    background-image: url('off.png');
}

button.toggle.off, .button.toggle.off {
    background-color: #7D1921;
    background-image: url('off.png');
}

button.toggle.off.choice, .button.toggle.off.choice {
    background-color: #397F19;
    background-image: url('off.png');
}

button.toggle.off:hover, .button.toggle.off:hover {
    color: #F7F1CD;
    background-image: url('on.png');
}

button.toggle span.togglesep, .button.toggle span.togglesep {
    display: inline-block;
    width: 50px;
}

button.toggle span.toggleleft, .button.toggle span.toggleleft {
    display: inline-block;
    text-align: right;
    width: 120px;
}

button.toggle span.toggleright, .button.toggle span.toggleright {
    display: inline-block;
    text-align:left;
    width: 120px;
}

button.toggle.on span.toggleright, button.toggle.off span.toggleleft, .button.toggle.on span.toggleright, .button.toggle.off span.toggleleft {
    font-weight: 400;
}

button.toggle.off span.toggleright, button.toggle.on span.toggleleft, .button.toggle.off span.toggleright, .button.toggle.on span.toggleleft {
    font-weight: 700;
    color: white;
}

#controls button#cSubmit, #controls .button#cSubmit {
    background-color: #397F19;
}

#controls button#cSubmit:disabled, #controls .button#cSubmit:disabled {
    background-color: #AAA;
}

button.danger, .button.danger, .minibutton.danger {
    background-color: #7D1921;
}

button.backup, .button.backup, .minibutton.backup {
    background-color: #FFC900;
}

button.upload, .button.upload, .minibutton.upload {
    background-color: #4F62D8;
}

button.toggle.narrow, .button.toggle.narrow {
    width: 140px;
}

button.toggle.narrow span.toggleright, button.toggle.narrow span.toggleleft, .button.toggle.narrow span.toggleright, .button.toggle.narrow span.toggleleft {
    width: 36px;
}

#options button, #controls button, #options .button, #controls .button {
    margin: 4px 0px;
}

button.pushon.on, .button.pushon.on {
    font-weight: 700;
}

#program-container .program .button.toggle {float:right; width:150px; margin:0 0 0 14px !important; padding:4px 0 4px 14px; border-left:2px solid #397F19;}
#program-container .program .button.toggle.on {background-color:#397F19;}
#program-container .program .button.toggle.off {background-color:#7D1921;}
#program-container .program .button.toggle span.toggleleft {width: 30px;}
#program-container .program .button.toggle span.toggleright {width: 30px;}
#program-container .program .programTitle {font-size:13pt; font-weight:700;}
#program-container .program .programActions {margin-top:6px; padding-top:6px;}
.button.toggle.pluginManageToggle {width:130px; margin:0 !important; padding:4px 0;}
.button.toggle.pluginManageToggle span.toggleleft {width:30px;}
.button.toggle.pluginManageToggle span.toggleright {width:30px;}
.programGroup .button.groupEnable, .programGroup .button.groupDisable {min-width:0; width:auto; padding-left:12px; padding-right:12px;}
.minibutton {
    padding: 2px 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 9pt;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    line-height: 10pt;
    color: white;
    background-color: #397F19;
    border: 0px;
    border-radius: 6px;
    cursor: pointer;
    margin: 1px 0;
    display: inline-block;
}

input.timeInput {
    font-size:12pt;
}

input[type=number] {
    width: 60px;
}

/******** Images Styles **********/

.avatar {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px;
  height: 50px;
  width: 50px;
}

.avatar:hover {
  box-shadow: 0 0 2px 1px #397F19;
}

.home_avatar {
  display: block;
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
  margin: 0 auto;
  padding: 0px 2px;
  object-fit: contain;
  box-sizing: border-box;
}

.stationImage {
  text-align: center;
}

.imageViewer {
  max-width: 100%;
  text-align: center;
  overflow: hidden;
}

.imgViev {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - 180px);
  margin: 0 auto;
  object-fit: contain;
  cursor: pointer;
}

/******** Station Table Styles **********/

#programmode {
    overflow: auto;
}

table.optionList {
    border:3px solid #2E3959;
    border-radius: 12px;
    padding: 4px;
    border-spacing: 0px;
    empty-cells: show;
    border-collapse: separate;
}

table.advancedSchedule {
    padding: 4px;
    border-spacing: 0px;
    empty-cells: show;
    border-collapse: separate;
    width: 100%;
}

table.stationList {
    border:3px solid #2E3959;
    border-radius: 12px;
    padding: 4px;
    border-spacing: 0px;
    empty-cells: show;
    border-collapse: separate;
    text-align: center;
}

td.station_name {
    text-align: right;
    padding: 0px 12px;
    color: #2E3959;
    font-weight: 700;
    width: 12em;
    height: 30px;
    white-space: nowrap;
}

table.stationList td {
    text-transform: uppercase;
    margin-bottom: 1px;
}

table.stationList td.station_name {
    text-transform: none;
}

tr.even {
    background-color: #DDD;
}

td.stationStatus {
    color: white;
    background-color: #7D1921;
    padding: 0px 12px;
    border-bottom: 2px solid white;
}

td.stationStatus.station_on {
    background-color: #32A620;
}

td.stationStatus.station_off {
    background-color: #7D1921;
}

td.stationStatus.station_waiting {
    background-color: #397F19;
}

td.stationStatus.station_disabled {
    background-color: #AAA;
}

td.stationOn.dayOn {
    background-color: #32A620;
    text-align:center;
    color:white;
    border-radius: 6px;
    background-image: url('checkmark.png');
    background-position: center center;
    background-repeat: no-repeat;
}

td.stationOn {
    background-color: #F7F1CD;
    border-radius: 8px;
}

td.dayOn {
    background-color: #F7F1CD;
    border-radius: 8px;
}

table.logList {
    padding: 4px;
    margin: 1em 0em;
}

table.logList td {
    padding: 0px 12px;
}

table.logList th {
    padding: 0px 12px;
    border-bottom: 2px solid #2E3959;
}

table.adjustmentList {
    padding: 8px 0px;
}

table.adjustmentList td {
    padding: 2px;
}

table.adjustmentList td.adjValue, table.adjustmentList th.adjValue {
    text-align: right;
}

table.adjustmentList th {
    padding: 2px;
    border-top: 2px solid #2E3959;
    text-align: left;
}

table.pemList {
    padding: 8px 0px;
    width: 100%;
}

table.pemList td {
    padding: 2px;
}

table.pemList th {
    padding: 2px;
    border-bottom: 2px solid #2E3959;
    text-align: left;
}

/******** Interval Selector Styles **********/

.animatedSelector {
    font-size: 26px;
    text-align:center;
    width: 500px;
    display: inline-block;
    vertical-align: middle;
}

.intervalSelect {
    line-height: 60px;
    border-radius: 12pt;
    padding: 3px;
    cursor: pointer;
}

.intervalSelect.distance0 {
    background-color: #32A620;
    color: white;
}

.intervalSelect:hover {
    border: 2px solid #32A620;
}

.intervalSelect.distance1 {
}

.intervalSelect.distance2 {
}

.graph-container {
    margin: 5px 0;
	  font-size: 14px;
	  line-height: 1.2em;
    border:3px solid #2E3959;
    border-radius: 12px;
    padding: 4px;
    border-spacing: 0px;
    empty-cells: show;
    border-collapse: separate;
}

.sensor-container {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.2em;
    border:3px solid #2E3959;
    border-radius: 12px;
    padding: 4px;
    border-spacing: 0px;
    empty-cells: show;
    border-collapse: separate;
    background: #F5F5F5;
    width: 65em;
}

.program-container {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.2em;
    border:3px solid #2E3959;
    border-radius: 12px;
    padding: 4px;
    border-spacing: 0px;
    empty-cells: show;
    border-collapse: separate;
    background: #F5F5F5;
    width: 60%;
}

.graph-placeholder {
	  height: 300px;
}

#legend-visible tr {
    cursor: pointer;
}

table.balanceList {
    padding: 8px 0px;
}

table.balanceList td {
    padding: 2px;
}

table.balanceList th {
    padding: 2px;
    text-align: left;
}

table.balanceList td.balValue, table.balanceList th.balValue {
    text-align: right;
}

table.balanceList tr:first-child th {
    border-bottom: 2px solid #2E3959;
}

table.balanceList tr:last-child th {
    border-top: 2px solid #2E3959;
}

/******** Diagnostics Styles **********/

#historyPanel {
    display: none;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.diagnosticsCard {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#diagnostics .diagnosticsCard .diagnosticsTable {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 9px;
    padding: 0;
}

#historyPanelHeader {
    padding: 6px 8px;
    border-bottom: 1px solid #b9c0d0;
    font-weight: bold;
}

#historyPanelControls { padding: 8px; }
#historyPanelCanvas { padding: 0 8px 8px; }

#pluginHistoryChart {
    width: 100%;
    height: 260px;
    border: 1px solid #b9c0d0;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.pluginHistory { margin-left: 6px; }
.diagnosticsSection { margin: 3px 0; }

#diagnostics .diagnosticsSection > h4 {
    margin-left: 0;
    margin-right: 0;
}

.diagnosticsSectionContent { padding-top: 5px; }

.healthBadge {
    display: inline-block;
    max-width: 100%;
    padding: 3px 6px;
    border: 0;
    border-left: 4px solid;
    border-radius: 2px;
    text-align: left;
    font-weight: normal;
    line-height: 1.25;
    box-sizing: border-box;
}

.healthBadge.health-ok {
    border-left-color: #2f8b2f;
    background: #e7f3e7;
    color: #1f6322;
}

.healthBadge.health-warning {
    border-left-color: #d07800;
    background: #fff1d7;
    color: #754600;
}

.healthBadge.health-error {
    border-left-color: #9d1c24;
    background: #f9e3e5;
    color: #7d1921;
}

.healthBadge.health-unknown {
    border-left-color: #687080;
    background: #eceef2;
    color: #4f5662;
}

.healthDetails,
.healthUpdated {
    margin-top: 4px;
    font-size: .9em;
    color: #555;
    overflow-wrap: anywhere;
}

.translationCoverage {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
    margin-top: 0.3em;
}

.translationCoverageItem {
    border-left: 3px solid #777;
    padding: 0.2em 0.45em;
    background: #eeeeee;
    white-space: nowrap;
}

.translationCoverageItem.health-ok {
    border-left-color: #2f8a28;
    background: #e8f4e7;
}

.translationCoverageItem.health-warning {
    border-left-color: #d68a00;
    background: #fff2d8;
}

.translationCoverageItem.health-error {
    border-left-color: #b7192e;
    background: #f9e1e5;
}

.securityProfileControls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 8px;
}

#securityProfileDescription {
    margin: 0 0 8px;
    padding: 7px 9px;
    border-left: 4px solid #2e3959;
    background: #f0f2f6;
}

.securitySolution {
    margin-top: 5px;
    padding: 5px 7px;
    border-left: 3px solid #d07800;
    background: #fff7e7;
    font-size: .9em;
    overflow-wrap: anywhere;
}

.healthAction { white-space: nowrap; }

#diagnosticsStatus { margin-left: 8px; }

.incidentHistoryControls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 8px;
}

#incidentHistoryStatus { color: #9d1c24; }

#diagnostics .incidentHistoryTable {
    min-width: 1120px;
    table-layout: fixed;
    font-family: inherit;
    font-size: .86em;
}

#diagnostics .incidentHistoryTable th,
#diagnostics .incidentHistoryTable td {
    padding: 5px 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-family: inherit;
    font-weight: normal;
    vertical-align: top;
}

#diagnostics .incidentHistoryTable th { font-weight: 600; }
#diagnostics .incidentHistoryTable th:nth-child(1) { width: 9%; }
#diagnostics .incidentHistoryTable th:nth-child(2) { width: 8%; }
#diagnostics .incidentHistoryTable th:nth-child(3) { width: 35%; }
#diagnostics .incidentHistoryTable th:nth-child(4),
#diagnostics .incidentHistoryTable th:nth-child(5),
#diagnostics .incidentHistoryTable th:nth-child(6) { width: 11%; }
#diagnostics .incidentHistoryTable th:nth-child(7) { width: 7%; }
#diagnostics .incidentHistoryTable th:nth-child(8) { width: 8%; }

.incidentState {
    display: inline-block;
    padding: 3px 6px;
    border-left: 4px solid #687080;
    border-radius: 2px;
    background: #eceef2;
    color: #4f5662;
    line-height: 1.25;
}

.incidentState.incident-open {
    border-left-color: #9d1c24;
    background: #f9e3e5;
    color: #7d1921;
}

.incidentState.incident-resolved {
    border-left-color: #2f8b2f;
    background: #e7f3e7;
    color: #1f6322;
}

.incidentState.incident-interrupted {
    border-left-color: #d07800;
    background: #fff1d7;
    color: #754600;
}

.incidentHistoryTable details { margin-top: 4px; }
.incidentHistoryTable summary { cursor: pointer; }
.incidentHistoryTable details div { margin-top: 4px; }
.incidentSolution {
    padding: 5px 7px;
    border-left: 3px solid #d07800;
    background: #fff7e7;
}


#diagnostics .pluginDiagnosticsTable {
    min-width: 1180px;
    table-layout: fixed;
    font-family: inherit;
    font-size: .82em;
    line-height: 1.25;
}

#diagnostics .pluginDiagnosticsTable th {
    padding: 4px 5px;
    font-family: inherit;
    font-size: .96em;
    font-weight: 600;
    line-height: 1.2;
}

#diagnostics .pluginDiagnosticsTable th:nth-child(1) { width: 13%; }
#diagnostics .pluginDiagnosticsTable th:nth-child(2) { width: 6%; }
#diagnostics .pluginDiagnosticsTable th:nth-child(3) { width: 12%; }
#diagnostics .pluginDiagnosticsTable th:nth-child(4) { width: 11%; }
#diagnostics .pluginDiagnosticsTable th:nth-child(5) { width: 9%; }
#diagnostics .pluginDiagnosticsTable th:nth-child(6) { width: 7%; }
#diagnostics .pluginDiagnosticsTable th:nth-child(7) { width: 6%; }
#diagnostics .pluginDiagnosticsTable th:nth-child(8) { width: 7%; }
#diagnostics .pluginDiagnosticsTable th:nth-child(9) { width: 8%; }
#diagnostics .pluginDiagnosticsTable th:nth-child(10) { width: 5%; }
#diagnostics .pluginDiagnosticsTable th:nth-child(11) { width: 16%; }

#diagnostics .pluginDiagnosticsTable td {
    padding: 4px 5px;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-family: inherit;
    font-weight: normal;
}

#diagnostics .pluginDiagnosticsTable small {
    font-family: inherit;
    font-size: .86em;
    font-weight: normal;
    line-height: 1.2;
}

#diagnostics .diagnosticPluginName { font-weight: 600; }

#diagnostics .diagnosticState {
    font-family: inherit;
    font-size: .92em;
}

#diagnostics .diagnosticSecondary {
    margin-top: 3px;
    font-size: .86em;
    font-weight: normal;
    line-height: 1.2;
}

#diagnostics .pluginDiagnosticsTable summary {
    font-family: inherit;
    font-size: .9em;
    font-weight: normal;
}

#diagnostics .pluginDiagnosticsTable .button {
    font-family: inherit;
    font-size: .88em;
    white-space: nowrap;
}

#diagnostics .pluginDiagnosticsTable .pluginHistory { margin: 3px 0 0; }

#diagnostics .pluginDiagnosticsTable .pluginActions {
    overflow-wrap: normal;
    word-break: normal;
}

#diagnostics .pluginDiagnosticsTable details { max-width: 100%; }

#diagnostics .pluginDiagnosticsTable details pre {
    box-sizing: border-box;
    max-width: 100%;
    margin: 6px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.diagnosticsToolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.diagnosticsDetailButtons {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: 8px;
}

.diagnosticsErrorModalContent { width: min(850px, 92%); }
.diagnosticsErrorHeader { background-color: #9d1c24 !important; }

.diagnosticsErrorList {
    display: grid;
    gap: 10px;
    padding-bottom: 12px;
}

.diagnosticsErrorItem {
    border: 1px solid #d9a0a4;
    border-left: 6px solid #9d1c24;
    border-radius: 6px;
    padding: 8px 10px;
    background: #fff4f4;
    color: #20242a;
    overflow-wrap: anywhere;
}

.diagnosticsErrorItem h3 {
    margin: 0 0 6px;
    color: #7d1921;
}

.diagnosticsErrorItem p { margin: 5px 0; }

.diagnosticsSolution {
    padding: 7px;
    border-radius: 4px;
    background: #fff0c7;
}

#systemHealthSummary,
#securityHealthSummary {
    margin-left: 8px;
    font-weight: bold;
}

@media (max-width: 700px) {
    #systemHealthTable thead,
    #securityHealthTable thead { display: none; }

    #systemHealthTable,
    #systemHealthTable tbody,
    #systemHealthTable tr,
    #systemHealthTable td,
    #securityHealthTable,
    #securityHealthTable tbody,
    #securityHealthTable tr,
    #securityHealthTable td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    #systemHealthTable tr,
    #securityHealthTable tr {
        padding: 8px;
        border-bottom: 1px solid #b9c0d0;
    }

    #systemHealthTable td,
    #securityHealthTable td {
        border: 0;
        padding: 4px;
    }
}

/******** Collapsible Styles **********/

.collapsible > h4, .collapsible > h5 {
    color:white;
    background-color: #2E3959;
    background-repeat: no-repeat;
    background-position: 3px center;
    padding: 4px 4px 4px 24px;
    margin: 3px;
    cursor: pointer;
}

.collapsible > h5 {
    margin-left: 10px;
}

.collapsible.collapsed > h4, .collapsible.collapsed > h5 {
    background-image:url(collapsed.png)
}

.collapsible.expanded > h4, .collapsible.expanded > h5 {
    background-image:url(expanded.png)
}

.collapsible.collapsed div {
    display:none;
}

.collapsible.expanded div {
}

/******** Schedule graph Styles **********/

td.stationSchedule {
    padding: 0px;
}

.scheduleMarkerContainer {
    margin:0px;
    padding:0px;
    height:28px;
    position:relative;
}

.scheduleMarker, .existingProgram {
    position:absolute;
    top: 0px;
    height:28px;
}

.addStartMarker {
    position:absolute;
    top: 10px;
    background-color: #397F19;
    height:18px;
    width: 2px;
}

.addStopMarker {
    position:absolute;
    top: 10px;
    background-color: hsl(0,80%,40%);
    height:18px;
    width: 2px;
}

.nowMarker {
    position:absolute;
    top: 0px;
    background-color: #7D1921;
    height:28px;
}

.nowMarker.on {
    background-color: #397F19;
}

.scheduleMarker .markerDetail {
    display:none;
}

.scheduleTick {
    position: relative;
    font-size: 9px;
    text-align:center;
    color: #2E3959;
    border-right:1px solid #2E3959;
}

.scheduleTick:last-child {
    border-right: none;
}

.program0 {background-color: hsl(50,80%,40%)}
.program1 {background-color: hsl(150,80%,40%)}
.program2 {background-color: hsl(225,80%,40%)}
.program3 {background-color: hsl(75,80%,40%)}
.program4 {background-color: hsl(175,80%,40%)}
.program5 {background-color: hsl(250,80%,40%)}
.program6 {background-color: hsl(100,80%,40%)}
.program7 {background-color: hsl(200,80%,40%)}
.program8 {background-color: hsl(275,80%,40%)}
.program9 {background-color: hsl(125,80%,40%)}
.programManual {background-color: hsl(25,80%,40%)}
.programStart {background-color: #397F19}
.programStop {background-color: hsl(0,80%,40%)}
.existingProgram {
    background-color: hsl(75,80%,40%);
}

.deleteProgram{
    display:block;
    float:right;
    width:8px;
    height:8px;
    background:url("redcross.png") no-repeat center center;
    cursor: pointer;
}

.schedule {
    background-image:url("whitestripes.png");
}

.blocked {
    background-image:url("redcross.png");
}

.showDetails, .newDetails, .newStart, .newStop{
    position: absolute;
    top: 100%;
    left:-50px;
    color:white;
    z-index:100;
    border-radius: 6px;
    display: inline-block;
    font-size: 10pt;
    margin: 3px;
    padding: 3px;
}

.showDetails{
    width: 100px;
}

.newDetails, .newStart, .newStop{
    width: 60px;
}

#displayScheduleDate {
    text-transform:none;
}

#legend span {
    padding:2px 6px;
    color:white;
    margin: 0px 4px;
    font-size:9pt;
}

#pluginLinks {
    list-style-type: none;
    padding:0;
}

#pluginMenu {
    border:3px solid #2E3959;
    border-radius: 12px;
    padding: 4px;
    border-spacing: 0px;
    background-color: white;
}

.program_label {
    text-align: right;
	  padding: 0px 12px;
	  color: #2E3959;
	  font-weight: 700;
	  width: 14em;
	  white-space: nowrap;
    display:inline-block;
}

@media only screen and (max-width: 700px) {
    .program_label {
        box-sizing: border-box;
        display: block;
        width: 100%;
        padding: 0 0 4px;
        text-align: left;
        white-space: normal;
    }
}

.sensor_label {
    text-align: left;
    padding: 0px 12px;
    color: #2E3959;
    font-weight: 700;
    width: 45em;
    white-space: nowrap;
    display:inline-block;
}

#help_container {
    min-height: 350px;
    /*display: table;*/
    box-sizing: border-box;
    width: 100%
}

#help_menu {
    vertical-align:top;
    display: table-cell;
    width: 20%;
    max-width: 20%;
    padding: 5px;
    border-right: solid 1px;
    overflow-wrap: anywhere;
}
#help_contents {
    vertical-align:top;
    display: table-cell;
    width: 80%;
    padding:5px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

#help_contents p,
#help_contents li,
#help_contents td,
#help_contents th,
#help_contents a,
#help_contents code {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#help_contents pre {
    box-sizing: border-box;
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#help_contents img {
    max-width: 100%;
    height: auto;
}

#help_contents table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.helpPdfExport {
    position: sticky;
    z-index: 20;
    top: 10px;
    float: right;
    width: 46px;
    height: 46px;
    margin: -38px 8px 8px;
    padding: 6px;
    border: 2px solid #2E3959;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .25);
}

.helpPdfExport:hover,
.helpPdfExport:focus { background: #f5f5f5; }
.helpPdfExport img { display: block; width: 100%; height: 100%; }

.helpPrintDocument { background: #fff; color: #111; }
.helpPrintSection { break-inside: auto; }
.helpPrintGroup { margin-top: 1.4em; border-bottom: 2px solid #333; }
.helpPrintDocTitle { margin-top: 1.2em; break-after: avoid; }
.helpPrintDoc img { max-width: 100%; height: auto; }
.helpPrintDoc pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.helpPrintDoc table { max-width: 100%; border-collapse: collapse; }

@media print {
    body.helpPrintPage { margin: 0; background: #fff; color: #000; }
    body.helpPrintPage #pluginMenu,
    body.helpPrintPage .header,
    body.helpPrintPage #status,
    body.helpPrintPage .graph-container,
    body.helpPrintPage .footer { display: none !important; }
    body.helpPrintPage .content,
    body.helpPrintPage .body,
    body.helpPrintPage .panel {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #fff !important;
    }
    body.helpPrintPage .helpPrintDocument { font-size: 10pt; }
    body.helpPrintPage a { color: #000; text-decoration: none; }
}

.help_link_1 {
    margin-top: 10pt;
    font-size: 16pt;
    white-space: normal;
    overflow-wrap: anywhere;
}

.help_link_2 {
    margin-top: 2pt;
    margin-left: 5pt;
    font-size: 12pt;
    white-space: normal;
    overflow-wrap: anywhere;
}

.help_link_3 {
    margin-left: 10pt;
    font-size: 10pt;
    white-space: normal;
    overflow-wrap: anywhere;
}

.help_link_1 a,.help_link_2 a, .help_link_3 a {
    text-decoration: none;
    color: #2E3959;
}

.plugin {
    border-color: #2E3959;
    background-color: #2E3959;
    color: white;
    vertical-align: middle;
    margin: 4px 0 !important;
}

.plugin.disabled {
    border-color: #7D1921;
    background-color: #7D1921;

}

.plugin .button.toggle {
    width:130px;
    background-color:transparent;
    margin: 0 !important;
}

.plugin .button.toggle span.toggleleft {width: 30px;}
.plugin .button.toggle span.toggleright {width: 30px;}
.plugin .button.open {
    border: 1px solid #397F19;
    margin: 0 !important;
}

.plugin .button.danger {
    border: 1px solid #7D1921;
    margin: 0 !important;
}

.plugin.disabled .danger {
    border: 1px solid #FFF;
    margin: 0 !important;
}

#controls .pluginTitle {
    font-size: 1.08em;
    font-weight: bold;
}

#controls .pluginTechnicalDetails {
    box-sizing: border-box;
    margin: 7px 0 0 150px;
    color: #20242a;
    font-size: 0.88em;
}

#controls .pluginTechnicalDetails > summary {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid #c8ccd2;
    border-radius: 5px;
    background-color: #eef0f3;
    cursor: pointer;
}

#controls .pluginTechnicalDetailsLabel { font-weight: bold; }
#controls .pluginTechnicalDetailsContent { padding-top: 1px; }
#controls .pluginTechnicalDetails .pluginMetadata,
#controls .pluginTechnicalDetails .pluginStatusPanel { margin-left: 0; }

#controls .pluginMetadata,
#controls .pluginStatusPanel {
    box-sizing: border-box;
    margin: 7px 0 0 150px;
    padding: 7px 10px;
    border: 1px solid #c8ccd2;
    border-radius: 5px;
    background-color: #f5f6f8;
    color: #20242a;
    font-size: 0.88em;
    line-height: 1.35;
}

#controls .pluginMetadata a,
#controls .pluginStatusPanel a {
    color: #174f8a;
}

#controls .pluginStatusHeader {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

#controls .pluginStatusBadge {
    display: inline-block;
    min-width: 64px;
    padding: 1px 7px;
    border-radius: 12px;
    color: #fff;
    text-align: center;
    font-weight: bold;
}

#controls .pluginStatus-ok { border-left: 5px solid #247a24; }
#controls .pluginStatus-warning,
#controls .pluginStatus-legacy { border-left: 5px solid #b36b00; }
#controls .pluginStatus-error { border-left: 5px solid #a00000; }
#controls .pluginStatusBadge.pluginStatus-ok { background-color: #247a24; border-left: 0; }
#controls .pluginStatusBadge.pluginStatus-warning,
#controls .pluginStatusBadge.pluginStatus-legacy { background-color: #9a5c00; border-left: 0; }
#controls .pluginStatusBadge.pluginStatus-error { background-color: #a00000; border-left: 0; }
#controls .pluginStatusPanel details { margin-top: 5px; color: #20242a; }
#controls .pluginStatusPanel li { margin: 3px 0; }
#controls .pluginStatusPanel li.statusError { color: #8b0000; }
#controls .pluginStatusPanel li.statusWarning { color: #7a4a00; }

#controls .pluginPermissionPanel .pluginStatusHeader { padding-right: 145px; }
#controls .pluginPermissionAction { float: right; margin-top: -27px; }

.pluginPermissionUploadApproval {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 8px;
    font-weight: bold;
}

.pluginInstallPermissionStatus {
    margin-top: 6px;
    padding: 4px 7px;
    border-left: 4px solid #b36b00;
    background: #fff1d7;
    color: #754600;
}

.pluginInstallPermissionStatus.status-ok {
    border-left-color: #2f8b2f;
    background: #e7f3e7;
    color: #1f6322;
}

.pluginInstallCompatibility {
    box-sizing: border-box;
    margin: 6px 10px;
    padding: 6px 9px;
    border-left: 4px solid #687080;
    border-radius: 3px;
    background: #eceef2;
    color: #30343b;
    overflow-wrap: anywhere;
}

.pluginInstallCompatibility.status-ok {
    border-left-color: #2f8b2f;
    background: #e7f3e7;
    color: #1f6322;
}

.pluginInstallCompatibility.status-warning {
    border-left-color: #d07800;
    background: #fff1d7;
    color: #754600;
}

.pluginInstallCompatibility.status-error {
    border-left-color: #9d1c24;
    background: #f9e3e5;
    color: #7d1921;
}

.pluginInstallCompatibility ul {
    margin: 4px 0 0 18px;
    padding: 0;
}

@keyframes pluginUpdatePulse {
    0%, 100% {
        background-color: #ffd54f;
        box-shadow: 0 0 0 2px rgba(209, 139, 0, 0.8);
    }
    50% {
        background-color: #fff0a3;
        box-shadow: 0 0 12px 3px rgba(255, 193, 7, 0.9);
    }
}

.pluginUpdateChannel {
    clear: both;
    margin: 8px 0;
    padding: 7px 10px;
    border-left: 4px solid #368c24;
    background: #eef6ec;
    line-height: 1.8;
}

.pluginUpdateChannelLabel { font-weight: bold; margin-right: 6px; }
.pluginUpdateChannel select { min-width: 220px; }
.pluginBetaWarning { margin-left: 8px; color: #9a1b25; }
.pluginInstallChannel { margin-top: 0; }

#controls .plugin.pluginUpdateAvailable,
#controls .plugin.pluginUpdateAvailable.disabled {
    border: 2px solid #d18b00;
    background-color: #ffd54f;
    color: #20242a;
    animation: pluginUpdatePulse 1.4s ease-in-out infinite;
}

#controls .plugin.pluginUpdateAvailable .pluginTitle {
    color: #ffffff !important;
    text-shadow: 0 1px 2px #000000;
}

#controls .plugin.pluginUpdateAvailable .pluginMetadata,
#controls .plugin.pluginUpdateAvailable .pluginStatusPanel {
    border-color: #d18b00;
    background-color: #fff8dc;
}

#controls .pluginUpdateNotice {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    background-color: #8a5700;
    color: #ffffff;
    font-size: 0.82em;
    font-weight: bold;
}

@media (prefers-reduced-motion: reduce) {
    #controls .plugin.pluginUpdateAvailable {
        animation: none;
    }
}

@media only screen and (max-width: 800px) {
    #controls .pluginTechnicalDetails,
    #controls .pluginMetadata,
    #controls .pluginStatusPanel {
        clear: both;
        margin-left: 0;
    }
    #controls .pluginPermissionPanel .pluginStatusHeader { padding-right: 0; }
    #controls .pluginPermissionAction { float: none; margin-top: 7px; }
}

/******** Navigation Styles for width < 1024px  ********/

@media only screen and (max-width: 1024px) {
   body {
      font-size: 10pt;
   }

   div.panel {
      margin-left: 0;
   }

   div.panel div.title {
      font-size: 14pt;
   }

   div.header div.title {
      font-size: 16pt;
   }

   div#status {
      float: none;
      width: 100%;
      padding: 0;
      display: inline-block;
   }

   #deviceTime {
      float: left;
   }

   #deviceTime span {
      font-size: 21pt;
      width: 35px;
   }

   #deviceTime span.sep {
      font-size: 12pt;
      top: 0;
      width: 4px;
   }

   #deviceTime span.second, #deviceTime span.ampm {
      font-size: 9pt;
   }

   #deviceTime span.second {
      top: -5px;
      left: auto;
   }

   #deviceTime span.ampm {
      left: -55px;
   }

   #deviceDate {
      float: right;
      padding: 0 5px 5px 5px;
   }

   button, .button {
      font-size: 11pt;
   }

   .minibutton {
      padding: 0px 6px;
      font-size: 6pt;
   }

   #nav .button {
      padding: 4px 12px;
      margin: 4px 0;
      font-size: 9pt;
   }

   #nav button.here {
      height: 40px;
   }

   td.stationStatus {
      padding: 0 6px;
      font-size: 10pt;
   }

   td.station_name {
      font-size: 10pt;
   }

   .program {
      min-width: 400px;
   }

   #programs table tr:nth-child(2).showWeekly td {
      height: 90px;
      max-width: 26px;
   }

   #programs table tr:nth-child(2).showWeekly td button.weekday {
      -webkit-transform: rotate(-90deg);
      font-size: 8pt;
      height: 26px;
      width: 90px;
      text-align: left;
      margin-left: -24px;
   }

    .help_link_1 {
        margin-top: 8pt;
        font-size: 14pt;
    }

    .help_link_2 {
        font-size: 10pt;
    }

    .help_link_3 {
        font-size: 8pt;
    }

    /* The current browser from firefox 54.0.1 still does not support this feature */	
    @media (pointer: coarse) {
       td.station_running {
          padding: 10px 1px;
       }
    }

    #nav .button.ico-here {
        background-color: #32A620 !important;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-home {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-options {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-programs {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-start {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-plugins {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-log {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-stations {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-sensors {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-help {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }
    #nav .button.ico-logout {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button {
        font-size: 14pt;
        margin: 8px;
        padding: 12px;
    }
}

/******** Styles for width < 600px  ********/
@media only screen and (max-width: 600px) {
    #optionsForm .label {
        float:none;
        display:block;
        width:auto;
        max-width:none;
        text-align:left;
        padding-right:0;
        margin-bottom:2px;
    }

    #nav .button.ico-here {
        background-color: #32A620 !important;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-home {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-options {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-programs {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-start {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-plugins {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-log {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-stations {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-sensors {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button.ico-help {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }
    #nav .button.ico-logout {
        mask-size: 40px 40px;
        height: 40px;
        width: 40px;
    }

    #nav .button {
        font-size: 14pt;
        margin: 8px;
        padding: 12px;
    }
}

/* Canvas container*/
#canvas-container {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.2em;
    border:3px solid #2E3959;
    border-radius: 12px;
    padding: 4px;
    border-spacing: 0px;
    empty-cells: show;
    border-collapse: separate;
    background: #F5F5F5;
}

/* Text container*/
#text-container {
    margin: 5px 0;
    border:3px solid #2E3959;
    border-radius: 12px;
    padding: 10px 1px;
    background: #F5F5F5;
    width: 40%;
}

.scrollTopButton {
    display: none;
    position: fixed;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border: 2px solid #2E3959;
    border-radius: 4px;
    background: #397F19;
    color: #ffffff;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    line-height: 36px;
    text-align: center;
    z-index: 90;
}

.scrollTopButton:hover {
    background: #4a9a24;
}

.scrollTopLeft {
    left: 18px;
}

.scrollTopRight {
    right: 18px;
}

.optionSwitch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    vertical-align: middle;
}

.optionSwitch input[type="checkbox"] {
    display: none;
}

.optionSlider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #7D1921;
    transition: 0.4s;
    border-radius: 24px;
}

.optionSlider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.4s;
    border-radius: 50%;
}

.optionSwitch input[type="checkbox"]:checked + .optionSlider {
    background-color: #397F19;
}

.optionSwitch input[type="checkbox"]:checked + .optionSlider:before {
    transform: translateX(24px);
}

#diagnostics {
    max-width: 100%;
}

#diagnostics .diagnosticsTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 8px 0;
}

#diagnostics .diagnosticsTable th,
#diagnostics .diagnosticsTable td {
    border: 1px solid #b8bcc8;
    padding: 5px 7px;
    vertical-align: top;
}

#diagnostics .diagnosticsSystem td {
    width: 50%;
}

#diagnostics .diagnosticsLabel {
    font-weight: bold;
    margin-right: 8px;
    white-space: nowrap;
}

#diagnostics .diagnosticsScroll {
    width: 100%;
    overflow-x: auto;
}

#diagnostics .diagnosticsToolbar {
    margin: 8px 0 4px;
}

#diagnostics .diagnosticsToolbar label {
    font-weight: bold;
    margin-right: 8px;
}

#diagnostics .pluginDiagnosticsTable {
    min-width: 1050px;
}

#diagnostics .pluginActions,
#diagnostics .pluginRestart {
    white-space: nowrap;
}


+/* Responsive user and account-security administration. */
.usersPage, .userEditorPage { max-width: 1400px; }
.usersPageHeader { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin:4px 0 14px; }
.usersPageHeader .title { margin:0; }
.usersIntro { margin:5px 0 0; color:#50596d; }
.usersSummary { display:flex; flex-wrap:wrap; gap:12px; margin:10px 0 16px; }
.usersSummaryItem { display:flex; flex-direction:column; min-width:150px; padding:12px 16px; border:1px solid #aeb7c8; border-radius:9px; background:#f7f9fc; }
.usersSummaryItem strong { color:#2e3959; font-size:20pt; line-height:1; }
.usersSummaryItem span { margin-top:5px; color:#50596d; }
.usersTableWrap { overflow-x:auto; border:2px solid #2e3959; border-radius:10px; background:#fff; }
.usersTable { width:100%; border-collapse:collapse; }
.usersTable th, .usersTable td { padding:12px 14px; border-bottom:1px solid #c7ccd7; text-align:left; vertical-align:top; }
.usersTable th { background:#eef1f6; color:#202942; }
.usersTable tbody tr:last-child td { border-bottom:0; }
.usersPrimaryRow { background:#fbf8e8; }
.usersActionsColumn { min-width:250px; }
.usersActions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.usersActions form, .usersFooterActions form { display:inline; margin:0; }
.userBadge, .userSecurityStatus { display:inline-block; padding:3px 8px; border-radius:999px; font-size:9pt; font-weight:bold; }
.userBadge { background:#e8edf5; color:#29344e; }
.userBadgePrimary { margin-top:5px; background:#fff0b7; color:#694c00; }
.userBadgeAdmin, .userBadgeRole2 { background:#e3e9ff; color:#243d99; }
.userBadgeRole1 { background:#e3f3e2; color:#226526; }
.userBadgeRole3 { background:#e9e5f4; color:#553a79; }
.userSecurityStatus.active { background:#dff2df; color:#246b29; }
.userSecurityStatus.inactive { background:#eceef2; color:#596172; }
.usersMuted { color:#677084; }
.usersEmpty { padding:28px !important; color:#677084; text-align:center !important; }
.usersFooterActions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; }
.userFormMessage { margin:10px 0; padding:10px 12px; border-left:5px solid; border-radius:5px; }
.userFormError { border-color:#a51f28; background:#fde7e9; color:#7b151d; }
.userFormSuccess { border-color:#397f19; background:#e5f4df; color:#285d15; }
.userEditorForm { display:grid; gap:14px; }
.userFormCard { box-sizing:border-box; margin:0; padding:16px; border:2px solid #2e3959; border-radius:10px; background:#fff; }
.userFormCard h3 { margin:0 0 12px; }
.userFieldGrid { display:grid; grid-template-columns:repeat(2, minmax(220px, 1fr)); gap:15px; }
.userField { display:flex; flex-direction:column; gap:5px; }
.userField > span { font-weight:bold; }
.userField input, .userField textarea { box-sizing:border-box; width:100%; max-width:620px; padding:8px; }
.userField small, .userRoleCard small { color:#5c6578; }
.userFieldWide { grid-column:1 / -1; }
.userRoleSelector { display:grid; grid-template-columns:repeat(2, minmax(240px, 1fr)); gap:10px; }
.userRoleSelector legend { padding:0 7px; font-size:13pt; font-weight:bold; }
.userRoleCard { display:flex; align-items:flex-start; gap:9px; padding:12px; border:1px solid #b6bdcc; border-radius:8px; background:#f8f9fb; cursor:pointer; }
.userRoleCard:has(input:checked) { border-color:#397f19; background:#edf7e9; box-shadow:0 0 0 1px #397f19; }
.userRoleCard input { margin-top:3px; }
.userRoleCard span { display:flex; flex-direction:column; gap:4px; }
.userFormActions { display:flex; flex-wrap:wrap; gap:8px; }
.userDangerZone { margin-top:16px; padding:14px; border:2px solid #9b252d; border-radius:10px; background:#fff5f5; }
.userDangerZone h3 { margin-top:0; color:#7d1921; }

@media only screen and (max-width: 760px) {
    .usersPageHeader, .usersFooterActions { align-items:stretch; flex-direction:column; }
    .usersPageHeader > .button, .usersFooterActions .button { box-sizing:border-box; width:100%; min-height:42px; text-align:center; }
    .usersSummaryItem { box-sizing:border-box; flex:1 1 130px; min-width:0; }
    .usersTableWrap { overflow:visible; border:0; background:transparent; }
    .usersTable, .usersTable thead, .usersTable tbody, .usersTable tr, .usersTable td { display:block; }
    .usersTable thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
    .usersTable tr { margin-bottom:12px; padding:8px; border:2px solid #2e3959; border-radius:9px; background:#fff; }
    .usersTable td { display:grid; grid-template-columns:minmax(100px, 35%) 1fr; gap:8px; padding:8px; border-bottom:1px solid #d5d9e1; }
    .usersTable td::before { content:attr(data-label); font-weight:bold; color:#303a54; }
    .usersTable td:last-child { border-bottom:0; }
    .usersActions { display:grid; grid-template-columns:minmax(100px, 35%) 1fr !important; }
    .usersActions > * { grid-column:2; }
    .userFieldGrid, .userRoleSelector { grid-template-columns:1fr; }
    .userFieldWide { grid-column:auto; }
    .userFormActions { flex-direction:column; }
    .userFormActions .button { box-sizing:border-box; width:100%; min-height:42px; text-align:center; }
}

/* Interactive OSPy flow diagrams in Diagnostics. */
.systemDiagramCard { position: relative; padding: 10px; overflow: visible; }
.systemDiagramControls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.systemDiagramControls select { min-width: 240px; max-width: 100%; }
.systemDiagramButtons { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.systemDiagramButtons .button { margin: 0; }
.systemDiagramDescription { margin: 10px 2px; }
.systemDiagramLegend { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.diagramLegendItem { display: inline-block; padding: 3px 7px; border-left: 4px solid; border-radius: 2px; color: #17233b; }
.diagramLegendProcess { background: #e7f0ff; border-color: #2f5e9e; }
.diagramLegendDecision { background: #fff3cd; border-color: #b77900; }
.diagramLegendWait { background: #fff0d9; border-color: #d48200; }
.diagramLegendSuccess { background: #e4f4e4; border-color: #2e8b32; }
.diagramLegendError { background: #fde6e8; border-color: #b51f2e; }
.diagramLegendOptional { background: #eceff4; border-color: #6d7788; }
.systemDiagramCanvas { box-sizing: border-box; min-height: 390px; max-width: 100%; padding: 10px; overflow: auto; border: 1px solid #aeb7c8; border-radius: 7px; background: #fff; text-align: center; }
.systemDiagramCanvas svg { display: block; margin: 0 auto; transition: width .15s ease; }
.systemDiagramCanvas .ospyDiagramLinkedNode { cursor: pointer; }
.systemDiagramCanvas .ospyDiagramLinkedNode > rect,
.systemDiagramCanvas .ospyDiagramLinkedNode > polygon,
.systemDiagramCanvas .ospyDiagramLinkedNode > path { stroke-dasharray: 6 3; }
.systemDiagramCanvas .ospyDiagramLinkedNode:focus { outline: 3px solid #4f67d8; outline-offset: 3px; }
.systemDiagramHint { margin: 9px 0 0; }
.systemDiagramHint .button { margin-left: 7px; }
.systemDiagramError { display: none; margin: 8px 0; padding: 7px; border-left: 4px solid #b51f2e; background: #fde6e8; color: #591018; }
body.diagramWideBody { overflow: hidden; }
#systemDiagramSection.diagramWideMode { position: fixed; z-index: 1200; inset: 8px; margin: 0; padding: 0 8px 8px; overflow: auto; border: 3px solid #2e3959; border-radius: 9px; background: #fff; color: #111; }
#systemDiagramSection.diagramWideMode > h4 { position: sticky; z-index: 2; top: 0; margin: 0 -8px 5px; }
#systemDiagramSection.diagramWideMode .diagnosticsSectionContent { display: block !important; }
#systemDiagramSection.diagramWideMode .systemDiagramCanvas { min-height: calc(100vh - 235px); }

@media only screen and (max-width: 800px) {
    .systemDiagramControls { align-items: stretch; }
    .systemDiagramControls label,
    .systemDiagramControls select,
    .systemDiagramButtons { width: 100%; }
    .systemDiagramButtons { margin-left: 0; }
    .systemDiagramCanvas { min-height: 300px; padding: 4px; }
}

@media print {
    body.diagramPrintMode * { visibility: hidden !important; }
    body.diagramPrintMode #systemDiagramSection,
    body.diagramPrintMode #systemDiagramSection * { visibility: visible !important; }
    body.diagramPrintMode #systemDiagramSection { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; border: 0; background: #fff; }
    body.diagramPrintMode #systemDiagramSection .diagnosticsSectionContent { display: block !important; }
    body.diagramPrintMode .systemDiagramControls,
    body.diagramPrintMode .systemDiagramHint { display: none !important; }
    body.diagramPrintMode .systemDiagramCanvas { min-height: 0; overflow: visible; border: 0; }
    body.diagramPrintMode .systemDiagramCanvas svg { width: 100% !important; max-width: 100% !important; }
}
