:root {
    --main-color: #154c79;
    --light-color: #E4EDFC;
    --lighter-color: #f3f7fd;
    --bright-color: #0063B2;
	--lighter-blue: #42b6f5;
    --small-fs: 0.75rem;
    --regular-fs: 0.8rem;
    --title-fs: 0.85rem;
    --col-width: 400px;
    --pad-left: 20%;
}
.modal {
    overflow-y:auto;
}

/* Search */
.search {
    position: relative;
    width: 80%;
    margin-top: 20px;
    height: 50px;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
}

.search-input {
    color: white;
    border: 0;
    outline: 0;
    background: none;
    width: 0;
    height: 25px;
    margin-top: 3px;
    caret-color: transparent;
    line-height: 20px;
    transition: width 0.4s linear
}

.search .search-input {
    padding: 0 10px;
    width: 100%;
    caret-color: #536bf6;
    font-size: 18px;
    font-weight: 300;
    color: black;
    transition: width 0.4s linear;
}

.search-bg {
    position: relative;
    z-index: 2;
}

.search-bg::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 20px;
    bottom: -20px;
    background-color: var(--lighter-color);
    z-index: -1;
}

.search-icon {
    position: absolute;
    height: 100%;
    width: 50px;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    border-radius: 0 0.25rem 0.25rem 0 !important;
}

.search-icon:hover{
    color: #fff !important;
}

/* Filter */
.filter-btn {
    margin-top: 20px;
}

.filter-btn .btn {
    height: 50px;
}

.hidden-btn {
    visibility: hidden;
}

.filter-icon {
    height: 34px;
    width: 34px;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: #2d9b64;
    font-size: 10px;
    bottom: 30px;
    border-radius: 5px;
    border:none;
}

.filter-bg {
    width: 100%;
    background-color: var(--lighter-color);
}

.filter-wrapper {
    width: 80%;
}

.filter-wrapper .card {
    border: none;
    border-top: 2px solid #ffc107;
    border-radius: 0 0 0.25rem 0.25rem;
    z-index: 3;
}

a:link {
    text-decoration: none
}

/* td {
    border:0.5px solid #ebecf0 !important;
} */

/* .card-row {
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    padding: 0.75rem;
} */

input[type="date"] {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Remove default arrow icon */
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Adjust appearance for different browsers */
input[type="date"]::-webkit-calendar-picker-indicator {
    color: #999;
    font-size: 18px;
    padding: 4px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    color: #555;
}

input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

/* Adjust appearance for Firefox */
input[type="date"]::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input[type="date"]::-moz-calendar-picker-indicator {
    color: #999;
    font-size: 18px;
    padding: 4px;
}

input[type="date"]::-moz-calendar-picker-indicator:hover {
    color: #555;
}

.date-range-input {
    display: flex;
    align-items: center;
}

.date-range-divider {
    margin: 0 5px;
}

/* Table */
table td,
table th {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

th {
    vertical-align: middle;
    font-size: var(--regular-fs);
}

#tdrtbl {
    border-spacing: 0px 8px;
}

.card-row td {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.card-row td:first-child {
    border-left: 1px solid #dee2e6;
    border-radius: 5px 0 0 5px;
}

.card-row td:last-child {
    border-right: 1px solid #dee2e6;
    border-radius: 0 5px 5px 0;
}

.card-row td:first-child,
.card-row td:nth-child(2),
.card-row td:nth-child(3),
.card-row td:nth-child(4),
.card-row td:nth-child(5),
.card-row td:first-child {
    padding-top: 15px;
    padding-bottom: 12px;
}

#tdrtbl.table>tbody>tr:nth-child(even)>td {
    background-color: #f3f7fd;
}

.small-fs {
    font-size: var(--small-fs);
}

.regular-fs {
    font-size: var(--regular-fs);
}

.title-fs {
    font-size: var(--title-fs);
}

.ref-no {
    font-weight: 500;
}

.tdr-title {
    color: var(--main-color);
    font-weight: 600;
}

.irregular-fs {
    font-weight: 600;
    color: var(--main-color);
}

.fit {
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--bright-color) !important;
}

