/*   List class 

.All_Container
.G_All
.G_Header
.G_Main
.G_Footer

.Header_Page_Title
.Page_Main_Title_Bl h1
.G_Main h2
.G_Main h3
.G_Main h4

*/

/* Цветовая схема */
.All_Container {
	background: #C9CEFF;
}

.G_All {
	background: #E5E8FF;
}

.G_Header {
	background: linear-gradient(-170deg, #507bdd, #2B00F9);
}

.Main_Background_Wh {
	background: #F3F3FF;
}

.Main_Background_Bl {
	background: #353535;
}

.Main_Background_Object_List, .Main_Background_User_List {
	background: #000;
	background: linear-gradient(180deg, #000, #3f495b);
}

.G_Footer {
	background: #282828;
}

.Role_Permissions {
	background: #ececec;
}



.Page_Main_Title_Bl, .Title_Bl {
	--first_title_color: #FFF;
    --sub_title_color: #FFFB00;
}

.Page_Main_Title_Wh, .Title_Wh {
	--first_title_color: #000;
    --sub_title_color: #333;
}

.Page_Main_Title_Bl > .Title_Color, .Title_Color {
	--first_title_color: #5E7EFF;
    --sub_title_color: #FFFB00;
}

.Page_Main_Title_Wh > .Title_Color, .Title_Color {
	--first_title_color: #5E7EFF;
    --sub_title_color: #91AAFF;
}

.Items_Bl {
	--item_one_view_color: #FFF;
	--item_label_view_color: #CCC;
	--item_one_input_color: #55F;
	--item_label_input_color: #FFF;
}

.Items_Wh {
	--item_one_view_color: #000;
	--item_label_view_color: #222;
	--item_one_input_color: #55F;
	--item_label_input_color: #222;
}

.item_p_active {
	background: #f6f6fb;
}
.item_p_notactive {
	background: #e1e0e0;
}

/* ----- Color BTN ----- */	
p {
	magin-bottom: calc(1 * var(--fT));
}


.btn3d_Exe {	
	background-color: #402BD5;
    color: #FFF;
	border: 0.07vw solid #AAA;	
    border-radius: 0.2vw;
	transition: background-color 1.5s, color 1.5s, border-color 1.5s; 
}

.btn3d_Exe:hover {
	background-color: #2E1E9F;
    color: #FFF;
	border-color: #333;
	transition: background-color 1.2s, color 1.5s, border-color 0.7s;
}	

.btn2d_Exe {	
	background-color: #402BD5;
    color: #FFF;
	border: 0.07vw solid #2F1CB7;	
    border-radius: 0.2vw;
	transition: background-color 1.5s, color 1.5s, border-color 1.5s; 
}

.btn2d_Exe:hover {
	background-color: #2E1E9F;
    color: #FFF;
	border-color: #5349FF;
	transition: background-color 1.2s, color 1.5s, border-color 0.7s;
}

.btn_Card, .btn_Card_notActive {	
	background-color: #BEBCFD;
    color: #3E3E3E;
	border: 0.01vw solid #2F1CB7;	
    border-radius: 0.2vw;
	transition: background-color 1.0s, color 1.0s, border-color 1.0s; 
}

.btn_Card:hover {
	background-color: #DFDFFF;
    color: #000;
	border-color: #4339EF;
	transition: background-color 0.5s, color 0.5s, border-color 0.3s;
}

.btn2d_iLink {	
	background-color: #402BD5;
    color: #FFF;
	border: 0.07vw solid #2F1CB7;	
    border-radius: 0.2vw;
	transition: background-color 1.5s, color 1.5s, border-color 1.5s; 
}

.btn2d_iLink:hover {
	background-color: #2E1E9F;
    color: #FFF;
	border-color: #5349FF;
	transition: background-color 1.2s, color 1.5s, border-color 0.7s;
}	

.btn2d_Item {
	background-color: #BBB;
	color: #222;
	border: 0.07vw solid #777;	
	border-radius: 0.2vw;
	transition: background-color 1.5s, color 1.5s;
}

.btn2d_Item:hover {
	background-color: #CCC;
	color: #111;
	transition: background-color 1.5s;	
}	

.btn2d_LoadFile {
	
	background-color: #FFFFFF;
    color: #555;
	border: 0.07vw solid #777;
    border-radius: 0.2vw;
	transition: background-color 1.5s; 	
}

.btn2d_LoadFile:hover  {
	background-color: #FFFFFF;
    color: #555;
	border: 0.07vw solid #777;
	transition: background-color 1.5s; 	
}

.btn2d_Indicator {
	border: 0.07vw solid #777;	
    border-radius: 0.2vw;	
}


.btn_image_active {
	background:  #68f934;
	color: #000;
	border: 0.07vw solid #777;
}

.btn_image_notactive {
	background: #058c0d;
	color: #fff;
	border: 0.07vw solid #777;
}

.btn2d_Group_Delete {
	background:  #BBB;
	color: #000;
	border: 0.07vw solid #777;
}

.btn_photo_active {
	background:  #eaffb1;
	color: #000;
}

.btn_photo_notactive {
	background: #058c0d;
	color: #fff;
}

.pill {
  color:#fff;
  background-color: #848388;
}

.pill span {
  color: #fff;
}

/* 1. Стиль для активного состояния (современные браузеры) */
.pill:has(input:checked) {
  background-color: #8E75FF; /* Цвет выделенной кнопки */
  color: #fff;
}

/* 2. Поддержка класса .is-checked (если вы используете JS) */
.pill.is-checked {
  background-color: #8E75FF;
}
/* End Color BTN */	



.FontBaseS {
	font-family: LibertinusSerif;
	font-size: var(--fBase);
}

.FontBaseSS {
	font-family: LibertinusSans;	
	font-size: var(--fBase);
}


html, body 
{
	margin: 0;
	padding: 0;
}

p {
	margin: 0.2vw 0;
}

p:first-child {
	margin-top: 0;
}

p:last-child {
	margin-bottom: 0;
}

.All_Container {
    display: block;
	position: relative;
	width: var(--width-display);
	height: auto;
	min-height: 100vh;
	top: 0px;
	left: 0px;	
	margin: 0 auto 0 auto;
	z-index: 10;
	opacity: 1;
}

.G_All {
	container-type: inline-size;
	flex-direction: column;
    display: flex;
	position: relative;
 	width: 100%;
	height: auto;
	padding: 0;
}


.etalon {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
}
/* End: Page Background */


/* Page Triada */
.G_Header {
    display: block;
	position: relative;
	top: 0px;
	left: 0px;
	width: 100%;
    margin: 0 0;
	z-index: 50;
}

.G_Main {
    display: block;
	position: relative;
	left: 0px;
	width: 100%;
	height: auto;
	min-height: 500px;
    margin: 0 0;
	background: transparent;
	z-index: 20;
}

.Main_Workspace {
	padding: 0.01vw 0;
	background: transparent;
	z-index: 20;
}

.G_Footer {
    display: block;
	position: relative;
 	width: 100%;
	height: auto;
	margin: 0 0;
	z-index: 20;
	
	height: var(--hGFooter);
	padding: var(--paddSection) 0 var(--paddSection) 0;
}

.G_Main:before {
	content: "&nbsp;";
	display: block;
	clear: both;
	height: 1px;
	visibility: hidden;
	line-height: 0;
}		

.G_Main:after {
	content: "&nbsp;";
	display: block;
	clear: both;
	height: 1px;
	visibility: hidden;
	line-height: 0;
}	
/* End: Page Triada */


/*  -------  Main SECTION ------------ */
.Main_Background_Wh, .Main_Background_Bl, .Main_Background_Object_List, .Main_Background_User_List {
	display: block;
	position: relative;
	padding: 0 0 var(--paddB2) 0;
	z-index: 20;
	font-family: LibertinusSerif;
}

.Main_Background_Warning_message {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	gap: var(--gapPermissions);
	position: relative;
	height: auto;
	margin: 0;
	padding: var(--gapPermissions) var(--gapPermissions);
	overflow: hidden;
	font-family: LibertinusSerif;
	background: #4d4d4d;
}

/* Базовый контейнер */
.alert {
    padding: var(--paddB2);
    font-size: var(--fT);
}

.alert-main {
    display: flex;
    align-items: center;
    gap: 0.8vw;
}

.alert-icon {
    font-weight: bold;
    font-size: var(--fT);
}
/* Успех — зелёный */
.alert-success {
    color: #01ff0e;
}

/* Предупреждение — жёлтый/оранжевый */
.alert-warning {
    color: #ffa100;
}

/* Ошибка — красный */
.alert-danger {
    color: #ff4545;
}

/* Информация — серый */
.alert-info {
    color: #f9f9f9;
}

/* Список предупреждений */
.alert-warnings {
    margin: 0.8vw 0 0 2vw;
    padding: 0;
    list-style: disc;
}
.alert-warnings li {
    margin: 0.3vw 0;
}


/* Object_List */
.Role_Permissions {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	gap: var(--gapPermissions);
	position: relative;
	width: 100%;
	height: auto;
	margin: 0;
	padding: var(--gapPermissions) var(--gapPermissions);
	overflow: hidden;
	font-family: LibertinusSerif;
}

.user_info_title {
	display: block;
	position: relative;
	margin: 0 0;
	color: #000;	
    font-size: var(--fTB);	
    font-weight: bold;		
	text-align: center;
}

.permission_section {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gapPermissions);
	position: relative;
    width: 100%;
    height: 100%;
	align-items: center;
	justify-content: center;
}

.permission_label {
	display: block-inline;
    color: #0923B3;	
    font-size: var(--fTS);	
    font-weight: bold;		
}

.item_p_active, .item_p_notactive {
	display: flex;
	position: relative;
	min-width: 4.6vw;
	padding: 0.4vw 0.4vw;
	font-size: var(--fTS);	
	align-self: center;
	justify-content: center;
	border: 0.1vw solid #d8dadd;
	border-radius: 1.8vw;
	-webkit-user-select: none;
	user-select: none;
	cursor: pointer;
}

.form_contaner_dinamic_detail, .form_contaner_dinamic_status, .form_contaner_dinamic_owner, .form_contaner_dinamic_documents {
	width: auto;
	display: grid;
	gap: var(--gapSection) var(--gapSection);
	padding: var(--paddSection);
}

.form_contaner_static_images {
	width: auto;
	display: grid;
	gap: var(--gapSection) var(--gapSection);
	padding: var(--paddSection);
}


/*  ------- END  SECTION Main ------------ */

/*  ------- COTAINER COLUMNS ------------ */
.form_column_1, .form_column_2, .form_column_1_2, .column_1, .column_2, .column_1_2 {
	display: grid;
	gap: var(--gapB3) var(--gapB3);
	position: relative;
	align-content: start;
	
}
	


/*  ------- END  COTAINER COLUMNS ------------ */

/*   H1, H2, H3    */
.Page_Main_Title_Bl, .Page_Main_Title_Wh {
    display: grid;
	grid-auto-rows: auto;
	justify-items: center;
	position: relative;
 	width: max-content;
	height: auto;
	padding: var(--paddSection) 0;
	margin: 0 auto;
	z-index: 25;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

.Page_Main_Title_Bl h1, .Page_Main_Title_Wh h1 {
	justify-self: center;
	font-family: 'LibertinusSerif';
	color: var(--first_title_color);
	margin: 0 auto;
	font-size: var(--fH1); 
	font-weight: bold;
	font-style: normal;
	line-height: 1.5 !important;	
}

.Page_Main_Title_Bl .subtitle, .Page_Main_Title_Wh .subtitle {
	justify-self: center;
	font-family: 'Philosopher';
	color: var(--sub_title_color);
	font-size: var(--fInfo);
	font-weight: bold;
	font-style: normal;
	line-height: 1.5 !important;	
}

.Title_Bl, .Title_Wh, .Page_Main_Title_Bl > .Title_Color, .Page_Main_Title_Wh > .Title_Color, .Title_Color {
	color: var(--first_title_color);
}

h2, h3, h4, h5, .Title_2, .Title_3, .Title_4, .Title_5 {
	font-family: 'LibertinusSerif';
	font-weight: bold;
	margin: 0;
}

.Title_2:first-of-type, .Title_3:first-of-type, .Title_4:first-of-type, .Title_5:first-of-type, 
.UU2:first-of-type, .UU3:first-of-type, .UU4:first-of-type, .UU5:first-of-type,
h2:first-of-type, h3:first-of-type, h4:first-of-type, h5:first-of-type {
	margin-top: 0;	
}

h2, .Title_2 {
	font-size: var(--fH2);
}

h3, .Title_3 {
	font-size: var(--fH3);
}

h4, .Title_4 {
	font-size: var(--fH4);
}

h5, .Title_5 {
	font-size: var(--fH5);
}

.T_left {
	text-align: left;
}

.T_center {
	text-align: center;
}


.UU2 {
	margin: var(--mH2) 0 calc(0.5 * var(--mH2)) 0;
}

.UU3 {
	margin: var(--mH3) 0 calc(0.6 * var(--mH3)) 0;
}

.UU4 {
	text-align: left;
	margin: var(--mH4) 0 calc(0.6 * var(--mH4)) 2vw;
}

.UU5 {
	text-align: left;
	margin: 0 0 0 2vw;
}

.U2 {
	margin-bottom: calc(0.5 * var(--mH2));
}

.U3 {
	margin-bottom: calc(0.5 * var(--mH3));
}

.U4 {
	margin-bottom: calc(0.5 * var(--mH4));
}

.U5 {
	text-align: left;
	margin: 0 0 0 2vw;
}


/*  END  H1, H2, H3    */


/*     Sections    */







/*  END  Sections    */


/* -- SIZE BTN  --- */
.btn_Card {
	height: auto;
	width: 100%;
	font-size: var(--fTButC);
	box-sizing: border-box;
}

.btn_H30_Card_Self {
	height: var(--hBut27);
	width: 100%;
	wrap: nowrap;
	font-size: var(--fTButC);
	box-sizing: border-box;
}

.btn_H27, .btn_H27_W12 {
	height: var(--hBut27);
	min-width: var(--wBut27);
	font-size: var(--fTBut);
	padding-left: var(--paddButBX);
	padding-right: var(--paddButBX);
}

.btn_H30, .btn_H30_W12 {
	height: var(--hBut30);
	min-width: var(--wBut30);
	font-size: var(--fTBut);
	padding-left: var(--paddButBX);
	padding-right: var(--paddButBX);
}

.btn2d_Group_Indicator, .btn2d_Group_Delete {
	height: var(--hBut27);
	font-size: var(--fTBut);
	border-radius: 0.2vw;
	width: 100%;
}	

.button_form {
	margin: 0;
	padding: 0;
	display: inline;
}

.pill {
	height: var(--hPill);
	min-width: var(--wPill);
	padding-left: var(--paddPillX);
	padding-right: var(--paddPillX);
}

.pill span {
  font-size: var(--fTBut);
}
/* End: SIZE BTN */



/* Buttons All */
.btn3d_Exe, .btn2d_Exe, .btn2d_iLink, .btn2d_Item, .btn2d_Mini, .btn2d_Mini_notActive, .btn2d_Group_Indicator, .btn2d_Group_Delete, .btn2d_LoadFile, .btn_H30_Card_Self, .btn_Card, .btn_Card_notActive {
    display: flex;
	position: relative;
	font-family: 'LibertinusSerif';
	font-weight: bold;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.0;	
    text-decoration: none;
	box-sizing: border-box;
    cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}


.btn3d_Exe::after {
  content: "";
  position: absolute;
  top: 0.4vw;   /* тень смещена вниз */
  left: 0.6vw;  /* и вправо */
  width: 100%;
  height: 100%;
  border-radius: 0.2vw;
  background: rgba(0,0,0,0.75);
  filter: blur(0.4vw);
  z-index: -1;
}

.pill {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;  
  box-sizing: border-box; /* Includes padding and border in the width */
  border: none;
  border-radius: 0.2vw;
  box-sizing: border-box;
  transition: background-color 1.5s, border-color 2.0s, color 2.0s; 
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}


/* Hide the native radio/checkbox */
.pill input {
  display: none;
}

/* Style the visible span */
.pill span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: LibertinusSerif;
  font-weight: bold;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

/* No size change on active state */
.pill input:checked + span {
  transform: scale(1); /* Ensures no scaling */
}

.group_small_buttons_actions {
	display: flex;
	gap: var(--gapB4ButB);
	margin: 0 0;
	padding-top: var(--mGroupBut);
	justify-content: start;
	align-items: center;
}

.group_buttons_actions {
	display: flex;
	gap: var(--gapB4ButB);
	margin: var(--gapB4ButB) 0;
	padding: var(--gapB4ButB) 0;
	justify-content: center;
}

.group_form_btn_actions {
    display: grid;
	grid-template-columns: repeat (3, auto);
	grid-template-rows: 1fr 1fr;
    gap: calc(0.6*var(--gapB4ButB)) var(--gapB4ButB);
	justify-content: end;
	margin-top: var(--mGroupBut);
    width: 100%; /* Spans the full width of the container */
	z-index: 60;
}

.group_buttons_actions_card_2 {
	display: grid;
	grid-template-columns: 40% 40%;
	gap: var(--gapB4ButB);
	padding: 0;
	justify-content: center;
	flex-wrap: nowrap;
}

#discardChangesBtn {
	grid-column: 1;
	grid-row: 1;	
}

#notSaveExitBtn {
	grid-column: 2;
	grid-row: 1;	
}

#clearFormBtn {
	grid-column: 3;
	grid-row: 1;	
}

#saveStayBtn {
	grid-column: 1;
	grid-row: 2;	
}

#saveExitBtn {
	grid-column: 2;
	grid-row: 2;	
}

/* Container for the pill elements inside a group */
.pillbox, .view_switcher {
  display: flex;
  flex-wrap: wrap; /* Allows pills to wrap to the next line */
  gap: var(--gapPillbox);
  width: 100%;
}

.Home_main_img {
	display: block;	
	width: 100%;
	height: auto;
}

.Home_main_img img {
	display: block;	
	width: 100%;
	height: auto;
	object-fit: contain; 
}



.Vignette_In, .Vignette_Out
{
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 100;
	box-sizing: border-box;	
}

.Vignette_In
{
	box-shadow: 0 0 40px rgba(0,0,0,0.95) inset, 0 0 90px rgba(0,0,0,0.9) inset, 0 0 160px rgba(0,0,0,0.8) inset;
}

.Vignette_Out
{
	box-shadow: 0 0 40px rgba(0,0,0,0.95), 0 0 90px rgba(0,0,0,0.9), 0 0 160px rgba(0,0,0,0.8);
}
