/* Bootstrap components */
.comment {text-align: center !important;}
.btn-secondary
{
	color: #292b2c;
	background-color: #fff;
	border-color: #ccc;
}

.btn-secondary:hover
{
	color: #292b2c;
	background-color: #e6e6e6;
	border-color: #adadad;
}

.btn-secondary:not([disabled]):not(.disabled).active, .btn-secondary:not([disabled]):not(.disabled):active, .show>.btn-secondary.dropdown-toggle
{
	background-color: var(--button-main-color);
	color: #444;
}

.btn-primary
{
	color: #fff;
	background-color: #0275d8;
	border-color: #0275d8;
}

.btn-primary:hover
{
	color: #fff;
	background-color: #025aa5;
	border-color: #01549b;
}

/* Common big button */

.fgpbutton
{
	/* margin-top: 1.2rem; */
	margin-top: 0.5rem;
	font-size: 1.4rem;
	padding: 0.6rem 1rem 0.6rem 1rem; 
	display: block; 
	border: 1px solid #1f70b5;
	color: #04447b; 
	border-radius: 1rem;
	cursor: pointer;
	transition: box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;   
	user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    text-decoration: none !important;
	background: var(--button-main-color);
}

a.fgpbutton:hover
{
	text-decoration: none !important;
}

.fgpbutton:hover 
{
	box-shadow: 0px 3px 5px #c7c7c7;
	background: #ebf3ff !important;
	color: #00203c !important;
}

.fgpbutton:active 
{
	box-shadow: 0px 0px 5px #c7c7c7;
}

/* Placeholders */

