body {
  font-size: .875rem;
  top: 0 !important;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/*
 * Sidebar
 */

.sidebar {
  position: fixed;
  top: 72px;
  /* rtl:raw:
  right: 0;
  */
  bottom: 0;
  /* rtl:remove */
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 0 0 0; /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
  overflow:auto;
  background:#fff;
}
.form-control:disabled, .form-control[readonly] {background:#fff}

.ck-editor__editable[role="textbox"] {
	/* Editing area */
	min-height: 200px;
}
.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
  padding-top:.15rem;
  padding-bottom:.15rem;
  padding-right:0;
}
.sidebar .nav-link.category {
	font-weight:normal
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #727272;
}

.sidebar .nav-link.active {
  color: #2470dc;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-weight:bold;
  color:#000;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .2rem;
  padding-bottom: .1rem;
  font-size: 1rem;
  line-height: 1.2;
  /*
  background-color: rgba(0, 0, 0, 1);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
  */
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}
.copyright {
	padding: 0.5rem 1rem;
}

.divider:after,
.divider:before {
content: "";
flex: 1;
height: 1px;
background: #eee;
}
.h-custom {
height: calc(100% - 73px);
}
@media (max-width: 450px) {
	.h-custom {
		height: 100%;
	}
	.navbar-brand {
	  white-space:normal;
	}

}
.form-control::placeholder{opacity:.5}

.sticky {
  position: fixed;
  z-index: 101;
}
.stop {
  position: relative;
  z-index: 101;
}
#selectLocation .btn-outline-secondary {
	color: #0d6efd;
	border-color: #ced4da;
}
#selectLocation .btn-outline-secondary:hover {
	color:#0d6efd;
	background-color: #ccc;
	border-color: #ced4da;
}
#selectLocation .btn-check:checked+.btn-outline-secondary {
	color:#0d6efd;
	background-color: #ccc;
	border-color: #ced4da;
}
.fields tr th:nth-child(2) {padding-left:29px}
.fields tr td:nth-child(2)/*,.fields tr td:nth-child(5)*/ {white-space:nowrap}
.fields tr td:nth-child(2) span {width:21px;display:inline-block;text-align:right}

#upload-images div, #upload-DocumentFiles div {display:inline-block; position:relative; margin-right:15px;margin-bottom:15px;background:#fff;width:300px;height:382px;overflow:hidden}
/*#upload-images div:first-child {margin-left:0}*/
#upload-images div a, #upload-DocumentFiles div a {width:300px;height:300px;display:block;margin-bottom:5px}
#upload-images img, #upload-DocumentFiles img {
	object-fit: contain;
	width: 100%;
	height: 100%;
}
#upload-images .btn-close, #upload-DocumentFiles .btn-close {
	position:absolute;
	top:10px;
	right:10px;
	cursor:pointer;
}

.upload-images div {display:inline-block; position:relative; margin-right:15px;margin-bottom:15px;background:#fff;width:300px;overflow:hidden;vertical-align: top;}
.upload-images div a:first-child {width:300px;height:300px;display:block;margin-bottom:5px}
.upload-images img {
	object-fit: contain;
	width: 100%;
	height: 100%;
}
.upload-images .btn-close {
	position:absolute;
	top:10px;
	right:10px;
	cursor:pointer;
}



.nav-link {display:inline-block}
.navbar-dark {
	background:#444!important;
	padding:5px 0;
}
.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}

.dd-collapse,.dd-empty {display:none!important}
.dd-handle {cursor: grab}

.goog-te-banner-frame, #google_translate_element, .skiptranslate {
	display:none !important;
}
.flags {margin: 0 10px 0 15px;color:#fff}
.flags span {cursor:pointer; font-size:1.3rem !important;line-height: 2.42rem;margin-left:3px;font-weight:600}
.lng-ru {display:none;}
.lng-gb {display:inline-block;}
.translated-ltr .lng-ru {display:inline-block;}
.translated-ltr .lng-gb {display:none;}

.isdeclined, .isdeclined input {background:#f99 !important}
.isapproved, .isapproved input {background:#afa !important}
.ispartiallyready, .ispartiallyready input {background:rgba(13,110,253,.25) !important}
.tomoderate, .tomoderate input {background:rgb(103 58 183 / 25%) !important}

.text-approved {color:#5a5}
.text-declined{color:#a44}
.text-tomoderate{color:#673ab7}
.text-partiallyready{color:rgba(13,110,253,1)}

.form-check-input-declined:checked {
	background-color: #f99;
	border-color: #f99;
}
.form-check-input-declined:focus {
	box-shadow: 0 0 0 0.25rem rgb(255 153 153 / 25%);	
}
.form-check-input-approved:checked {
	background-color: #4caf50;
	border-color: #4caf50;
}
.form-check-input-approved:focus {
	box-shadow: 0 0 0 0.25rem rgb(76 175 80 / 25%);	
}

.form-check-input-tomoderate:checked {
	background-color: #673ab7;
	border-color: #673ab7;
}
.form-check-input-tomoderate:focus {
	box-shadow: 0 0 0 0.25rem rgb(103 58 183 / 25%);	
}

.navbar-dark .collapsed .navbar-toggler-icon {
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>');
	transition: all 0.5s ease-out;
}
.navbar-dark .navbar-toggler-icon {
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');
	transition: all 0.5s ease-out;
}
@media (max-width: 767.98px) {
  .sidebar {
    top: 109px;
  }
 .flags {position:absolute;top:0.3rem;right:6rem}
 .navbar-dark {padding:0}

}
.input-group a {text-decoration:none}

.ck-editor__editable_inline p {margin:0;text-indent: 30px;}



/*Для кинофестиваля*/
.admin-nav{background:#212529;}
.admin-nav a{color:#e9ecef;text-decoration:none;padding:.9rem 1rem;display:inline-block;}
.admin-nav a:hover{color:#fff;background:#343a40;}
.admin-nav a.active{background:#0d6efd;color:#fff;}
.admin-wrap{max-width:1200px;margin:1.5rem auto;padding:0 1rem 3rem;}
.card-admin{background:#fff;border:1px solid #e3e6ea;border-radius:10px;}
.form-fest .alert-secondary{background:#e8ecf3;border:0;}
.required::after{content:" *";color:#dc3545}
.participant-row,.country-row{margin-bottom:.5rem}
.section-header{display:flex;justify-content:start;align-items:center;margin-bottom:.75rem;gap:0}
.section-header svg{color:#0d6efd;}
.photo-upload{border:2px dashed #d0d7de;border-radius:10px;background:#fafafa;padding:12px;text-align:center;}
.photo-preview{width:120px;aspect-ratio: 16 / 9;margin:auto auto 10px;border-radius:6px;overflow:hidden;background:#fff;border:1px solid #ddd;}
#participants .photo-preview,
  #juryPhotos .photo-preview{width:100%;aspect-ratio: 3 / 4}



.photo-preview img{width:100%;height:100%;object-fit:cover;}
.photo-upload.uploading{opacity:.6;}
.photo-upload.success{border-color:#198754;}
table.films-table td, table.films-table th{vertical-align:middle;}
.status-select{min-width:150px;}

/* Стили для сортируемых заголовков таблицы */
.films-table thead th a {
    display: block;
    padding: 0.5rem 0;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.films-table thead th a:hover {
    color: #0d6efd !important;
    text-decoration: underline !important;
}

.films-table thead th {
    white-space: nowrap;
}

/* Предотвращение переноса кнопок действий */
.films-table tbody td:last-child {
    white-space: nowrap;
}
