/* ---------- Palette variables ---------- */
:root{
  --pli-orange: #FF931D;   /* accent 1 */
  --pli-saffron:#F2C137;   /* accent 2 */
  --pli-light:  #D8D8D8;   /* light neutral */
  --pli-white:  #FFFFFF;
  --pli-night:  #111111;   /* dark neutral */
  --pli-text:   #0f1720;
  --nav-height: 64px;
}


body {  
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  margin: 0;
  padding: 0;
  overflow-y: hidden; 

} 
.canva { margin: 20px; }
.controls { margin-top: 10px; }
    /*.btn.active {*/
    /*  background-color: #008ecf;*/
    /*  color: white;*/
    /*}*/

    .btn-text:hover {
    background-color: #006ea5;
    color: #fff;
}

.custom-context-menu {
  position: absolute;
  z-index: 9999;
  width: 120px;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  list-style: none;
  padding: 5px 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  user-select: none;
}

.custom-context-menu li {
  padding: 6px 12px;
  cursor: pointer;
}

.custom-context-menu li:hover {
  background-color: #e8f0fe;
}
.custom-color-wrapper {
    position: relative;
    width: 38px;
    top: 11px;
    height: 32px;
    border: 1px solid #ccc;
    background-color: white;
    text-align: center;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.color-icon-box {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
}

.font-icon {
  display: block;
  margin-bottom: 2px;
}

.color-box {
  width: 20px;
  height: 8px;
  background-color: #000; /* default color */
  border: 1px solid #888;
  margin: 0 auto;
}

.color-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
 

/* new css */
  /*#labelCanvas {
      background: #fff;
      border: 1px solid #000000;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      border-radius: 8px;
      display: inline-block;
    }*/

  /* #canvasWrapper { height: calc(100vh - 140px); 
      overflow:hidden; display:flex; align-items:center; justify-content:center; padding:20px; box-sizing:border-box; }
  */

    /* already in your styles but ensure these are active */
#canvasWrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px;
  box-sizing: border-box;
  height: calc(100vh - 140px); 
  overflow: hidden;
}
/*#canvasWrapper {
  flex: 1;
  min-height: 0;           
  overflow: auto;           
  display: flex;
  justify-content: center;
  align-items: center;     
  background: #e6e6e6;
  height: calc(100vh - 140px); 
}
*/

    #labelCanvas {
  background: #fff;
  border: 2px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  display: block;
  max-width: 100%;
  height: auto !important;
  

}


  
.color-icon-box {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
}

.font-icon {
  display: block;
  margin-bottom: 2px;
}

.color-box {
  width: 20px;
  height: 8px;
  background-color: #000; /* default color */
  border: 1px solid #888;
  margin: 0 auto;
}

.color-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}


.side-bar {
      margin: 0;
    padding: 0;
    position: relative; overflow: visible;

  display: flex;
  justify-content: center;  
  height: calc(100vh - 135px); 
  background-color: #e0e0e0; 
}

#fontFamily.form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: none;
}
select#fontFamily {
    border-radius: 0!important;
}
#fontSize {
  height: 35px;
    font-size: 16px;
    padding: 2px 4px;
    width: 51px;
    background-size: 12px;
    appearance: auto;
    border-radius: 0px;
}
  
  #fontSize option {
    font-size: 12px;
    padding: 2px;
  }
  .sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
  padding: 10px;
  height: calc(100vh - 140px);
  overflow-y: auto;
  background: #f4f4f4;
  box-sizing: border-box;
}

/* Each block inside sidebar (Design, Utilities) */
.sidebar > .border.rounded {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}


/*  .zebra-tabs {*/
/*    display: flex;*/
/*   border-radius: 0;*/
/*    overflow: hidden;*/
    
/*}*/
.badges {
    left: 50%;
    transform: translateX(-50%);
}
.zebra-tabs {
    display: flex;
    gap: 5px;
    border-radius: 0;
    overflow: hidden;
    background-color: #0077C8;
    border-bottom: 1px solid #fff;
    padding-top: 13px;
    display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem;          /* tight padding like screenshot */
  background: #f7f8f9;       /* subtle light bg */
  border: 1px solid #e6ebef; /* faint border */
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
  flex-wrap: nowrap;         /* keep toolbar single-line on wide screens */
}

/* Label block (stacked title + compact inputs) */
.toolbar .label-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 160px;
  padding: 0.45rem 0.6rem;
  background: #fff;
  border: 1px solid #e9eef2;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* Title in label block */
.toolbar .label-block .label-title {
  color: #1e84d6; /* blue */
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
}

/* Row that contains the two inputs */
.toolbar .label-block .label-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

/* Ensure small input groups are tight */
.toolbar .label-block .input-group {
  width: 88px; /* compact - tweaked for two decimals */
  margin: 0;
}

