* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  display: table;
  margin: 0;
  height: 100%;
  font-family: helvetica, sans-serif;
}

img {
  display: block;
}

header,
nav {
  display: block;
}

h1, h2, h3, h4 {
  margin: 0;
  padding: 0;
}

a {
  color: #185A8C;
}

a:hover {
  text-decoration: none;
}

fieldset {
  margin: 0;
  padding: 8px 0;
  border: 0;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  vertical-align: middle;
  padding: 4px;
  width: 100%;
  min-width: 32px;
  height: 28px;
  font-family: helvetica, sans-serif;
  border: 1px solid #303030;
  border-radius: 4px;
}

input[type="number"] {
  direction: rtl;
  max-width: 80px;
  text-align: right;
}

input[type="file"] {
  vertical-align: middle;
  width: 100%;
  min-width: 220px;
  font-family: helvetica, sans-serif;
}

select,
select ~ input[type="text"] {
  width: auto;
}

select.context {
  display: none;
}

select.context.active {
  display: inline-block;
}

textarea {
  vertical-align: top;
  height: auto;
  font-size: 13px;
}

input[type="radio"] {
  vertical-align: middle;
  margin: 0;
  padding: 0;
}

input[type="submit"],
input[type="button"] {
  vertical-align: middle;
  padding: 2px 16px;
  height: 28px;
  font-size: 14px;
  background: linear-gradient(to bottom, #DDDDDD 0, #EEEEEE 100%);
  border-radius: 4px;
  border-color: #AAA;
  box-shadow: inset 0 1px 0 rgba(256, 256, 256, 0.4);
}

fieldset.multiple input {
  width: auto;
}

fieldset.multiple input {
  min-width: 224px;
}

fieldset.submit-master {
  position: fixed;
  padding: 16px;
  text-align: center;
}

fieldset.submit-master input[type="submit"] {
  padding: 4px 16px;
  height: auto;
  font-size: 24px;
}

fieldset[data-filtered] {
  position: relative;
}

fieldset[data-filtered]:after {
  content: attr(data-filtered) ' row(s) match the filter';
  position: absolute; bottom: 12px; right: 8px;
  color: #CCC;
  font-size: 11px;
}

fieldset[data-filtered="0"]::after {
  color: #C00;
}

pre.code {
  margin: 0;
  padding: 8px;
  background-color: #FCFCCA;
  border-radius: 8px;
  white-space: pre-line;
}


nav.side,
main {
  display: table-cell;
  vertical-align: top;
}

nav.side {
  padding: 16px;
  height: 100%;
  min-width: 320px;
  max-width: 320px;
  background: linear-gradient(to right, rgb(156, 156, 156), transparent);
  overflow: auto;
}

nav.side .logo {
  margin-bottom: 16px;
  width: 100%;
  border: 4px solid #000000;
  border-radius: 24px;
  box-shadow: 0 0 4px #606060;
}

nav.side > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav.side > ul > li a {
  display: block;
  padding: 8px 24px 8px 32px;
  color: inherit;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
}

nav.side > ul > li a:hover {
  color: rgb(248, 170, 24);
  background: linear-gradient(to right, rgb(64, 64, 64), transparent);
  border-radius: 8px 0 0 8px;
}

nav.side #login {
  position: static;
  margin-bottom: 16px;
  padding: 16px;
  max-width: 320px;
  color: #FFFFFF;
  font-size: 14px;

  line-height: 20px;
  background-color: #303030;
  background: linear-gradient(to bottom, #000000, #606060);
  border-radius: 24px;
  box-shadow: 0 0 4px #606060;
}

nav.side #login span {
  text-shadow: 0 0 4px #000000;
}

nav.side #login a {
  color: inherit;
  text-decoration: none;
}

nav.side #login a.logout {
  float: right;
  /*
  font-size: 28px;
  transform: rotate(45deg);
  */
}

nav.side #login a:hover {
  color: #185A8C;
}

nav.side #login a.logout:hover {
  color: #FF0000;
}

nav.side #login a.forgot {
  float: right;
  line-height: 28px;
  text-shadow: 0 0 2px #000000;
}

nav.side #login a.forgot:hover {
  color: #FF0000;
}





main {
  position: relative;
  width: 100%;
}

