nt{
    font-weight: normal !important;
}

.ui-tabs-panels{
    border-style: none !important;
}

.ui-tabs.ui-tabs-top .ui-tabs-nav .ui-tabs-header {
    border-bottom: 1px solid #c8c8c8 !important;
}

.basicRow {
    background-color: window !important;
}

.boldRow{
    font-weight: bold !important;
}

.storeOrderRow{
    background-color: #dddddd !important;
    font-weight: bold !important;
}

.excludedOrderRow{
    background-color: #f7dbdb !important;
}

.RequestConfirmedRow {
    background-color: window !important;
}

.ResponsePrjRow {
    background-color: #fffad7 !important;
}

.ResponseConfirmedRow {
    background-color: #ccffff !important;
}

.ActorProfileOffRow {
    background-color: #fffad7 !important;
}

.ui-orderlist .ui-orderlist-list{
    height: 120px !important;
}

.ui-datatable.hborderless thead th {
    border-style: none;
    margin: 0px;
    padding-top: 15px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    padding-bottom: 0px !important;
}
.ui-datatable.borderless tbody,
.ui-datatable.borderless tbody tr,
.ui-datatable.borderless tbody td {
    border-style: none;
    padding-top: 15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-bottom: 15px !important;
}

.ui-treetable.hborderless thead th {
    border-style: none;
}

.ui-treetable.borderless tbody,
.ui-treetable.borderless tbody tr,
.ui-treetable.borderless tbody td {
    border-style: none;
}

.productInCartStatus {
    background-color: #bcc2c6 !important;
}

.treeNodeBase{
    color: #35495e !important;
}

.treeNodeCandidate{
    color: blue !important;
}

.treeNodeUnconfirmed{
    color: darkmagenta !important;
}

.treeNodeActual{
    color: limegreen !important;
}

.treeNodeUnderRevision{
    color: yellow !important;
}

.treeNodeEdited{
    color: orange !important;
}

.treeNodeForRemoval{
    color: pink !important;
}

.treeNodeDeprecated{
    color: blueviolet !important;
}

.treeNodeRemoved{
    color: red !important;
}

.basicRow {
    background-color: window !important;
}

.grayRow {
    background-color: whitesmoke !important;
    color: #585858 !important;
}

.candidateRow {
    /*background-color: #DCFBFC !important;*/
    background-color: #E5FCFD !important;
}

.unconfirmedRow {
    background-color: #FAE7FD !important;
}

.actualRow {
    background-color: #E6FFD1 !important;
}

.underRevisionRow {
    /*background-color: #FFF3DF !important;*/
    background-color: #FFFAD7 !important;    
}

.underRevisionSubRow {
    background-color: whitesmoke !important;
    /*color: #CD7F05 !important;*/
    color: #B47802 !important;    
}

.editedRow {
    /*background-color: #FFF3DF !important;*/
    /*background-color: #F5E578 !important;*/
    /*background-color: #FFF39F !important;*/
    background-color: #FEF4C7 !important;
}

.editedSubRow {
    background-color: whitesmoke !important;
    /*color: #CD7F05 !important;*/
    color: #A36E07 !important;    
}

.forRemovalRow {
    /*background-color: #FFD3D1 !important;*/
    /*background-color: #FFE1DC !important;*/
    background-color: #FFE8E7 !important;
}

.deprecatedRow{
    /*background-color: #FEDCA7 !important;*/
    background-color: #FFC39D !important;    
}

.removedRow{
    /*background-color: #F5A8A3 !important;*/    
    background-color: #FBB3AE !important;
}

.vl {
  border-left: 3px solid green;
  height: 7px;
}

.ui-menu .ui-button {
    background-color: #bcc2c6;
    border-color: #bcc2c6;
    color: #35495e;
    font-weight: normal !important;
    outline: none;
}

.ui-menu .ui-button:hover,
.ui-menu .ui-button:focus{
    background-color: #35495e;
    border-color: #35495e;
    color: white;
    outline: none;
}

.mMenuBlock .ui-menuitem-text {
    font-family: 'OFAM',Arial,sans-serif !important;
    font-size: 20px !important;
    font-weight: 300 !important;
}

.mMenuBlock .ui-menu.ui-menubar>.ui-menu-list>.ui-menuitem.ui-menubar-options {
    margin-top: 2px;
    float: left;
}

.mMenuBlock .ui-inputfield {
    border-radius: 0px;
}

