html {
    height: 100%;
}

body, #content {
    min-height: 100%;
}

html  {
    background: #bbb;
}

.topbar {
    margin: 0 3%;
}

body {
    margin: 0 3%;
    padding-top: 10px;
    background: #fff;
    box-shadow: 0 0 40px #000;
}

table {
    clear: both;
}

input.error,
textarea.error,
select.error {
    border: 1px solid #f00;
    background: #fddfde;
}

.masked {
    overflow: hidden !important;
}

.masked-relative {
    position: relative !important;
}

.masked-hidden {
    visibility: hidden !important;
}

.loadmask {
    z-index: 10000;
    position: absolute;
    top: 0;
    left: 0;
    -moz-opacity: 0.5;
    opacity: .50;
    filter: alpha(opacity=50);
    background-color: #CCC;
    width: 100%;
    height: 100%;
    zoom: 1;
}

.loadmask-msg {
    z-index: 20001;
    position: absolute;
    top: 0;
    left: 0;
}

.loadmask-msg div {
    border-radius: 5px;
    padding: 5px 10px 5px 25px;
    background: #fbfbfb url("/img/loading.gif") no-repeat 5px 5px;
    line-height: 16px;
    color: #222;
    cursor: wait;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.all {
    text-align: left;
}

.alr {
    text-align: right;
}

.alc {
    text-align: center;
}

/* account list */
table#accounts tr td {
    cursor: pointer;
}

/* notes */
#note-container label {
    width: auto;
}

#note-container textarea {
    width: 100%;
    height: 20px;
    resize: none;
}

#note-container input {
    margin: 0 4px;
}

#note-container label input[type="checkbox"] {
    vertical-align: -1px;
    width: auto;
}

#note-container pre.contents {
    margin-bottom: 5px;
    background: transparent;
    border: none;
}

#note-container div.note-form {
    padding-bottom: 10px;
}

#note-container #notes-list {
    border-top: 1px solid #ddd;
}

#notes-list.list-short {
    max-height: 360px;
    overflow: auto;
}

#account-details #lead-category img {
    vertical-align: -3px;
}

#content {
    margin-top: 60px;
}