main > header {
  position: absolute; top: 16px; right: 0; left: 0; z-index: 16;
  padding: 16px 24px;
  height: 120px;
  color: #FFFFFF;
  background-color: #303030;
  background: linear-gradient(to bottom, #000000, #606060);
  border-radius: 24px 0 0 24px;
  box-shadow: 0 0 4px #606060;
}

main > header h1 {
  margin: 0;
  padding: 16px 0 8px 0;
  font-size: 32px;
  text-shadow: 0 0 4px #000000;
}

main nav.content ul {
  margin: 0;
  padding: 0;
  font-size: 12px; /* 14px */
  list-style: none;
}

main nav.content ul li {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

main nav.content ul li a {
  display: block;
  padding: 0 8px;
  height: 28px;
  color: rgb(0, 0, 0);
  line-height: 28px;
  text-decoration: none;
  background-color: #FFFFFF;
  border-radius: 4px;
}

main nav.content ul li.new a {
  padding-left: 24px;
  background-image: url('/images/icon_new.png');
  background-position: 4px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

main nav.content ul li a:hover,
main nav.content ul li.active a {
  background-color: #CCCCCC;
  box-shadow: 0 0 2px 0 #000000;
}

main nav.content ul li.active a {
  background-color: rgb(248, 170, 24);
  cursor: default;
}

main nav.content ul li.active.new a {
  /*background-image: url('/images/icon_new_white.png');*/
}

main > article {
  display: inline-block;
  position: relative;
  width: 100%;
  height: 100%;
}

main > article .wrapper {
  position: absolute; top: 136px; bottom: 0; z-index: 8;
  padding: 24px;
  padding-right: 200px;
  width: 100%;
  overflow: auto;
}

main > article .wrapper:after {
  content: ' ';
  display: block;
  height: 96px;
}

main > article h3 {
  padding-top: 16px;
  width: 80%;
  border-bottom: 2px solid #000000;
}

main > article form {
  margin-bottom: 16px;
  max-width: 704px;
}

main > article form:last-of-type {
  margin-bottom: 0;
}

main > article form fieldset label {
  display: block;
  color: #606060;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

main > article form fieldset span {
  display: block;
  font-size: 11px;
}


main > article .messages {
  margin-bottom: 16px;
  padding-bottom: 16px;
  max-width: 704px;
  border-bottom: 4px solid #000000;
}

main > article .messages h2 {
  margin-bottom: 8px;
}

main > article .messages ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

main > article .messages ul li {
  padding: 4px 32px;
  max-width: 704px;
  background-image: url('/images/icon_normal.png');
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  border-bottom: 1px solid #E8E8E8;
}

main > article .messages ul li:last-child {
  border-bottom: 0;
}

main > article .messages ul .error {
  color: #DD2020;
  background-image: url('/images/icon_error.png');
}

main > article .messages ul .success {
  color: #20AA20;
  background-image: url('/images/icon_success.png');
}



main #floater {
  position: fixed; top: 152px; bottom: 16px; left: 1064px;
  width: 184px;
  text-align: center;
  border-radius: 4px;
}



.severe {
  color: #DD2020;
}

.fullsize {
  width: 100%;
}

.order,
.number {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.top {
  vertical-align: top;
}

.center {
  text-align: center;
}

.faded {
  opacity: 0.2;
}

.faded:hover {
  opacity: 1.0;
}

.fieldsets fieldset {
  display: inline-block;
}

.fieldsets.top fieldset {
  vertical-align: top;
}

.status {
  text-align: center;
}

.status img {
  margin: 0 auto;
  height: 24px;
}

.flex {
  display: flex;
}

.flex > * {
  flex: 1 1 auto;
  margin-right: 4px;
}

.flex > *:last-child {
  margin-right: 0;
}

.flex.triplet {
  flex-wrap: wrap;
}

.flex.triplet > * {
  flex: 0 0 32%;
}

.flex > .master { flex-basis: 100%; }
.flex > .bottom { flex-direction: column; align-self: flex-end; }


.choice input[type="checkbox"] {
  vertical-align: middle;
}

.choice input[type="checkbox"] + label {
  display: inline-block;
  vertical-align: middle;
  text-transform: none;
}




table {
  margin-bottom: 8px;
  width: 100%;
  border-collapse: collapse;
  border-style: hidden;
  border-spacing: 2px;
}

td, th {
  background-clip: padding-box;
  border: 2px solid transparent;
}

table th {
  padding: 4px;
  color: #606060;
  font-size: 14px;
  font-weight: bold;
  text-align: left;
  text-transform: uppercase;
  border-width: 1px;
  white-space: nowrap;
}

td.bottom {
  vertical-align: bottom;
}

table.items {
  margin-top: 8px;
  border-spacing: 1px;
}

table.items th {
  padding: 4px 8px;
}

table.items a {
  color: #185A8C;
  text-decoration: none;
}

table.items a:hover {
  color: #000000;
}

table.items ~ tr:not(:last-child) td,
table.items tbody td {
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid #F4F4F4;
}

table.items tr:not(:last-child) td:not(.wrap) {
  white-space: nowrap;
}


table.items tr:not(:last-child) td.image {
  padding: 0;
}

table.items tr:not(:last-child) td span {
  display: block;
  color: #606060;
  font-size: 11px;
}

table.items td:first-child input[type="checkbox"]:checked,
table.items td:first-child input[type="radio"]:checked {
  box-shadow: 0 0 8px rgb(248, 170, 24);
}

table.items ~ tr:last-child td {
  border-top: 1px solid #D4D4D4;
}

table.items ~ tr:last-child td:first-child:not(:only-child)::before {
  content: "\00BB";
  display: block;
  margin: 0 auto;
  text-align: center;
}

table.items tr.notice td {
  padding: 16px;
  text-align: center;
  background-color: #EBCA70;
}

table.items tr.notice.error td {
  background-color: #DD2020 !important;
}

table.items tr.notice.success td {
  background-color: #20AA20 !important;
}


table.items tr:nth-child(odd):not(:last-child) td {
  background-color: #FAFAFA;
}

table.items tr:not(:last-child):not(.split):not(.notice):hover td:not(.no-hover-color) {
  background-color: #FCFCCA;
}

table.items tr:not(:last-child).split td {
  padding-top: 16px;
  vertical-align: bottom;
  color: rgb(248, 170, 24);
  background-color: rgb(100, 100, 100);
}

table.items tr:not(:last-child).split td.image {
  padding-top: 0;
}

table.items tr:not(:last-child).split td a {
  display: block;
  color: inherit;
  text-align: center;
}

table.items tr:not(:last-child).split td a:hover {
  color: rgb(0, 0, 0);
}

table.items tr:not(:last-child).split.major td {
  color: rgb(0, 0, 0);
  background-color: rgb(248, 170, 24);
}

table.items tr:not(:last-child) td.dark,
table.items tr:not(:last-child):hover td.dark {
  background-color: #333333;
}

table.items tr td.edit {
  padding: 0;
  height: 100%;
  overflow: hidden;
}

table.items td.edit a {
  display: block;
  margin: -100px;
  padding: 104px 108px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

table.items td.edit a:hover {
  color: #000000;
  background-color: #EAEA7A;
}

table.items tr.filtered,
table.items.no-results {
  display: none;
}

table.items tr.actions td {
  border-right-width: 0;
  border-left-width: 0;
}


table [data-visible="0"] tr:not(:first-child) {
  display: none;
}

table [data-visible="1"] tr {
  display: table-row;
}

table [data-visible] tr:first-child td:first-child {
  text-align: center;
  cursor: pointer;
}

table [data-visible] tr:first-child td:first-child:after {
  content: 'View Shows';
  font-size: 12px;
}

table [data-visible="1"] tr:first-child td:first-child:after {
  content: 'Hide Shows';
}

table.statistics input[type="text"] {
  width: auto;
}


p .icon {
  display: inline-block;
  vertical-align: middle;
  width: 24px;
  height: 24px;
}


.framework-stats {
  position: fixed; bottom: 16px; right: 32px;
  width: auto;
  font-size: 11px;
  text-align: right;
}

.framework-stats td:first-child {
  padding-right: 16px;
  font-weight: bold;
  text-align: left;
}


.charcounter {
  position: relative;
}

.charcounter .counter-tally:after,
.rangetracker:after {
  content: "Using " attr(data-charcounter) " character(s) of " attr(data-charcounter-max) " recommended";
  display: inline-block;
  vertical-align: text-bottom;
  margin-left: 8px;
  font-size: 10px;
  font-weight: normal;
  text-transform: none;
  white-space: nowrap;
}

.rangetracker:after {
  content: ' ' attr(data-range);
}


.media-view {
  position: relative;
  margin-bottom: 32px;
  border: 1px solid rgb(0, 0, 0);
  border-radius: 4px;
}

.media-view:after {
  content: attr(data-media-mode);
  position: absolute; top: 16px; right: 16px;
  padding: 8px;
  color: rgba(256, 256, 256, 0.80);
  font-size: 16px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, .32);
  border-radius: 4px;
}

.media-view img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 4px;
}
