/* parts table */

.parts-table-container {
  overflow-x: auto; /* Add horizontal scroll when content overflows */
}

.parts-table tbody {
  font-size: 12px;
}
.parts-table thead {
  background-color: #f2f2f2;
}

.parts-table input[type="text"],select {
  height: 14px !important;
  min-height: 24px !important;
  padding: 3px;
  box-sizing: border-box;
  font-size: 12px;
  width: auto;
}


.parts-table-input-figure {
    width: 150px !important;
}

.parts-table-input-name {
    width: 150px !important;
}
.parts-table-input-material{

}
.parts-table-input-pocet{
    width: 50px !important;
}
.parts-table-input-dimension{
    width: 70px !important;
    max-width: 70px !important;
}
.parts-table-selectbox-edge{
    width: 100px !important;
}

.parts-table-selectbox-edge-hidden {
    display: none;
}

.parts-table-selectbox-tupl{
    width: 100px !important;
}
.parts-table-selectbox-lepidlo {
    width: 70px !important;
}

.parts-table th {
  text-transform: none;
  line-height: 15px;
}

.parts-table th, table td {
  padding: 10px 5px 10px 5px !important;
}

#forms-list-buttons {
    display: flex;
    gap: 5px;
}

.mat-selector {
    display: flex;
    align-items: center;
    min-width: 110px;
}

.mat-selector:hover {
    cursor: pointer;
}

.mat-title {
    flex: 1;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.mat-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.mat-icon img, .mat-icon span {
    display: inline-block;
    vertical-align: middle;
}   

.group-material-info:hover {
    cursor: pointer;
}

h2 .icon {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.figure-input {
    max-width: 200px;
}

.button-sm {
    padding: 5px !important;
}

.button-remove-favoutires-modal {
    padding: 5px !important;
}

#favourites-button-container-modal .button-sm {
    padding: 14px !important;
}

#favourites-button-container-modal img {
    filter: grayscale(100%);
}

.lamino-list tbody tr:hover{
    border: 3px solid #000 !important;
}