ul.ui-autocomplete li span {
    padding: 2px;
    font-size: 12px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

ul.ui-autocomplete li span.id {
    font-weight: bold;
}

ul.ui-autocomplete li span.username, ul.ui-autocomplete li span.email {
    width: 150px;
}

.number-cell,
.action-cell {
    text-align: right;
}

table.data th a {
    display: block;
    background-position: right center;
    background-repeat: no-repeat;
    padding-right: 4px;
}

table.data th a.asc {
    background-image: url(/img/asc.gif);
}

table.data th a.desc {
    background-image: url(/img/desc.gif);
}

table.data th.number-cell,
table.data th.action-cell {
    text-align: right;
}

table.data td img {
    vertical-align: -3px;
}

input.numeric-volume,
input.numeric-int,
input.numeric-amount,
input.numeric-percentage,
input.numeric-rate {
    text-align: right;
}

.action-cell a:hover {
    text-decoration: none;
}

.action-cell a:hover img {
    position: relative;
    top: -1px;
}

.thick-border-top,
.thick-border-top-row td {
    border-top-width: 3px;
}

.thick-border-bottom {
    border-bottom-width: 3px;
}


.negative-stock {
    color: white;
    background-color: #C43C35;
}

.clr {
    clear: both;
}

table.standard {
    width: 100%;
    margin: 0;
}

table.standard td {
    border: none;
    padding: 5px;
}

.small-row td {
    font-size: 10px;
}

.rate-down {
    color: #C43C35;
}

.negative-stock {
    color: white;
    background-color: #C43C35;
}

.rate-up {
    color: #46A546;
}

.positive-stock {
    color: white;
    background-color: #46A546;
}

.timer {
    vertical-align: -5px;
    font-size: 10px;
}

.portfolio-table td img {
    vertical-align: -3px;
}

.icon {
    vertical-align: -3px;
}

.reserved {
    color: #C30F01;
    font-weight: bold;
    font-size: 11px;
}

/* Auto complete styles */
.ui-menu .ui-menu-item {
    clear: both;
}

.ui-autocomplete {
    border-radius: 0 0 6px 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
}

.ui-visual-focus,
.ui-autocomplete .ui-state-active,
.ui-autocomplete .ui-state-active:hover
{
    border: none!important;
    background-color: none!important;
}

.ui-menu .ui-menu-item a {
    padding: 1px;
}

.ui-autocomplete li.ui-menu-item {
    text-align: left;
    width: auto;
}

.ui-autocomplete .ui-menu-item:hover {
    background: #bbb;
}

.ui-autocomplete .ac-item-0,
.ui-autocomplete .ac-item-1,
.ui-autocomplete .ac-item-2,
.ui-autocomplete .ac-item-3,
.ui-autocomplete .ac-item-4,
.ui-autocomplete .ac-item-5 {
    width: 100px;
    float: left;
    overflow: hidden;
    font-size: 13px;
    line-height: 18px;
    padding: 3px;
    color: #333!important;
    overflow-y: hidden;
    white-space: nowrap;
}

.ui-autocomplete li.ui-menu-item:hover .ac-item-0,
.ui-autocomplete li.ui-menu-item:hover .ac-item-1,
.ui-autocomplete li.ui-menu-item:hover .ac-item-2,
.ui-autocomplete li.ui-menu-item:hover .ac-item-3,
.ui-autocomplete li.ui-menu-item:hover .ac-item-4,
.ui-autocomplete li.ui-menu-item:hover .ac-item-5 {
    background-color: #333!important;
    color: white!important;
}

.ui-autocomplete .ac-item-0 {
    width: 80px;
    font-weight: bold;
}

.ui-autocomplete .ac-item-1 {
    width: 300px;
}

.ui-autocomplete .ac-item-2 {
    width: 400px;
}

.ui-autocomplete .ac-item-3 {
    width: 150px;
}

.ui-autocomplete .ac-item-4 {
    width: 320px;
    max-width: 320px;
}

.ui-autocomplete .ac-item-5 {
    width: 50px;
}

.ui-autocomplete-loading { background: white url('/img/loading.gif') 186px center no-repeat; }

.greyed-out {
    color: #aaa;
    font-style: italic;
}
/** End of autocomplete? */

#gr-brand {
    text-indent: 18px;
    background: transparent url('/img/icons/gr.png') no-repeat 22px 5px;
}

#pm-brand {
    text-indent: 36px;
    background: transparent url('/img/icons/pm.png') no-repeat 22px 5px;
    padding-top: 12px;
    padding-bottom: 8px;
}

#gr-brand.sales {
    text-indent: 18px;
    background: transparent url('/img/icons/dory.png') no-repeat 16px 5px;
}

.order-row {
    cursor: pointer;
}

.realisations td,
.realisations th {
    font-style: italic;
    font-size: small;
}

.modal.large {
    left: 5%;
    top: 5% !important;
    height: 90%;
    width: 90%;
    margin: 0;
}

.modal.large .modal-body {
    height: 86%;
}

.ellipsis {
    text-overflow: ellipsis;
    -moz-text-overflow: ellipsis;
    -webkit-text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.verification-comment {
    color: red;
    font-weight: bold;
}

select {
    width: 220px;
}

select option[disabled] {
    color: #bbb;
}

select optgroup {
    background: #eee;
}

#settings-button {
    opacity: .6;
}

#settings-button:hover,
.dropdown.open #settings-button {
    opacity: 1;
}

.balance-up {
    color: green;
}

.balance-down {
    color: red;
}

.clickable
{
    cursor: pointer;
}