.btn-sm {
    width: 110px;
}

.start-text {
    text-align: left !important;
}

.center-text {
    text-align: center;
}

.button-container {
    display: flex;
    flex-direction: column;
}

.submit-btn {
    margin-top: 8px;
}

/* Scrollbar */

html,
body,
.tdr-page .container-fluid {
    overflow-y: auto;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    display: block;
    width: 0.5vw;
}

/* Data table */
table.dataTable thead>tr>th.sorting:after, 
table.dataTable thead>tr>th.sorting_asc:after, 
table.dataTable thead>tr>th.sorting_desc:after, 
table.dataTable thead>tr>th.sorting_asc_disabled:after, 
table.dataTable thead>tr>th.sorting_desc_disabled:after, 
table.dataTable thead>tr>td.sorting:after, 
table.dataTable thead>tr>td.sorting_asc:after, 
table.dataTable thead>tr>td.sorting_desc:after, 
table.dataTable thead>tr>td.sorting_asc_disabled:after, 
table.dataTable thead>tr>td.sorting_desc_disabled:after {
    right: 14px;
}

table.dataTable thead>tr>th.sorting:before, 
table.dataTable thead>tr>th.sorting:after, 
table.dataTable thead>tr>th.sorting_asc:before, 
table.dataTable thead>tr>th.sorting_asc:after, 
table.dataTable thead>tr>th.sorting_desc:before, 
table.dataTable thead>tr>th.sorting_desc:after, 
table.dataTable thead>tr>th.sorting_asc_disabled:before, 
table.dataTable thead>tr>th.sorting_asc_disabled:after, 
table.dataTable thead>tr>th.sorting_desc_disabled:before, 
table.dataTable thead>tr>th.sorting_desc_disabled:after, 
table.dataTable thead>tr>td.sorting:before, 
table.dataTable thead>tr>td.sorting:after, 
table.dataTable thead>tr>td.sorting_asc:before, 
table.dataTable thead>tr>td.sorting_asc:after, 
table.dataTable thead>tr>td.sorting_desc:before, 
table.dataTable thead>tr>td.sorting_desc:after, 
table.dataTable thead>tr>td.sorting_asc_disabled:before, 
table.dataTable thead>tr>td.sorting_asc_disabled:after, 
table.dataTable thead>tr>td.sorting_desc_disabled:before, 
table.dataTable thead>tr>td.sorting_desc_disabled:after {
    line-height: 5px;
}

.dataTables_scrollBody::-webkit-scrollbar {
    height: 0.8vw !important;
}

.dataTables_length {
    margin-top: 15px;
    margin-bottom: 10px;
}

.dataTables_info {
    margin-top: 15px !important;
}

.dataTables_paginate {
    margin-top: 20px !important;
}

div.dataTables_scrollBody>table>tbody tr:first-child td {
    border-top: 1px solid #dee2e6 !important;
}

div.dataTables_scrollBody>table {
    margin-top: -20px !important;
}

table[data-sortable] th[data-sorted-direction="ascending"]:after {
    margin-top: 0;
}

table[data-sortable] th[data-sorted-direction="descending"]:after {
    border-top-color: none;
    margin-top: 0;
}

.table>:not(:last-child)>:last-child>* {
    border-bottom-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #7775;
    border-radius: 0.25rem;
}

::-webkit-scrollbar-track {
    background-color: #5555;
}

/* Responsiveness */

@media (hover: none) and (pointer: coarse) {
    body {
        overflow-x: hidden;
    }
}

@media not all and (hover: none) {
    body {
        overflow-x: hidden;
    }
}

@media (max-width:1024px) {
    :root {
        --col-width: 300px;
    }
}

@media (max-width:960px) {
    :root {
        --col-width: 250px;
    }
}

@media (min-width: 990px) {
    .table th:first-of-type,
    .table td:first-of-type {
        min-width: var(--col-width) !important;
    }
}

@media (max-width:767.98px) {
    :root {
        --col-width: 180px;
    }

    .filter-btn .btn {
        min-width: 50px;
    }

    .dataTables_length {
        text-align: left !important;
    }

    .dataTables_info {
        margin-left: 1.5rem;
    }
}

