html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin:0;
  margin-bottom: 60px;
}

button {
    cursor: pointer;
}

.btn{
    cursor:pointer;
}


/*--------------------------------------------------------------DATATABLES----------------------------------------------------------------------------------*/
/* Style for the icon button */
.btn-icon {
    width: 50px !important;
    height: 30px !important;
    padding: 6px 0 !important;
    border-radius: 4px !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 1.42857 !important;
    background-color: #f8f9fa !important;
    border: 1px solid #ddd !important;
}

.dt-column-title{
    display:block;
    text-align:left;
}
/* Top container layout */
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}
.float-left {
    display:inline-block;
    float: left;
}

.float-right {
    display:inline-block;
    float: right;
}

/* To ensure the button is on the right side of search */
.dataTables_filter {
    order: 1;
}

.dt-buttons {
    order: 2;
    margin-left: 10px;
}

/*--------------------------------------------------------------NAVBAR--------------------------------------------------------------------------------------*/

.navbar {
    background-color: #d0ceca;
    overflow: visible;
    margin-bottom: 20px;
    position:relative;
    display:flex;
}
.culture-container {
    display: flex;
    gap:10px;
    align-self:center;
    margin-left:auto;
    margin-right:20px;
}

    .navbar a {
        font-size:18px;
        float: left;
        display: block;
        color: white;
        text-align: center;
        padding: 20px 24px;
        text-decoration: none;
    }

        .navbar a:hover {
            background-color: #ddd;
            color: black;
        }

.dropdown {
    position: relative; /* Make the dropdown container relative */
    display: inline-block;
}

.dropbtn {
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
}


.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%; /* Position the dropdown below the parent */
    left: 0; /* Align the dropdown with the left edge of the parent */
    overflow:hidden;
    float:left;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width:100%;
    float:left;
    text-align:left;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.language-button {
    background: none; 
    border: none; 
    padding: 0; 
    font: inherit; 
    color: white; 
    font-weight:bold;
    font-size:18px;
    cursor: pointer; 
    text-decoration: underline; 
}


/*-----------------------------------------------------------PARTICIPANTS-----------------------------------------------------------------------------------*/

.page-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items:center;
}

.content-container{
    width:95%;
}



.type-select-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right:20px;
    margin-bottom:1.5rem;
}

.participant-search-container {

    margin-left:20px;
}

.type-select-container select {
    margin-left: 50px;
    border-radius: 10px;
    height: 40px;
    width: 50rem;
}


#banking_table_container {
    height: 50vh;
    width: 100%;
    margin-bottom: 5rem;
    overflow-y: auto;
    border-radius: 10px;
    border: solid 1px black;
}

::-webkit-scrollbar {
    width: 0;
}

#banking_table {
    max-height: 100%;
    height: 100%;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    display: table;
    overflow-y: auto;
    margin-bottom: 0;
}


th {
    height: fit-content;
}


tr {
    height: 40px;
    min-height: 40px;
    cursor: pointer;
}



#banking_table a {
    color: black;
    text-decoration: none;
}

thead tr {
    background-color: #d0ceca;
    position: sticky;
    top: 0;
}


table td, table th {
    border: 1px solid black;
}


/*
#banking_table tr :first-child {
    width: 15rem;
}

#banking_table tr :nth-child(4) {
    width: 20rem;
}
    */

.col1, .col4 {
    width: 10%;
}

.col2, .col3 {
    width: 25%;
}

.col5 {
    width: 30%
}

.banking-information-container {
    display: flex;
    flex-direction: column;
    margin-top:5rem;
}



    .banking-information-container label {
        display: inline-block;
        width: 100px;
    }

    .banking-information-container p {
        display: inline-block;
        width: 100px;
        font-weight: bold;
    }

    .banking-information-container input {
        margin-left: 40px;
        border-radius: 5px;
        margin-bottom: 15px;
        width: 50rem;
        height: 3rem;
    }

.priorities {
    width: 20vw;
    display: flex;
    justify-content: space-between;
}

#bank_label {
    width: 3rem;
}

#banking_information_label {
    font-weight: bold;
    font-size: x-large;
    width: fit-content;
}



#PriorityPayer, #PriorityRecipient {
    width: 3rem;
    height: 3rem;
    font-size: large;
    text-align: center;
}

.as-payer-label, .as-recipient-label {
    margin-left: 40px;
    font-weight: lighter;
    width: fit-content;
}

#banking_information {
    width: 10rem;
    margin-left: 60px;
    background-color: rgba(0,0,0,0.1);
}

#BankId {
    width: 5rem;
    height: 3rem;
    border-radius: 5px;
    margin-left: 40px;
    margin-bottom: 15px;
}

#ShopId {
    width: 10rem;
    height: 3rem;
    border-radius: 5px;
    margin-left: 40px;
    margin-bottom: 15px;
}



.table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th {
    background-color: #bed4e7ab;
}

.dotted {
    border-top: 3px dotted gray;
    margin:0;

}

.disabled {
    background-color: dimgrey;
    pointer-events: none;
}

#submit_banking_info, #save_login_info {
    width: 6rem;
    margin-left: 0px;
}

.validation-summary-errors li {
    color: darkred;
}

.banking-information-container .cabinet-info-input{
    width: 250px;
    height: 20px;
}



/*-------------------------------------------------------------EVENTS---------------------------------------------------------------------------------*/
.event-page-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-content-container {
    width: 95%;
  
}


.event-select-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

#events{
    margin-left:40px;
    width:8rem;
    height: 2rem;
    border-radius:10px

}

#selected_event_name{
    margin-left:10px;
}

.event-col1 {
    width: 15%;
}

.event-col2 {
    width: 30%;
}

