:root body 	{ overflow-y: hidden; }
.modal 		{ overflow-y: auto; }
body.modal-open, .modal-open .navbar-fixed-top, .modal-open .navbar-fixed-bottom { margin-right: 0; }

/* TABLE ROW HEIGHT (was .75rem) */
.table>:not(caption)>*>* {
    padding: .3rem .75rem;
}

/* MAIN HEADER/SIDEBAR TEXT */
* {
   font-size: 12px;
   line-height: 1.2;
}

/* FORM INPUTS */
.form-control {
    font-size: 0.7rem;
	font-family: 'Verdana';
	background-color: #fff;
	padding: .375rem .4rem;
}

/* FORM INPUT LABELS */
.input-group-text {
    font-size: 0.7rem;
	font-family: 'Verdana';
	background-color: #ddd;
	border-radius: 0px;
	padding: .375rem .4rem;
}

/* FORM HEADERS */
h5, .h5 {
	font-size: 1rem;
	font-family: 'Verdana';
}

/* REQUIRED TO MAKE SELECT2 PLAY NICE */
.input-group > .select2-container--default {
    width: auto;
    flex: 1 1 auto;
}

.input-group > .select2-container--defaimt .select2-selection--single {
    height: 100%;
    line-height: inherit;
    padding: 0.5rem 1rem;
}

/* align selectboxes right */
.input-group > .select2-container--default .select2-selection--single .select2-selection__rendered {
	justify-self: end;
}

/* REQUIRED TO MAKE TABS PLAY NICE */
.block { margin-bottom: 0rem; }

.nav-tabs .nav-link {
    margin-bottom: 1px;
}

.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus { isolation: auto; }
.nav-tabs-block .nav-link { padding-top: 0.3rem; padding-bottom: 0.3rem; }

.nav-tabs-block {
    background-color: #1391aa;
}

.nav-tabs-block .nav-link.active, .nav-tabs-block .nav-item.show .nav-link {
    background-color: #03819a;
}

.nav-tabs-block .nav-link:hover, .nav-tabs-block .nav-link:focus {
    background-color: #23a1ba;
}

.nav-tabs-block .nav-link:hover, .nav-tabs-block .nav-link:focus {
    color: black;
}

/* makes form columns and rows look tighter */
.row
{
    --bs-gutter-x: 0.60rem;
}

/* special look for readonly */
input[readonly] {
  background-color: #aaa;
  color: white;
}

div.dt-scroll tr :hover {
	cursor: pointer;
}

/* prettify headers */
h3 {
	margin-top: 0px;
	margin-bottom: 0px;
}

/* Dropzone */
.dropzone
{
	width: auto;
	height: 70px;
	min-height: 70px !important;
    background: repeating-linear-gradient(
        45deg,
        #eee,
        #eee 10px,
        #ddd 10px,
        #ddd 20px
    );
	border: 1px dashed gray;
	
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
}

.dropzone:hover
{
    background: repeating-linear-gradient(
        45deg,
        #e6e6e6,
        #e6e6e6 10px,
        #d0d0d0 10px,
        #d0d0d0 20px
    );
    border-color: #888;
	border: 1px solid gray;
}

.dropzone .dz-message
{
     margin: 0;
    font-size: 1rem;
    font-style: italic;
    font-weight: 700;
    color: #212529;
}

div.dz_list 
{
	border: 1px dashed gray;
	border-radius: .5rem;
	height: auto;
	margin-top: 5px;
	padding: 10px;
}

div.dz_list div.dz-img, 
div.dz_list div.dz-doc 
{
    width: 152px;
    height: 152px;
    border: 1px solid black;
    padding: 0;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}

.delete-btn 
{
    right: 4px;
    transition: background 0.2s ease-in-out;
    background: rgba(220, 0, 0, 0.8);
}

div.dz_list div.dz-img:hover .delete-btn	{ display: block; }
div.dz_list div.dz-doc:hover .delete-btn	{ right: 4px; display: block; }

.delete-btn
{
    display: none;
    position: absolute;
    top: 4px;
    font-weight: bold;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    text-align: center;
    line-height: 24px;
}

.sortable-ghost {
    opacity: 0.5;
}

/* MODALS */
.modal-half {
  width: 50vw;
  height: 50vh;
  max-width: none;
}

.modal-half .modal-content {
  height: 100%;
}

#loading_popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading_box {
    background: #222;
    padding: 40px 60px;
    border: 3px solid #fff;
    border-radius: 12px;
    text-align: center;
    color: white;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 8px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.coffee_icon {
    font-size: 3em;
    margin-top: 10px;
}

.loading_text {
    font-size: 1.8em;
    font-weight: 500;
}

/* Gallery */
.gallery {
    max-width: auto;
    margin: 0 auto;
}

.gallery .main-image {
    width: 100%;
    margin-bottom: 15px;
}

.gallery .main-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gallery .thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.gallery .thumbnails a {
    flex: 0 0 auto; 
    width: 100px;
    height: 70px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery .thumbnails a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery .thumbnails a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Mason grid */
/*
.mason_grid2 	{ column-count: 2; column-gap: 8px; }
.mason_grid3	{ column-count: 3; column-gap: 8px; }
.mason_grid4 	{ column-count: 4; column-gap: 8px; }
.mason_grid5 	{ column-count: 5; column-gap: 8px; }
*/

.mason_grid2,
.mason_grid3,
.mason_grid4,
.mason_grid5
{
	column-width: 400px;
    column-gap: 8px;
}

.mason_item
{
	background: #e9f2ff;
	border: 0px solid #555;
    border-radius: 12px;
	padding: 15px;
	margin-bottom: 8px;
	break-inside: avoid;
}

.mason-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0px;
}

/* These force bootstrap to play nice with the mason grid */
.mason_item .row {
    display: block !important;
    margin: 0 !important;
}

.mason_item [class^="col-"] {
    width: 100% !important;
    padding: 0 !important;
}

