﻿:root {
    --height: 31px;
    --bs-card-border-radius: 7px;
    --theme-color: #347ab6;
}

html {
    font-size: 12px !important;
}

@media (min-width: 768px) {
    html {
        font-size: 12px !important;
    }
}

p {
    margin-bottom: 0;
}
/* Loader Wrapper - background overlay */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark background with 50% opacity */
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Loader CSS */
#loader {
    border: 6px solid #f3f3f3;
    border-radius: 50%;
    border-top: 6px solid #3498db;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

/* Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hide content during loading */
#content {
    display: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-size: 13px !important;
}

.alert {
    position: fixed;
    top: 100px;
    right: 29px;
    min-width: 200px;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    z-index: 99999999999999;
}

.alert-danger {
    color: #922332;
    background-color: #fcd1d5;
    border-color: #fbbec4;
}

.alert-success {
    color: #2e7d45;
    background-color: #d5f3dc;
    border-color: #c4efce;
}

.alert-info {
    color: #298599;
    background-color: #d3f7fc;
    border-color: #c2f3fb;
}

.progress-bar {
    transition: none !important;
}

.bg-danger {
    background-color: #ef172c !important;
}

.bg-success {
    background-color: #2ec551 !important;
}

.bg-info {
    background-color: #25d5f2 !important;
}

.progress {
    position: absolute;
    width: 100%;
    bottom: 0px;
    left: 0px;
    display: flex;
    height: 1rem;
    overflow: hidden;
    line-height: 0;
    font-size: .65625rem;
    background-color: #efeff6;
    border-radius: .25rem;
}

button.close {
    padding: 0;
    background-color: transparent;
    border: 0;
    float: right;
    font-size: 1.3125rem;
    font-weight: 700;
    line-height: 1;
    color: #2e2f39;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

.dataTable th, .dataTable td {
    padding: 5px 35px !important;
}

.dataTable th {
    text-transform: capitalize !important;
}

.text-right {
    text-align: right !important;
}

.field-validation-error {
    color: red !important;
}

[id*='dt-length'] {
    margin-right: 10px;
}

.logo-lg {
    max-width: 150px;
    height: auto;
}

}

.manual-height {
    height: 21px;
    line-height: 1.4;
}

.form-group .select2 .selection .select2-selection {
    min-height: var(--height);
}

    .form-group .select2 .selection .select2-selection .select2-selection__rendered {
        line-height: 32px;
    }

    .form-group .select2 .selection .select2-selection .select2-selection__arrow {
        height: 29px;
    }

.form-group .select2 .selection .select2-selection--multiple:has(:not(.select2-selection__choice)) {
    height: var(--height);
}

.form-group .select2 .selection .select2-selection--multiple:has(.select2-selection__choice) {
    height: fit-content !important;
    padding-bottom: 0;
}

.select2-selection--multiple .select2-search .select2-search__field {
    top: -8px;
    position: relative;
}


input.form-control {
    height: var(--height);
}

.show-details-line {
    margin-bottom: 0.2rem;
    margin-top: 0.1em;
}

table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date, table.dataTable td.dt-type-numeric, table.dataTable td.dt-type-date {
    text-align: right !important;
}

.dataTable:not([data-custom = "true"]) {
    display: none;
}

div.dt-container .dt-input, div.dt-container .dt-search input, .btn, .form-control, .select2-container--default .select2-selection--single {
    border-radius: var(--bs-card-border-radius);
}

.card-header:first-child {
    border-radius: var(--bs-card-border-radius) var(--bs-card-border-radius) 0 0;
}

.card-body {
    border-radius: 0 0 var(--bs-card-border-radius) var(--bs-card-border-radius);
}

.form-control, .select2-container {
    width: -webkit-fill-available !important;
}

.select2-container--open .select2-dropdown--below {
    z-index: 9999999;
}

.smallBtn {
    font-size: 11px !important;
    padding: 3px 2.5px 1px 3px;
}

.hideBeforePageLoad {
    display: none;
}

.eyeIcon {
    background: #337ab7;
}

    .eyeIcon i, .trashIcon i {
        font-weight: 500;
    }

.image-delete {
    display: block;
    position: relative;
    top: 8px;
    background: red;
    right: -98%;
    border-radius: 50%;
    color: #FFF;
    width: 19px;
    text-align: center;
}

    .image-delete:hover {
        color: #FFF;
    }

.profilePhoto {
    width: 200px;
    height: 250px;
}

.select2-selection__choice {
    height: 24px;
    top: -5px;
    line-height: 2;
}

.select2-selection__choice__remove {
    height: 24px;
}

.orderingBtn {
    background: transparent;
}

[data_full_image] {
    cursor: pointer;
}

.full-screen-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000000;
}

    .full-screen-image img {
        max-width: 90%;
        max-height: 90%;
    }

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.form-check {
    width: fit-content;
}

.POInput {
    width: 125px !important;
}

.datepicker-days table.table-condensed tfoot .today {
    background: #347ab6 !important;
    color: #fff !important;
}

button.smallBtn {
    min-width: 22px;
    min-height: 22px;
}

.table thead th {
    text-transform: inherit;
}

.table-hover tbody tr:hover td {
    background-color: #DCDCDC !important;
}