.ui-datagrid-content-no-border .ui-datagrid-content {
   border: none !important;
}

.ui-datagrid-no-border.ui-datagrid *{
   border: none !important;
}

.ui-datagrid .ui-paginator {
    
}

/* Верхній пагінатор — sticky */
/*.object.card .ui-paginator-top {
    position: sticky;
    top: 0;
    padding-top: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #d2d2d2;  або виберіть будь-який потрібний колір/товщину 
    z-index: 2;
}*/

#searchForm .ui-datatable .ui-paginator.ui-paginator-top {
   border: none !important;
   position: sticky;
   top: 0;
   height: 38px;
   z-index: 2;
}

body .ui-datatable .ui-paginator {
    padding: 0;
}

.noHeader.ui-datatable table thead tr {
    display: none;
}

.logoBlock .ui-panel .ui-panel-content {
    margin: 0px;
    padding: 0px;
}

/*
.ui-datatable thead th {
    color: #35495e !important;
}
*/

.ui-tree .ui-state-highlight {
    background-color: #bcc2c6 !important;
}

.ui-layout-unit-content {
    border: none !important;
    margin: 0 !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.ui-layout-unit, ui-widget, ui-widget-content, ui-corner-all {
    border: none !important;
    margin: 0 !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 0 !important;
    padding-right: 0px !important;
}

ul.ui-menu-child {
    width: auto !important;
    min-width: 230px;
}

.ui-menuitem-text {
    color: #35495e !important;
    font-weight: bold !important;
}

.ui-menubar {
    z-index:0 !important;
    overflow:visible !important;
    border-radius: 0 !important;
    border-width: 0 !important
}

.ui-layout-west {
    border: none !important;
    margin: 0 !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    padding-left: 0px !important;
    padding-right: 5px !important; 
}

.ui-layout-center {
    border: none !important;
    margin: 0 !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 10px !important;
    padding-right: 0px !important; 
}

.ui-layout-south {
    height: 65px !important;
    border: none !important;
    margin: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 5px !important;
    padding-right: 5px !important; 
    background-color: #bcc2c6 !important;
    overflow:hidden !important;
}

.ui-layout-north {
    z-index:20 !important;
    overflow:visible !important;
}

.ui-layout-north .ui-layout-unit-content {
    overflow:visible !important;
}


.layoutTop{
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 130px;
    width: 100%;
}

.layoutTop_docSubHeader{
    display: flex;
    flex-direction: row;
    position: fixed;
    top: 131px;
    left: 0;
    height: 30px;
    width: 100%;
    align-items: center; /* Додаєш цю строку */
}

.layoutLeft{
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 132px;
    left: 0;
    height: calc(100% - 132px - 50px - 15px);
    width: 25%;
    overflow-x: hidden;
    overflow-y: auto;
}

.layoutLeftDoc{
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 162px;
    left: 0;
    height: calc(100% - 162px - 50px - 15px);
    width: 25%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 30px;
}

.layoutCenter{
    position: fixed;
    top: 132px;
    left: 26%;
    /*left: 0px;*/
    height: calc(100% - 132px - 50px - 15px);
    /*width: 100%;*/
    width: 74%;
    overflow: hidden;  
}

.layoutCenterDoc{
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 162px;
    left: 26%;
    height: calc(100% - 162px - 50px - 15px);
    width: 74%;
    overflow: hidden;
}

/*.panelObjectPath {
    display: flex;
    flex-direction: row;
    width: 100%
}*/

#formObject {
  height: 100%;
  width: 100%;
}

