:root {
  --birep-text-color: #2779aa;
  --birep-back-color: #f2f5f7;
  --birep-page-min-width: 400px
}

/*======================================== TO BE MOVED IN EXTENSIONS ===========================================*/

.ui-dataview-row.grid {
	display: flex;
	flex-wrap: wrap;
}
.ui-dataview-header {
	padding: 0 1rem !important;
}

.ui-toolbar {
    min-height: 1rem;
    height: auto;
    padding: 0.3rem .5rem !important;
}

/*======================================== SIDEBAR ===========================================*/
.cml-sidebar {
	min-width: 25rem;
}
/*======================================== MEDIA ===========================================*/
@media print {
  .no-print {
    display: none !important;
  }
}
/*======================================== GENERAL ===========================================*/
.cml-guide-image {
	width: 100%;
	max-width: 800px;
	box-shadow: 0 0.15rem 0.5rem rgba(0,0,0,0.15);
}
.summaryContent {
	background: lightgray !important;
	text-align: left;
	min-height: 2rem;
	padding-top: 0.2rem;
}

.configurationContent {
	background: lightgray !important;
	text-align: left;
}
.hiddenElement { 
  display: none !important;
} 
.hiddenTableFilter {
	display: none; 
	visibility: hidden;
}
.unsatisfiedActivities {
	background-color: orangered;
}

.satisfiedActivities {
	background-color: greenyellow;
	color: black;
}
.vertical-align-middle {
	vertical-align: middle !important;
}
.payment-status-SUCCESS {
	border-radius: 5px;
 	background: yellowgreen;
  	padding: 2px;
  	color: white;
}

.payment-status-FAILED {
	border-radius: 5px;
 	background: orangered;
  	padding: 2px;
  	color: white;
}

.payment-status-PENDING {
	border-radius: 5px;
 	background: goldenrod;
  	padding: 2px;
  	color: white;
}

.cml-status-dialog .ui-dialog-content {
	align-content: center;
	background: transparent !important;
}
.cml-status-dialog {
	text-align: center;
	vertical-align: middle;
}
.cml-pricing-header {
}
.cml-pricing-column {
	text-align: center;
}
.cml-pricing-text {
	display: inline-block !important;
}
.cml-pricing-image {
	height: 1rem;
}
/*======================================== HEADER ===========================================*/
.app-header-text {
	text-align: center !important;
	vertical-align: middle !important;
	font-size: 150% !important;
	font-weight: bold;
	color: var(--birep-back-color);
}
.birep-main-header {
	min-width: var(--birep-page-min-width);
	text-align: right; 
	background: rgb(215,237,249);
	background: var(--birep-text-color);
	border:none;
	display: flex;
}
.birep-header-toolbar {
	text-align: right; 
	background:transparent; 
	border:none;
	padding: 0;
}

.birep-header-center {
	background: transparent !important;
	text-align: center;
	border: none;
	padding: 0;
	flex:1;
}

.birep-header-center .ui-panel-content,
.birep-header-toolbar .ui-panel-content {
    background-color: transparent !important;
	border: none !important;
}


/*================================== FOOTER ==============================*/
.page-footer {
	background: linear-gradient(180deg, var(--primary-100) 0%, var(--primary-200) 22%, var(--primary-50) 100%);
	min-width: var(--birep-page-min-width);
}
.page-footer * {
	color: var(--birep-text-color) !important;
}
.page-footer .ui-panel-content {
    background-color: transparent !important;
	border: none !important;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;                /* было 40px */
    flex-wrap: wrap;
    padding: 10px 10px 20px;  /* верхний отступ уменьшен в 2 раза */
}

.footer-column {
    min-width: 15rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;                 /* в 2 раза меньше (было 10px) */
}

.footer-title {
    font-weight: bold;
    margin-bottom: 0.25rem;       /* было 8px */
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;                 /* чуть компактнее */
    font-size: 1rem;
    line-height: 1;           /* уменьшено spacing по вертикали */
}