.workflow-entry.clickable,
.workflow-entry.clickable td {
    cursor: pointer;
    background-color: #eFFFec;
}

#quick-search {
    width: 130px;
}

.status-processed,
.ideal-status-paid,
.journal-status-active,
.email-status-sent {
    color: green;
}

.status-realised,
.email-status-bounced {
    color: purple;
}

.status-cancelled,
.ideal-status-cancelled,
.ideal-status-failure,
.ideal-status-failed,
.ideal-status-expired,
.ideal-status-timeout,
.journal-status-cancelled,
.journal-status-unsubscribed,
.email-status-blocked {
    color: red;
}

.status-pending,
.status-opened,
.ideal-status-new,
.journal-status-pending-accval,
.journal-status-pending-payment {
    color: blue;
}

.ideal-status-mismatch {
    color: orange;
    font-weight: bold;
}

.ideal-status-refund_pending {
    color: darkorange;
    font-weight: bold;
}

.ideal-status-refunded {
    color: fuchsia;
    font-weight: bold;
}

.btn.btn-mark-refunded {
    background-color: fuchsia;
    background-image: none;
    border-color: #cc00cc;
    color: #ffffff;
    text-shadow: none;
}

.btn.btn-mark-refunded:hover {
    background-color: #cc00cc;
    border-color: #990099;
    color: #ffffff;
}

.email-status-unsent {
    color: #ccc;
    font-style: italic;
}

.inputs-list label {
    /* shrink-wrap bootstrap's labels to minimize the hit area */
    display: inline-block!important;
    white-space: nowrap;
}

.cancelled-savingsplan {
    color: red;
}

.cancelled-savingsplan td {
    font-style: italic;
}

#cancel-savingsplan {
    float: right;
}

.topbar .nav ul.dropdown-menu li a img.icon {
    -webkit-filter: grayscale(40%);
    opacity: .7;
}

.topbar .nav ul.dropdown-menu li a span:not(.count-container) {
    display: inline-block;
    width: 56px;
    text-align: right;
    margin-left: 10px;
}

#sounds-status, #notification-status {
    background: #eee;
    position: absolute;
    padding: 20px 40px;
    width: 200px;
    top: 53px;
    right: 47px;
    border-radius: 10px;
    display: none;
    font-weight: bold;
}

#sounds-status::after, #notification-status::after {
    content: "";
    position: absolute;
    top: -15px;
    right: 50px;
    border-width: 0 15px 15px 15px;
    border-style: solid;
    border-color: #eee transparent;
    display: block;
    width: 0;
}



.turnover-report-table th,
.turnover-report-table td {
    width: 15%;
}

.right-align {
    text-align: right;
}
tr.total td {
    border-top-width: 3px;
    font-weight: bold;
}

tr.target td {
    font-size: 12px;
    font-style: italic;
}

div.google-visualization-tooltip {
    background-color: #e7ddaf;
}

.report-box {
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background: #eee;
    margin-bottom: 10px;
    padding: 5px;
}

.report-box h2 {
    background: #ddd;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding-left: 5px;
}

h2.period {
    cursor: pointer;
}

.period-total {
    float: right;
    font-size: 13px;
    color: #555;
    padding-right: 10px;
}
tr.location-header td {
    background: #555;
    color: white;
}

#statsgraph table {
    width: auto;
}

#statsgraph table td {
    padding: 2px;
    background: transparent;
    border: 0;
}

#statsgraph_tooltip {
    position: absolute;
    background: rgba(200, 200, 200, 0.9);
    border: 1px solid #000;
    border-radius: 5px;
    padding: 2px 5px;
}

#order-table td{
    font-size: 11px;
}

#statsgraph_tooltip {
    display: none;
}

ul.dropdown-menu li:last-child.divider,
ul.dropdown-menu li:first-child.divider,
ul.dropdown-menu li.divider + li.divider {
    display: none;
}