@media (min-width:576px) {
    .modal-lg{
        max-width: 80% !important;
    }

    /* .modal-xl {
        max-width: 98% !important;
    } */
}


/* trial */
@media
only screen 
and (max-width: 990px), (min-device-width: 768px) 
and (max-device-width: 1024px)  {

    /* Force table to not be like tables anymore */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin: 0 0 1rem 0;
    }

    tr:nth-child(odd) {
        background: #ccc;
    }

    td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 50%;
        left: 18px;
        transform: translateY(-50%);
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 550;
    }

    /*
    Label the data
    You could also use a data-* attribute and content for this. That way "bloats" the HTML, this way means you need to keep HTML and CSS in sync. Lea Verou has a clever way to handle with text-shadow.
    */
    td:nth-of-type(2):before { content: "Client"; }
    td:nth-of-type(3):before { content: "Publish Date"; }
    td:nth-of-type(4):before { content: "Close Date"; }
    td:nth-of-type(5):before { content: "EOI Deadline"; }
    td:nth-of-type(6):before { content: "Location"; }

    .center-text {
        text-align: left;
    }

    .card-row td {
        border-top: none;
        border-bottom: none;
        border-left: 1px solid #dee2e6;
        border-right: 1px solid #dee2e6;
    }
    
    .card-row td:first-child {
        border-top: 1px solid #dee2e6;
        border-radius: 5px 5px 0 0;
    }
    
    .card-row td:last-child {
        border-bottom: 1px solid #dee2e6;
        border-radius: 0 0 5px 5px;
    }

    .card-row td:not(:first-child) {
        padding-left: var(--pad-left);
        padding-right: 18px;
    }
    
    .card-row td:nth-child(2),
    .card-row td:nth-child(3),
    .card-row td:nth-child(4),
    .card-row td:nth-child(5) {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .card-row td:first-child {
        padding: 20px 18px 0 18px;
    }

    .card-row td:last-child {
        padding: 10px 18px 20px 18px;
    }

    .button-container {
        flex-direction: row;
        justify-content: end;
    }

    .submit-btn {
        margin-top: 0;
    }

    .view-btn {
        margin-right: 5px;
    }
}

@media (min-width: 600px) and (max-width: 700px) {
    :root {
        --pad-left: 25%;
    }
}

@media (min-width: 450px) and (max-width: 600px) {
    :root {
        --pad-left: 35%;
    }
}

@media (max-width:576px) {
    :root {
        --col-width: 150px;
    }

    .filter-wrapper {
        width: 91.5%;
    }

    .hidden-btn {
        display: none;
    }
}

@media (max-width: 450px) {
    :root {
        --pad-left: 40%;
    }

    .filter-wrapper {
        width: 95%;
    }
}

@media (max-width:400px) {
    :root {
        --regular-fs: 0.75rem;
    }
}

@media (max-width:300px) {
    .filter-wrapper {
        width: 100%;
    }
}

.text-justify {
  text-align: justify;
}

.fs-8
{
	font-size: 0.7rem !important;
}

.z-index-popover-top
{
	z-index:1039 !important;
}

.bright-blue
{
	color:var(--lighter-blue);
}

.popover-body
{
	background-color:#242424;
	color:white;
}

.bs-popover-top > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=top] > .popover-arrow::after {
	border-top-color: #242424;
}

.bs-popover-end > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=right] > .popover-arrow::after {
	border-right-color: #242424;
}

.bs-popover-bottom > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow::after {
	border-bottom-color: #242424;
}

.bs-popover-start > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=left] > .popover-arrow::after {
	border-left-color: #242424;
}

.input-verify-code, .input-verify-code:focus
{
	border-width:0 0 1px 0;
	border-color:#ced4da;
	height:2rem;
	outline: none;
	letter-spacing:10px;
	
}

.fs-7
{
	font-size:0.875rem;
}

.text-bright-color
{
	color: var(--bright-color);
}

.text-bright-color:hover
{
	color: #043a88;
}