.footer-item i {
    font-size: 1.1rem;
    opacity: 0.85;
}

.footer-payments {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;                 /* было 8px */
}

.footer-bottom {
    text-align: center;
    padding: 0.3rem 0;           /* было 10px */
    font-size: 0.9rem;
    opacity: 0.7;
}

/*================================== MENU ==============================*/
.system-menu {
	width: 3.8rem;
	overflow: hidden !important;
}

.system-menu .ui-tabmenu-nav {
	margin-top: 0rem !important;
	overflow-x: hidden !important;
}


/*================================== BODY ==============================*/
.birep-main-body {
	min-width: var(--birep-page-min-width);
	background:transparent;
	border:none;
	display: flex;
}

.birep-body-content {
	width: 90%;
	background: transparent !important;
	padding: 0rem;
	flex:1;
}
.birep-body-content .ui-panel-content {
	padding: 0rem !important;
}
/*================================== PANEL ==============================*/
.birep-transparent-panel {
	background:transparent; 
	border:none;
}

.panel-footer {
	text-align: right; 
	background:transparent; 
	border:none
}

.panel-footer .ui-panel-content {
    background-color: transparent !important;
	border: none !important;
	padding-right: 0rem !important;
}

.ui-noborder.ui-panelgrid>*>tr,
.ui-noborder.ui-panelgrid .ui-panelgrid-cell {
    border: none;
    background: transparent !important;
}

.ui-panelgrid.ui-noborder .ui-widget-content, 
.ui-panelgrid.ui-noborder .ui-widget-header {
	background: transparent !important;
}

.panel-transparent {
	background:transparent; 
	border:none
}
.panel-transparent .ui-panel-content {
	border: none !important;
}

.birep-panel-header {
	color: white !important;
	
}
.birep-panel-header .ui-panel-content {
	border: none !important;
	background: var(--birep-text-color) !important;
}

/*================================== TABVIEW ==============================*/
/* Desktop: show both */
.tab-icon { margin-right: .5rem; }
.tab-text { display: inline; }

/* Mobile: hide text, keep icons */
@media (max-width: 768px) {
    .ui-tabs-left .tab-text {
        display: none !important;
    }
    .ui-tabs-left .tab-icon {
        margin-right: 0;
        font-size: 1.4rem;
    }
	/* Shrink each tab */
	    .ui-tabs-left .ui-tabs-nav li {
	        width: 3rem !important;
	        min-width: 3rem !important;
			padding-left: 0.25rem !important;
			padding-right: 0.25rem !important;
	    }

	    /* Shrink the entire tab column */
	    .ui-tabs-left .ui-tabs-nav {
	        width: 3.5rem !important;      /* adjust as needed */
	        min-width: 3.5rem !important;
	        padding: 0 !important;
	    }

	    /* Reduce padding inside the anchor */
	    .ui-tabs-left .ui-tabs-nav li a {
	        padding: 0.1rem 0.2rem !important;
	        text-align: center !important;
	    }
		.ui-tabs-left .ui-tabs-panels {
		        margin-left: 3.5rem !important; /* same as nav width */
		        width: calc(100% - 3.5rem) !important;
		    }
			.ui-tabs-left .ui-tabs-panels .ui-tabs-panel {
				padding: 0.25rem !important;
			}
}
/*================================== TABLE ==============================*/
.birep-edit1-column {
	text-align: center !important;
    width: 1.5rem;
	max-width: 1.5rem;
    padding: 0px !important;
}

.birep-edit2-column {
	text-align: center !important;
    width: 3rem;
	max-width: 3rem;
    padding: 0px !important;
}

.birep-edit3-column {
	text-align: center !important;
    width: 4.5rem;
    padding: 0rem !important;
}

.birep-table-title {
	background: transparent !important;
	text-align: center;
	font-size: 130% !important;
	font-weight: bold;
	border: none;
	padding: 0;
	flex:1;
	align-content: center;
}