.account-toggle {
    border: 1px solid #ddd;
    margin: 4px 4px 14px 0;
    border-radius: 3px;
    box-shadow: 1px 1px 2px #ccc;
}

.account-toggle h3:first-child {
    padding-left: 5px;
}

.account-toggle h3:first-child img {
    cursor: pointer;
    vertical-align: -1px;
}

.account-toggle-wrapper {
    display: none;
}

.account-toggle-wrapper table.condensed-table {
    margin-bottom: 0;
}

.account-toggle-wrapper .account-toggle-subheader {
    background-color: #eee;
    padding: 3px;
    font-size: 12px;
    margin: 0;
    line-height: 18px;
}

.account-toggle-wrapper table {
    margin-bottom: 0;
}

.account-toggle h3 img {
    margin-right: 3px;
}

#bars tr.deleted td,
#bars tr.deleted td a,
tr.light td {
    color: #999;
    font-style: italic;
}

#bars tr.deleted td a {
    text-decoration: underline;
}

tr.row-error td,
tr.row-error td label {
    color: red;
    font-weight: bold;
}

:checked + span.tag {
    color: #f00;
}

label.tag-wrapper {
    width: auto;
    margin-left: 20px;
    text-align: left;
}

label.tag-wrapper input[type="checkbox"] {
    vertical-align: -3px;
}

.label.sector {
    background-color: #111;
    color: #fff;
}

.label.sector:before {
    content: url('/img/icons/building.png');
    padding: 3px;
}

.label.rors {
    background-color: #FF69B4;
}

.label.rors:before {
    content: '♥ ';
    color: white;
}

.label.rors:after {
    content: ' ♥';
    color: white;
}

.topbar .nav ul.dropdown-menu,
.topbar .nav ul.dropdown-menu li,
.topbar .nav ul.dropdown-menu li a,
.nav.secondary-nav ul.dropdown-menu,
.nav.secondary-nav ul.dropdown-menu li,
.nav.secondary-nav .dropdown-menu li a {
    min-width: 160px;
    overflow: hidden;
    background-color: white;
    text-shadow: none;
    color: #333;
}

.nav.secondary-nav ul.dropdown-menu,
.nav.secondary-nav ul.dropdown-menu li,
.nav.secondary-nav .dropdown-menu li a {
    max-width: 500px;
}

.topbar div>ul .dropdown-menu .divider,
.nav .dropdown-menu .divider {
    border-color: #ccc;
}

.nav.secondary-nav .dropdown-menu li a {
    text-overflow: ellipsis;
}

.dropdown-menu li a {
    white-space: nowrap;
}