/* Right-align numbers like the screenshot */
.toolbar input[type="number"] {
  text-align: right;
  padding-right: 0.5rem;
}

/* Buttons in toolbar - make them visually compact */
.toolbar .btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
  border-radius: 6px;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Slight spacing between groups of controls */
.toolbar .controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Disabled button subtle style */
.toolbar .btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.form-control:focus {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  /* border-color: #86b7fe; */
  outline: 0;
  /*box-shadow: none!important;*/
      border: 1px solid #e0e0e0 !important;
}
    .zebra-tabs .nav-link.active {

      color: #fff;
      font-weight: 600;
    }

    .zebra-tabs .nav-link:hover {
      background-color: #f4f4f4;
      color:#0077C8
    }
    .nav-pills .nav-link {
    border-radius: 0px!important;
    color: #ffffff;
}
.toolbar-icon {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-family: Arial, sans-serif;
      font-size: 12px;
      color: #333;
      width: 60px;
      margin: 10px;
      cursor: pointer;
    }

    .toolbar-icon .icon {
    font-size: 28px;
    font-weight: bold;
    font-family: serif;
}
.toolbar-icon:hover {
    background-color: #007bff;
    color: #fff;
}
.text-grey {
    background: #e0e0e0;
}
.btn {
    border-radius: 0!important;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background: #f4f4f4!important;
    color: #0077c8 !important;
}
.btn-new{
  background-color: #dde1e5!important;
}
.badges.text-center.mx-auto a {
  text-decoration: none;
  color: #fff !important;
}

.side-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 135px);
    background-color: #e0e0e0;
    width: 100%; 
    box-sizing: border-box;
    padding: 20px;
}

@media (max-width: 1600px) {
  .sidebar {
    flex: 0 0 20%;
    max-width: 20%;
  }
  .text-grey {
    flex: 0 0 80%;
    max-width: 80%;
  }
}

@media (max-width: 1400px) {
  .sidebar {
    height: calc(100vh - 120px);
    padding: 8px;
    gap: 10px;
  }

  .sidebar > .border.rounded {
    padding: 8px;
  }

  .toolbar-icon {
    width: 45px;
    margin: 4px;
  }

  .toolbar-icon .icon {
    font-size: 20px;
  }

  .toolbar-icon .label {
    font-size: 11px;
  }
  .text-grey {
    flex: 0 0 75%;
    max-width: 75%;
  }
}

@media (max-width: 1366px) {
  .toolbar {
    padding: 10px 8px;
    flex-wrap: wrap;
    gap: 5px;
    height: auto;
  }
  .toolbar .btn,
  .toolbar select {
    margin-bottom: 5px;
  }
  #fontFamily,
  #fontSize {
    max-width: 120px;
  }
  .custom-color-wrapper {
    top: 5px;
  }
}

@media (min-height: 750px) {
  .sidebar > .border.rounded:last-of-type {
    margin-top: auto;
  }
}

@media (max-width: 768px) {
    .side-bar {
        flex-direction: column;
        padding: 10px;
    }


    .toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  /* let label block use full width */
  .toolbar .label-block {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .toolbar .label-block .label-row {
    gap: 0.5rem;
  }

  /* make buttons wrap to a new line if there's not enough space */
  .toolbar .controls {
    width: 100%;
    justify-content: flex-start;
  }
}


/* =======================================
   SIDEBAR LAYOUT FIX (Design + Utilities)
   Works well at 1920×1080 and 1366×768
   ======================================= */

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
  padding: 10px;
  height: calc(100vh - 140px);
  overflow-y: auto;
  background: #f4f4f4;
  box-sizing: border-box;
}

/* Each block inside sidebar (Design, Utilities) */
.sidebar > .border.rounded {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Make Utilities stick to bottom if enough space */
@media (min-height: 750px) {
  .sidebar > .border.rounded:last-of-type {
    margin-top: auto;
  }
}

/* Adjust layout for 1366×768 screens */
@media (max-width: 1400px) {
  .sidebar {
    height: calc(100vh - 120px);
    padding: 8px;
    gap: 10px;
  }

  .sidebar > .border.rounded {
    padding: 8px;
  }

  .toolbar-icon {
    width: 45px;
    margin: 4px;
  }

  .toolbar-icon .icon {
    font-size: 20px;
  }

  .toolbar-icon .label {
    font-size: 11px;
  }
}

/* Mobile / small tablet layout */
@media (max-width: 992px) {
  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    overflow: visible;
    padding: 8px;
    background: #f8f8f8;
  }

  .sidebar > .border.rounded {
    flex: 1 1 45%;
    min-width: 280px;
    margin-bottom: 10px;
  }
}