.birep-table-toolbar {
	text-align: right; 
	align-content: center;
	padding: 0;
}

.birep-table-header {
	text-align: right; 
	display: flex;
	height: 3rem;
	align-content: center;
}

.birep-table-header-text {
	color: white;
}

.birep-table-header-icon {
	color: white;
	margin: 0 0.5em;
	font-size: larger !important;
}
.cml-dashboard-toolbar-icon {
	margin: 0 0.5em;
}

.birep-table-header-button {
	color: white !important;
	height: 1.5rem;
}

.birep-table-header-button-check {
	height: 1.3rem;
}
/*================================== LABELS ==============================*/
.header-message-label {
	color: darkorange;
}

.caption-label {
	color: var(--birep-text-color) !important;
	background: transparent !important;
}

.warning-label {
	color: red;
}

.edit-label {
	color: darkorange;
}
.add-label {
	color: green;
}
.delete-label {
	color: red;
}
.download-label {
	color: var(--birep-text-color);
}

.info-label {
	color: rgb(128, 128, 128);
	font-size: 75% !important;
}

.value-label {
	
}

.bl-header {
	text-align: center !important;
	vertical-align: middle !important;
	font-size: 200% !important;
	font-weight: bold;
	
}
.cml-registration-header {
	background: var(--birep-text-color);
	color: var(--birep-back-color);
}

.cml-registration-panel {
	margin: 0 auto;
	padding: 0.5rem;
	max-width: 35rem;
	border-radius: 0.65rem;
	box-shadow: 0 0.15rem 0.5rem rgba(0,0,0,0.15);
}

/*=================================== DATAVIEW ==================================================*/
.birep-dataview-item {
	min-width: 15rem;
	max-width: 25rem;
	padding: 0.5rem;
	margin: 0.25rem;
	border-radius: 0.65rem;
	font-size: 1.1rem;
	box-shadow: 0 0.15rem 0.5rem rgba(0,0,0,0.15);
}

.ui-dataview.cml-no-background .ui-dataview-header,
.ui-dataview.cml-no-background .ui-dataview-content {
	background: transparent;
}
.birep-dataview-label {
	color: var(--birep-text-color) !important;
	background: transparent !important;
	width: 10rem; 
	display: inline-block
}
/*=================================== Landing page ==================================================*/
.birep-landing-container {
	justify-content: center;
	background-image: url('/images/fon2.png');
	background-size: 100% auto;
	background-position: center top;
	background-repeat: no-repeat;
	border-radius: 0.75rem;
}

.birep-landing-header {
	width: 100%;
	padding: 1.25rem;
	border-radius: 0.65rem;
	text-align: center;
}
.birep-landing-item {
	background-color: rgba(245, 245, 245, 0.5);
	max-width: 30rem;
	padding: 1.25rem;
	border-radius: 0.65rem;
	font-size: 1.1rem;
	text-align: left;
	box-shadow: 0 0.15rem 0.5rem rgba(0,0,0,0.15);
}
.birep-landing-item-image {
	background-size: 100% auto;
	background-position: center top;
	background-repeat: no-repeat;
	height: 100%;
}
.cml-landing-solutions {
	padding: 1.25rem;
	border-radius: 0.65rem;
	font-size: 1.1rem;
	text-align: left;
	box-shadow: 0 0.15rem 0.5rem rgba(0,0,0,0.15);
}
.cml-landing-item-title {
	font-weight: bold;
	font-size: larger !important;
}
.cml-landing-item-text {
	font-weight: normal;
}
.cml-landing-pay-fr {
	font-weight: normal;
	margin-bottom: 1rem;
}
.cml-landing-page-text {
}
.cml-landing-item-solution-text {
	font-weight: bold;
	font-size: larger !important;
	color: brown;
}
/*================================= SIZES ================================*/
.birep-relative-30 {
	width: 32%;
}
.birep-relative-50 {
	width: 49%;
}
.birep-relative-65 {
	width: 65%;
}
.birep-relative-100 {
	width: 100%;
}

