/*Applies to the Vendor information above the invoice list*/
div.vendor {
    font-size: 14pt;
    margin: 20px 0 0 20px;
}

/*Formatting for the paragraph of the "General"/"Direct Pay" text*/
p.general {
    font-size: 20pt;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

/*Container for the table that displays the list of invoices*/
div.vendor-container {
    float:left;
    font-family: Arial, sans-serif;
    font-size: min(11pt, 1em);
    color: #4A4A4A;
    margin: 10px 0 0 10px;
    width: 100%;
}

/*Standard color for any anchor (link) tags used*/
a {
    color: #006080;
}

/* applies to the "X" image that is used to close overlays*/
.close_image {
    width: 20px;
}
.close_image:hover {
    background-color: #E9F198;
}

/*Top, table level formatting for the invoice list*/
div.vendor-container table {
    width: 100%;
    margin: 5px 5px;
    font-size: 13pt;
    border-top: 2px solid rgba(157, 188, 81, 0.5);
}

/*Formatting for the header section of the invoice list table*/
div.vendor-container table thead {
    width: 100%;
    color: #006080;
}

div.vendor-container table thead tr {
    
}

/*Formatting for each header row cells*/
div.vendor-container table thead tr th {
    width: 16%;
}

/*This sets the state of the anchor tags used for the sorting headers*/
div.vendor-container table thead tr th a {
    color: black;
    text-decoration: none;
}

/*This applies to the triangle images used to display sorting */
div.vendor-container table thead tr th a img {
    width: 13px;
}

/*Body of the invoice list table */
div.vendor-container table tbody {
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Hide horizontal scrolling */
}

/*Applied to each row of the invoice list body*/
div.vendor-container table tbody tr {
    color: black;
    padding: 2px;
}

/*Sets styles for every even row of the table*/
div.vendor-container table tbody tr:nth-of-type(even) {
    background-color: #EEEEEE;
}

/*Applies styles on hover */
div.vendor-container table tbody tr:hover,
div.vendor-container table tbody tr:nth-of-type(even):hover {
    background-color: #4F77B1;
    color: #fff;
}

div.vendor-container table tbody tr.pagination,
div.vendor-container table tbody tr.pagination:hover {
    background-color: #ffffff;
}

/*Formats and positions the filters container */
div.filters-container {
    position: absolute; /* Takes positioning outside of the parent container settings*/
    float: left;
    width: 200px;
    margin: 80px 8px 0 -320px;
    padding-left: 10px;
    color: #4A4A4A;
    font-size: 12pt;
    transform: translate(20%); /*Makes minor adjustments if the browser is resized*/
}

/*Search container in filters */
div.filters-container #search {
    width: 400px;
    text-align: left;
    margin: 0;
    padding-bottom: 10px;
/*    border: 1px solid #4F77B1;*/
}

/*Input box in search and filter drop down boxes*/
div.filters-container #search input, .filter-select  {
    width: 260px;
    padding: 5px;
    margin: 0;
    border: 1px solid #4F77B1;
    outline-color: #4F77B1;
    border-radius: 5px;
    font-size: 13pt;
    color: #4A4A4A;    
}

/*Containers for each type of filter*/
div.filters-container #status-filter, #date-range-filter, #amt-filter {
    padding: 0;
    text-align: left;
    color: black;
    margin: 10px 0;
}

/*Titles for each filter type*/
.status-title {
    margin: 0 5px 10px 2px;
    padding: 10px 0;
    color: black;
    font-weight: bold;
    text-align: left;
    border-bottom: 1px solid black; /*creates the line 'next' to the title*/
    line-height: 0.1em; /* raises the border*/
    width: 260px;
}

/*Span inside the containing the title text*/
.status-title span {
    background: white; /*BG color hides the border line behind the text*/
    padding: 0;
}

/* I believe this is deprecated now*/
.crossout {
    text-align: left;
    color: #ffffff;
    padding-left: 2px;
}

/*Button for viewing the invoice file*/
.btn-inv-view {
    display: inline-block;
    color: #fff;
    background-color: #4F77B1;
    border-radius: 10px;
    border-color: #4F77B1;
    padding: 0 0 0 0;
    cursor: pointer;
    font-size: 11pt;
    transition: all 0.5s;
}