canvas {
  display: block;
  margin: 0 auto;
}
  .select2-results__options {
    max-height: 180px !important;
    overflow-y: auto !important;
  }
  .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 5px!important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 35px!important;
}
.select2-container--default .select2-selection--single {
    height: 35px!important;
    border-radius: 0!important;
}

/*//*/


 
  /* The modal container: position fixed for staying visible on scroll */
/*#fontModal {
  position: fixed !important;
  top: 150px;
  left: 50%;
  z-index: 1055;
  width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}
*/
/*
#fontModal {
  position: fixed !important;
  top: 120px;
  left: 50%;
  //transform: translateX(-50%);
  z-index: 1055;
  width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
}
*/


#fontModal {
  position: fixed !important;
  bottom: 20px;   /* distance from bottom */
  right: 20px;    /* distance from right */
  z-index: 1055;
  width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
}


/*#fontModal .modal-dialog {
  margin: 0;
  position: absolute;
  cursor: move;
}*/


/*.modal-dialog {
  position: fixed !important;
  bottom: 5px;   
  right: 20px;    
  margin: 0 !important;
  max-height: 90vh;
}*/
.modal-dialog {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  
  margin: 0 !important;
  transform: none !important;         /* prevent translate centering */
  //inset: auto !important;              /* override any inline inset values */
  max-height: 90vh;
  width: auto;
  z-index: 1060;
}
.modal {
  position: fixed !important;
  inset: 0; /* keep backdrop fullscreen */
  z-index: 1055;
}


#fontModal .modal-header {
  background-color: #f0f0f0;
  border-bottom: 1px solid #aaa;
  padding: 6px 10px;
  cursor: move;
}
 #fontModalContent {
    max-height: 80vh; /* prevent it from going off-screen */
    overflow: hidden;
  }
#fontModal .modal-title {
  font-weight: bold;
  font-size: 16px;
}

/*#fontModal .modal-body {
  padding: 10px;
  max-height: 500px;
  overflow-y: auto;
}*/
 #fontModal .modal-body {
    max-height: calc(90vh - 120px); /* header + footer approx 120px */
    overflow-y: auto; /* scrolls only if needed */
  }

  /* Tabs */
#fontModal .nav-tabs {
  border-bottom: 1px solid #aaa;
}
#fontModal .nav-tabs .nav-link {
  font-size: 13px;
  padding: 5px 12px;
}
#fontModal .nav-tabs .nav-link.active {
  background-color: #e6e6e6;
  border-color: #aaa #aaa #e6e6e6;
}

/* Tab content panels */
#fontModal .tab-pane {
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
}

/* Labels */
#fontModal label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
}

/* Inputs */
#fontModal .form-control {
  font-size: 13px;
  padding: 3px 6px;
  height: auto;
}

/* Font list */
#fontList {
  border: 1px solid #bbb;
  background: #fff;
  padding: 0;
  max-height: 250px;
  overflow-y: auto;
}
#fontList .font-item {
  padding: 4px 6px;
  font-size: 13px;
  cursor: pointer;
}
#fontList .font-item:hover {
  background: #e6f0ff;
}
#fontList .font-item.selected {
  background: #cce0ff;
}

/* Checkboxes / radios */
#fontModal .form-check-label {
  font-weight: normal;
  font-size: 12px;
}

#fontModal .modal-footer {
  padding: 8px;
  border-top: 1px solid #aaa;
}
#fontModal .btn {
  padding: 3px 10px;
  font-size: 13px;
}
 
  /* Font item hover / selected effect */
  .font-item:hover {
    background-color: #e9ecef;
  }
  .font-item.selected {
    background-color: #0d6efd;
    color: #fff;
  }



/* date model */


#imageModal .modal-header {
  background-color: #d6d6d6;
  border-bottom: 1px solid #aaa;
  padding: 10px;
  cursor: move;
}
#rectangleModal .modal-header {
  background-color: #d6d6d6;
  border-bottom: 1px solid #aaa;
  padding: 10px;
  cursor: move;
}
#triangleModal .modal-header {
  background-color: #d6d6d6;
  border-bottom: 1px solid #aaa;
  padding: 10px;
  cursor: move;
}
/*#variableTableModal {
   position: fixed !important;
  //top: 150px;
  left: 40%;
  z-index: 1055;
  width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}
#variableTableModal .modal-header {
  background-color: #d6d6d6;
  border-bottom: 1px solid #aaa;
  padding: 10px;
  cursor: move;
}
#variableTableModal .modal-dialog {
  margin: 0;
  position: absolute;
  cursor: move;
}*/


/* Compact table styling */
.classic-grid {
  font-size: 13px;
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
}

.classic-grid th,
.classic-grid td {
  padding: 4px 6px;
  border: 1px solid #ccc;
  vertical-align: middle;
}

.classic-grid thead th {
  background-color: #f0f0f0;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
}

