/*common form buttons*/
.rw-button {
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.rw-button-small {
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.rw-button-full {
    width: 100%;
    height: 52px;
}

.bt-primary {
    color: #fff;
    background: var(--ocean-120);
}

.bt-primary:hover {
    color: #fff;
    background: var(--blue-base-darken);
    border: 1px solid var(--blue-base-darken);
}

.bt-secondary {
    color: var(--font-dark);
    background: var(--bg-body);
    border: 1px solid var(--light-grey);
}

.bt-tertiary {
    color: var(--font-dark);
    background: var(--grey-background);
    border: 1px solid var(--grey-background);
}

.bt-transparent {
    color: var(--font-dark);
    background: transparent;
    border: none;
}

button:disabled {
    opacity: 0.5;
}

.btn-group .btn.active,
.btn-group .btn:active {
  background-color: var(--bg-body) !important;
  color: var(--font-dark) !important;
  box-shadow: none !important;
}

.btn-group .btn:first-child {
  border-radius: 4px 0 0 4px !important;
  border-color: var(--font-dark) !important;
}
.btn-group .btn:last-child {
  border-radius: 0 4px 4px 0 !important;
  border-color: var(--font-dark) !important;
}

/*help button*/
.panel-buttons-btm {
    margin-top: 4em;
    padding-top: 1em;
    padding-bottom: 3em;
    border-top: 1px solid #ECE7E7;
    padding-left: 0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.need-help-btn {
    margin-top: 30px;
    border: none;
    font-weight: 400;
    font-size: 16px;
    color: #00688C;
    display: block;
    background: none;
}

/*when the help button works with buttons in the other side.*/
.form-group .need-help-btn {
    margin-top: 5px;
}

.form-end-note {
    clear: both;
    padding-top: 30px;
    display: block;
}

/* Sync Switch */
.sync-switch { /* used for Manage Data Syncs card*/
    width: 34px;
    float: right;
}
.sync-switch-checkbox {
    display: none;
}
.sync-switch-label {
    display: block;
    cursor: pointer;
    position: relative;
}

.sync-switch-label:focus {
    outline: 1px dotted black;
}

.sync-switch-inner {
    display: block;
    height: 20px;
    transition: margin 0.3s ease-in 0s;
    border-radius: 5px;
    background-color: var(--grey-background-dark);
    overflow: hidden;
}

.sync-switch-inner:after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 20px;
    border-radius: 5px;
    right: 0;
    top: 0;
    background-color: var(--teal-blue);
    opacity: 0;
}

.sync-switch-switch {
    display: block;
    width: 16px;
    margin: 2px;
    height: 16px;
    background: #FFFFFF;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 5px;
    transition: right 150ms ease-in 0s;
    z-index: 2;
}

.sync-switch-label .sync-switch-inner + .sync-switch-switch {
    right: 40%;
}

.sync-switch-label .sync-switch-inner.switch-on + .sync-switch-switch {
    right: 0;
}

.sync-switch-label .sync-switch-inner.switch-on:after {
    opacity: 1;
}

/* End Sync Switch */

/* Loader (icon for the loading step) */
.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid var(--blue-base);
    position: absolute;
    left: 50%;
    top: 50%;
    animation:
            l20-1 0.8s infinite linear alternate,
            l20-2 1.6s infinite linear;
}
.loader-small {
    width: 20px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid var(--blue-base);
    animation:
            l20-1 0.8s infinite linear alternate,
            l20-2 1.6s infinite linear;
    display: inline-block;
    vertical-align: middle;
}
@keyframes l20-1{
    0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
    12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
    25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
    50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
    100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
}
@keyframes l20-2{
    0%    {transform:scaleY(1)  rotate(0deg)}
    49.99%{transform:scaleY(1)  rotate(135deg)}
    50%   {transform:scaleY(-1) rotate(0deg)}
    100%  {transform:scaleY(-1) rotate(-135deg)}
}

.filter-text .link {
    color: black;
}

.alert-success, .alert-info, .alert-danger {
    color: var(--font-dark);
}

.link, .view-full-instruct {
    color: var(--light-link) !important;
}

.dropdown-menu>li>a {
    padding: 8px 12px 8px 12px;
    line-height: 1.8;
    color: var(--font-dark);
}

/* search bar & input */
.search-wrapper {
  position: relative;
  width: 574px;
}
.search-wrapper input {
  padding-left: 32px;
  width: 100%;
}
.search-wrapper button {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  z-index: 2;
  padding: 0;
}

.pagination {
  margin: 0;
}

.margin-bottom-20 {
  margin-bottom: 20px;
}

pre.pre-code {
    max-height: 60vh;
    max-width: 90vw;
}
