.headerTopOfPage {
    position: relative;
    margin-bottom: -68pt;
    padding-bottom: -20pt;
}

.wholePageWidth {
    position: relative;
    background-color: lightcoral;
    margin-top: 0px;
    padding-top: 0px;
    top: 0px;
    left: -60px;
    width: 784px;
    background-color: lightblue;
}

.pageDefaults {
    font-weight: normal;
}

.input-container {
    position: relative;
    display: inline-block;
}

.inputBox {
    border: 1px solid skyblue;
    border-radius: 4px;
	font-weight: normal;
	padding-left: 2px;
	padding-right: 2px;
    min-width: 60px;
}

.inputArea {
    border: 1px solid skyblue;
    border-radius: 4px;
	font-weight: normal;
    padding-top: 2px;
    padding-left: 4px;
    padding-right: 4px;
    /* Margins for grammarly */
    margin-top: 5px;
    margin-left: 0px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.input {
    border: 1px solid skyblue;
    border-radius: 4px;
	font-weight: normal;
	padding-left: 5px;
	padding-right: 5px;
}

.inputDate {
    border: 1px solid skyblue;
    border-radius: 4px;
	font-weight: normal;
	padding-left: 5px;
	padding-right: 5px;
    width: 140px;
}

.inputError {
    border: 1px solid red!important;
}

.input-wrap {
    position: relative;
}

.input-wrap .input {
    position: absolute;
    width: 100%;
    left: 0;
}

.controlOutline {
    border: solid 1px skyblue;    
    padding-top: 4px;
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: 2px;
    margin-top: 2px;
    
}

.controlOutlineLocked {
    border: solid 1px lightgray;    
    border-radius: 4px;
    padding-top: 4px;
    padding-left: 4px;
    padding-right: 4px;
    margin-top: 2px;
    max-width: 756px;
    width: 756px;
    line-height: 20px;
}

.width-machine {
    /*   Sort of a magic number to add extra space for number spinner */
    padding: 0 1rem;
}

.input-wrap {
    position: relative;
}

.input-wrap .input {
    position: absolute;
    width: 100%;
    left: 0;
}

.width-machine {
    /*   Sort of a magic number to add extra space for number spinner */
    padding: 0 1rem;
}

.input-wrap {
    position: relative;
}

.input-wrap .input {
    position: absolute;
    width: 100%;
    left: 0;
}

.width-machine {
    /*   Sort of a magic number to add extra space for number spinner */
    padding: 0 1rem;
}

.input-delete-container {
    display: inline-block;
    position: relative;
}

.input-delete-button {
    position: absolute;
    top: -5px;   /* adjust vertical position */
    right: -10px; /* adjust horizontal position */
    width: 16px;
    height: 16px;
    background: red;
    color: white;
    font-size: 12px;
    text-align: center;
    line-height: 16px;
    cursor: pointer;
    border-radius: 50%;
}

.notchangable {
    background-color: grey;
}

.selectbox {
    border: 1px solid skyblue;
    border-radius: 4px;
	font-weight: normal;
}

.modalDialog {
    display: none;
    border-radius: 12px 12px 0 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.modalDialogContainer {
    position: fixed;
    border-radius: 12px 12px 0 0 !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    text-align: center;
}

.modalDialogHeader {
    border-radius: 12px 12px 0 0 !important;
    padding-top: 2px;
    padding-bottom: 2px;
    text-align: center;
    background-color: #0078d4;
    color: white;
}

.modalDialogBody {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 10px;
    font-weight: 600;
    margin-top: 20px;
    margin-left: 5px;
    margin-right: 5px;
    font-family: Manrope;
    font-weight: 600;
    font-size: 12px;
  }

.modalDialogContent {
    margin: 10px;
}

.modalDialogClose {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: 600;
    cursor: pointer;
}

.toolLineNumber {
    position: relative;
    left: -40px;
    top: 10px;
    cursor: pointer;
}

.toolIconSize {
    font-size: 20px;
}

.toolIcon {
    position: relative;
    top: 8px;
    width: 12px;
    height: 12px;
    cursor: pointer;
}

.toolIconAction {
    position: relative;
    left: -28px;
}

.toolIconSingle {
    position: relative;
    left: -16px;
}

.toolIcon1 {
    position: relative;
    left: -40px;
}

.toolIcon2 {
    position: relative;
    left: -46px;
}

.toolIcon3 {
    position: relative;
    left: -52px;
}

.toolIconInner1 {
    position: relative;
    left: -46px;
}

.toolIconInner2 {
    position: relative;
    left: -52px;
}

.toolIconInner3 {
    position: relative;
    left: -58px;
}

.toolFloat {
    float: left; 
    z-index: 1;
    top: 4px !important;
}

.innerControl {
    position: relative;
    left: -32px;
    }

/* Popup container */
#spellingPopup {
  position: absolute;
  background: #fff;
  border: 1px solid #beb6b6;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 8px;
  min-width: 180px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  z-index: 9999;
  display: none;
}

/* Header */
#spellingPopup h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: bold;
}

