/* based on code from
 * http://bootsnipp.com/snippets/featured/panels-with-nav-tabs
 */

.field-add-company {
    display:flex;
    align-content:center;
    justify-content:space-between;
    align-items:center;
}

.panel.with-nav-tabs .panel-heading {
    padding: 5px 5px 0 5px;
}

.panel.with-nav-tabs .nav-tabs {
    border-bottom: none;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* breadcrumb separator */
.breadcrumb > li + li:before {
  padding: 0 5px;
  /*color: #ccc;*/
  content:">"
  /* content: "\25b9\00a0"; */
  /* ▹ / 0x 25B9 → */
}

.permission-table .permission-name {
    text-align: center;
    font-weight: bold;
}
.owner-marks {
    text-align: center;
    font-weight: bold;
}


.permission-table h4 {
    padding-left: 1em;
}

.permission-table .company-name {
    padding-left: 1em;
    font-weight: bold;
}
.permission-table .user-name {
    padding-left: 3em;
    font-weight: normal;
}
.permission-table .permission-granted {
    text-align: center;
}
.permission-table .permission-edit {
    text-align: center;
    padding: 0.5em;
}
.permission-table .permission-missing {
}
/*.navbar-inverse {*/
  /*background-image: linear-gradient(#000, #444 90%,#800);*/
/*}*/

table td.time,
table th.time,
table td.almost-time {
    text-align: right;
}

#filterPersonToTender select.django-select2 {
    margin-left: 1em;
    width: 80%;
}

#tender-create-participant select.django-select2,
#addPersonToTender select.django-select2,
#company-edit-form select.django-select2 ,
#create-company select.django-select2 {
    margin-left: 1em;
    width: 90%;
    vertical-align: middle;
}

.tender-notification-title {
    margin-bottom: 1em;
}

.import-filter {
    margin-right: 5px;
}

img.projectImage {
    max-height: 8em;
}

.required label.control-label {
    font-weight: bold;
}
.required label.control-label:after {
    content: " *";
    color: mediumvioletred;
    text-align: left;
}

label.control-label {
    font-weight: normal;
}

#load-more-btn {
    display: none;
    align-self: center;
}

.load-more-container {
    display: flex;
    justify-content: center;
}

#hijacked-warning {
    padding: 5px;
}

tr:first-child .offer-notes-wrapper {
    position: relative;
    top: -1px;
}

.offer-notes-wrapper {
    align-items: baseline;
    display: flex;
    gap: 5px;
    justify-content: space-between;
    white-space: nowrap;
}

#bid-notes-modal textarea {
    resize: vertical;
}

table.tablesorter th:hover {
    background-color: lightblue;
}

/* table sorter */
th.headerSortUp:after {
    font-family: FontAwesome;
    content: " \f077";
}
th.headerSortDown:after {
    content: " \f078";
    font-family: FontAwesome;
}

.form-group:has(#id_phone_0) label {
    display: block;
}
select#id_phone_0 {
    width: 49%;
    display: inline;
    float:left;
}
input#id_phone_1 {
    width: 49%;
    display: inline;
    float:right;
}

/* margin after form searching a panel */
form.searching-panel {
    margin-bottom: 10px;
}

#select-all-button {
    margin-top: -15px;
    margin-bottom: 15px;
}

dd.textfield, td.textfield {
    white-space: pre-wrap;
}

img.flag {
    margin-right: 1ex;
}

.lang.dropdown .btn-primary,
.lang.dropdown .btn-primary.focus,
.lang.dropdown .btn-primary:active,
.lang.dropdown .btn-primary.focus,
.lang.dropdown .btn-primary:hover
{
    color: #337ab7;
    background-color: transparent;
    border-color: transparent;
}

.question-list .notify-date {
    float: right;
    color: #808080;
    font-size: 80%
}

.question-list .unanswered  {
    background-color: #fff;
    font-weight: bold;
}

.question-list .answered  {
    background-color: #f5f5f5;
}

tr.tender-question td div {
    display: flex;
    gap: 0.25rem;
}