.classic-grid input.form-control {
  padding: 2px 4px;
  height: 26px;
  font-size: 13px;
}

/* Optional: style the modal itself more square and clean */

#variableTableModal {
   position: fixed !important;
  //top: 150px;
  left: 50%;
  z-index: 1055;
  width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}
#variableTableModal .modal-content {

  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* Button spacing */
#variableTableModal .modal-header,
#variableTableModal .modal-footer {
  padding: 8px 16px;
}

#variableBarcodeTableModal {
   position: fixed !important;
  //top: 150px;
  left: 50%;
  z-index: 1055;
  width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}
#variableBarcodeTableModal .modal-content {

  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* Button spacing */
#variableBarcodeTableModal .modal-header,
#variableBarcodeTableModal .modal-footer {
  padding: 8px 16px;
}


.font-item {
  cursor: pointer;
  padding: 5px 10px;
  font-size: 14px;
  border: 1px solid transparent;
  margin-bottom: 4px;
  background-color: white;
  transition: background-color 0.2s ease;
}

.font-item:hover {
  background-color: #e8f0ff;
  border: 1px solid #90caf9;
}

.font-item.selected {
  background-color: #d0eaff;
  border-color: #42a5f5;
  font-weight: bold;
}

#barcodeEditModal
{
 position: fixed !important;
  //top: 150px;
  left: 50%;
  z-index: 1055;
  width: 600px;
  max-height: 90vh;
  overflow-y: auto;

}
#barcodeEditModal .modal-header {
  background: linear-gradient(to right, #cfd8dc, #eceff1);
  border-bottom: 1px solid #aaa;
  padding: 8px 12px;
  cursor: move ;
}
  .toolbar-icon {
    text-align: center;
    padding: 10px;
   // border: 1px solid #ccc;
    border-radius: 6px;
    transition: background 0.2s;
  }

  .toolbar-icon:hover {
    background: #f0f0f0;
  }

  .toolbar-icon .icon {
    font-size: 24px;
    font-weight: bold;
  }

  .toolbar-icon .label {
    font-size: 12px;
    color: #555;
  }

 
.modal.draggable {
  overflow: visible !important;
}
.modal.draggable .modal-dialog {
  position: absolute;
  margin: 0;
  width: 400px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
#variableTable input {
    width: 100%;
  }
#variableTable thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
#variableTable th,
#variableTable td {
  min-width: 50px;
  white-space: nowrap;
}
   .btn-sm {
    padding: 6px 16px;
    font-size: 14px;
  }
  #variableBodyRows tr.table-active {
  background-color: #e2f0ff;
}
.classic-grid th:first-child,
.classic-grid td:first-child {
  background-color: #f9f9f9;
  font-weight: bold;
  text-align: center;
  width: 40px;
}
#variableModalDialog.minimized-modal {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;

  width: 380px !important;   /* adjust as you prefer */
  max-width: 90%;
  height: 48px !important;   /* header-only */
  margin: 0 !important;
  transform: none !important;
  z-index: 1060 !important;

  pointer-events: auto;
}
#variableModalDialog.minimized-modal .modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#variableModalDialog.maximized-modal {
  width: 50% !important;
  height: 50% !important;
  position: fixed !important;
  top: 0;
  left: 0;
  margin: 0 !important;
  z-index: 1060;
}

#variableModalDialog.maximized-modal .modal-content {
  height: 100%;
  border-radius: 0;
}

#variableModalDialog {
  transition: all 0.3s ease;
}

/* text variable list-style */

 #variableFieldDropdown {
    font-family: monospace;
    font-weight: bold;
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    padding: 6px;
  }

  #variableFieldDropdown option {
    padding: 5px;
    font-size: 14px;
    color: #333;
  }

  #variableFieldDropdown option.used-var {
    color: gray;
    font-style: italic;
  }

  #variableFieldDropdown option.new-var {
    color: green;
    font-weight: bold;
  }

/*text variable style ends*/

/* Shared grid styling */
.anchor-grid {
  width: 80px;
  height: 60px;
  position: relative;
  border: 1px solid #000;
  box-sizing: border-box;
  top: 10px;
  left: 2%;
  margin-bottom: 15px;
}

/* Cross lines inside any grid */
.anchor-grid .vline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #000;
  transform: translateX(-50%);
}

.anchor-grid .hline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #000;
  transform: translateY(-50%);
}