/* Suggestion options */
#spellingPopup .option {
  padding: 6px 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

#spellingPopup .option:hover {
  background: #f0f0f0;
}

/* Ignore option */
#spellingPopup .ignore-option {
  color: #666;
  font-style: italic;
  font-weight: normal;
}


/* 
      These elements are used to manage the document popup    
*/
.documentPopup {
    display: none;
    position: fixed;
    height: 460px !important;
    top: 50%;
    left: 500px;
    transform: translate(-50%, -50%);
    padding: 10px;
    background-color: #fff7d1;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: move;
    z-index: 3;
    font-family: Calibri;
    font-size: 11pt;
    /* Keep it above the address control */
}

.documentPopupContent {
    width: 900px;
    height: 380px;
    min-height: 300pt;
    min-width: 200pt;
    overflow: auto;
}

.navigationTable {
    border-collapse: collapse;
    width: auto;
    table-layout: auto;
}

.navigationTable tr td {
    color: #e09f05;
    padding-right: 10px;
    height: 26px;
}

.right-arrow {
    border: solid #e09f05;
    border-width: 0.2em 0.2em 0 0;
    display: inline-block;
    padding: 0.2em;
    transform: rotate(45deg); 
}

.menuItem {
    line-height: 16pt;
    margin-top: 0px;
    padding-top: 0px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Selection table is the table within the popup that a user selected the rows to be inserted into the document */
.selectionTableContainer {
    background-color: White;
    height: 272pt;
    display: block;
    overflow: auto;
    margin-bottom: 10px;
}

table.selectionTable {
    background-color: White;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

table.selectionTable tr {
    text-align: left; /* Adjust text alignment if needed */
    line-height: 12pt;
}

table.selectionTable td {
    text-align: left; /* Adjust text alignment if needed */
    line-height: 12pt;
    white-space: nowrap;
}

/* document table is the table in drafter that contains the finally selected text */
.documentTableContainer{
    margin-bottom: 5px;
}

.documentTable {
    border-collapse: inherit !important;
    line-height: 14px;
    width: 756px;
    table-layout: fixed;
    border: 1px solid skyblue;
    border-radius: 4px;
    padding-top: 2px;
    padding-left: 2px;
	padding-right: 2px;
    min-height: 18px;
}

.documentEditorTable {
    width: 1200px !important;
}

.documentJustifyLine {
    text-align: justify;
    text-align-last: justify;
    white-space: nowrap;
    vertical-align: middle;
}

.documentTable td, .documentTable th {
    text-align: left; 
}

.documentControlBlock {
    display: none;
    border: 1px black;
    height: 40px;
    padding-top: 4px;
    padding-left: 30px;
}

.closeButton {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}

.closeButton::before, .closeButton::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

.closeButton::before {
    transform: rotate(45deg);
}

.closeButton::after {
    transform: rotate(-45deg);
}

.closeButton:hover {
    transform: scale(1.1);
}

.closeButton:hover::before, 
.closeButton:hover::after {
    background: red;
}

.primaryButton {
    flex: 1 1 auto; /* Allow shrinking but maintain proportion */
    min-width: 60px; /* Set a lower minimum width to allow shrinking */
    max-width: 180px; /* Prevent excessive shrinking */
    padding: 8px 12px; /* Reduce padding to save space */
    border-radius: 8px;
    background: linear-gradient(135deg, #0078d4, #005a9e); /* Subtle gradient */
    margin-right: 10px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 3px 6px rgba(0, 120, 212, 0.3); /* Soft shadow */
  
      white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden; /* Hides overflowing text */
    text-overflow: ellipsis; /* Adds "..." if text overflows */
  }
  
  .primaryButton:hover {
    background: linear-gradient(135deg, #005a9e, #00447a);
    box-shadow: 0 5px 12px rgba(0, 120, 212, 0.4);
    transform: translateY(-2px); /* Slight lift effect */
  }
  
  .primaryButton:active {
    background: #00447a;
    box-shadow: 0 2px 6px rgba(0, 120, 212, 0.2);
    transform: translateY(1px); /* Press-down effect */
  }
  
  .primaryButton:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.5); /* Accessibility focus */
  }
  
/* for the document text popup */
.busyDiv {
    position: relative;
    top: 20%;
    left: 35%;
    width: 100pt;
    height: 20pt;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.busy-content {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wordPopupContainer {
    background-color: #fff7d1; 
    font-family:Calibril; 
    font-size: 12pt;
    padding-top: 10px;
}

.wordPopupContainer {
    background-color: #fff7d1;
    font-family:Calibri; 
    font-size: 12pt;  
}


/* These styles are copied in taskpain.css */
.icon-toolbar {
    position: absolute;
    background: #F0F8FF; /* Alice Blue */
    padding: 10px;
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: none; /* Initially hidden */
    z-index: 1000;
    flex-wrap: wrap;
    border: 1px solid skyblue; /* Sky blue border */
}

.icon-toolbar i {
    font-size: 1.8em;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 5px;
    margin: 0 5px;
}

.icon-toolbar i:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.2);
}

/* Disabled Icons */
.icon-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.icon-vtoolbar {
    position: absolute;
    transform: translateY(50%); /* centers toolbar itself vertically */
    background: #F0F8FF; /* Alice Blue */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: none; /* Initially hidden */
    z-index: 1000;
    border: 1px solid skyblue; /* Sky blue border */

    flex-direction: column;
    align-items: center; /* optional: center icons horizontally */
    gap: 10px; /* adds spacing between icons */
}

.icon-vtoolbar i {
    font-size: 1.8em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 5px;
    padding: 8px;
    margin: 0; /* remove horizontal margins */
}

.icon-vtoolbar i:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.2);
}