.account-page-header {
    padding-top: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-page-header-managed {
    background-color: #efffec;
    padding-left: 10px;
}

.account-page-header-blocked {
    background-color: #ffe2e2;
    border: 1px solid #f00;
    padding-left: 10px;
}

.account-page-header-partially-blocked {
    background-color: #ffecda;
    border: 1px solid #ff9d03;
    padding-left: 10px;
}

.account-page-header-not-validated {
    background-color: #faebff;
    padding-left: 10px;
}

.light-grey {
    color: #aaa;
}

/* Styles for Exact reference info */
.exact-reference {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    opacity: .4;
    cursor: help;
}

.exact-reference:hover {
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
    opacity: 1;
}

.tabs .dropdown-menu .active>a {
    border: 0;
    color: #000;
    background: #eee;
}

.input-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.input-list label {
    float: none;
    text-align: left;
    margin-left: 5px;
}

/* Styles for different TD background colours for different currencies, and other stuff */
.table-row-highlight td,
.table-row-EUR td {
    background: #e7feff;
}

.table-row-USD td,
.table-row-error td,
.highlighted-cell {
    background: #ffeeee;
}

/* Styles for case info */
.case-table {
    border: 1px solid #ddd;
}

.case-table .count {
    border-left: 1px solid #ddd;
    text-align: center;
    padding: 0;
}

.case-table .count a {
    display: block;
    padding: 5px;
    background-color: #eee;
    font-weight: bold;
}

.case-table .count a:hover {
    text-decoration: none;
}

/** Note information styles */
table.note-info {
    margin-bottom: 0;
}

table.note-info th,
table.note-info td {
    font-size: 0.8em;
    white-space: nowrap;
    padding: 2px;
}

table.note-info th {
    border: none;
}

label.inline {
    display: inline;
    float: none;
    text-align: left;
}

.ui-autocomplete {
    z-index: 10001!important;
}

.topbar .nav ul.dropdown-menu,
.topbar .nav ul.dropdown-menu li,
.topbar .nav ul.dropdown-menu li a,
.nav.secondary-nav ul.dropdown-menu,
.nav.secondary-nav ul.dropdown-menu li,
.nav.secondary-nav .dropdown-menu li a {
    overflow: visible;
}

.dropdown-menu li {
    position: relative;
}

.topbar .nav ul.dropdown-menu li a {
    cursor: pointer;
}

.topbar .nav ul.dropdown-menu li:hover,
.topbar .nav ul.dropdown-menu li:hover > a {
    background-color: #000;
    color: #fff;
}

.topbar .nav ul.dropdown-menu li.divider:hover {
    background-color: white;
}

.dropdown-menu .sub-menu {
    left: 100%;
    position: absolute;
    top: -10000px;
    margin-top: -1px;
    background-color: #000;
    border-top: 1px solid #999;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-left: 0;
    border-radius: 0 6px 6px 0;
    overflow: visible;
}

.dropdown-menu .sub-menu:before {
    position: absolute;
    content: " ";
    left: -18px;
    top: 10008px;
    border: 6px solid #000;
    border-color: transparent transparent transparent #000;
}

.dropdown-menu li:hover .sub-menu {
    top: 0;
    display: block;
}

.dropdown-menu li:hover .sub-menu:before {
    border-color: transparent transparent transparent #fff;
    top: 8px;
}

/** extra pnotify styles */
.nemo-pnotify {
    z-index: 10002!important;
    opacity: 0.85;
}

.nemo-pnotify .ui-pnotify-text {
    max-height: 300px;
    overflow: auto;
}

.nemo-pnotify .ui-widget {
    padding-right: 0;
}

h4.ui-pnotify-title {
    font-size: 14px;
    line-height: normal;
}

.ui-pnotify .ui-widget,
.ui-pnotify .ui-widget h4 {
    background: #d9edf7;
    border-color: #bce8f1;
    color: #31708f;
}

.ui-pnotify .ui-widget.ui-state-default,
.ui-pnotify .ui-widget.ui-state-default h4 {
    background: #dff0d8;
    border-color: #d6e9c6;
    color: #468847;
}

.ui-pnotify .ui-widget.ui-state-error,
.ui-pnotify .ui-widget.ui-state-error h4 {
    background: #f2dede;
    border-color: #eed3d7;
    color: #b94a48;
}

.ui-pnotify .ui-pnotify-shadow {
    -webkit-box-shadow: 2px 2px 4px 0 rgba(180, 180, 180, 0.75);
    -moz-box-shadow:    2px 2px 4px 0 rgba(180, 180, 180, 0.75);
    box-shadow:         2px 2px 4px 0 rgba(180, 180, 180, 0.75);
}

.ui-pnotify-text {
    font-size: 11px;
}

.ui-pnotify-text li {
    margin: 2px 0;
}

/* stack-bottomright */

.nemo-pnotify.stack-bottomright {
    bottom:0 !important;
    right: 0!important;
    width:380px !important;
}

.nemo-pnotify.stack-bottomright .ui-pnotify-text {
    max-height: 0px;
    height: 100%;
    overflow-x: scroll;
    transition: max-height 0.15s ease-out;
}

.stack-bottomright h4.ui-pnotify-title {
    padding: 10px 0 0 4px;
}

.stack-bottomright h4.ui-pnotify-title.active {
    padding: 10px 0 10px 4px;
}

.stack-bottomright h4.ui-pnotify-title:hover {
    cursor: pointer;
}

.stack-bottomright h4.ui-pnotify-title.active:after {
    content: " ▾";
    font-size: 18px;
}

.stack-bottomright h4.ui-pnotify-title:not(.active ):after {
    content: " ▴";
    font-size: 18px;
}

.stack-bottomright .ui-pnotify .ui-widget h4.active {
    border-bottom: 1px solid;
}

/********************
 Selectize
********************/
.selectize-input {
    padding: 4px!important;
    height: 27px!important;
}

.selectize-control.single .selectize-input,
.selectize-control.single .selectize-input input {
    width: 220px;
    color: #808080;
}

.selectize-control.single .selectize-input:after {
    right: 4px!important;
}

.selectize-control {
    min-width: 220px;
    display: inline-block;
}

.btn {
    vertical-align: top;
}


.page-header h1 {
    overflow: hidden;
    text-overflow: ellipsis;
}

.searchword {
    background: aqua;
    font-style: normal;
}

.no-results {
    background-color: pink!important;
}


/* changerequests */

.change_note {
    font-size:7pt;
    color:#550000;
}


/** Bar Selectors **/

#bar_order_fields {
    display: none;
    margin-bottom: 20px;
    overflow: hidden;
}