.icon-lamino {
    display: inline-block;
    max-width: 60px;
    margin-left: 20px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.form-section{
    margin-top: 20px;
    margin-bottom: 20px;
}

.nf tr td {
    text-align: left;
}

.navtab-button {
    background-color: white;
    padding-left: 10px;
    padding-right: 10px;
    border-width: 0px;
    font-size: large;
    color: black;
}

.navtab-button-active {
    background-color: #d9d9d9;
    padding-left: 10px;
    padding-right: 10px;
    border-width: 0px;
    font-size: large;
    color: black;
}

.editor-table{
    margin-bottom: 0px;
}

.editor-table tr td{
    border-width: 0px;
}

.register-form{
    text-align: center;
}

.register-form .form-section {
    display: block;
    text-align: center;
}

/*
input[type="text"], input[type="email"], input[type="number"], textarea, select {
  background-color: #00000014 !important;
}
*/

input[type="text"]:focus, input[type="email"]:focus, input[type="number"]:focus {
  /*background-color: #ff8989 !important;*/
  border-color: #e9322d !important;
}

select:focus {
   /*background-color: #ff8989 !important;*/
   border-color: #e9322d !important;
}


.button-alert {
    background-color: #fffb01 !important;
    color: red !important;
    border-width: 3px !important;
    border-style: solid !important;
    margin-left: 20px !important;
    cursor: default !important;
}
.button-alert:hover {
    color: red !important;
}

.th-middle th{
    text-align: center;
}

table th,
table td {
 vertical-align:middle !important;
}

.button-main{
    margin-bottom: 5px !important;
}

.figure {
    background: #f0f8ff;
}

.top-buttons {
    text-align: left;
}

.top-buttons a {
  text-decoration: none !important;
}

.top-buttons-editor {
    text-align: left; 
    margin-bottom: 30px;
}

.top-buttons-editor a {
  text-decoration: none !important;  
}

.top-buttons-editor .button-navod {
  margin-left: 20px;
}


/*--- TOOLTIPS ---*/
    /* Tooltip container */
    @media screen and (max-width: 900px) {
        .tooltip {
          visibility: hidden;
        }
    }
    
    .tooltip {
      position: relative;
      display: inline-block;
    }    
    
    /* Tooltip text */
    .tooltip .tooltiptext {
      visibility: hidden;
      width: 400px;
      background-color: #3e80fd;
      color: #fff;
      text-align: left;
      padding: 5px;
      border-radius: 6px;

      /* Position the tooltip text*/
      position: absolute;
      z-index: 1;
      top: -5px;
      left: 105%;
    }

    /* Show the tooltip text when you mouse over the tooltip container */
    .tooltip:hover .tooltiptext {
      visibility: visible;
    }
    
    .tooltip img{
        max-width: 30px;
    } 

    
    /* --- import --- */
    #file-drop-area {
        border: 2px dashed #ccc;
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        cursor: pointer;
        transition: border 0.3s;
        margin-top: 20px;
    }

    #file-drop-area:hover {
        border: 2px dashed #007bff;
        background-color: #f0f0f0;
    }

    #file-drop-area i {
        font-size: 48px;
        color: #007bff;
        margin-bottom: 10px;
    }

    #file-drop-area p {
        font-size: 18px;
        color: #333;
    }
    
    .import-results {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;        
    }
    
    .import-results h3 {
        margin-top: 20px;
    }

    /* NF table*/
    /* Reset default table styles */
    .NF-table {
        border-collapse: collapse;
        width: 100%;
        margin: 20px auto;
    }

    /* Style for table header and footer*/
    .NF-table th,
    .NF-table tfoot {
        background-color: #f2f2f2;
        text-align: left;
        padding: 10px;
    }

    /* Style for table rows */
    .NF-table td {
        border-bottom: 1px solid #e0e0e0;
        padding: 10px;
    }

    .NF-table a {
        text-decoration: none !important;
    }

    .clickable-row {
        cursor: pointer;
    }

    .dashicons-small {
        width: 10px;
        height: 10px;
        font-size: 10px;
    } 
    
    select[readonly] {
      pointer-events: none;
      background-color: #f0f0f0; /* You can adjust the background color as needed */
      cursor: not-allowed;
    }
    
    .linear-loading-icon {
        display: none;
        filter: grayscale(100%); 
    }

    .selectbox-with-loading {
        width: 100px !important;
        display: flex;
        align-items: center;
    }
    
    .selectbox-wrap-safari {
        width: 80%;
    }

    .edge-warning::before {
      color: #FFD700;
    }        
    .edge-warning {
      display: none;  
    }
    
    .input-with-warning {
        display: flex;
        align-items: center;
    } 

    .dim-warning::before {
      color: #F00;
    }        
    
    .dim-warning {
      display: none;  
    }    

    .edge-dim-warning::before {
      color: #FFD700;
    }      
    
    .edge-dim-warning {
      display: none;  
    }
    
    .dim-warning-length::before {
      color: #F00;
    }        
    
    .dim-warning-length {
      display: none;  
    }
    
    .dim-warning-width::before {
      color: #F00;
    }        
    
    .dim-warning-width {
      display: none;  
    }     
    
    /* Hover effect */
    .NF-table tbody tr:hover {
        background-color: #f5f5f5;
    }    
    
    .dashicons-warning, .dashicons-info  {
        position: relative;
    }
    
    .dashicons-info  {
        bottom: 10px;
        margin-left: 5px;
    }    

    .dashicons-warning .tooltip-text,
    .dashicons-info .tooltip-text {
        visibility: hidden;
        background-color: #e5f1f4;
        color: #575757;
        text-align: center;
        border-radius: 6px;
        padding: 5px 5px 12px 5px;
        position: absolute;
        z-index: 1;
        top: 50%;
        left: 110%;
        transform: translateY(-50%);
        white-space: nowrap;
        border: 1px solid;
        font-size: 16px;
    }
    
    .dashicons-warning:hover .tooltip-text,
    .dashicons-info:hover .tooltip-text {
        visibility: visible;
    }  

    .input-with-warning .tooltip-text {
        text-align: left !important;
    }
    
    .NF-material-group-subheader .info-icon-wrapper {
        display: inline;
        align-items: center;
    }
    
    .NF-info-icon::before {
      color: #299BFF;
    }

    .info-icon-wrapper:hover .edge-select-image {
        display: block;
    }

    .edge-select-image {
        display: none;
        position: absolute;
        top: -150px;
        right: 70px;
        max-width: 450px;
        z-index: 10;
    }    
    
    .figure-input-wrapper {
        display: flex;
        align-items: center;
    }

    .figure-input-wrapper > * {
        margin-right: 10px;
    }    

    .info-icon-wrapper a {
        text-decoration: none !important;
    }
    
    .info-icon-wrapper a:focus {
        outline: none !important;
    }

    .figure-input-wrapper h5 {
        margin-bottom: 0px;
    }    
    
    
    /* result table */
    
    /* Reset default table styles */
    .result-table {
        border-collapse: collapse;
        width: 100%;
        margin: 20px auto;
    }

    /* Style for table header and footer*/
    .result-table th,
    .result-table tfoot {
        background-color: #f2f2f2;
        text-align: left;
        padding: 10px;
    }

    /* Style for table rows */
    .result-table td {
        border-bottom: 1px solid #e0e0e0;
        padding: 10px;
    }

    /* Hover effect */
    .result-table tbody tr:hover {
        background-color: #f5f5f5;
    }
    
    /* result galery */
    .result-gallery .result-thumbnails img {
        width: 200px;
        height: auto;
    }
    
    .result-table tfoot td{
        font-weight: bold;
    }
    
    #optimized-results-table{
        text-align: center;
    }    
    
    /* layouts */
    .result-thumbnails img {
        transition: transform 0.3s ease-in-out;
    }

    .result-thumbnails img:hover {
        transform: scale(1.05); /* Adjust the scale value as needed */
    }

    
    /* full width */
    .container {
      width: auto !important;
        max-width: none !important;
    }

    .content-area {
      width: 100% !important;
    }
    
    .figure-alerts {
        margin-top: 5px;
    }

    