.birep-relative-min-32 {
	min-width: 32%;
}
.birep-relative-min-65 {
	min-width: 65%;
}
.birep-regions-table {
	width: 30%;
	min-width: 25rem;
}
.birep-organisations-table {
	width: 70%;
	min-width: 25rem;
}
.birep-products-table {
	width: 30%;
	min-width: 25rem;
}
.birep-sale-products-table {
	width: 70%;
	min-width: 25rem;
}

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

.fixed-width-150 {
	width: 150px;
}

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

.fixed-width-400 {
	width: 400px;
}

.fixed-width-600 {
	width: 600px;
}

.fixed-width-20 {
	width: 20px;
}

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

.max-width-150 {
	max-width: 150px;
}

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

.max-width-400 {
	max-width: 400px;
}

.max-width-600 {
	max-width: 600px;
}

/* ========================= Divider ==============================*/
/* Divider line */
.birep-divider.ui-divider-horizontal.ui-divider-solid {
    border-top: 1px solid #d0d0d0;      /* light gray top */
    border-bottom: 1px solid #f8f8f8;   /* subtle 3D bottom */
    height: 2px;                          /* line thickness */
    background: linear-gradient(#f8f8f8, #e6e6e6); /* 3D gradient */
    color: #f8f8f8;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Centered content panel */
.birep-divider .ui-divider-content .ui-panel {
    background: var(--birep-back-color);                 /* white background */
    padding: 0 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15); /* subtle 3D effect */
    height: 30px;
    align-content: center;
    text-align: center;
    font-size: larger;
}

/* ========================= Vertical picklist ==============================*/
/* The picklist root itself gets your styleClass */
.vertical-picklist {
    /* For newer PF versions that use flex */
    display: flex;
    flex-direction: column !important;
}

.vertical-picklist .ui-picklist-list-wrapper{
    width: 100% !important;
}

/* Override horizontal floats / inline layout */
.vertical-picklist .ui-picklist-listwrapper,
.vertical-picklist .ui-picklist-buttons {
    float: none !important;
    display: block;
    width: 100%;
}

.vertical-picklist .ui-picklist-source,
.vertical-picklist .ui-picklist-target {
	width: 100%;
}

/* Optional: spacing and centering of buttons */
.vertical-picklist .ui-picklist-buttons {
    text-align: center;
	width: 100% !important;
	height: 2.5rem;
}

/*  make the buttons horizontal */
.vertical-picklist .ui-picklist-buttons-cell {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem; /* spacing between buttons */
    margin: 0.15rem 0;
}

/* Ensure buttons themselves don't stretch */
.vertical-picklist .ui-picklist-buttons .ui-button {
    width: 2rem !important;
	transform: rotate(0deg); /* ensure no accidental rotation */
}

/* MOVE DOWN (single) — replaces ui-icon-arrow-1-e */
body .ui-picklist.vertical-picklist
     .ui-picklist-buttons 
     .ui-icon-arrow-1-e:before {
    content: "\e930" !important; /* pi-angle-down */
}

/* MOVE UP (single) — replaces ui-icon-arrow-1-w */
body .ui-picklist.vertical-picklist
     .ui-picklist-buttons 
     .ui-icon-arrow-1-w:before {
    content: "\e933" !important; /* pi-angle-up */
}

/* MOVE ALL DOWN — replaces ui-icon-arrowstop-1-e */
body .ui-picklist.vertical-picklist
     .ui-picklist-buttons 
     .ui-icon-arrowstop-1-e:before {
    content: "\e92c" !important; /* pi-angle-double-down */
}

/* MOVE ALL UP — replaces ui-icon-arrowstop-1-w */
body .ui-picklist.vertical-picklist
     .ui-picklist-buttons 
     .ui-icon-arrowstop-1-w:before {
    content: "\e92f" !important; /* pi-angle-double-up */
}

/* ========================================== Button fills panel ==============================*/
/* Make the button fill the entire panel */
/* Generic reusable class for full-area icon buttons */
/* Apply to any p:panel that should allow its content to fill remaining space */
.full-height-panel {
    display: flex;
    flex-direction: column;
}

/* Make the content area expand to fill leftover space under the header */
.full-height-panel .ui-panel-content {
    flex: 1 1 auto;
    padding: 0 !important; /* optional */
    display: flex;          /* allows child button to stretch */
}


/* Full-area tile button */
.full-tile-button {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    padding: 0 !important;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1 !important; /* prevents vertical drift */
}

/* Reset icon wrapper */
.full-tile-button .ui-button-icon-left {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
	font-size: 3rem !important;
}

/* Reset actual PrimeIcon and scale it */
.full-tile-button .ui-button-icon-left .pi {
    
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*====================================== SELECTONE =================================*/
.ui-selectonemenu.fill-width {
	width: 100%;
}

.ui-selectonemenu.fill-width-95 {
	width: 95%;
}

.ui-selectonemenu.fill-width-90 {
	width: 90%;
}
.birep-table-header-button-check {
	height: 1.3rem;
}

.birep-selectone-custom-button {
        display: inline-block;
        padding: 0.5rem 1rem;
        margin: 0.25rem;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
        background: #fff;
        cursor: pointer;
        transition: all 0.2s;
}
.birep-selectone-custom-button:hover {
        background: #f8f9fa;
}
.birep-selectone-custom-button.ui-state-active {
        background: var(--birep-text-color);
        color: #fff;
        border-color: var(--birep-text-color);
}
/*====================================== DASHBOARDS =================================*/
.birep-dashboard {
	min-width: 25rem;
}

.tree-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 14px;
    width: 20rem; /* adjust as needed */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
    white-space: normal;
}

.tree-card-title {
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    color: black;
    width: 100%;
    display: block;
    margin-bottom: 4px;
}

/* label rows */
.tree-card-row {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-wrap: wrap;
    color: gray;
}

.tree-card-label {
    font-weight: bold;
}

/* Make the row a 2-column grid: label + value */
.address-row {
    display: grid;
    grid-template-columns: max-content 1fr; /* Label auto-size, text fills rest */
    column-gap: 6px; /* space between label and text */
}

/* Prevent label from pushing the wrapping */
.address-row .tree-card-label {
    font-weight: bold;
    white-space: nowrap;
}

/* Allow text to wrap normally but align under itself */
.address-row .tree-card-value {
    white-space: normal;
    word-break: break-word;
}

/* ---- Ensure the PrimeFaces treenode itself wraps text ---- */
#domainsForm\:doms .ui-treenode-label {
    white-space: normal !important;
}

