:root
{
    /*--company-color: #00bd9c;
    --company-color: #a78d28;
    --company-color: #28a745;
    --company-color: #004f42;
    --company-color: #00806a;*/

    --company-color: #348000;
    --company-color-focus: #2f7300;
}



#base-spinner
{
    position: fixed;
    /*top: 0;*/
    z-index: 1040;
}



a
{
    color: var(--company-color);
    cursor: pointer;
}

.dark-mode a:not(.btn):hover
{
    color: var(--company-color);
}






.dark-mode .btn-primary
{
    background-color: var(--company-color);
    border-color: var(--company-color);
}

.dark-mode .btn-primary:hover
{
    /*

    background-color: #218838;
    border-color: #1e7e34;

    */



    background-color: var(--company-color);
    border-color: var(--company-color);
}

.dark-mode .btn-primary:not(:disabled):not(.disabled).active,
.dark-mode .btn-primary:not(:disabled):not(.disabled):active,
.show > .dark-mode .btn-primary.dropdown-toggle
{
    /*

    background-color: #1e7e34;
    border-color: #1c7430;

    */




    background-color: var(--company-color-focus);
    border-color: var(--company-color-focus);
}

.dark-mode .btn-primary.focus,
.dark-mode .btn-primary:focus
{
    /*

    background-color: #218838;
    border-color: #1e7e34;
    box-shadow: 0 0 0 0 rgba(72,180,97,.5);
    
    */



    background-color: var(--company-color-focus);
    border-color: var(--company-color-focus);
    box-shadow: 0 0 0 0 black;
}






.form-control:focus
{
    border-color: var(--company-color);
}

label:not(.form-check-label):not(.custom-file-label)
{
    font-weight: 600;
}



.toasts-top-right.fixed
{
    margin: 20px;
}



.mark-error-box
{
    margin-top: 40px;
    padding: 10px 30px;
    /*background-color: #fc00004f;*/
    background-color: #fc000026;
    border-radius: 4px;
    border: 1px solid #fc00000a;
}

.mark-error-box .mark-error-text
{
    /*color: #fc0000 !important;*/
    color: #d96b6b !important;
    font-weight: 600;
}



.dropdown-item.iconic
{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}



.dropdown-menu.dropdown-menu-right
{
    right: 0 !important;
}



/*

.jtable
{
    background-color: #454d55;
}

.jtable tbody tr:nth-child(2n)
{
    background-color: #454d55;
}

.jtable tbody tr:hover
{
    background-color: #343a40;
}

*/



.jtable th
{
    cursor: pointer;
}

.jtable .th-box
{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.jtable .th-box .th-name i
{
    margin-right: 10px;
}



table.dataTable > thead > tr > th:not(.sorting_disabled),
table.dataTable > thead > tr > td:not(.sorting_disabled)
{
    padding-right: .75rem;
}

.jtable pre
{
    color: #ffffff;
}

.jtable-search-title,
.jtable-selection-controller-title
{
    margin-bottom: 10px;
    border-bottom: 1px solid #454d55;
}

.jtable-search-num-results-found
{
    margin-left: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--company-color);
}

.jtable-selection-controller
{
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: center;
}

.jtable .jtable-th-selection .th-box,
.jtable .jtable-td-selection .th-box
{
    justify-content: center;
}

.jtable .jentryselection
{
    text-align: center;
}



.d-flex-center
{
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.d-flex-left
{
	display: flex;
	flex-direction: row;
	justify-content: start;
	align-items: center;
}

.d-flex-right
{
	display: flex;
	flex-direction: row;
	justify-content: end;
	align-items: center;
}



/*

.h-list
{
    margin: 0;
    padding: 0;

    list-style: none;
}

.h-list li
{
    margin: 0 10px;
    display: inline-block;
}

.h-list li img
{
    height: 30px;
}

*/



.h-list
{
    width: 100%;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    list-style: none;
}

.h-list li
{
    margin: 0 10px;
    display: inline-block;
}

.h-list li img
{
    height: 30px;
}



.btn.w-50
{
    width: 50px !important;
}

.btn.btn-100
{
    width: 100px;
}

.btn.btn-200
{
    width: 200px;
}

.btn.btn-300
{
    width: 300px;
}



.btn-container
{
    background-color: transparent;
}



.jsearch-selected-item
{
    background-color: #28a74598 !important;
}

ul.jsearch-results > li:hover,
ul.jsearch-results-expand > li:hover
{
    background-color: #28a745 !important;
}






.th-datetime
{
    width: 200px;
}

.jtable-th-selection
{
    width: 80px;
}






.dark-mode .direct-chat-text
{
    /*max-width: 600px;*/
    max-width: 80%;
    float: left;
    padding: 0 10px;

	color: #ffffff;
	background-color: #454d55;
	border-color: #4b545c;
}



.dark-mode .direct-chat-success .right > .direct-chat-text
{
    float: right;

    color: #ffffff;
    background-color: var(--company-color);
    border-color: var(--company-color);
}



.dark-mode .direct-chat-text::after, .dark-mode .direct-chat-text::before
{
	/*border-right-color: #4b545c;*/
    border-right-color: transparent;
}

.dark-mode .direct-chat-success .right > .direct-chat-text::after,
.dark-mode .direct-chat-success .right > .direct-chat-text::before
{
	/*border-left-color: #28a745;*/
    border-left-color: transparent;
}



.direct-chat-msg
{
	margin-bottom: 40px;
}



.right .direct-chat-text
{
	margin-left: 0;
	margin-right: 10px;
}

.direct-chat-text
{
    margin-left: 10px;
}





.direct-chat-messages
{
    height: auto;
}

.message
{
    /*margin-top: 10px;
    margin-bottom: 40px;*/
    padding-top: 10px;
    padding-bottom: 40px;
    border-radius: 4px;
}

.message:hover
{
    background-color: #454d5540;
}

.message-controls
{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.message:hover .message-controls
{
    visibility: visible;
}

.message-controls button
{
	width: 20px;
	height: 20px;
	margin: 0 6px;
	padding: 0 6px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.message-controls button i
{
    font-size: 10px;
}

.message-body
{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.message.sent .message-body
{
    flex-direction: row-reverse;
}

.message-content
{
    /* max-width: 600px; */
    max-width: 80%;
    padding: 0 10px;
    position: relative;
    display: table;
    color: #ffffff;
    background-color: #454d55;
    border-color: #4b545c;
    border-radius: .3rem;
}

.message-content-header
{
	margin-top: -22px;
    position: absolute;
    font-size: 12px;
    color: #adb5bd;
}

.message.sent .message-content-header
{
    right: 0;
}
.message:not(.sent) .message-content-header
{
    left: 0;
}

.message-content-body
{
    width: auto;
}

.message.sent .message-content
{
    color: #ffffff;
    background-color: var(--company-color);
    border-color: var(--company-color);
}

.message-timestamp
{
    color: #adb5bd;
}

.message-content,
.message-timestamp
{
    margin: 0 10px;
}



input[type="checkbox"]
{
    width: 20px;
    height: 20px;
    accent-color: var(--company-color);
}