/* Container for the table and overlay */
.parts-table-container {
    position: relative;
}

/* Overlay covering the table */
.parts-table-overlay {
    overflow-x: auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(204, 219, 223, 0.5);
    z-index: 1;
    text-align: center;
}

.parts-table-overlay h2 {
    color: rgba(123, 123, 123, 0.7);
    margin-top: 40px;
}

.button-delete-opt {
    background-color: #ff8b1047;
    font-size: 25px;
    margin-top: 35px;
    color: #0b0b0b;
    padding-left: 10px;
    padding-right: 10px;
    border-style: solid;
    border-width: 1px;
    border-color: black;
}

.button-delete-opt:focus {
  background-color: #ff898900;
}

.opt-row-upper {
    font-size: 16px;
    font-weight: bold;
}

.opt-row-lower {
    font-size: 12px;
}

.opt-total-upper {
    font-size: 18px;
    font-weight: bold;
}

.opt-total-lower {
    font-size: 16px;
    font-weight: normal;
}


/* ROW EDITOR */
.NF-section-half {
    flex: 1;
}
.NF-editor-order-detail {
    text-align: left;
    display: flex;
}

.NF-editor-order-detail label{
    font-weight: bold;
    margin-right: 5px;
}

.NF-half-image-container {
    text-align: center;
}

.NF-edit-group-material .group-material-info {
    display: flex;
    align-items: center;
}

.NF-edit-group-material #group-material-icon img {
    max-width: 80px;
    max-height: 80px;
    margin-right: 10px;
}

.NF-edit-group-material td:nth-child(3){
    text-align: right;
    min-width: 250px;
    padding-right: 30px !important;
}

.NF-edit-group-material td:nth-child(3) img{
    filter: grayscale(100%);
    max-height: 40px;
    width: auto;
}


.NF-vop {
    margin-top: 50px;
    margin-bottom: 20px;
}

.NF-new-group-mat-button {
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    text-align: center;
    border-radius: 10px;
    background-color: rgba(173, 216, 230, 0.5);
    padding: 10px;
    cursor: pointer;
}

.NF-new-group-mat-button .mat-icon, .NF-new-group-mat-button h1 {
    margin: 0 10px;
}

.NF-new-group-mat-button .mat-icon img {
    max-width: 100%;
    height: auto;
}

.NF-material-group-subheader {
    background: #e9e9e9;
    font-size: 16px;
    line-height: 15px;    
}

.mr-10 {
    margin-right: 10px !important; 
}