/* anchor points (absolute positioning) */
.anchor-cell {
  width: 12px;
  height: 12px;
  border: 1px solid #000;
  background: #fff;
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

/* positions */
.anchor-cell[data-point="tl"] { top: 0; left: 0; }
.anchor-cell[data-point="tm"] { top: 0; left: 50%; }
.anchor-cell[data-point="tr"] { top: 0; left: 100%; }

.anchor-cell[data-point="ml"] { top: 50%; left: 0; }
.anchor-cell[data-point="center"] { top: 50%; left: 50%; }
.anchor-cell[data-point="mr"] { top: 50%; left: 100%; }

.anchor-cell[data-point="bl"] { top: 100%; left: 0; }
.anchor-cell[data-point="bm"] { top: 100%; left: 50%; }
.anchor-cell[data-point="br"] { top: 100%; left: 100%; }

.anchor-cell.active {
  background: rgba(0, 120, 255, 0.8);
}

/* Sidebar collapses under canvas on mobile */
@media (max-width: 768px) {
  .sidebar {
    border-right: none;
    margin-bottom: 20px;
  }
  .side-bar {
    flex-direction: column;
    height: auto !important;
  }
  #labelCanvas {
    width: 100% !important;
    height: auto !important;
  }
}

/* Make canvas shrink on smaller screens but keep resolution */
.responsive-canvas {
  max-width: 100%;
  height: auto;
  display: block;
}
#printModeStatus {
  font-size: 14px;
}
/* Tooltip background and text */
.tooltip-inner {
  background-color: #f8f9fa !important; /* light background */
  color: #212529 !important;           /* dark text */
  font-size: 12px !important;          /* smaller font */
  padding: 4px 8px;                    /* tighter spacing */
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Tooltip arrow color (match background) */
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #f8f9fa !important;
}

.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #f8f9fa !important;
}


/* Date Field (green box look) */
.date-field {
  border: 2px solid green;
  background: #e6ffe6;
  padding: 4px;
  display: inline-block;
  font-weight: bold;
}

#dateFieldModal {
  position: fixed !important;
  top: 120px;
  left: 50%;
  z-index: 1055;
  width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
}

#dateFieldModal .modal-dialog {
  margin: 0;
  position: absolute;
  cursor: move;
}

#dateFieldModal .modal-header {
  background-color: #f0f0f0; /* match fontModal */
  border-bottom: 1px solid #aaa;
  padding: 6px 10px;
  cursor: move;
}

#dateFieldModal .modal-title {
  font-weight: bold;
  font-size: 16px;
}

#dateFieldModal .modal-body {
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  background: #fafafa;
  border-radius: 4px;
}

#dateFieldModal .nav-tabs {
  border-bottom: 1px solid #aaa;
}

#dateFieldModal .nav-tabs .nav-link {
  font-size: 13px;
  padding: 5px 12px;
}

#dateFieldModal .nav-tabs .nav-link.active {
  background-color: #e6e6e6;
  border-color: #aaa #aaa #e6e6e6;
}

#dateFieldModal .tab-pane {
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
}

#dateFieldModal label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
}

#dateFieldModal .form-control {
  font-size: 13px;
  padding: 3px 6px;
  height: auto;
}

#dateFieldModal .modal-footer {
  padding: 8px;
  border-top: 1px solid #aaa;
}

#dateFieldModal .btn {
  padding: 3px 10px;
  font-size: 13px;
}


/* Seq field model */
#seqFieldModal {
  position: fixed !important;
  top: 120px;
  left: 50%;
  z-index: 1055;
  width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
}

#seqFieldModal .modal-dialog {
  margin: 0;
  position: absolute;
  cursor: move;
}

#seqFieldModal .modal-header {
  background-color: #f0f0f0; /* match fontModal */
  border-bottom: 1px solid #aaa;
  padding: 6px 10px;
  cursor: move;
}

#seqFieldModal .modal-title {
  font-weight: bold;
  font-size: 16px;
}

#seqFieldModal .modal-body {
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  background: #fafafa;
  border-radius: 4px;
}

#seqFieldModal .nav-tabs {
  border-bottom: 1px solid #aaa;
}

#seqFieldModal .nav-tabs .nav-link {
  font-size: 13px;
  padding: 5px 12px;
}

#seqFieldModal .nav-tabs .nav-link.active {
  background-color: #e6e6e6;
  border-color: #aaa #aaa #e6e6e6;
}

#seqFieldModal .tab-pane {
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
}

#seqFieldModal label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
}

#seqFieldModal .form-control {
  font-size: 13px;
  padding: 3px 6px;
  height: auto;
}

#seqFieldModal .modal-footer {
  padding: 8px;
  border-top: 1px solid #aaa;
}

#seqFieldModal .btn {
  padding: 3px 10px;
  font-size: 13px;
}


/* small helpful CSS: tweak as needed */

/*#warningTooltip {
    position: absolute;
    background: rgba(255, 0, 0, 0.85);
    color: white;
    padding: 2px 5px;
    border-radius: 2px;
    font-weight: normal;
    font-family: Arial, sans-serif;
    font-size:12px;
    pointer-events: none;
    visibility: hidden;
    white-space: nowrap;
    z-index: 1000;
  }
  */
