** PAGES STYLES **

/* Page Container */

* {
  box-sizing: border-box !important;
}

.page-container {
  width: 816px;
  height: 1056px;
  margin: auto;
  position: relative;
  page-break-after: always;
}

.page-container .page-wrapper {
  width: 100%;
  height: 100%;
  background-color: #fff;
}

.page-container .icon {
  cursor: pointer;
  position: absolute;
  right: -18px;
  top: 0;
  display: none;
}

.paper:hover .page-container .icon {
  display: block;
}

.page-container .page {
  background-color: #fff;
  padding-top: 10px;
  height: 926px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-container .title-page-wrapper,
.page-container .pdf-page-wrapper {
  height: 1056px;
}

/* Title Page */
.title-page {
  background-color: #e6effe;
  overflow: hidden;
  position: relative;
  height: 1056px;
  width: 816px;
}

.title-page p {
  font-size: 14px;
}

.title-page .logo-container {
  width: 200px;
  height: 100px;
  margin-top: 15px;
  margin-left: 50px;
}

.title-page .logo-container img {
  width: 100%;
  height: 100%;
}

.title-page .title-info {
  margin-top: 100px;
  width: 500px;
  text-align: center;
  border: 1.5px solid #22262f;
  border-radius: 5px;
  padding: 20px 0;
  margin-left: 20px;
}

.title-page .title-info p {
  margin: 0 auto;
  color: #007183;
  text-align: left;
  margin-left: 100px;
  font-size: 16px;
  line-height: 20px;
}

.title-page .title-info .solicitation-number-p {
  display: flex;
  text-wrap: nowrap;
  gap: 3px;
}

.title-page .proposal-title {
  border: 1.5px solid #22262f;
  margin: 0 20px auto;
  border-radius: 5px;
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  margin-bottom: 120px;
}

.title-page .proposal-title input {
  text-align: center;
}

.title-page .proposal-title h2 {
  color: #073a83;
  /*text-transform: uppercase;*/
  text-shadow: 4px 4px 9px rgba(7, 58, 131, 0.35);
  font-weight: bold;
  line-height: 20px;
  margin-bottom: 8px;
  margin-top: 10px;
}

.title-page .proposal-title .date {
  color: #191f2b;
  margin-bottom: 0;
}

.title-page .submitted-to {
  border: 1.5px solid #22262f;
  padding: 20px;
  width: 380px;
  margin-left: auto;
  margin-bottom: 25px;
  border-radius: 5px;
  margin-right: 20px;
}

.title-page .submitted-to h3 {
  text-align: right;
  font-weight: bold;
  color: #0a2f7c;
  margin-bottom: 20px;
  line-height: 8px;
  margin-top: 15px;
}

.title-page .submitted-to p {
  color: #191f2b;
  margin-bottom: 12px;
  text-align: right;
  line-height: 10px;
}

.title-page .submitted-to input,
.title-page .submitted-by input {
  text-align: right;
}

.title-page .submitted-by {
  border: 1.5px solid #22262f;
  padding: 20px;
  width: 380px;
  margin-left: auto;
  border-radius: 5px;
  margin-right: 20px;
  margin-bottom: 10px;
}

.title-page .submitted-by h3 {
  text-align: right;
  font-weight: bold;
  color: #0a2f7c;
  margin-top: 15px;
  line-height: 8px;
}

.title-page .submitted-by .company-name {
  font-weight: bold;
  margin-bottom: 15px;
  margin-top: 20px;
  line-height: 6px;
}

.title-page .submitted-by h4 {
  font-weight: bold;
  text-align: right;
  color: #0a2f7c;
  margin-bottom: 10px;
  line-height: 6px;
  margin-top: 18px;
}

.title-page .submitted-by p {
  color: #191f2b;
  margin-bottom: 12px;
  text-align: right;
  line-height: 6px;
  margin-top: 15px;
}

.title-page .customer-logo-container {
  position: absolute;
  z-index: 999;
  overflow: hidden;
  width: 300px;
  left: 16px;
  top: 923px;
}

.title-page .customer-logo-container img {
  width: 100%;
  height: 100%;
}

.main {
  position: relative;
}

.main-top {
  transform: scale(0.75) rotate(-45deg);
  top: -240px;
  left: 235px;
}

.main-bottom {
  transform: scale(0.75) rotate(135deg);
  top: 250px;
  left: -210px;
}

.rec1 {
  border: 8px solid #023882;
  width: 500px;
  height: 500px;
  border-radius: 15%;
  position: absolute;
  z-index: 99;
}

.rec2 {
  background-color: #023882;
  width: 350px;
  height: 350px;
  border-radius: 15%;
  position: absolute;
  top: 75px;
  left: 50px;
  z-index: 10;
}

.rec3 {
  background-color: #044fb4;
  width: 250px;
  height: 250px;
  border-radius: 15%;
  position: absolute;
  top: 330px;
  left: -114px;
}

.rec4 {
  width: 200px;
  height: 200px;
  position: absolute;
  border: 4px solid #1366cd;
  top: 210px;
  left: -91px;
  border-radius: 15%;
  z-index: 100;
}

.rec5 {
  width: 200px;
  height: 200px;
  position: absolute;
  border: 4px solid #1366cd;
  top: 100px;
  left: -71px;
  border-radius: 15%;
}

/* Transmitter Letter Page */
.transmitter-letter {
  background-color: #ffffff;
  font-size: 14px;
}

.transmitter-letter .title {
  margin: 10px;
  text-align: center;
}

.transmitter-letter .letter .to-section {
  display: flex;
  gap: 20px;
}

.transmitter-letter .to-section .to-info {
  flex-grow: 2;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
}
.transmitter-letter .to-section .to-info span {
  display: block;
}

.transmitter-letter .letter .to-section p {
  margin: 0;
}

.transmitter-letter p {
  color: #181c32 !important;
  line-height: 26px;
}

.transmitter-letter .letter p {
  text-align: left;
}

/* Blank Page */
.blank-page {
  background-color: #ffffff;
  height: 100%;
}

/* Table Of Contents Page */
.toc {
  margin-top: -10px;
  background-color: #ffffff;
}

.toc h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 28px;
  text-align: center;
}