#order_form .barlist-wrapper {
    float: left;
    margin-right: 10px;
    text-align: center;
}

.barlist-wrapper .reserve-bars-sell {
    display: none;
}

#order_form .barlist {
    text-align: left;
    overflow: auto;
    overflow-y: scroll;
    height: 370px;
    width: 239px;
    padding: 5px;
    background: #ededed;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
}

.barlist .bar {
    background: #ddd;
    border: 1px solid #ccc;
    padding: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.barlist .bar small em span {
    font-size: 10px;
}

.barlist .bar .move_button {
    float: right;
    cursor: pointer;
    font-size: 2em;
}

.barlist .bar .select-this-bar {
    margin-right: 0;
}

.barlist .bar .deselect-this-bar {
    float: left;
    display: none;
    margin-right: 8px;
}

.barlist .text {
    float: left;
    width: 150px;
}

.intl-tel-input input,
.intl-tel-input input[type=text],
.intl-tel-input input[type=tel] {
    padding: 4px 2px 4px 44px;
    width: 220px;
    height: auto;
}

.topbar {
    backface-visibility: hidden;
}


label.normal {
    float: none;
}


tr.sub-rule td:first-child {
    padding-left: 30px;
}

tr.sub-rule td:last-child {
    padding-right: 30px;
}

tr.sub-rule td {
    color: #999;
    font-style: italic;
}

.logout-button {
    border: none!important;
    color: #333!important;
    padding-left: 15px!important;
    width: 300px!important;
    box-shadow: none!important;
    text-align: left!important;
}

table.table-fixed {
    table-layout: fixed;
}

/* BEGIN announcements and attachments */

.announcement {
    position: relative;
    overflow: hidden;
    padding: 1rem 1.25rem;
    border: 1px solid #d9534f;
    border-radius: 0.25rem;
}

.announcement h6, .announcement .h6 {
    font-size: 1rem;
    text-transform: none;
}

.announcement h1, .announcement h2, .announcement h3, .announcement h4, .announcement h5, .announcement h6, .announcement .h1, .announcement .h2, .announcement .h3, .announcement .h4, .announcement .h5, .announcement .h6 {
    font-family: "FoundationSansLight", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: normal;
    line-height: 1.1;
}

.announcement__summary {
    font-family: "FoundationSansRoman", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    color: #373a3c;
    margin-top: 0.5rem;
}

.announcement[data-href] {
    cursor: pointer;
}

.announcement__icon {
    position: absolute;
    width: 1.5rem;
}

.announcement__body {
    margin-left: 2.75rem;
}

.announcement__header {
    margin-bottom: 0.5rem;
    color: #0083ee;
    font-family: inherit;
}

.announcement__creation-date {
    color: #818a91;
    font-size: 80%;
}

.announcement__detail {
    margin: 0 -1.25rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #d9534f;
    background-color: #ffdada;
}

.announcement__detail + .announcement__detail {
    margin-top: 0;
}

.announcement__detail:last-child {
    margin-bottom: -1.25rem;
}

.announcement__detail a {
    color: #c9302c;
}

.announcement__detail a:hover {
    color: #761c19;
}

.announcement + .announcement {
    margin-top: 1.25rem;
}

.announcement--soft {
    border: none;
}

.announcement--soft .announcement__detail {
    background: none;
    border: none;
    margin-left: 1.4rem;
    margin-top: -1rem;
}

.attachment {
    border: 1px solid #D8D8D8;
    border-radius: 0.25rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    position: relative;
}

.attachment__link {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.attachment__heading {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -webkit-align-self: center;
    -ms-flex-item-align: center;
    -ms-grid-row-align: center;
    align-self: center;
}

.attachment__heading h4 {
    margin-bottom: 0;
}

.attachment__close {
    position: absolute;
    top: 0;
    right: 0;
    -webkit-transform: translate(50%, -50%);
    -ms-transform: translate(50%, -50%);
    transform: translate(50%, -50%);
    border: none;
}

.attachment__creation-date {
    color: #818a91;
    font-size: 80%;
}

.attachment__icon {
    height: auto;
    margin-top: 5px;
}

/* END announcements and attachments */

.rec-table td {
    vertical-align: middle;
}


.risk-cat-0 {
    background-color: lightgray;
}

.risk-cat-1 {
    background-color: #dff0d8;
}

.risk-cat-2 {
    background-color: #ffdf9e;
}

.risk-cat-3 {
    background-color: #f2dede;
}


/* Style for the total payment table */
.total-payments {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

/* Style for table header */
.total-payments th {
    /*background-color:  #ddd;*/
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

/* Style for table data */
.total-payments td {
    border: 1px solid white;
    padding: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    width: calc(100% / 3); /* Equal width for all columns */
}

/* Style for currency columns */
.total-payments td:first-child {
    background-color: #c3a461;
    color: #ffffff;
}

.total-payments td:nth-child(2) {
    background-color: #ddd;
    color: #404040;
}

.total-payments td:nth-child(3) {
    background-color: #404040;
    color: #ffffff;
}

table.sorting-filters {
    width: 30%;
    float: right;
}

table.sorting-filters a {
    color: #404040;
}

/* IBAN Flags */
.check_message_valid, .check_message_valid-suggestion, .bank_validation_status_valid, .bank_validation_status_valid-suggestion {
    background-color: #46a546;
}
.check_message_not-valid, .bank_validation_status_ongoing, .bank_validation_status_not-valid {
    background-color:#f89406;
}
.check_message_not-checked, .bank_validation_status_pending, .bank_validation_status_not_checked {
    background-color:grey;
}
.check_message_failed, .bank_validation_status_not_validated,
.check_message_failed, .bank_validation_status_insufficient_funds,
.check_message_failed, .bank_validation_status_cancelled,
.check_message_failed, .bank_validation_status_failed,
.check_message_failed, .bank_validation_status_blocked,
.check_message_failed, .bank_validation_status_rejected{
    background-color: red;
}

.pinned-note {
    background: #FB923C;
}

.pinned-note-tag {
    bottom: 10px;
    right: 10px;
    background-color: #e85d04;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

.affiliate-deposit-reject-all {
    float: right;
    margin-top: 10px;
    margin-bottom: 10px;
}
.affiliate-deposit-authorise-all {
    float: left;
    margin-top: 10px;
    margin-bottom: 10px;
}