#edgePropsBtn {
  position: absolute; /* positioned by JS; won't affect layout */
  display: none;      /* shown by JS */
  z-index: 10000;
  background: linear-gradient(#fff,#f3f3f3);
  color: #222;
  border-radius: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 13px;
}

.side-bar { position: relative; overflow: visible; }

/* Compact tooltip container */
/* ===== Gradient Tooltip with 3D look ===== */
#warningTooltip {
  position: absolute;
  display: none;
  pointer-events: auto;
  background: linear-gradient(180deg, #f5515f 0%, #a1051d 100%);

  /* ⬆ red metallic gradient — change colors for blue, orange, etc. */
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  align-items: center;
  display: flex;
  gap: 5px;
  z-index: 9999;
  line-height: 1;
  position: absolute;
  backdrop-filter: blur(1px);
}

/* ===== Arrow (gradient fill via ::after trick) ===== */
#warningTooltip::after {
  content: "";
  position: absolute;
  bottom: -12px; /* arrow below tooltip */
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  border-width: 12px 12px 0 12px; /* bigger, visible arrow */
  border-style: solid;
  border-color: transparent;
  /* The trick: use a gradient background clipped to the top border */
  background: linear-gradient(180deg, #f5515f 0%, #a1051d 100%);
  width: 0;
  height: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* Flip arrow upward when tooltip is below the object */
#warningTooltip.bottom::after {
  top: -12px;
  bottom: auto;
  transform: translateX(-50%) rotate(180deg);
}

/* Inline Properties button (same compact style) */
.edge-inline-btn {
  background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
  color: #222;
  border-radius: 5px;
  padding: 5px 10px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.15s ease-in-out;
}
.edge-inline-btn:hover {
  background: linear-gradient(180deg, #f0f0f0 0%, #dcdcdc 100%);
}


/* Registration and login part css */

/* ---------- Navbar base ---------- */
.site-navbar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.5rem 1rem;
  //background: linear-gradient(90deg, var(--pli-night) 0%, #1a1a1a 100%); /* dark header */
  background: #D8D8D8; /* dark header */
  border-bottom: 3px solid rgba(255,255,255,0.03);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  z-index: 1050;
}

/* Brand/logo */
.site-logo {
  width: 150px;           /* tweak for desired size */
  height: 45px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
 // background: var(--pli-white); /* optional white bg for dark header */
  padding: 3px;
}

/* Brand text */
.brand-text {
  color: var(--pli-white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

/* Auth button styled with saffron/orange */
.auth-btn {
  background: linear-gradient(90deg, #FF931D 0%, #F2C137 100%);
  color: white; /* night text */
  border: none;
  padding: 6.5px 10px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 10px rgba(242,193,55,0.25);
}

.auth-btn:hover {
  background: linear-gradient(90deg, #F2C137 0%, #FF931D 100%);
  box-shadow: 0 6px 16px rgba(255,147,29,0.3);
  transform: translateY(-1px);
}

.auth-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


/* small responsive behavior */
@media (max-width: 700px) {
  .brand-text { display: none; } /* keep only logo on narrow screens */
  .site-logo { width: 34px; height: 34px; }
  .auth-btn { padding: 6px 10px; font-size: 0.95rem; }
}

/* ---------- Auth modal restyling to match Label Live look ---------- */
#authModal .modal-dialog {
  max-width: 520px;
  margin: 2.5rem auto;
}

#authModal .modal-content {
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 20px 60px rgba(16,24,40,0.5);
}

/* header with bold dark-orange stripe + logo */
#authModal .modal-header {
  background: linear-gradient(90deg, var(--pli-orange), var(--pli-saffron));
  color: var(--pli-night);
  padding: 18px 20px;
  border-bottom: none;
  align-items: center;
}
#authModal .modal-title {
  font-weight: 700;
  color: var(--pli-night);
  font-size: 1.05rem;
}

/* Body: clean white canvas with subtle radius */
#authModal .modal-body {
  background: var(--pli-white);
  padding: 18px 20px;
  color: var(--pli-text);
}

/* Tabs styling */
#authModal .nav-tabs .nav-link {
  border: none;
  color: #222;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
}
#authModal .nav-tabs .nav-link.active {
  background: rgba(15,23,32,0.04);
  color: var(--pli-night);
}

/* Input polish */
#authModal input.form-control {
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  padding: 10px 12px;
}

/* success / error message */
#authMessage { min-height: 1.2em; display:block; margin-top:6px; }

/* small style: dark footer button if needed */
#authModal .modal-footer {
  border-top: none;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(240,240,240,0.6), rgba(255,255,255,0.95));
}

/* Position Forgot Password link at bottom right of login tab */
#loginTab {
  position: relative; /* needed for absolute positioning inside */
  padding-bottom: 30px; /* give space for the link */
}