/* ---- Vertically center the plus/minus toggler ---- */
#domainsForm\:doms .ui-treenode-content {
    display: flex;
    align-items: center; /* vertical center for toggler + label */
    gap: .5rem;
}

#domainsForm\:doms .ui-tree-toggler {
    margin-right: 0.25rem;
}

/* ===================== Customize Domains tree =======================================*/
/* Make header a 3-column flexbox */
.panel-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Left side: button group */
.panel-header-buttons {
    position: absolute;
    left: 0;
    display: flex;
    gap: 0.5rem;
}

/* Right spacer to balance center alignment */
.panel-header-spacer {
    width: 0; /* not shown, only for balance */
    position: absolute;
    right: 0;
}

/* Title centered regardless of button width */
.panel-header-title {
    margin: 0 auto;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.upload-requirements {
	color: gray; 
	font-size: smaller;
}

/*===================================================================================*/
/* layout which displays two elements in a row and second element fills available space*/
.fill-available-row {
    display: flex;
    align-items: center;
    gap: 0.3rem; /* spacing between label and spinner */
    width: 100%;
	margin-bottom: 0.2rem;
	margin-top: 0.2rem;
}

.fill-available-label {
    white-space: nowrap; /* prevents label from breaking */
}

.fill-available-filler {
	flex: 1; /* spinner fills all remaining space */
}
