body {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Override the button text color back to white (leave non-primary buttons as blue since their bg is white) */
a.btn-primary,
button.btn-primary,
.btn-primary {
  color: #fff !important;
}

/* Override to remove all underlines (dotted and solid) from aws-console-base.css */
/* Using !important to ensure this overrides AWS console base styles */
a {
  border-bottom: none !important;
  text-decoration: none !important;
}

a:hover,
a:focus,
a:active {
  border-bottom: none !important;
  text-decoration: none !important;
}

/* Specific overrides for common link contexts */
.navbar a,
.breadcrumb a,
table a,
.panel-title a,
td a,
th a {
  border-bottom: none !important;
  text-decoration: none !important;
}

/* AWS Sidebar */

#global-nav {
  position: fixed;
  z-index: 1001;
}

#wrapper {
  transition: all 0.4s ease 0s;
  padding: 0 0 0 250px;
  position: relative;
}

#sidebar-wrapper {
  left: 0px;
  width: 250px;
  position: absolute;
  overflow-y: auto;
  z-index: 1;
}

#page-content-wrapper {
  width: 100%;
  border-left: 1px solid #ddd;
  padding-top: 10px !important;
}

/* Tighter layout - reduce excessive spacing */
.container-fluid {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Breadcrumb styling */
.breadcrumb-nav {
  font-size: 16px;
  color: #666;
  margin-top: 10px;
  margin-bottom: 10px;
}

.breadcrumb-nav a {
  color: #0073bb;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-nav strong {
  color: #333;
}

/* Page heading styling */
h1.underline {
  margin-top: 5px;
  font-size: 36px !important;
  font-weight: normal !important;
  color: #000 !important;
  opacity: 1 !important;
  line-height: 1.2 !important;
}

/* Make sure spans inside h1 inherit the h1 size */
h1.underline span {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

/* Specifically target ng-scope spans inside h1 */
h1.underline span.ng-scope {
  font-size: 36px !important;
  font-weight: normal !important;
  color: #000 !important;
}

h2.underline {
  font-size: 22px !important;
  font-weight: bold !important;
}

/* Make content use full console width */
#page-content-wrapper .span8,
#page-content-wrapper .span10,
#page-content-wrapper .span12 {
  width: 100% !important;
}

/* Remove extra left margin on grid-table (version page segments table) */
#page-content-wrapper .grid-table {
  margin-left: 0 !important;
}

/* Remove Bootstrap grid spacing from grid-table */
#page-content-wrapper .grid-table .row-fluid {
  margin-left: 0 !important;
}

/* Remove left margin from first column in grid-table rows */
#page-content-wrapper .grid-table .row-fluid > [class*="span"]:first-child {
  margin-left: 0 !important;
}

/* Reduce accordion spacing on segments page */
.uib-accordion {
  margin-bottom: 10px !important;
}

.panel-group .panel {
  margin-bottom: 5px !important;
}

.panel-group .panel-heading {
  padding: 8px 15px !important;
}

.panel-group .panel-body {
  padding: 10px 15px !important;
}

/* Reduce rules table spacing */
.rules-table {
  margin-bottom: 0 !important;
  width: auto !important;
}

.rules-table td {
  padding: 5px !important;
  vertical-align: middle !important;
}

.rules-table tbody {
  display: block !important;
  max-height: none !important;
}

.rules-table tr {
  display: table !important;
  table-layout: auto !important;
}

/* Increase text box size on create pages */
.form-control {
  font-size: 16px !important;
  width: 100% !important;
  max-width: 600px !important;
}

textarea.form-control {
  max-width: 100% !important;
}

#sidebar-header {
  line-height: 20px;
  font-weight: bold;
  font-size: 17px;
  margin: 0 0 10px 10px;
  padding-left: 0px;
}

#sidebar-nav {
  top: 0;
  list-style: none;
  margin: 10px 0 0 10px;
  padding: 0;
  z-index: 999;
}