#loginTab .forgot-password {
  position: absolute;
  bottom: 0px;
  right: 0px;
  font-size: 0.85rem;
}

#loginTab .forgot-password a {
  color: #FF931D;           /* your orange palette color */
  text-decoration: none;
  font-weight: 500;
}

#loginTab .forgot-password a:hover {
  color: #F2C137;           /* saffron hover */
  text-decoration: underline;
}


/* Registration and login part css ends*/

/* Watermark notofication*/

#watermarkOverlay {
  position: absolute;
  top: 90%;
  left: 35%;
  //transform: translate(-50%, -50%) rotate(-15deg);
   color: var(--pli-orange);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  //text-transform: uppercase;
  user-select: none;
  pointer-events: auto;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

#watermarkOverlay:hover {
   color: var(--pli-saffron);
 // text-shadow: 0 0 8px rgba(255,255,255,0.9);
  //transform: translate(-50%, -50%) rotate(-15deg) scale(1.05);
}

#watermarkOverlay i {
  font-size: 14px;
//  opacity: 0.8;
}


/* End - Watermark notofication */

/* GDRIVE, ONE DRIVE, DROPBOX STYLING */

.cloud-btn {
    width: 100px;
    height: 100px;
    border: 1px solid #D8D8D8;
    border-radius: 6px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 14px;
    font-weight: 500;
}

.cloud-btn img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.cloud-btn:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

.cloud-btn-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* END GDRIVE, ONE DRIVE, DROPBOX STYLING */

/* minimise and maximise the variable table model */

/* Modal state classes */
.modal-dialog.minimized-modal {
  position: fixed !important;
  right: 20px;
  bottom: 20px;
  margin: 0;
  width: 360px;          /* minimized width */
  max-width: 80%;
  height: 60px;          /* minimized height (header only) */
  transform: none !important;
  z-index: 2000;         /* above page but below modal backdrop */
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  inset: auto !important;  
}

.modal-dialog.minimized-modal .modal-content {
  height: 100%;
  overflow: hidden;
}

.modal-dialog.minimized-modal .modal-body {
  display: none; /* hide body when minimized */
}

/* minimized header style (slimmer) */
.modal-dialog.minimized-modal .modal-header {
  padding: 6px 8px;
  height: 100%;
  display:flex;
  align-items:center;
}

/* Fullscreen (maximized) */
.modal-dialog.maximized-modal {
  position: fixed !important;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  margin: 0;
  width: auto;
  max-width: none;
  height: calc(100% - 20px);
  transform: none !important;
  z-index: 2000;
  inset: auto !important;  
}

.modal-dialog.maximized-modal .modal-content {
  height: 100%;
}

.modal-dialog.maximized-modal .modal-body {
  overflow: auto;
  height: calc(100% - 56px); /* header height */
}

/* Ensure header control buttons align nicely */
.modal-header .modal-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* make the close button aligned and small */
.modal-header .btn-close {
  margin-left: 8px;
  opacity: 0.9;
}

/* Optional: nicer icon buttons */
.modal-header .icon-btn {
  width: 32px;
  height: 28px;
  padding: 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:4px;
}

/* When modal is normal/centered revert z-index below backdrop */
.modal-dialog.modal-xl.modal-dialog-centered {
  transform: translate(0,0) !important;
}

/* end minimise and maximise the variable table model */

/* Plan subscription model css */