/* ALERTS */
/* Style for the alert container */
.NF-alert {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 3px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: fit-content;
}

/* Style for the alert icon */
.alert-icon {
  color: white;
  margin-right: 10px;
}

/* Style for the content inside the alert */
.alert-content {
  text-align: center;
}

/* Additional styles for the heading and paragraph */
.alert-content h4 {
  margin: 0;
  font-size: 14px;
  color: white;
  line-height: 1.2;
}

/* figures */

.figures-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-section {
    display: flex;
    align-items: center;
    padding: 5px;
}

.figure-delete-button {
    cursor: pointer;
}


/**** MODAL ****/

.modal-container {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-input-container {
    border: 2px solid darkgrey;
    border-radius: 5px;
    margin: 20px;
    padding: 10px;    
    text-align: left;
    max-width: 500px;    
}

.modal-input-container table{
    margin-bottom: 0px;
}

.modal-input-container table tr {
    line-height: 0;
}

.modal-input-container table tr td {
    border: none;
}

.modal-container .ptree {
    height: auto;
}

.info-modal-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}


.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    max-width: 40%;
}



.wide-modal {
    max-width: 90%;
}

.modal-half {
    float: left;
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
}

.modal-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}
.modal-header .dashicons {
    width: 80px;
    height: 80px;
    font-size: 80px;
    color: orange;
}
  
.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 10px 0;
    text-align: center;
    margin-top: 25px;
}

.modal-footer {
    margin-top: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-footer button {
    margin: 0 15px;
}


.modal-deska-mat-params-table tr td:first-child{
    font-weight: bold;
    max-width: 20px;
}

.modal-edge-type-wrapper label {
    display: block;
}

.NF-mat-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 200px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.04);
    z-index: 5;
    display: none;
    justify-content: center;
    align-items: center;    
}
#same-edge-no-edge {
    display: none;
}

.centered-content {
    margin-bottom: 15%;
}

#icon-deska img {
    max-width: 150px;
}

#icon-hrana-different img {
    max-width: 150px;
}

#icon-hrana-same img {
    display: inline-block;
    margin: 0 auto;
    max-width: 150px;
}



.NF-pagination-button {
    margin: 5px !important;
}

.NF-pagination-button-current-page {
    background-color: #9b9b9b !important;
}

.NF-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.NF-modal-list-in-stock {
    font-weight: bold;
    color:green;
}

.NF-modal-list-not-in-stock {
    font-weight: bold;
    color:red;
}

/*** edge select radio buttons ***/
div.modal-edge-type-wrapper.custom-radio-wrapper ul {
  list-style-type: none;
}

div.modal-edge-type-wrapper.custom-radio-wrapper li {
  display: inline-block;
}

div.modal-edge-type-wrapper.custom-radio-wrapper input[type="radio"][id^="cb"] {
  display: none;
}

div.modal-edge-type-wrapper.custom-radio-wrapper label {
  border: 1px solid #fff;
  padding: 10px;
  display: block;
  position: relative;
  margin: 10px;
  cursor: pointer;
}

div.modal-edge-type-wrapper.custom-radio-wrapper label:before {
  background-color: white;
  color: white;
  content: " ";
  display: block;
  border-radius: 50%;
  border: 1px solid grey;
  position: absolute;
  top: -5px;
  left: -5px;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 28px;
  transition-duration: 0.4s;
  transform: scale(0);
}

div.modal-edge-type-wrapper.custom-radio-wrapper label img {
  height: 100px;
  width: 100px;
  transition-duration: 0.2s;
  transform-origin: 50% 50%;
}

div.modal-edge-type-wrapper.custom-radio-wrapper :checked + label {
  border-color: #ddd;
}

div.modal-edge-type-wrapper.custom-radio-wrapper :checked + label:before {
  content: "✓";
  background-color: grey;
  transform: scale(1);
}

div.modal-edge-type-wrapper.custom-radio-wrapper :checked + label img {
  transform: scale(0.9);
  box-shadow: 0 0 5px #333;
  z-index: -1;
}

/* Style for the text under the images */
div.modal-edge-type-wrapper.custom-radio-wrapper label p {
  text-align: center;
}

div.modal-edge-type-wrapper.custom-radio-wrapper li.disabled-style {
  opacity: 0.7;
  pointer-events: none;
}