.event-col3 {
    width: 25%;
}

.event-col4, event-col5, event-col6 {
    width: 10%;
}
.transaction-sides-container{
    display:flex;
    flex-direction:column;
    margin-top:20px;
}
.add-article-sides-container{
    margin-left:auto;
    margin-right:auto;
    width:95%;
    display:flex;
    justify-content:space-between;
}

#articles{
    width:8rem;
    height:3rem;
    border-radius:10px;
    box-sizing:border-box;
}

#article_name{
    margin-left:20px;
    width:20rem;
    height:3rem;
    border-radius:10px;
    box-sizing:border-box;
}

.article-type-input {
    width: 15rem;
    height: 3rem;
    border-radius: 10px;
    box-sizing: border-box;
}

#Priority {
    width: 8rem;
    height: 3rem;
    border-radius: 10px;
    box-sizing: border-box;
}


#Transaction_sides{
 justify-self:center;
 align-self:center;
}

.transaction-sides-content{
    display:flex;
    justify-content:space-evenly;
  
}

#payer_dropdown, #recipient_dropdown {
    width: 10rem;
    height: 3rem;
    border-radius: 10px;
    margin-top:15px
}

.transaction-sides-content .form-group {
    display:flex;
    flex-direction:column;
}
.vertical_dotted_line {
    border-left: 1px dotted black;
    height: 100px;
} 

.button-container{
    display: flex;
    justify-content:space-evenly;
    margin-top:50px;
    margin-bottom:30px;
}

.button-container input, .button-container button{
    width:5rem;
    height:3rem;
    border-radius:10px;

}

.data-source-container {
    margin-top: 7rem;
}


.data-source-container p {
    margin-right: 10rem;
}

.data-source-container label{
    margin-top:auto;
    margin-bottom:auto;
    margin-right:20px;
}


.data-source-container #events {
  margin-left:15rem;
}

.data-source-row{
    display:flex;
    flex-direction:row;
}

/*--------------------------------------------------------------------BLOCKS--------------------------------------------------------------------*/

.block-container{
    margin-left:40px;
    margin-right:40px;
    margin-top:50px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.dropdown-row-container{
    display:flex;
    flex-direction:row;
    margin-bottom:40px;
    align-items:center;
}

.checkbox-with-label{
    display:flex;
    flex-direction:row;
    align-items:center;
    width:100px;
}

.block-container #events, .block-container #articles, .block-container #banks {
    height: 3rem;
    width: 8rem;
    margin-left: 1rem;
    border-radius: 10px;
}

.block-container label {
    font-size:large
}

.dropdown-row-container:not(:first-child){
    margin-top:20px;
}

.participants-table-with-checkbox{
    margin-top:20px;
    display:flex;
    flex-direction:column;
}

.table-container {
    max-height: 60vh;
    width: 100%;
    margin-bottom: 5rem;
    overflow-y: auto;
}

.payer-recipient-checkbox-container{
    display:flex;
    justify-content:space-evenly;
    margin-bottom:40px;
}

.selected-item-name{
    margin-left: 20px;
}

.block-till-container{
    width:fit-content;
    margin-top:40px;
    display:flex;
    align-items:center;
    margin-left:auto;
    margin-right:auto;
}

.block-till-container input {
    margin-left:20px;
    border-radius:10px;
    height: 3rem;
    width: 10rem;
}

.block-till-container label{
   font-weight:bold;
   font-size: xx-large;
}

.form-button-container{
    margin-top:40px;
    display:flex;
    flex-direction:row;
    justify-content:space-evenly
}

.form-button-container button{
    width:8rem;
    height:3rem;
    border-radius:10px;
    font-weight:bold;
    font-size:large;
}

input[type='radio'] {
    margin-top: -1px;
    vertical-align: middle;
}


/*--------------------------------------------------------------------ARTICLES--------------------------------------------------------------------*/

h1{
    margin-left:2rem
}

.add-article-container{
    margin-left: 3rem;
}

.add-article-container label {
    width:5rem;
}

.add-article-container input, .add-article-container select {
    margin-left: 3rem;
    margin-bottom: 1rem;
}

#Type {
    width:6rem;
}

#Name{
    width:20rem;
}

#CrtDbt{
    width:5rem
}

#Blocktill{
    width:10rem;
}

#create_article{
    width:6rem;
    margin:0;
    margin-top: 1rem;
}

.add-edit-item-container{
    display:flex;
    flex-direction:column;
    gap:15px;
}

    .add-edit-item-container input, .add-edit-item-container select{
        height: 2rem;
    }

.add-edit-item-container label{
    display:inline-block;
    width:110px;
}
/*------------------------------------------------------------------------------ARCHIVE------------------------------------------------------------------------------*/
.archive-main-content-container{
    display:flex;
    flex-direction:row;
    gap:1rem;
}
#archive_participant_table_container{
    max-width: 500px;
}

.select2-container{
    width:250px;
}
.select2 select2-container select2-container--default select2-container--below select2-container--focus {
    width: 200px;
}

#transaction_type_dropdown{
    padding-right:10px;
}

.archive-filter-container {
    display: flex;
    flex-direction: row;
    gap: 5rem;
    align-items: center;
    margin-bottom: 2rem;
}

#archive_filter_button{
    display:inline-block;
    margin-left:auto;
    margin-right:5rem;
}

#create_transaction_form .form-group{
    margin-bottom:1rem;
}

#create_transaction_form .form-group label{
    display: inline-block;
    width: 100px;
}

#create_transaction_form .form-group select{
    width:100px;
}



.table {
    max-height: 100%;
    height: 100%;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    display: table;
    overflow-y: auto;
    margin-bottom: 0;
}