.toc .toc-list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: -10px;
  padding: 0;
}

#paper {
  scroll-behavior: smooth;
}

.toc-link {
  width: 100%;
}

.toc-link > a.full-width-link {
  display: flex;
  width: 80%;
  margin: 2px auto;
  text-decoration: none;
  color: inherit;
}

.link-title {
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 1;
  font-size: 14px;
  padding-right: 5px;
  font-family: Arial, Helvetica, sans-serif;
}

.link-dots {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
}

.link-page {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 8px;
}
.toc-link .link-number {
  margin-right: 8px;
}

/* Sub TOC link styling */

.sub-toc-link .full-sub-toc-link {
  display: flex;
  width: 76%;
  margin: 10px 0 0 109px;
  text-decoration: none;
  color: inherit;
}

.sub-toc-link .link-number {
  margin-right: 8px;
  font-size: 13px;
}

.sub-toc-link .link-title {
  flex-grow: 0;
  white-space: nowrap;
}

.sub-toc-link .link-dots {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 4px;
}

.sub-toc-link .link-page {
  flex-grow: 0;
  text-align: right;
}
/* Executive Summary Page */
.executive-summary {
  font-size: 10px;
  background-color: #ffffff;
}

.executive-summary .page .toc-heading > div {
  padding: 0;
}

.executive-summary .page .toc-heading p {
  font-size: 24px;
}

.executive-summary .title {
  font-size: 32px;
  text-align: left;
  color: hsl(222, 37%, 32%);
  vertical-align: top;
  padding: 0;
  font-weight: 600;
  margin-bottom: 10px;
}

.executive-summary .page p {
  text-align: justify;
  font-size: 14px;
  color: #181c32;
  line-height: 1.4;
}

/* Generated Content Page */
.generated-content {
  background-color: #ffffff;
  font-size: 14px;
}

.generated-content .page p {
  text-align: justify;
  font-size: 14px;
  color: #181c32;
  line-height: 1.4;
}