#sidebar-nav li {
  line-height: 20px;
  font-size: 15px;
  margin: 0 0 5px 11px;
  padding-left: 0px;
}
#sidebar-nav li.home {
  margin-bottom: 20px;
}

#sidebar-nav .active {
  font-weight: bold;
  border-left: 5px solid #e07700;
  padding-left: 5px;
  margin-left: 0;
}

#sidebar-nav ul {
   list-style: none;
}

#sidebar-nav li a {
  color: #444;
  display: block;
  text-decoration: none;
  height: 14px;
  line-height: 14px;
  margin: 10px 0;
  margin-left: 10px;
}

#sidebar-nav li a:hover {
  color: #f91;
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}

#sidebar-nav li a:active,
#sidebar-nav li a:focus {
  text-decoration: none;
}

#sidebar-nav li > ul {
  list-style: none;
  font-size: 15px;
  margin-left: 0px;
}

#sidebar-close {
  -webkit-border-bottom-left-radius: 5px;
  -moz-border-top-left-radius: 5px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #fff;
  background: white;
  position: fixed;
  z-index: 1000;
  left: 209px;
  top: 70px
}

#sidebar-open {
  display: none;
  -webkit-border-bottom-right-radius: 5px;
  -moz-border-top-right-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  background: white;
  position: fixed;
  z-index: 1000;
  left: 0px;
  top: 70px
}

#sidebar-close a, #sidebar-open a {
  color: #444;
  text-decoration: none;
}

#sidebar-close a:hover, #sidebar-open a:hover {
  text-decoration: none;
}

@media (max-height: 820px) {
  #sidebar-wrapper {
    position: absolute;
  }
  #sidebar-close {
    position: absolute;
  }
}

.sidebar-arrow {
  padding-top: 6px;
  padding-bottom: 6px;
}


.dropdown-menu {
  background-color: #444;
  border-radius: 6px;
  list-style: none;
  margin: 2px 0 0;
  overflow: auto;
  padding: 5px 0;
  font-size: 1em;
}

.dropdown-menu li a {
  padding: 5px 40px 5px 20px;
  clear: both;
  cursor: pointer;
  font-weight: 700px;
  line-height: 1.5em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  margin: 0;
  font-size: 1em;
}

.dropdown-menu>li>a:hover,
.dropdown-menu>li>a:focus {
  background-image: none;
  background-repeat: repeat;
  background-color: #222;
  color: #fb9b00;
  outline: 0;
}

.dropdown-menu .divider {
  border-top: 1px solid #222;
  border-bottom: 1px solid #666;
  cursor: default;
  line-height: normal;
  padding: 0;
  background: none;
}

/* Link Cursor */

.nav, .pagination, .carousel, .panel-title a {
  cursor: pointer;
}

/* Navbar */

.navbar-menu .dropdown-button {
  border: none;
  font-weight: bold;
  padding-left: .5em;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  line-height: 1.5em;
  padding: .2em 1em;
  margin: 0;
  text-align: center;
}

.navbar .navbar-inner {
  background: #f4f4f4;
  border-bottom: 1px solid #d7d7d7;
  padding: 0 2em;
}

.nav-title-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

.navbar .navbar-title {
  color: #444;
  font-size: 14px;
  font-weight: bold;
  line-height: 2.85714em;
}

.navbar .navbar-menu {
  border-right: 1px solid #d7d7d7;
  border-left: 1px solid #d7d7d7;
  padding: 0 .5em 0 1em;
  font-size: 14px;
  font-weight: bold;
  line-height: 2.85714em;
  margin-top: 0;
}

.navbar .navbar-button {
  background: none;
  color: #1166bb;
}

.navbar .btn-group.open .dropdown-toggle {
	webkit-box-shadow: none;
	box-shadow: none;
}

.navbar .dropdown-toggle:after {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  vertical-align: 12%;
  border-top: 4px solid #1166bb;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
}

