body {
    padding-top: 60px;
    padding-bottom: 40px;
}

#overlay {
    background: rgba(105, 105, 105, 0.5);
    width: 100%;
    height: 100%;
    z-index:101;
    position: absolute;
    top:0;
    left:0;
}
.reldiv {
    position: relative;
    height: 100%;
}
.overlay-spinner {
    position: absolute;
    width:100%;
    top: 50%;
    color: #fff;
}

.zf-green {
    color: #68b604;
}

.main-content {
    padding-left: 15px;
    padding-right: 15px
}

div.container a.brand {
    background: url("../img/zf2-logo.png") no-repeat scroll 0 10px transparent;
    margin-left: 0;
    padding: 8px 20px 12px 40px;
}

.login-form {
    max-width: 300px;
    margin: 0 auto;
}
.login-form button {
    margin-top: 10px;
}
.modal-heading-table {

    margin-bottom: 20px;
}
.modal-heading-table tr td:nth-of-type(2) {
    padding-left: 10px;
    font-weight: bold;
}
.modal-on-click {
    cursor: pointer;
}

.form-required-mark {
    padding-left: 5px;
    color: #d44f4f;
}

/* ----- Domains page ----- */
.table-domains td, .table-domain-tickets td, .table-tickets td:not(.domain-name),
.table-domain-closed-tickets td, .table-links td {
    cursor: pointer;
}
.table-domains .domain-link {
    color: #000;
    cursor: pointer !important;
    border-bottom: 1px dotted #000;
}
.table-domains td.registrar {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.badge.ticket-prio1 {
    background-color: #65b9ff !important;
}
.badge.ticket-prio2 {
    background-color: #8ef145 !important;
}
.badge.ticket-prio3 {
    background-color: #f4db42 !important;
}
.badge.ticket-prio4 {
    background-color: #f4a55a !important;
}
.badge.ticket-prio5 {
    background-color: #fb7559 !important;
}
div.dataTables_wrapper div.col-sm-12 div.dataTables_filter {
    text-align: left;
}
.table-domains tr.marked td, .table-tickets tr.marked td{
    background-color: #ffffd5;
}

#add-domains-to-wg-modal textarea[name="domains"] {
    margin-top: 10px;
    resize: vertical;
    margin-bottom: 10px;
}

/*
.badge.ticket-unassigned {
    background-color: #efb8d2 !important;
}
.table-domain-tickets .ticket-unassigned {
    color: #c994ac;
}
*/



/* ----- Tickets page ----- */

.ticket-form:not(.edit-ticket-form) .form-control:not(:first-child), .domain-form .form-control:not(:first-child):not(.btn-submit), .account-form .form-control:not(:first-child) {
    margin-top: 10px;
}
.ticket-form .btn-submit, .domain-form .btn-submit, .domain-form .btn-add-account, .edit-domain-form .btn-add-account, .account-form .btn-submit, .link-form .btn-submit {
    width: auto;
}
.edit-ticket-form textarea {
    resize: vertical;
}
tr.ticket-prio1 td {
    background-color: #b2ebff !important;
}
tr.ticket-prio2 td {
    background-color: #cdf1ad !important;
}
tr.ticket-prio3 td {
    background-color: #fdf6ab !important;
}
tr.ticket-prio4 td {
    background-color: #fecb94 !important;
}
tr.ticket-prio5 td {
    background-color: #fbb09f !important;
}

.table-tickets .domain-link {
    color: #000;
    cursor: pointer !important;
    border-bottom: 1px dotted #000;
}
.delete-ticket-comment {
    cursor: pointer;
}

.table-tickets .domain-link:hover {
    color: #337ab7;
    text-decoration: none;
}

.nowrap {
    white-space: nowrap;
}

.triggered_spam_flags_td {
    width: 40%;
}

.spam_flags_ul {
    padding-left: 16px;
}

.tickets-xs-space {
    height: 10px;
}

.table-hr {
    margin-top: 5px;
    margin-bottom: 5px;
}
.table-tickets-xs {
    width: 100%;
}
.ticket-prio-xs {
    float: left !important;
}
.table-tickets-xs tr.even > td {
    background: #f6f6f6;
}

.table-tickets-xs .btn-info {
    width: 48%;
    margin-bottom: 5px;
}

.table-tickets-xs .btn-success {
    width: 50%;
    margin-bottom: 5px;
}

#edit-ticket-tab {
    padding-top: 10px;
}
#edit-ticket-tab .update-anchor, #edit-ticket-tab .delete-link{
    margin-bottom: 10px;
}

.ticket-xs-comment {
    margin: 5px 0px;
}
td.icon {
    padding: 2px !important;
    color: #337ab7;
}
.modal-heading-table .domain-ext-link {
    margin-left: 10px;
}

.user-modal {
    font-size: 14pt;
}

.ticket-history-table td.text-content {
    max-width: 180px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

div.dataTables_wrapper div.col-sm-12 div.dataTables_filter {
    text-align: left;
    margin-top: 15px;
}

/* ------- Logs page ------- */
.table-cron-errors td {
    cursor: pointer;
}

/* -------- Organization page ------- */
.table-work-groups .edit-icon {
    padding-left: 10px;
    color: #337ab7;
    cursor: pointer;
}

.sortable {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 60%;
}
.sortable li {
    margin: 0 3px 3px 3px;
    padding: 0.4em;
    padding-left: 1.5em;
    font-size: 1.4em;
    border: 1px solid #666;
    background-color: #efefef;
    cursor: move;
}
.sortable li .edit-icon {
    color: #337ab7;
    cursor: pointer;
}

table.dashboard {
    font-size: 12px;
}
table.dashboard thead th {
    position: sticky;
    top: 50px;
    background-color: #fff;
}
table.dashboard th, table.dashboard td > div {
    padding: 2px;
}
table.dashboard td.data-point, table.dashboard td.note-icon, table.dashboard td.domain-type {
    text-align: center;
}
table.dashboard td.domain-type {
    font-size: 18px;
    font-weight: bold;
}
table.dashboard td.domain-type.type-mains {
    color: #68b604;
}
table.dashboard th.domain-name {
    font-size: 14px;
}
table.dashboard th.data-point-name {
    padding-left: 15px;
}
table.dashboard th.data-point-name, table.dashboard td.data-point {
    border-bottom: 1px solid #ccc;
}
table.dashboard th.data-point-name.last-for-domain, table.dashboard td.data-point.last-for-domain {
    border-bottom: 1px solid #222;
}
table.dashboard td.data-point > div.better {
    background-color: #68b604;
    color: #fff;
}
table.dashboard td.data-point > div.worse {
    background-color: #d44f4f;
    color: #fff;
}

table.dashboard td .notes {
    cursor: pointer;
}

#dashboard-notes-modal .note {
    margin-bottom: 12px;
}
#dashboard-notes-modal .note:last-of-type {
    padding-bottom: 12px;
    border-bottom: 1px solid #222;
}
#dashboard-notes-modal .note .note-header {
    display: flex;
    justify-content: space-between;
}
#dashboard-notes-modal .note .created-at {
    font-style: italic;
    font-size: 12px;
}
#dashboard-notes-modal .note .text {
    border: 1px solid #ccc;
    padding: 4px;
}