tr.tender-question td a {
    display: inline-block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-controls {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.btn-detail {
    margin-right: 5px;
}

.combobox {
    position: relative;
    width: 100%;
    font-weight: normal;
}

.combobox input {
    height: 34px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    width: 100%;
}

.combobox input:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.combobox ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 150px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 1000;
    min-width: 369px;
    width: fit-content;
}

#additional-filter-modal .combobox ul {
    width: 100%;
}

.additional-filter-modal hr, .additional-filter-modal h4 {
    margin-top: 0;
    margin-bottom: 0;
}

.additional-filter-modal .modal-dialog  {
    width: 800px;
    max-width: 90%;
}

.additional-filter-modal label {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.combobox ul.align-right {
  left: auto;
  right: 0;
}

.combobox ul li {
    padding: 8px;
    cursor: pointer;
    width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.combobox ul li:hover {
    background: #eee;
}

.hidden {
    display: none;
}

.company-title {
    width: fit-content;
    margin: 7px 0 0 0;
}

.filter-preview tbody tr td p {
    margin: 0;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    @media (max-width: 575px) {
        grid-template-columns: 1fr;
    }
}

.filter-container {
    display: flex;
    justify-content: space-between;
    justify-items: center;
}

.filter-panel-heading {
    border-radius: 4px;
    height: 102px;
    width: 100%;
}

.table-list {
    table-layout: fixed;
    border: 1px solid #cccccc;
}
.table-list .row-headings th {
    font-size: 13px;
    border: 0;
    padding-bottom: 0;
}
.table-list .row-headings th div {
    display: flex;
}
.sort-button {
    color: black;
    border: 0;
    background: transparent;
}
.sort-button :hover {
    color: #333333;
}
.table-list .row-filters th {
    border-top: 0;
    padding-top: 0;
}
.inline-block {
    display: flex;
    gap: 5px;
}
.question-list li.empty  {
    font-style: italic;
}

.modal-header .close {
    margin-top: 3px;
}

.notify-drop {
    min-width: 20em;
    height: 100%;
    padding-top: 0.5em;
    border-bottom-color: #cccccc;
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

.saved-filter {
    display: flex;
    padding: 0 7px 0 7px;
    overflow-wrap: anywhere;
    min-height: 102px;
    height: fit-content;
    transition: height 0.2s ease;
}

.expanded {
    min-height: 100%;
}

.saved-filter .panel {
    width: 100%;
    min-height: 102px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.saved-filter hr {
    margin-top: 0;
}

.saved-filter .panel .panel-title {
    padding: 15px;
}

.saved-filter .panel-buttons {
    display: flex;
    padding: 10px;
    position: absolute;
    top: 60px;
    left: 110px;
}

.saved-filter ul {
    padding: 0 10px 10px 40px;
    width: 100%;
}

/* logout button
 *  see https://docs.djangoproject.com/en/4.1/releases/4.1/#features-deprecated-in-4-1 */

#logout-form {
  display: inline;
  padding: 0;
}
#logout-form button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
/* add hover to logout form
 */
#logout-form:hover  {
    background-color: #f5f5f5;
}

#company_edit_form_alerts {
    position: sticky;
    top: 15px;
    z-index: 99;
}

#reset-filters {
    width: 100%;
    white-space: wrap;
    word-wrap: normal;
}

.answer-text {
    overflow-wrap: anywhere;
}

@media (max-width: 575px) {
    #ares_buttons {
        display: block;
        float: left;
        margin-top: 5px;
    }

    #id_billing_business_id {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    #ares_load_btn {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }
}

.edit-participant-buttons {
    display: flex;
    gap: 5px;
}

.dashboard-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-body::before {
    display: none;
}

.dashboard-body::after {
    display: none;
}

.dashboard-body p {
    margin: 0;
}

.dashboard-body hr {
    margin: 0;
    width: 100%;
}

.answer-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 30px;
}

.answer-panel {
    flex-grow: 1;
    flex-basis: 0;
}

.answer-panel .panel {
    margin-bottom: 0;
    height: 100%;
}

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