.btn-inv-view:hover {
    background-color: #0a53be;
    text-decoration: underline;
}

/*ID ref: Overlay for the invoice file view*/
#file_overlay {
    position: absolute; /* Sit on top of the page content */
    display: block;   /* Hidden by default */
    width: 1100px;
    height: 100%;
    margin-left: 200px;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    z-index: 5;      /* Specify a stack order */
    cursor: pointer; /* Add a pointer on hover */
    text-align: left;
}

/*Applied to hide the overlay, removed to display the overlay*/
#file_overlay.displayFile {
    visibility: hidden;
}

/*Controls the style for the embedded pdf file, used for placement in the overlay container*/
#file_overlay embed {
    display: inline-block;
    height: 100%;
    width: inherit;
    padding-right: 40px;
}

/*Overlay for the invoice form - Hidden by default*/
#upload_overlay {
    position: fixed; /* Fixed positioning for proper centering */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent backdrop */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* High z-index to stay on top */
    cursor: default; /* Default cursor for backdrop */
    text-align: left;
    visibility: hidden; /* Hidden by default */
}

/*Applied to show the overlay - centered and resizable modal*/
#upload_overlay.displayForm {
    visibility: visible; /* Show modal when displayForm class is added */
}

/*Applied to hide the message, removed to display the message*/
#upload_message {
    visibility: hidden;
}

/*Container for the Bulk invoice form*/
.bulkContains {
    margin: 40px 0 20px 40px;
    font-family: Arial, sans-serif;
    color: #4A4A4A;
}

/*Styles the container for bulk upload file list for external*/
#fileList {
    width: 90%;
}

/*Table used to display file list*/
#fileTable {
    width: 100%;
    margin-left: 10px;
    margin-bottom: 20px;
    margin-right: 40px;
    font-family: Arial, sans-serif;
}

/*Each row settings*/
#fileTable tr {
    width: 100%;
    margin: 2px 20px;
    padding: 0;
}

/*Header Cells*/
#fileTable tr th {
    color: black;
    border-bottom: 2px solid black;
    width: 100%;
    padding: 0;
    font-size: 14pt;
}
/*Individual Cells*/
#fileTable tr td {
    background-color: white;
    color: black;
    width: 10%;
    margin: 0;
    padding: 0;
}

/*Deprecated*/
#fileTable tr td.fileName {
    color: #4A4A4A;
    width: 90%;
    font-size: 12pt;
    border-bottom: 1px solid #EEEEEE;
    text-wrap: nowrap;
    margin-right: 40px;
}

/*Container for the invoice file form (inside the overlay div) - Centered resizable modal*/
.upload-div {
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #CCCCCC;
    font-family: Arial, sans-serif;
    color: #4A4A4A;
    padding: 20px;
    margin: 0;
    position: relative;
    cursor: default; /* Prevent backdrop cursor from affecting modal content */
    
    /* Resizable properties */
    resize: both;
    overflow: auto;
    min-width: 400px;
    min-height: 300px;
    max-width: 90vw;
    max-height: 90vh;
    width: 640px;
    height: auto;
    
    /* Custom resize handle styling */
    background-image: 
        linear-gradient(45deg, transparent 12px, #CCCCCC 12px, #CCCCCC 14px, transparent 14px),
        linear-gradient(-45deg, transparent 12px, #CCCCCC 12px, #CCCCCC 14px, transparent 14px);
    background-size: 20px 20px;
    background-position: bottom 0 right 0;
    background-repeat: no-repeat;
}

/* Close button positioning - ensure it's clickable and visible */
.upload-div .close_image {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    padding: 2px;
}

/*"Upload New Invoice" container*/
div.upload-button {
    float: right;
    font-weight: normal;
    font-family: Arial, sans-serif;
    font-size: max(14pt, 1em);
    margin-bottom: 10px;
    margin-right: 10px;
}

/*"Upload New Invoice" button*/
.upload {
    background-color: #4F77B1;
    border: solid 1px #4F77B1;
    border-radius: 5px;
    padding: 5px 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.upload:hover {
    background-color: #3A4B64;
    text-decoration: underline;
}