.plan-modal.hidden { display: none; }
.plan-modal {
  position: fixed; right: 20px; top: 80px; width: 360px; z-index: 2000;
  background: #fff; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.25); padding: 18px;
}
.plan-modal-inner { position: relative; }
.plan-close { position: absolute; right: 10px; top: 6px; border: none; background: transparent; font-size: 24px; cursor: pointer; }
.plans-container { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.plan-card {
  border: 1px solid #eee; padding: 12px; border-radius: 6px; display:flex; justify-content:space-between; align-items:center;
}
.plan-card .info { max-width: 60%; }
.plan-card h4 { margin: 0 0 6px; font-size: 14px; }
.plan-card p { margin:0; font-size:14px; color:#555; }
.plan-card button { padding: 6px 8px; border-radius:2px; cursor:pointer; background: #FF931D;color:#fff;font-size: 13px;
    border: none;}
.plan-footer { margin-top:10px; text-align:center; font-size:13px; }

/* End Plan subscription model css */


.plans-premium-btn {
  background: linear-gradient(90deg, #ffe08a, #ffd65c);
  border: 1px solid #e6b84e;
  color: #b06c00;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6),
              0 2px 4px rgba(0,0,0,0.08);
  transition: all 0.2s ease-in-out;
}

.plans-premium-btn i {
  color: #ffb400; /* Gold star */
  margin-right: 6px;
}

.plans-premium-btn:hover {
  background: linear-gradient(90deg, #ffecb5, #ffe08a);
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.7),
              0 3px 8px rgba(0,0,0,0.12);
  border-color: #d9a73c;
  color: #9a5b00;
}

.plans-premium-btn:active {
  transform: scale(0.97);
}


/****subscription modal starts vanitha******/

/* Centered Modal */
#subscriptionModal .modal-dialog {
  width: 95% !important;
  max-width: 580px !important;
  margin: 0 auto !important;
  left: 50%;
  transform: translateX(-50%) !important;
}


/* Modal Container */
.subscription-modal {
  background: #ffffff;
  border: 3px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0px 8px 35px rgba(0,0,0,0.25);
  max-height: 100vh !important;   /* Perfect fit */
  overflow: hidden;
}

/* Header */
.subscription-modal .modal-header {
  background: #f5f5f5;
  border-bottom: 2px solid #dbdbdb;
  text-align: center;
  padding: 12px 20px !important;
}

.subscription-modal .modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

/* Body */
.subscription-modal .modal-body {
  padding: 15px 20px !important;
}

/* Footer */
.subscription-modal .modal-footer {
  border-top: 2px solid #e6e6e6;
  background: #fafafa;
  padding: 10px !important;
}

/* PLAN ITEM — Zebra Style */
.plan-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  transition: 0.2s;
}

.plan-item:hover {
  border-color: #FF931D;
  box-shadow: 0 0 8px rgba(255,147,29,0.3);
}

/* LEFT SIDE */
.plan-box {
  display: flex;
  flex-direction: column;
}

.plan-title {
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

.plan-code {
  margin: 0;
  color: #777;
  font-size: 13px;
}

/* RIGHT SIDE — Price */
.plan-price {
  text-align: right;
  font-size: 18px;
  font-weight: bold;
  color: #FF931D;
}

.plan-price .interval {
  font-size: 10px;
  color: #777;
}

/* SELECT BUTTON */
.btn-theme {
  background: #FF931D !important;
  color: #fff !important;
  padding: 6px 18px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
}

.btn-theme:hover {
  background: #e57800 !important;
}

.compare-link {
  font-weight: 600;
  color: #FF931D;
  text-decoration: none;
  font-size: 14px;
}

.compare-link:hover {
  text-decoration: underline;
  color: #e57800;
}

.subscription-modal .btn-close {
  position: absolute;
  right: 12px;
  top: 12px;
  opacity: 0.7;
}

.subscription-modal .btn-close:hover {
  opacity: 1;
}


/****subscription modal end******/

/* open label template model */
/* ================================
   PLI BRAND MODAL – OPEN TEMPLATE
   ================================ */

.pli-brand-modal .modal-content {
  border-radius: 10px;
  border: none;
  background-color: #FDFDFC; /* Porcelain */
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Header */
.pli-brand-modal .modal-header {
  background-color: #1C405A; /* Yale Blue */
  color: #ffffff;
  border-bottom: none;
  padding: 14px 16px;
}

.pli-brand-modal .modal-title {
  font-weight: 600;
  font-size: 16px;
}

.pli-brand-modal .btn-close {
  filter: invert(1);
  opacity: 0.9;
}

/* Body */
.pli-brand-modal .modal-body {
  padding: 18px;
  background-color: #F2F4F3; /* White Smoke */
}

/* Buttons – common */
.pli-brand-modal .btn {
  border-radius: 6px;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.pli-brand-modal .btn small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.85;
}

/* Read-only button (Taupe) */
.btn-open-readonly {
  background-color: #85756E; /* Taupe */
  color: #ffffff;
  border: none;
}

.btn-open-readonly:hover {
  background-color: #6f615b;
}

/* Rename button (Toasted Almond) */
.btn-open-rename {
  background-color: #E28D47; /* Toasted Almond */
  color: #ffffff;
  border: none;
}

.btn-open-rename:hover {
  background-color: #cc7b38;
}

/* Shared option card */
/* Shared option card */
.template-option {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 18px 18px;          /* ⬅ increased padding */
  margin-bottom: 14px;         /* ⬅ more vertical spacing */
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
}

/* Title */
.template-option .option-title {
  font-size: 16px;             /* ⬅ slightly larger */
  font-weight: 600;
  color: #1C405A;              /* Yale Blue */
  margin-bottom: 4px;          /* ⬅ space before subtitle */
}

/* Subtitle */
.template-option .option-sub {
  font-size: 13px;
  color: #6c757d;
  line-height: 1.4;
}

/* READ-ONLY (Taupe) */
.readonly-option {
  border-color: #85756E;
}

.readonly-option:hover {
  background: #f6f3f2;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

/* RENAME (Toasted Almond) */
.rename-option {
  border-color: #E28D47;
}

.rename-option:hover {
  background: #fff4eb;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}


/* open label template model ends*/