.generated-content .title {
  font-size: 32px;
  text-align: left;
  color: hsl(222, 37%, 32%);
  vertical-align: top;
  padding: 0;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Info Sheet Page */
.info-sheet {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #ffffff;
}

.info-sheet .title {
  font-size: 24px;
  color: #1f4e79;
  border-left: 11px double #1f4e79;
  padding-left: 8px;
  margin-bottom: 30px !important;
  text-align: left;
}
.info-sheet .page .toc-heading > div {
  padding: 0;
}

.info-sheet .page .toc-heading p {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.info-sheet .info-email:hover .btn-editmail {
  display: inline-block;
}

.info-sheet .btn-editmail {
  color: #fff;
  cursor: pointer;
  padding: 5px 5px;
  font-size: 14px;
  transition: all 0.2s ease-out;
  background-color: #1181b2;
  width: 50px;
  border-radius: 5px;
  border: none;
  margin-left: 50px;
  display: none;
}

.info-sheet .page-3 tr td:first-of-type {
  width: 25%;
}

.info-sheet .page-4 tr td:first-of-type {
  width: 35%;
}

.info-sheet table {
  margin: auto;
  width: 100%;
  border-collapse: collapse;
}

.info-sheet table,
.info-sheet table th,
.info-sheet table td {
  border: 1px solid #5b9bd5;
}

.info-sheet table .table-header {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  background-color: #deeaf6;
  color: #404040;
  line-height: 1.3;
  padding: 8px;
}

.info-sheet table th {
  text-align: center;
  padding: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #404040;
  background-color: #deeaf6;
}

.info-sheet table td {
  padding: 8px 10px;
  color: #404040;
  width: 50%;
  font-size: 13px;
  text-align: left;
}

.info-sheet .page-4 table td {
  padding: 5px 10px;
}

.info-sheet table ol {
  padding: 0 12px;
}

.info-sheet table td.keyPartners p,
.info-sheet .page-4 table td p {
  margin: 0 !important;
  color: #404040 !important;
  line-height: 1.2 !important;
}

.info-sheet table td ol li {
  margin: 14px 0;
}

.info-sheet .partners-img {
  margin-top: 20px;
  height: 550px;
  width: 100%;
  background-size: contain !important;
}

/* Reference Page */
.reference-page {
  padding: 5px 35px;
}

.reference-page .before-title {
  font-size: 40px;
}

.reference-page .toc-heading > div {
  padding-left: 10px;
}

.reference-page .title {
  margin-bottom: 10px;
  text-align: left;
  font-size: 26px;
  color: hsl(221, 37%, 32%);
  font-weight: 900;
  display: flex;
  align-items: center;
}

.reference-page .table {
  text-align: left;
  border-collapse: collapse;
}

.reference-page .table,
.reference-page tbody,
.reference-page tr,
.reference-page td {
  border: #efefef 1px solid;
  font-size: 12px;
}

.reference-page td {
  padding: 8px !important;
  width: 50%;
}

.reference-page th {
  padding: 10px;
}

.reference-page .table .table-heading {
  background-color: lightblue;
  text-transform: uppercase;
  font-weight: 600;
}

/* Quotation Page */
.quotation-page {
  padding: 5px 20px;
}

/* Quotation Pagination Styles - CSS handles page breaks like download functionality */
.quotation-page table {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* thead automatically repeats on every page in print/PDF */
.quotation-page thead {
  display: table-header-group;
}

/* Keep item + description together - works on table rows */
.quotation-page tr.quote-item-group {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* Ensure item and description stay together */
.quotation-page tr.quote-item-group + tr.quote-item-group {
  page-break-before: avoid;
}

/* Address cards only on first page - prevent from breaking across pages */
.quotation-page tr.quote-address-cards-row {
  page-break-inside: avoid;
  break-inside: avoid;
  page-break-after: avoid;
}

/* Ensure address cards don't appear on subsequent pages by keeping them with header */
.quotation-page thead + tbody tr.quote-address-cards-row {
  page-break-before: auto;
}

/* Table column headers also repeat */
.quotation-page table thead {
  display: table-header-group;
}

/* Footer should not repeat - only on last page */
.quotation-page tr.quote-footer-row {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* Keep footer and notes together on last page */
.quotation-page tr.quote-footer-row + tr {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* Prevent tfoot from repeating */
.quotation-page tfoot {
  display: table-footer-group;
}

.quotation-page .quotation-header {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

.quotation-page .quotation-header > div {
  flex-basis: 33%;
}

.quotation-page .company-info {
  text-align: left;
}

.quotation-page .company-info h2 {
  color: #bf3421;
}

.quotation-page .company-info p {
  margin: 0;
  line-height: 18px;
}

.quotation-page .quotation-info {
  text-align: right;
  display: flex;
  gap: 10px;
  justify-content: right;
  align-items: center;
}

.quotation-page .quotation-info > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.quotation-page .quotation-contacts {
  border-radius: 2%;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.quotation-page .quotation-contacts > div {
  padding: 20px;
  flex-grow: 1;
  flex-basis: 33%;
}

.quotation-page .quotation-contacts h5 {
  text-align: left;
  color: #1181b2;
}

.quotation-page .quotation-for {
  background-color: #cfd8e6;
}

.quotation-page .quotation-ship {
  background-color: #bbc0c0;
}

.quotation-page .quotation-details {
  background-color: #b5c7e3;
}

.quotation-page .quotation-for-info,
.quotation-page .ship-to-info,
.quotation-page .quotation-details-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.quotation-page .quotation-table {
  margin-top: 25px;
}

.quotation-page .quotation-table p {
  color: #455560;
}

.quotation-page .quotation-table .table-header {
  display: flex;
  background-color: #f7f9f9;
  padding: 10px 5px;
  font-weight: bold;
  font-size: 12px;
}

.quotation-page .quotation-table .table-header div {
  flex-basis: 10%;
  text-align: center;
  border-left: 1px solid #dbd7d7;
}

.quotation-page .quotation-table .table-header div.coloumn-name {
  flex-basis: 25%;
  text-align: left;
  border: none;
}

.quotation-page .quotation-table .table-header div.coloumn-mpno {
  flex-basis: 15%;
}

.quotation-page .table-data .data {
  display: flex;
  background-color: #f1f0f0;
  padding: 10px 5px;
  font-size: 12px;
  color: #455560;
}

.quotation-page .table-data .data span {
  flex-basis: 10%;
  text-align: center;
}

.quotation-page .table-data .data span.item-name {
  flex-basis: 25%;
  text-align: left;
}

.quotation-page .table-data .data span.item-mpno {
  flex-basis: 15%;
}

.quotation-page .table-data .description {
  text-align: left;
  font-size: 12px;
}

.quotation-page .table-data .description p {
  margin: 0;
  padding: 6px 4px;
}

.quotation-page .quotation-for-info span,
.quotation-page .ship-to-info span,
.quotation-page .quotation-details-info span {
  font-size: 12px;
}

.quotation-page .quotation-summary {
  display: flex;
  justify-content: right;
  gap: 10px;
  border-top: 1px solid #f1f0f0;
  border-bottom: 2px solid #f1f0f0;
  padding: 15px 0;
  font-size: 12px;
  margin-top: 20px;
}

.quotation-page .quotation-summary > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.quotation-page .quotation-summary > div .grand-total {
  font-weight: bold;
}

.quotation-page .quotation-summary > div span {
  text-align: right;
}

.quotation-page .quotation-summary > div.summary-values span {
  text-align: left;
}

.quotation-page .quotation-note {
  padding: 15px 0;
  text-align: left;
  font-weight: bold;
  font-size: 12px;
}
/* PDF Pages */

#jpedal {
  margin: auto;
}

/** Components Styles */

/* Page Header */
.page-header {
  height: 75px;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  padding: 20px 20px 5px;
  box-sizing: border-box;
  position: relative;
}
.page-header .proposal-info {
  line-height: 18px;
  position: absolute;
}

.page-header .proposal-info span {
  text-transform: uppercase;
}

.page-header .header-logo {
  width: 100px;
  height: 85px;
  position: absolute;
}

.page-header .proposal-info span {
  display: block;
  /* text-align: left; */
  font-size: 12px;
  opacity: 0.75;
}

.page-header .header-dragHandle {
  position: absolute;
  top: -10px;
  left: 0;
  cursor: grab;
  font-size: 22px;
  z-index: 99;
  display: none;
}

.page-header .proposal-info:hover .header-dragHandle,
.page-header .header-logo:hover .header-dragHandle {
  display: block !important;
}

/* Page Footer */
.page-footer {
  height: 55px;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  padding: 20px 20px 5px;
  opacity: 0.75;
  box-sizing: border-box;
}

.page-footer .page-number {
  text-align: center;
  width: 100%;
  position: relative;
  font-size: 16px;
  margin: 0;
}
.page-footer .page-number::before {
  content: '';
  height: 1px;
  width: 280px;
  background-color: #000;
  position: absolute;
  top: 40%;
  right: 60px;
}

.page-footer .page-number::after {
  content: '';
  height: 1px;
  width: 280px;
  background-color: #000;
  position: absolute;
  top: 40%;
  left: 60px;
}

/* Droppable Container */
.dragHandle {
  position: absolute;
  top: -10px;
  left: 0;
  cursor: grab;
  font-size: 22px;
  z-index: 99;
  display: none;
}

.deleteHandle {
  position: absolute;
  cursor: pointer;
  right: 0;
  top: -10px;
  color: red;
  font-size: 22px;
  z-index: 99;
  display: none;
}

.droppable-container:hover .dragHandle,
.droppable-container:hover .deleteHandle {
  display: block !important;
}

.table-container {
  width: 750px;
}

/* Initials */
.initials p {
  text-align: left;
}

/* Reduction */
.redaction {
  width: 100%;
  height: 100%;
  background-color: aqua;
}
.react-resizable {
  position: relative;
}
.react-resizable-handle {
  position: absolute;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-origin: content-box;
  box-sizing: border-box;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');
  background-position: bottom right;
  padding: 0 3px 3px 0;
}
.react-resizable-handle-sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
  transform: rotate(90deg);
}
.react-resizable-handle-se {
  bottom: 0;
  right: 0;
  cursor: se-resize;
}
.react-resizable-handle-nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
  transform: rotate(180deg);
}
.react-resizable-handle-ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
  transform: rotate(270deg);
}
.react-resizable-handle-w,
.react-resizable-handle-e {
  top: 50%;
  margin-top: -10px;
  cursor: ew-resize;
}
.react-resizable-handle-w {
  left: 0;
  transform: rotate(135deg);
}
.react-resizable-handle-e {
  right: 0;
  transform: rotate(315deg);
}
.react-resizable-handle-n,
.react-resizable-handle-s {
  left: 50%;
  margin-left: -10px;
  cursor: ns-resize;
}
.react-resizable-handle-n {
  top: 0;
  transform: rotate(225deg);
}
.react-resizable-handle-s {
  bottom: 0;
  transform: rotate(45deg);
}

/* Sub TOC title */
.sub-toc-heading {
  position: relative;
}
.sub-toc-heading .assign-toc {
  display: none;
  cursor: pointer;
  position: absolute;
  top: -10px;
  left: 45%;
}

.sub-toc-heading .assign-toc svg {
  fill: #1181b2;
}

.sub-toc-heading:hover .assign-toc {
  display: inline-block;
}

/* Table */

.table {
  width: 100%;
}
table {
  width: 100% !important;
}

/* TOC External */

.toc-heading p {
  margin: 0 !important;
  color: hsl(221, 37%, 32%) !important;
  font-size: 22px;
  padding: 5px;
}

.toc-heading {
  display: inline-block;
  margin-bottom: 0;
}

/* TOC External Refference */
.reference-page .toc-heading p {
  font-size: 28px;
  text-transform: uppercase;
}

/* Editable P */
.p-editable-input {
  border: none;
  display: inline;
  font-family: inherit;
  padding: 0;
  background: transparent !important;
  font-size: 18px;
}
.company-logo-container {
  display: flex;
  align-items: Center;
  justify-content: center;
}