.form-control::-webkit-input-placeholder { color: #c3c3c3; }
.form-control:-moz-placeholder { color: #c3c3c3; }
.form-control::-moz-placeholder { color: #c3c3c3; }
.form-control:-ms-input-placeholder { color: #c3c3c3; }

/* Modals */

.modal:not(.modal-error) .modal-header
{
    border-top-left-radius: .3rem;
    border-top-right-radius: .3rem
}

.modal:not(.modal-error) .modal-footer
{
	border-bottom-left-radius: .3rem;
	border-bottom-right-radius: .3rem;
}

.btn {
	border-radius: .375rem;
}

.modal.modal-error .modal-header
{
	background: #ffe4e4;
    border-top-left-radius: .3rem;
    border-top-right-radius: .3rem
}

.modal.modal-error .modal-footer
{
	background: #ffe4e4;
	border-bottom-left-radius: .3rem;
	border-bottom-right-radius: .3rem;
}

.modal-buttons-footer-row 
{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: end;
	width: 100%;
}

.modal-buttons-footer-row button
{
    margin-left: 0.4rem;
    margin-right: 0.4rem;
	cursor: pointer;
}

.modal-footer
{
	justify-content: center;
}

/* Bootstrap buttons */

.btn:active
{
    box-shadow: 0px 1px 6px #bdbdbd inset;
    background: var(--button-main-color);
}

/* FG Common buttons */

.fgbutton 
{
	margin-top: 0.5rem;
	font-size: 1.2rem;
	padding: 0.3rem 1rem 0.6rem 1rem; 
	display: block; 
	border: 1px solid #1f70b5;
	color: var(--fgbuton-color);
	background: var(--fgbuton-bg-color);
	border-radius: 1rem;
	cursor: pointer;
	transition: box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, opacity 0.3s ease;  
	user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    text-decoration: none !important;
}

.fgbutton.f1x { font-size: 1.4rem; }
.fgbutton.f2x { font-size: 1.4rem; }
.fgbutton.f3x { font-size: 1.5rem; }
.fgbutton.f4x { font-size: 1.6rem; }
.fgbutton.f5x { font-size: 1.7rem; }
.fgbutton.f6x { font-size: 1.8rem; }

.fgbutton:hover 
{
	box-shadow: 0px 3px 5px #c7c7c7;
	background: #ebf3ff !important;
	color: #00203c;
	text-decoration: none;
}

.fgbutton:active 
{
	box-shadow: 0px 0px 5px #c7c7c7;
}

.fg-afterform-button-container
{
	margin-top: 2rem;
	text-align: center;
}

.fg-afterform-button-container > div
{
	display: inline-block;
}

/* FG Common tables */

.fgtable
{
	width: 100%;
}

.fgtable > tbody > tr:not([data-fullinfoexpanded="yes"])
{
	border-bottom: 1px solid #dbeeff;
}

.fgtable > thead > tr
{
	background: #ebf3ff;
}

.fgtable > thead > tr > th
{
	font-weight: normal;
	font-size: 0.8rem !important;
	text-transform: uppercase;
	padding-bottom: 0.3rem !important;
}

.fgtable > thead > tr > th > i.heading-sort-icon
{
	color: #949494;
}

.fgtable > thead > tr > th[data-sortable="yes"]
{
	cursor: pointer;
	user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

.fgtable > thead > tr > .table-long-head
{
	display: block;
	width: 7rem;
	margin: auto;
}

.fgtable > thead > tr { border-bottom: 1px solid #dbeeff; }

.fgtable > thead > tr > th
{
	font-size: 1rem; 
	padding: 0.2rem 0.5rem;
}

.fgtable > tbody > tr > td.ahc, /* always-hidden cell */
.fgtable > thead > tr > th.ahc { display: none !important; }

.fgtable > tbody > tr:hover { background: #f5f9ff; }

.fgtable > tbody > tr[data-hidden] { display: none; }

.fgtable > tbody > tr > td
{
	line-height: 130%;
	padding: 0.18rem 0.5rem 0.2rem 0.5rem;
}

.fgtable > tbody > tr > td .price { text-align: right; font-weight: bold; } 
.fgtable > tbody > tr > td .price1 { color: #2d4e7c; }
.fgtable > tbody > tr > td .price i { font-size: 90%; }

.fgtable th.nowrap { var(--button-main-color)-space: nowrap !important; }

.fgtable tbody tr td #expand-indicator i,
.fgtable thead tr th #expand-indicator i,
.fgtable thead tr th .fooicon-minus,
.fgtable thead tr th .fooicon-plus
{
	color: #106ab7;
	cursor: pointer;
}

/* FG Form */
.fg-form 
{ 
	width: 45rem;
	padding: 1rem;
    border-radius: 2rem;
    /* border: 2px solid #a9d7ff; */
    border: 2px solid #d6ecff;
    margin: 0 auto;
    background: #fefeff;
}

.fg-form label
{
	font-size: 1.3rem;
    line-height: 1.45rem;
    text-align: right;
}

.fg-form .form-group:last-child
{
	margin-bottom: 0;
}

.fg-form .form-group:first-child input:not([type='checkbox']):not(.toggleable-password), .fg-form .form-group:first-child select, .fg-form .form-group:first-child textarea,
.fg-form .circle-right-input,  .fg-form .form-group:first-child .input-group-addon
{
	border-top-right-radius: 1rem;
}

.fg-form .form-group:last-child input:not([type='checkbox']):not(.toggleable-password),
.fg-form .form-group:last-child select, .fg-form .form-group:last-child textarea, .fg-form .form-group:last-child .input-group-addon
{
	border-bottom-right-radius: 1rem;
}

.fg-form .form-group.form-block-ends
{
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #d6ecff;
    margin-left: -16px;
    margin-right: -16px;
}

[data-obligatoryrow] > div.col-12 input,
[data-obligatoryrow] > div.col-12 select
{
	padding-right: 2rem;
}

[data-obligatoryrow] > div.col-12:after
{
	content: "*";
	position: absolute;
	float: right;
	right: 2rem;
	top: 0.6rem;
	color: #888;
}

[data-obligatoryrow][data-rowwithselect] > div.col-12:after
{
	right: 2.5rem;
}

.billing-password-toggle
{
	cursor: pointer;
}

/* Some key-value data table */
 
.kv-data-table
{
	width: 60%;
	padding: 1rem;
	background: #ebf3ff;
	border-radius: 1rem;
	float: none;
	margin: 0 auto;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

.kv-data-table .property-row
{
	padding-top: 0.4rem;
	padding-bottom: 0.4rem;
}

.kv-data-table .property-row:not(:last-child)
{
	border-bottom: 1px solid #b5ddff;
} 

.kv-data-table .property-row > div 
{
	text-align: left;
	padding-left: 2rem;
} 

/* Cards - header and footer */

.card-header, .card-footer
{
	background-color: #fbfbfb !important;
}

.card
{
	border: 1px solid rgb(220, 239, 255);
}

/* Pagination control overwrite */

ul.pagination
{
	justify-content: center;
}

ul.pagination a
{
	cursor: pointer;
}

ul.pagination a.current-page
{
	background: #ebf3ff;
	font-weight: bold;
}

/* Entity filtering */

.entity-filtering
{
	background: #f4f9ff;
	padding: 0.5rem;
	padding-bottom: 0.7rem;
	border-radius: 1rem;
	display: inline-block;
	margin: 0 auto;
	float: none;
	width: auto;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.entity-filtering.opened-filters
{
    width: 45%;
}

.entity-filtering .filtering-label
{
    text-align: center;
}

.entity-filtering .filtering-label a
{
	border-bottom: 1px solid #cee3f5;
	color: #0275d8;
    text-decoration: none !important;
}

.entity-filtering .filtering-row
{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;

    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.entity-filtering .filtering-row > div.filtering-icon
{
    width: 2rem;
    text-align: center;
    padding-right: 0.5rem;
}

.entity-filtering .filtering-row > div.filtering-input
{
    width: calc(100% - 2rem);
    padding-left: 0.5rem;
}

.entity-filtering .filtering-row .filtering-input:not(.overrided-input) input,
.entity-filtering .filtering-row .filtering-input:not(.overrided-input) select
{
    width: 100%;
}

.entity-filtering .filtering-row .inactive-row
{
    opacity: 0.8;
}

.two-dates-html5-selector
{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.two-dates-html5-selector i
{
    display: block;
    width: 1rem;
    text-align: center;
}

.two-dates-html5-selector input
{
    width: calc(50% - 0.5rem);
}

.entity-filtering .clear-filters-row
{
    text-align: center;
    padding-bottom: 0.2rem;
}

.entity-filtering .clear-filters-row a
{
    text-decoration: none;
    border-bottom: 1px solid #cee3f5;
}

.some-filters-used-label
{
    text-align: center;
    font-size: 1.2rem;
    color: #ca2a2a;
    padding-bottom: 2rem;
}

/* Fg table mobile scaling */

.table-mobile-scaled {  } /* look at mobile.css */

/* Fixes for some browsers */

#main-partcode-input::-ms-clear {
	display: none;
}