.sheetBlock {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.sheetInfoBlock {
    height: 21px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.sheetPhotoBlock {
    flex: 1 1 auto;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    display: flex;
}

#openseadragon-viewer2 {
    width: 100%;
    height: 100%;
    position: absolute; /* або static, якщо absolute не потрібен для цього плагіну */
    top: 0;
    left: 0;
}

.nav-button {
  width: 48px;
  height: 48px;
  background-color: #eef0f3;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #2e2e2e;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: background-color 0.2s ease;
  user-select: none;
  text-align: center;
  line-height: 48px;
  padding: 0;
}

.nav-button:hover {
  background-color: #dcdfe3;
}

.nav-button.prev {
  margin: 10px;
}

.nav-button.next {
  margin: 10px;
}

/* Робимо кнопку flex-контейнером і прибираємо padding */
.rounded-button.ui-button-flat.ui-button-plain.mid-icon {
    width: 34px;              /* Або свій розмір */
    height: 34px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 50%;       /* Кола, якщо треба */
    position: relative;
}
/* Центруємо іконку, прибираємо зайві відступи */
.rounded-button.ui-button-flat.ui-button-plain.mid-icon .ui-button-icon-left,
.rounded-button.ui-button-flat.ui-button-plain.mid-icon .ui-icon {
    position: static !important;
    left: unset !important;
    top: unset !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0px !important;
    font-size: 21px;           /* ≈60% кнопки */
    line-height: 1;
    width: 1em;
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Можна додати для вирівнювання, якщо дуже треба:
    vertical-align: middle;
    */
}
/* Ховаємо текст кнопки повністю */
.rounded-button.ui-button-flat.ui-button-plain.mid-icon .ui-button-text {
    display: none !important;
}

/* Робимо кнопку flex-контейнером і прибираємо padding */
.rounded-button.ui-button-flat.ui-button-plain.big-icon {
    width: 64px;              /* Або свій розмір */
    height: 64px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 50%;       /* Кола, якщо треба */
    position: relative;
}
/* Центруємо іконку, прибираємо зайві відступи */
.rounded-button.ui-button-flat.ui-button-plain.big-icon .ui-button-icon-left,
.rounded-button.ui-button-flat.ui-button-plain.big-icon .ui-icon {
    position: static !important;
    left: unset !important;
    top: unset !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0px !important;
    font-size: 50px;           /* ≈60% кнопки */
    line-height: 1;
    width: 1em;
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Можна додати для вирівнювання, якщо дуже треба:
    vertical-align: middle;
    */
}
/* Ховаємо текст кнопки повністю */
.rounded-button.ui-button-flat.ui-button-plain.big-icon .ui-button-text {
    display: none !important;
}

.contentBlock{
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
}

.contentBlockN {
    position: absolute;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%; /* Додано */
    overflow: hidden;
}

.contentBlockTop{
/*    position: absolute;
    display: block;
    height: 30%;
    width: 100%;
    padding-right: 30px;*/
    position: relative;
    display: flex;
    height: auto;
    width: 100%;
    padding-right: 30px;
}

.contentBlockTopN {
    flex-shrink: 0;
    width: 100%;
    padding-right: 30px;
    padding-bottom: 25px;
    /* Висота визначається контентом */
}

.contentBlockTopB{
/*    position: absolute;
    display: block;
    height: 30%;
    width: 100%;
    padding-right: 30px;*/
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
    padding-right: 30px;
}

.contentBlockTopPath{
    display: block;
    height: 24px;
    width: 100%;
}
.contentBlockTopAnnotation{
    display: block;
    /*height: 97px;*/
    height: auto;
    width: 100%;
    overflow: hidden;
}

.contentBlockDocList{
/*    position: absolute;
    display: block;
    top: 30.5%;
    height: 67%;
    width: 100%;
    padding-right: 30px;
    overflow: auto;*/
    position: relative;
    display: block;
    top: 15px;
    height: auto;
    width: 100%;
    padding-right: 30px;
    overflow: hidden;
}

.contentBlockDocListN {
    width: 100%;
    padding-right: 30px;
    overflow-y: visible; /* Вертикальна прокрутка за потреби */
    overflow-x: hidden; /* Горизонтальна прокрутка за потреби */
    /** КЛЮЧОВЕ: Бере решту висоти після верхнього блоку */
    flex: 1 1 auto;
    min-height: 0; /* Важливо для flex-basis auto й overflow */
}

/* Контейнер DataView займає 100% доступної висоти */
.object.card .ui-dataview {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Верхній пагінатор — sticky */
.object.card .ui-paginator-top {
    position: sticky;
    top: 0;
    padding-top: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #d2d2d2; /* або виберіть будь-який потрібний колір/товщину */
    z-index: 2;
}

/* Контент для прокрутки */
.object.card .ui-dataview-content {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0; /* Важливо для flex і overflow */
}

.contentBlockDocListTest{
    height: 125px;
    width: 100%;
    padding-right: 30px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: yellow;
}

.contentBlockDocTabl{
/*    position: absolute;
    display: block;
    top: 30.5%;
    height: 67%;
    width: 100%;
    padding-right: 30px;
    overflow: auto;*/
    position: relative;
    display: flex;
    top: 15px;
    height: auto;
    width: 100%;
    padding-right: 30px;
    overflow: hidden;
}

.contentBlockSheetList{
    position: relative;
    display: block;
    top: 0px;
    height: 475px;
    width: calc(100% - 35px);
    padding-right: 30px;
    overflow: auto;
}

.personDocContentBlock{
    overflow: hidden;
}

personDocTop{
    display: block;
    position: relative;
}

personDocTabl{
    display: block;
    position: relative;    
}

.nn {
    display: block;
    position: relative;
    height: calc(100% - 132px - 50px - 15px - 150px - 10px);
}

.layoutBottom{
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    height: 58px;
    width: 100%;
    background-color: transparent;
    vertical-align: middle;
}

.mainMenu{
    display: flex;
    width: 100%;
    padding: 0px;
    border-bottom: 1px solid #c8c8c8;
}

.pnlSticky {
    position: -webkit-sticky;
    position: -moz-sticky;
    position: -ms-sticky;
    position: -o-sticky;
    position: sticky;
    top: 0px !important;
    z-index:15 !important;
}

.baseHeaderLangSelector {
    font-family: 'OFAM',Arial,sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 0.5px;
}

.baseHeaderLangSelector .ui-commandlink:hover, .object .ui-link:hover {
    text-decoration: none !important;
}

.baseHeaderLangSelector .ui-state-disabled {
    opacity: 1;
}

#top {
    position: relative;
    background-color: #036fab;
    color: white;
    padding: 5px;
    margin: 0px 0px 10px 0px;
}

#bottom {
    position: relative;
    background-color: #c2dfef;
    padding: 5px;
    margin: 10px 0px 0px 0px;
}