/*    .table-hover tbody tr:hover td, .table-hover tbody tr:hover td *:not(input,textarea,select,option) {
        color: #FFF !important;
    }*/

a[data-show-image][href=''] {
    display: none;
}

select.form-control[readonly], .form-control[readonly], [readonly].datatable-input, [readonly].custom-select, [readonly].dataTable-selector, [readonly].dataTable-input {
    opacity: 1;
}

    select.form-control[readonly]:hover, .form-control[readonly]:hover, [readonly].datatable-input:hover, [readonly].custom-select:hover, [readonly].dataTable-selector:hover, [readonly].dataTable-input:hover {
        cursor: not-allowed;
    }

.form-control {
    font-size: 1rem;
    color: #000;
}

.form-check-input[disabled] ~ .form-check-label, .form-check-input:disabled ~ .form-check-label {
    opacity: 1;
}

.form-group:has(.lbl-font-bold) label {
    font-weight: bold;
}

.hide {
    display: none !important;
}

.print-a4 p {
    margin-bottom: 0;
}

.print-title {
    background-color: #bfbfbf;
    border: 1px solid #000;
    color: #000;
    font-weight: bold;
    max-width: fit-content;
    padding: 2px 50px;
}

.div-center {
    display: flex;
    justify-content: center;
}


.print-table-details {
    width: 100%;
    border: 1px solid #000;
}

    .print-table-details tr td, .print-table-details tr th {
        border: 1px solid #000;
    }

    .print-table-details thead tr th {
        font-weight: bold;
    }

b {
    font-weight: bold;
}

.theme-color {
    color: #FFF !important;
    background-color: #347ab6 !important;
}

b.theme-color {
    padding: 0 2px;
    margin-right: 10px;
}

.print-po-summary b {
    width: 116px;
    display: inline-block;
    margin-top: 3px;
    text-align: center;
}

.print-po-summary span {
    display: inline-block;
}

.d-left-right p:first-child {
    display: inline;
}

.d-left-right p:last-child {
    display: inline;
    width: fit-content;
    float: right;
}

.verticle-center {
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
}

.row-highlight {
    background-color: #347ab6;
}

    .row-highlight td {
        color: #FFF;
    }

.pl-0 {
    padding-left: 0;
}

ul .list-group-item:first-child {
    padding-top: 0;
}

ul .list-group-item:last-child {
    padding-bottom: 0;
}

.theme-bg {
    background-color: var(--theme-color) !important;
}

.color-white {
    color: white;
}

.font-1-2 {
    font-size: 1.2rem !important;
}

.p-15 {
    padding: 15px;
}

.dashboard-count {
    border-color: var(--theme-color);
}

.color-theme {
    color: var(--theme-color);
}

.system-checkout {
    background-color: red !important;
    color: white;
}

    .system-checkout td i {
        color: white;
    }

.list-group-item {
    padding-top: 10px;
    padding-bottom: 0;
}

.visit-label {
    color: #78c1ff;
    font-size: 18px;
}

.border-visit-images {
    border: 1px solid #CCC;
    border-radius: 2px;
    padding: 5px;
}

.visit-images {
    padding: 0 18px;
}

.mt-2 {
    margin-top: 2rem !important;
}

.mx-w-100 {
    max-width: 100px;
}

.tooltip-textbox {
    position: absolute;
    display: none;
    border: 1px solid #ccc;
    padding: 5px;
    background-color: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    width: 150px;
}

.alert-slide-in {
    position: fixed;
    top: 20px;
    right: -400px; /* Start offscreen */
    max-width: 350px;
    z-index: 9999;
    transition: right 0.5s ease-in-out;
}

.alert-show {
    right: 20px; /* Moves into view */
}

.f-s-17 {
    font-size: 17px !important;
}

.mt-13 {
    margin-top: 13px !important;
}

.text-left {
    text-align: left !important;
}

.mt-3 {
    margin-top: 3rem !important;
}

.dt-type-numeric.bg-danger {
    color: white;
}

.fa-light-emergency, .fa-light-emergency-on {
    cursor: pointer;
}

.pc-sidebar .pc-navbar > .pc-item .pc-submenu .pc-item > .pc-link:after {
    display: none;
}

.pc-sidebar .pc-navbar > .pc-item .pc-submenu .pc-link {
    padding-left: 43px;
}

body:has(#castingMissing.show) #castingProcess #frmProductionProcess > *:not(#castingProcessSubModal),
body:has(#castingQCProcess.show) #castingProcess #frmProductionProcess > *:not(#castingProcessSubModal) {
    display: none;
}

.bg-dark-green {
    background-color: #51bb25;
}

    .bg-dark-green:hover {
        background-color: #46a91c;
    }

.tox-notifications-container{
    display:none !important;
}

.search-box {
    position: relative;
    display: inline-block;
    width: 100%;         
    min-width: 120px;    
    margin-top: 5px;
    box-sizing: border-box;
}

.dt-search-field {
    width: 100%;
    padding: 4px 22px 4px 6px;
    box-sizing: border-box;
}

.clear-icon {
    position: absolute;
    right: 6px;          
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-weight: bold;
    display: none;
}

#colSearchBox{
    height:30px;
}

.highlight-table-row {
    background-color: #D3D3D3 !important;
}

.dt-search{
    display:none;
}