body {
  --workflow-icon-green: rgb(0, 237, 0);
  --workflow-icon-yellow: rgb(255, 222, 0);
  --workflow-icon-orange: rgb(255, 144, 0);
  --workflow-icon-red: rgb(238, 0, 0);
  --workflow-icon-white: rgb(255, 255, 255);
}

/* Force dark background for workflow toolbar */
body.viavi-workflow-role .gin-secondary-toolbar {
  background: #303030 !important;
}
body.viavi-workflow-role #toolbar-administration-secondary .toolbar-icon:hover,
body.viavi-workflow-role
  .gin-secondary-toolbar
  .toolbar-secondary
  .toolbar-bar
  .toolbar-tab:hover
  .trigger,
body.viavi-workflow-role
  .gin-secondary-toolbar
  .toolbar-secondary
  .toolbar-bar
  .toolbar-tab
  .toolbar-tray {
  background: #464646 !important;
  color: #fff;
}
@media (prefers-color-scheme: light) {
  body.viavi-workflow-role #toolbar-administration-secondary #toolbar-bar a,
  #toolbar-administration-secondary #toolbar-bar button {
    color: #fff !important;
  }
}
[data-darkreader-scheme="dark"] {
  body.viavi-workflow-role .gin-secondary-toolbar {
    background: #303030 !important;
  }
}

body.viavi-workflow-role #toolbar-administration-secondary {
  width: 100%;
}

body.viavi-workflow-role #toolbar-bar {
  flex: 1 1 100%;
  justify-content: flex-end;
}

body.viavi-workflow-role #toolbar-bar .toolbar-tab.user-menu {
  margin-left: auto !important;
  text-align: left;
}
body.viavi-workflow-role
  #toolbar-bar
  .toolbar-tab.user-menu
  .toolbar-icon-user::before {
  margin-left: auto !important;
}
body.viavi-workflow-role #toolbar-bar .toolbar-tab.user-menu .user-menu {
  margin-left: auto !important;
}
.toolbar .toolbar-icon-workflow-simple a::before {
  mask: none;
  background: none;
  background: #fff !important;
  background: var(--gin-icon-color);
  --darkreader-inline-bgcolor: #ffffff;
  background-size: cover;
  -webkit-mask-size: cover;
  mask-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  isolation: isolate;
  fill: revert-layer !important;
}

@media (prefers-color-scheme: light) {
  #toolbar-administration-secondary
    #toolbar-bar
    #workflow-simple-toolbar-tab
    a.toolbar-icon-workflow-simple {
    color: #fff !important;
  }
}

.toolbar .workflow-simple-toolbar-item .workflow-state {
  position: relative;
  padding-left: 2.5em;
  min-width: 148px;
  display: inline-block;
  line-height: 1.3;
}

.toolbar .workflow-simple-toolbar-item .workflow-state::before {
  position: absolute;
  top: 0;
  left: 0.6667em; /* LTR */
  width: 17px;
  height: 17px;
  display: block;
  content: "";
  background-color: transparent;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  mask: none;
  background-size: cover;
  -webkit-mask-size: cover;
  mask-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  isolation: isolate;
  fill: revert-layer !important;
}

#toolbar-item-workflow-simple-change-tray .toolbar-icon::before {
  display: block !important;
}

#toolbar-item-workflow-simple-change-tray {
  min-width: 190px;
}
#toolbar-item-workflow-simple-change-tray ul {
  padding: 0;
}

body.viavi-workflow-role
  .gin-secondary-toolbar
  .toolbar-secondary
  .toolbar-bar
  .toolbar-tab
  .toolbar-tray
  a:hover {
  background: #525252;
}
@media (prefers-color-scheme: dark) {
  #toolbar-item-workflow-simple-change-tray a:hover {
    background: #525252;
  }
}
#toolbar-item-workflow-simple-change-tray a.toolbar-icon::before {
  display: none !important;
}
#toolbar-item-workflow-simple-change-tray a.toolbar-item {
  padding-left: 0;
  left: 0px;
}

#workflow-simple-jira::before {
  mask-image: url(../../viavi_workflow/svgs/jira-brands.svg);
}
#workflow-simple-jira {
}

#workflow-simple-owner::before {
  mask-image: url(../../viavi_icons/svgs/regular/user-check.svg);
}
#workflow-simple-owner {
  font-weight: bold;
}
#workflow-simple-owner span.label {
  font-weight: normal;
}
#workflow-simple-owner:hover {
  text-decoration: none;
}
#workflow-simple-toolbar-tab a::before {
  mask-image: url(../../viavi_icons/svgs/regular/arrows-turn-to-dots.svg);
}
.workflow-state {
  font-weight: bold;
  min-width: 175px;
}
#workflow-simple-current-workflow-state.toolbar-item {
  padding-left: 0.5rem;
}
#workflow-simple-current-workflow-state:hover {
  text-decoration: none;
}

#workflow-simple-change-workflow-state::before {
  mask-image: url(../../viavi_icons/svgs/regular/pen.svg);
}

.toolbar .toolbar-bar .workflow-simple-toolbar-item .workflow-state {
  font-weight: bold;
}
.toolbar
  .toolbar-bar
  .workflow-simple-toolbar-item
  .workflow-state.state-class-approved {
  color: var(--workflow-icon-green) !important;
}
.toolbar
  .toolbar-bar
  .workflow-simple-toolbar-item
  .workflow-state.state-class-approved::before {
  mask-image: url(../../viavi_icons/svgs/regular/circle-check.svg);
  background: var(--workflow-icon-green) !important;
}
.toolbar
  .toolbar-bar
  .workflow-simple-toolbar-item
  .workflow-state.state-class-needs-review {
  color: var(--workflow-icon-yellow) !important;
}
.toolbar
  .toolbar-bar
  .workflow-simple-toolbar-item
  .workflow-state.state-class-needs-review::before {
  mask-image: url(../../viavi_icons/svgs/regular/triangle-exclamation.svg);
  background: var(--workflow-icon-yellow) !important;
}

.toolbar
  .toolbar-bar
  .workflow-simple-toolbar-item
  .workflow-state.state-class-in-progress {
  color: var(--workflow-icon-orange);
}
.toolbar
  .toolbar-bar
  .workflow-simple-toolbar-item
  .workflow-state.state-class-in-progress::before {
  mask-image: url(../../viavi_icons/svgs/regular/clock.svg);
  background: var(--workflow-icon-orange) !important;
}

.toolbar
  .toolbar-bar
  .workflow-simple-toolbar-item
  .workflow-state.state-class-overdue {
  color: var(--workflow-icon-red);
}
.toolbar
  .toolbar-bar
  .workflow-simple-toolbar-item
  .workflow-state.state-class-overdue::before {
  mask-image: url(../../viavi_icons/svgs/regular/triangle-exclamation.svg);
  background: var(--workflow-icon-red) !important;
}

body.viavi-workflow-role
  .gin-secondary-toolbar
  .toolbar-secondary
  .toolbar-bar
  .toolbar-tab
  .toolbar-item {
  color: #fff;
}
body.viavi-workflow-role .gin-breadcrumb-wrapper {
  display: none;
}

.view-admin-workflow .datetime {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-transform: inherit;
  margin-bottom: inherit;
}