#left {
    float: left;
    background-color: #ece3a5;
    padding: 5px;
    width: 150px;
}

#right {
    float: right;
    background-color: #ece3a5;
    padding: 5px;
    width: 150px;
}

.center_content {
    position: relative;
    background-color: #dddddd;
    padding: 5px;
}

.left_content {
    background-color: #dddddd;
    padding: 5px;
    margin-left: 170px;
}

.right_content {
    background-color: #dddddd;
    padding: 5px;
    margin: 0px 170px 0px 170px;
}

#top a:link, #top a:visited {
  color: white;
  font-weight : bold;
  text-decoration: none;
}

#top a:link:hover, #top a:visited:hover  {
  color: black;
  font-weight : bold;
  text-decoration : underline;
}

#searchForm .ui-panel .first-column {
    width: 175px;
    text-align: right;
}

#searchForm .ui-panel .second-column {
    
}

#searchForm .ui-panel .ui-panel-content {
    display: flex; /* або display: grid; */
    width: 100%;
    border: none !important;
}

#searchForm .ui-panel .ui-panel-footer {
    display: flex; /* або display: grid; */
    gap: 30%; /* встановлює відступ між кнопками */
    justify-content: center; /* Горизонтальне центрування */
    align-items: center; /* Вертикальне центрування */
    position: fixed;
    bottom: 5px;
    width: 100%;
    text-align: center !important;
    border: none !important;
}

#searchForm .ui-panelgrid .ui-panelgrid-cell{
    border: none !important;
}

#searchForm .ui-datatable.ui-datatable-sm .ui-datatable-data > tr > td {
    padding: 0.2rem 0.5rem !important;
}

body .ui-dialog .ui-dialog-titlebar
 {
    background: #ffffff;
    color: #495057;
    font-weight: 700;
    border-bottom: 0 none;
    padding-top: 5px;
    padding-bottom: 0px;
    padding-left: 15px;
    padding-right: 15px;
}

body .ui-dialog .ui-dialog-content
 {
    background: #ffffff;
    color: #495057;
    border: 0 none;
    padding: 0 1.5rem 0 1.5rem;
    border: 0 none;
}

body .ui-datatable.ui-datatable-sm thead > tr > th {
    padding: 0.3rem 0.5rem;
}

body .ui-datatable thead th {
    background: #f8f9fa;
    color: #495057;
    padding: 1rem 1rem;
    border: 1px solid #e9ecef;
    border-width: 0 0 1px 0;
    text-align: left;
    box-sizing: content-box;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

body .ui-datatable .ui-datatable-data > tr > td {
    padding: 1rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-width: 0 0 1px 0;
}

body .ui-datatable .ui-paginator.ui-paginator-bottom {
    border-width: 0 0 1px 0;
    border-radius: 0;
}

body .ui-paginator {
    background: #ffffff !important;
    border-width: 0;
    padding: 1rem;
}