/* REST */

.loading_screen {
  background: white;
  z-index: 999;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.loading_screen.full {
  height: auto;
  z-index: 1000;
  font-size: 100px !important;
}
.loading_screen.full .page-spinner {
  margin-top: -50px;
  position: absolute;
  top: 50%;
}
.loading_screen.section {
  position: absolute;
  opacity: 0.5;
  font-size: 70px !important;
}
.loading_screen.section .page-spinner {
  margin-top: -70px;
  position: absolute;
  top: 50%;
}
.page-spinner {
  display: block;
  width: 100%;
  text-align: center;
}

/* Tables */

thead {
  background-color: #e8e8e8;
  border-top: 1px solid #CCC;
}
td.delete, th.delete {
  text-align: center;
  width: 4em;
  vertical-align: middle;
}

.grid-table div.delete {
  text-align: center;
}
.grid-table header {
  background-color: #e8e8e8;
  border-top: 1px solid #CCC;
}
.grid-table header > div {
  font-weight: bold;
}
.grid-table .row-fluid > div {
  padding: 8px;
}
.grid-table [ui-sortable] .row-fluid > div:first-child {
  padding-left: 25px;
  position: relative;
}
.grid-table [ui-sortable] .row-fluid > div:first-child:before {
  background: url('jsoneditor-icons.png') no-repeat -80px -50px;
  content: " ";
  display: block;
  width: 10px;
  height: 20px;
  left: 8px;
  position: absolute;
  cursor: ns-resize;
}

table.rules-table {
  margin: 0;
}
.rules-table td {
  border-top: 0;
  padding: 3px;
}

.rules-table input[readonly="readonly"] {
}

.rules-table select {
	-webkit-appearance: none !important;
  -webkit-border-radius: 0px;
  background-color: #fafafa;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMTJweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzcHgiIHZpZXdCb3g9IjAgMCA2IDMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYgMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBvbHlnb24gcG9pbnRzPSI1Ljk5MiwwIDIuOTkyLDMgLTAuMDA4LDAgIi8+PC9zdmc+);
  background-position: 100% center;
  background-repeat: no-repeat;
  border-style: solid;
  border-width: 1px;
  border-color: #cccccc;
  padding: 0.44444rem;
  font-size: 0.77778rem;
  font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !important;
  color: rgba(0, 0, 0, 0.75);
  line-height: normal;
  border-radius: 0;
  height: 2.05556rem;
  width: 220px;
  margin: 0;
}
.rules-table input[type=text] {
  -webkit-appearance: none;
  -webkit-border-radius: 0px;
  background-color: white;
  font-family: inherit;
  border-style: solid;
  border-width: 1px;
  border-color: #cccccc;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.75);
  display: block;
  font-size: 0.77778rem;
  margin: 0;
  padding: 0.44444rem;
  height: 2.05556rem;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  transition: box-shadow 0.45s, border-color 0.45s ease-in-out;
}

/* Horizontal Rules */

hr {
  border-top: 1px solid rgb(204, 204, 204);
}

/* Helper Classes */
.p-top-0 {
	padding-top: 0;
}

.p-bottom-0 {
	padding-bottom: 0;
}

.full-height-content {
  min-height: 770px;
  margin-bottom: 20px;
}

.text-success {
  color: green;
}

.h1-underline {
  border-bottom: 1px solid #CCC;
}

.overline {
  border-top: 1px solid #CCC;
  padding-top: 20px;
}

.large-heading {
	font-size: 39px;
	color: #222222;
}

.lead {
	font-size: 22px;
	line-height: 1.3;
	color: #444444;
}

.overflow-hidden {
	overflow: hidden;
}

.background-normal {
	background-color: #eeeeee;
}

.top-gradient {
  background: linear-gradient(to bottom, rgb(255, 255, 255) 0px, rgb(200, 200, 200) 100%) repeat scroll 0% 0% transparent;
}

.bottom-gradient {
    background-image: linear-gradient(to bottom, rgb(200, 200, 200) 0px, rgb(255, 255, 255) 100%);
}

.info-badge {
	background-color: #16b;
	color: #fff;
	border-radius: 3px;
	padding: 2px 4px;
	text-shadow: 0 -1px - rgba(0,0,0,0.25);
	font-weight: bold;
	font-size: 12px;
}

.truncate {
	max-width: 155px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: inline-block;
	margin-right: 5px;
}

/* Tabs */

.nav-tabs {
  margin-bottom: 0;
}

.nav-tabs a {
  padding-top: 5px;
  padding-bottom: 5px;
  font-weight: bold;
  line-height: 1.5em;
  color: rgb(68, 68, 68);
  background-color: rgb(238, 238, 238);
  border: 1px solid rgb(204, 204, 204);
  border-radius: 3px 3px 0px 0px;
  transition: border-top-color 300ms cubic-bezier(0.39, 0.575, 0.565, 1) 0s;
}

.nav-tabs .active a,
.nav-tabs .active .active,
.nav-tabs .active a:focus {
  color: #444444;
  cursor: default;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-top: 3px solid #1166bb;
  border-bottom: transparent;
}

.tab-content .tab-pane {
  padding: 20px;
  border-style: solid;
  border-color: rgb(204, 204, 204);
  -moz-border-top-colors: none;
  -moz-border-right-colors: none;
  -moz-border-bottom-colors: none;
  -moz-border-left-colors: none;
  border-image: none;
  border-width: 0px 1px 1px;
  min-height: 100px;
}

.btn:focus {
  color: #ffffff;
}

.dropdown-toggle.btn:focus {
	color: #444444;
}

/* Modals */
.modal-open {
  overflow: hidden;
}

.modal {
  display: none;
  overflow: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10001 !important;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}
.modal.fade .modal-dialog {
  -webkit-transform: translate3d(0, -25%, 0);
  transform: translate3d(0, -25%, 0);
  -webkit-transition: -webkit-transform 0.3s ease-out;
  -moz-transition: -moz-transform 0.3s ease-out;
  -o-transition: -o-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
}
.modal.in .modal-dialog {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}
.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
}
.modal-content {
  position: relative;
  background-color: transparent;
  border: 1px solid #999999;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  background-clip: padding-box;
  outline: 0;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000 !important;
  background-color: #000000;
}
.modal-backdrop.fade {
  opacity: 0;
  filter: alpha(opacity=0);
}
.modal-backdrop.in {
  opacity: 0.5;
  filter: alpha(opacity=50);
}
.modal-header {
  padding: 15px;
  background: -webkit-linear-gradient(top, white 0%, #e1e1e1 100%);
  background: linear-gradient(to bottom, white 0%, #e1e1e1 100%);
  border-bottom: 1px solid #e5e5e5;
  min-height: 16.42857143px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom: 1px solid #ccc;
}
.modal-header .close {
  margin-top: -2px;
}
.modal-title {
  margin: 0;
  padding: 0;
  line-height: 1.42857143;
  max-width: 98%;
}
.modal-body {
  background-color: #ffffff;
  position: relative;
  padding: 20px;
  line-height: 1.6;
}

.modal-footer {
  padding: 15px;
  text-align: right;
  background: #f5f5f5;
  border-top: 1px solid #ccc;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
}
.modal-footer .btn + .btn {
  margin-left: 5px;
  margin-bottom: 0;
}
.modal-footer .btn-group .btn + .btn {
  margin-left: -1px;
}
.modal-footer .btn-block + .btn-block {
  margin-left: 0;
}
.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

.modal-form-control {
	width: 98%;
}

.scroll-div {
	width: 100%;
	margin-bottom: 0;
	overflow-x: auto;
	height:300px;
	border-bottom: 1px solid rgb(204, 204, 204);
}

.scroll-div-inner {
	min-height:301px;
}

.modal-inline-text-area {
	width: 76%;
	height: 91px;
	margin-bottom: 0;
}

.close-modal {
	color: #999;
	font-weight: bold;
	cursor: pointer;
}

.cancel-modal {
  color: #1166bb;
  font-weight: bold;
}

.cancel-modal:hover {
 text-decoration: none;
 cursor: pointer;
}

@media (min-width: 768px) {
  .modal-dialog {
    width: 600px;
    margin: 30px auto;
  }
  .modal-content {
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  }
  .modal-sm {
    width: 300px;
  }
}
@media (min-width: 992px) {
  .modal-lg {
    width: 900px;
  }
}
.clearfix:before,
.clearfix:after,
.modal-footer:before,
.modal-footer:after {
  content: " ";
  display: table;
}
.clearfix:after,
.modal-footer:after {
  clear: both;
}


/* Remove Modal Animations */
.modal.fade .modal-dialog {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
     transform: translate(0, 0);
}

/* Dropdown */

.dropdown-toggle:after {
  display: none;
}

/* JSON Editor */

[contenteditable][ng-model] {
  padding-right: 20px;
  background: url('table_edit.png') no-repeat center right;
}

.jsonView {
  margin-top: 0.5em !important;
  margin-bottom: 0.5em !important;
}

.panel-body .jsonView {
  margin-top: 0 !important;
}
.jsonView table.valueChanged {
  font-weight: bold;
}
.panel-body .jsonView {
  margin-top: 0;
}

.segments .field,
.segments .value {
  opacity: 0.6;
  font-style: italic;
}
.segments .field:after {
  content: " inherited";
  color: #333;
  font-size: x-small;
}
.segments table.override .field,
.segments table.override .value {
  opacity: 1;
  font-style: normal;
}
.segments table.override .field:after,
.segments .preview .field:after {
  content: "";
}
.segments .preview {
  border: 0;
  display: none;
  position: absolute;
  overflow: visible;
}
.segments .preview .menu {
  display: none;
}
.segments .preview .outer {
}
.segments .preview:before {
  content: 'baseline';
  position: absolute;
  top: 3px;
  left: -1em;
  font-family: monospace;
  font-size: small;
  opacity: 0.6;
}
.segments .delete_icon {
  position: relative;
}

.segments .delete_icon:before {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\f0e2";
  cursor: pointer;
  position: absolute;
  left: -35px;
  top: 7px;
}

.segments .icon.delete {
  background-position: -24px 0;
  opacity: 0.8;
}

.segments .icon.delete:hover,
.segments .icon.delete:focus {
  opacity: 1;
}

/* Panels (Accordions) */

.collapse {
  display: none;
}
.collapse.in {
  display: block;
}
tr.collapse.in {
  display: table-row;
}
tbody.collapse.in {
  display: table-row-group;
}
.collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  -webkit-transition: height .35s ease;
       -o-transition: height .35s ease;
          transition: height .35s ease;
}

.panel {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 4px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
          box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.panel-body {
  padding: 15px;
}
.panel-heading {
  padding: 10px 15px;
  border-bottom: 1px solid transparent;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel-heading > .dropdown .dropdown-toggle {
  color: inherit;
}
.panel-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 16px;
  color: inherit;
}
.panel-title > a {
  color: inherit;
}
.panel-footer {
  padding: 10px 15px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}
.panel > .list-group {
  margin-bottom: 0;
}
.panel > .list-group .list-group-item {
  border-width: 1px 0;
  border-radius: 0;
}
.panel > .list-group:first-child .list-group-item:first-child {
  border-top: 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel > .list-group:last-child .list-group-item:last-child {
  border-bottom: 0;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}
.panel-heading + .list-group .list-group-item:first-child {
  border-top-width: 0;
}
.list-group + .panel-footer {
  border-top-width: 0;
}
.panel > .table,
.panel > .table-responsive > .table,
.panel > .panel-collapse > .table {
  margin-bottom: 0;
}
.panel > .table:first-child,
.panel > .table-responsive:first-child > .table:first-child {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {
  border-top-left-radius: 3px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {
  border-top-right-radius: 3px;
}
.panel > .table:last-child,
.panel > .table-responsive:last-child > .table:last-child {
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {
  border-bottom-left-radius: 3px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {
  border-bottom-right-radius: 3px;
}
.panel > .panel-body + .table,
.panel > .panel-body + .table-responsive {
  border-top: 1px solid #ddd;
}
.panel > .table > tbody:first-child > tr:first-child th,
.panel > .table > tbody:first-child > tr:first-child td {
  border-top: 0;
}
.panel > .table-bordered,
.panel > .table-responsive > .table-bordered {
  border: 0;
}
.panel > .table-bordered > thead > tr > th:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,
.panel > .table-bordered > tbody > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,
.panel > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-bordered > thead > tr > td:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,
.panel > .table-bordered > tbody > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,
.panel > .table-bordered > tfoot > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {
  border-left: 0;
}
.panel > .table-bordered > thead > tr > th:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,
.panel > .table-bordered > tbody > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,
.panel > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-bordered > thead > tr > td:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,
.panel > .table-bordered > tbody > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,
.panel > .table-bordered > tfoot > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {
  border-right: 0;
}
.panel > .table-bordered > thead > tr:first-child > td,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,
.panel > .table-bordered > tbody > tr:first-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,
.panel > .table-bordered > thead > tr:first-child > th,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,
.panel > .table-bordered > tbody > tr:first-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {
  border-bottom: 0;
}
.panel > .table-bordered > tbody > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,
.panel > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-bordered > tbody > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,
.panel > .table-bordered > tfoot > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {
  border-bottom: 0;
}
.panel > .table-responsive {
  margin-bottom: 0;
  border: 0;
}
.panel-group {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}
.panel-group .panel {
  width: 100%;
  margin-bottom: 0;
  border-radius: 4px;
}
.panel-group .panel + .panel {
  margin-top: 0;
}
.panel-group .panel-heading {
  border-bottom: 0;
}
.panel-group .panel-heading + .panel-collapse > .panel-body {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}
.panel-group .panel-heading + .panel-collapse.in > .panel-body {
  border-top: 1px solid #ddd;
}
.panel-group .panel-footer {
  border-top: 0;
}
.panel-group .panel-footer + .panel-collapse .panel-body {
  border-bottom: 1px solid #ddd;
}
.panel-default {
  border: none;
}
.panel-default > .panel-heading {
  color: #333;
  background: #eee;
  padding: 6px;
  border: 1px solid #ddd;
  border-bottom: none;
}
.panel-default > .panel-heading > .panel-title {
  padding: 0;
}
.panel-default > .panel-heading + .panel-collapse > .panel-body {
  border-top-color: #ddd;
}
.panel-default > .panel-heading .badge {
  color: #f5f5f5;
  background-color: #333;
}
.panel-default > .panel-footer + .panel-collapse > .panel-body {
  border-bottom-color: #ddd;
}
.panel-primary {
  border-color: #428bca;
}
.panel-primary > .panel-heading {
  color: #fff;
  background-color: #428bca;
  border-color: #428bca;
}
.panel-primary > .panel-heading + .panel-collapse > .panel-body {
  border-top-color: #428bca;
}
.panel-primary > .panel-heading .badge {
  color: #428bca;
  background-color: #fff;
}
.panel-primary > .panel-footer + .panel-collapse > .panel-body {
  border-bottom-color: #428bca;
}
.panel-success {
  border-color: #d6e9c6;
}
.panel-success > .panel-heading {
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}
.panel-success > .panel-heading + .panel-collapse > .panel-body {
  border-top-color: #d6e9c6;
}
.panel-success > .panel-heading .badge {
  color: #dff0d8;
  background-color: #3c763d;
}
.panel-success > .panel-footer + .panel-collapse > .panel-body {
  border-bottom-color: #d6e9c6;
}
.panel-info {
  border-color: #bce8f1;
}
.panel-info > .panel-heading {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}
.panel-info > .panel-heading + .panel-collapse > .panel-body {
  border-top-color: #bce8f1;
}
.panel-info > .panel-heading .badge {
  color: #d9edf7;
  background-color: #31708f;
}
.panel-info > .panel-footer + .panel-collapse > .panel-body {
  border-bottom-color: #bce8f1;
}
.panel-warning {
  border-color: #faebcc;
}
.panel-warning > .panel-heading {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}
.panel-warning > .panel-heading + .panel-collapse > .panel-body {
  border-top-color: #faebcc;
}
.panel-warning > .panel-heading .badge {
  color: #fcf8e3;
  background-color: #8a6d3b;
}
.panel-warning > .panel-footer + .panel-collapse > .panel-body {
  border-bottom-color: #faebcc;
}
.panel-danger {
  border-color: #ebccd1;
}
.panel-danger > .panel-heading {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}
.panel-danger > .panel-heading + .panel-collapse > .panel-body {
  border-top-color: #ebccd1;
}
.panel-danger > .panel-heading .badge {
  color: #f2dede;
  background-color: #a94442;
}
.panel-danger > .panel-footer + .panel-collapse > .panel-body {
  border-bottom-color: #ebccd1;
}

.clearfix:before,
.clearfix:after,
.panel-body:before,
.panel-body:after {
  content: " ";
  display: table;
}
.clearfix:after,
.panel-body:after {
  clear: both;
}

.panel-title> a {
	text-decoration: none;
	display: block;
	width: 100%;
}

/* icons */
.panel-open {
    background-size: 11px 11px;
	display: inline-block;
	background-image: url('panel-open.png');
	background-repeat: no-repeat;
}

.panel-closed {
	width: 11px;
	height: 11px;
	display: inline-block;
	background-image: url('panel-closed.png');
	background-repeat: no-repeat;
}

.remove_icon {
  cursor: pointer;
}

/* Buttons */

.icon-button {
  background: 0;
  border: 0;
  padding: 0;
}

/* Grid */

.max-1282 {
	max-width: 1282px;
}

/* JSON Editor */

.no-colon .jsoneditor .separator {
	display: none;
}

.jsoneditor .field,
.jsoneditor.value,
.jsoneditor td,
.jsoneditor th,
.jsoneditor textarea {
	font-family: Menlo, Consolas, "Courier Prime", Courier, "Courier New", monospace; /* Monaco looks terrible bold */
}

.hide-menu .jsoneditor .menu {
	display: none;
}

.hide-menu .jsoneditor div.outer {
	margin:0;
	padding:0;
}

.small .jsonView {
	height: 200px;
}


.jsoneditor .field[contenteditable="true"]:focus,
.jsoneditor .field[contenteditable="true"]:hover,
.jsoneditor .value[contenteditable="true"]:focus,
.jsoneditor .value[contenteditable="true"]:hover,
.jsoneditor .field.highlight,
.jsoneditor .value.highlight {
    background-color: rgb(255, 255, 255);
    border-color: rgba(82, 168, 236, 0.8);
    outline: 0px none;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset, 0px 0px 8px rgba(82, 168, 236, 0.6);
}

.ace-jsoneditor .ace_marker-layer .ace_active-line {
	background: rgba(82, 168, 236, 0.3) !important;
}


/* Form Control */
.has-error {
  border: 1px solid #a94442;
  overflow: hidden;
  background-color: #fef9f9;
  border-radius: 6px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 25px;
  padding-right: 25px;
}

.error {
	color: #a94442;
}

input[type="text"]:focus.remove-aws-focus {
	border-color: rgba(82,168,236,0.8);
	box-shadow: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	color: #666;
}

/* Footer */
#consoleNavFooter {
	margin-top: 0;
}

/* Media Queries */

@media (min-width: 767px) {
	.m-right-lg-100 {
	  margin-right: 100px;
	}

	.m-left-lg-100 {
	  margin-left: 100px;
	}
}

@media (max-width: 767px) {
	/* Remove floats on small devices */
	.pull-left {
	  float: none !important;
	}
	.pull-right {
	  float:none !important;
	}

}



@media (max-width: 1292px) {
	.row-fluid .offset1:first-child {
	  margin-left: 0;
	}

}

.alert.alert-icon {
  padding-left: 3.5em;
}
.alert.alert-icon:before {
  display: inline-block;
  font: normal normal normal 20px/1 FontAwesome !important;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  top: 16px;
  left: 16px;
}
.alert.alert-icon.alert-info:before {
  top: 16px;
  content: "\f05a";
}
.alert.alert-icon.alert-warn:before {
  content: "\f071";
}
.alert h3 {
  line-height: 1;
}

.icon-warn:after {
  font: normal normal normal 16px/1 FontAwesome !important;
  text-rendering: auto;
  color: #e07700;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\f071";
  padding-left: 6px;
}
.tooltip.right {
  margin-left: 12px;
}

.width-150 {
	width: 150px;
}

.width-200 {
	width: 200px;
}

.inline-form {
	display: inline !important;
}

.preProdVersionAttr > p {
  margin-bottom: 10px;
  margin-top: 10px;
}

.preProdVersionAttr > form > input {
  margin-top: -10px;
  width: 70px !important;
}

.preProdVersionAttr > form > button {
  margin-top: -20px;
}

.inner-nav-div {
  margin-left: 3px;
}

.warning-message {
  background-color: lightgoldenrodyellow;
  border-radius: 5px;
  border-style: solid;
  margin: 20px auto;
  max-width: 60%;
  padding: 5px;
  text-align: center;
  width: 80%;
}

.margin-left-10 {
  margin-left: 10px;
}

/* Audit History button positioned to the right with space for badge */
.audit-history-right {
  position: absolute;
  right: 40px;
  top: 0;
}

/* New text styling with red dotted underline */
.new-text {
  color: red !important;
  text-decoration: underline !important;
  text-decoration-style: dotted !important;
  font-size: 12px;
  margin-left: 5px;
  font-weight: normal;
  display: inline !important;
  white-space: nowrap !important;
  vertical-align: top !important;
}

/* Ensure sidebar nav items with new-text stay on same line */
#sidebar-nav li {
  white-space: nowrap;
}

#sidebar-nav li a {
  display: inline !important;
}

/* New badge positioned to the right of the Audit History button */
.audit-new-badge {
  color: red !important;
  text-decoration: underline !important;
  text-decoration-style: dotted !important;
  font-size: 12px;
  font-weight: normal;
  position: absolute;
  right: 0;
  top: 0;
}

/* Commit ID container and copy button styles - only for audit history and appconfig history pages */
.app-config-history .commit-id-container,
.audit-trail .commit-id-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  background-color: #f8f9fa;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Commit ID display styles - only for audit history and appconfig history pages */
.app-config-history .commit-id-display,
.audit-trail .commit-id-display {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  background-color: #f8f9fa;
  padding: 4px 8px;
  border-radius: 3px;
  margin: 0.25rem auto;
  max-width: 100%;
  overflow: hidden;
}

/* Default commit ID container without background for other pages */
.commit-id-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
}

.btn-copy-commit {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 12px;
  transition: all 0.2s ease;
  display: inline-flex;
}

.btn-copy-commit:hover {
  color: #495057;
  background-color: #e9ecef;
}

.btn-copy-commit:active {
  transform: scale(0.95);
}

.btn-copy-commit i {
  font-size: 11px;
}

.empty-state {
  text-align: center;
  margin-top: 40px;
}