.icon-vdisabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.imageOptionsMenu {
    display: none;
    position: absolute;
    background-color: #ffffff; /* White for a clean look */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 6px; /* Rounded corners */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow */
    padding: 0px; /* Space around items */
    min-width: 150px; /* Ensures good width */
    z-index: 1000; /* Ensures it stays on top */
}

.imageMenuItem {
    padding: 10px 16px; /* Larger click area */
    font-size: 14px;
    color: #333; /* Dark text for contrast */
    background-color: transparent; /* Removes default gray */
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out; /* Smooth hover effect */
}

.imageMenuItem:hover {
    background-color: #f0f0f0; /* Light hover effect */
    color: #000; /* Darker text */
}

.imageMenuItem:first-child {
    border-top: none;
}

.imageMenuItem:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

 
/* Address issue with the date picker appearing in a weird place */
#ui-datepicker-div {display: none;}


/* for template display */
.section-div {
    position: relative;
    border: 1px solid skyblue;
    padding-bottom: 5px;
    padding-top: 5px;
    margin-bottom: 10px;
}

.section-div:before {
    content: attr(data-description);
    position: absolute;
    top: -10px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: white; /* To create a clean background for the text */
    padding: 0 5px;
    font-size: 12px; 
    color: black; 
}

.first-child-padding:first-child {
    padding-top: 10px;
    margin-top: 10px;
}
