.img-box {
    background-color: #E9ECEF;
    border: 1px #939ba2 dashed;
    height: 171.16px;
}


/*-------------------------*/

#loader_wrapper {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #3498db;
    -webkit-animation: spin 2s linear infinite;
    /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 2s linear infinite;
    /* Chrome, Firefox 16+, IE 10+, Opera */
}

#loaderText {
    display: block;
    position: relative;
    left: 45%;
    top: 65%;
    width: 350px;
    height: 150px;
    margin: -75px 0 0 -75px;
    text-align: center;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #e74c3c;
    -webkit-animation: spin 3s linear infinite;
    /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 3s linear infinite;
    /* Chrome, Firefox 16+, IE 10+, Opera */
}

#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #f9c922;
    -webkit-animation: spin 1.5s linear infinite;
    /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 1.5s linear infinite;
    /* Chrome, Firefox 16+, IE 10+, Opera */
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg);
        /* IE 9 */
        transform: rotate(0deg);
        /* Firefox 16+, IE 10+, Opera */
    }

    100% {
        -webkit-transform: rotate(360deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);
        /* IE 9 */
        transform: rotate(360deg);
        /* Firefox 16+, IE 10+, Opera */
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg);
        /* IE 9 */
        transform: rotate(0deg);
        /* Firefox 16+, IE 10+, Opera */
    }

    100% {
        -webkit-transform: rotate(360deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);
        /* IE 9 */
        transform: rotate(360deg);
        /* Firefox 16+, IE 10+, Opera */
    }
}

.company-card {
    cursor: pointer;
}

.company-card:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23) !important;
}

.radio-group {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.photo {
    display: inline-block;
    margin-top: 5px;
    position: relative;
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
}

#pattern-container {
    width: 200px;
    height: 200px;
    position: relative;
}

#pattern-canvas {
    border: 1px solid #000;
}

.sideholder_oscroll {
    min-height: 350px;
    border: 1px solid #c7c8c9;
    border-radius: 0px;
}

@media (max-width: 992px) {
    .sideholder_oscroll {
        height: 150px !important;
        max-height: 150px !important;
        min-height: 150px !important;
        margin-bottom: 5px !important;
    }
}

.card_oscroll {
    min-height: 150px;
    max-height: 200px;
}

.model_side_holder {
    padding: 10px 10px 10px 10px;
}

#mapViewElement {
    height: 260px !important;
    width: 100% !important;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.blink {
    animation: blink 1s ease-in-out infinite;
}

.work-id-input {
    text-security: disc !important;
    -moz-text-security: disc !important;
    -o-text-security: disc !important;
    -ms-text-security: disc !important;
    -webkit-text-security: disc !important;
}

.reason-input {
    min-height: 190px !important;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.card-header .card-title {
    font-size: 1rem;
    font-weight: 500;
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.select2-container--default .select2-selection--single {
    height: calc(1.8125rem + 2px) !important;
    font-size: 0.875rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: calc(1.8125rem) !important;
    padding-left: 8px;
}

.bg-light {
    background-color: #f8f9fa !important;
}

#productDetailsCard {
    transition: all 0.3s ease-in-out;
}

.printerButton {
    transition: transform 0.3s;
}

.printerButton:hover {
    transform: translateY(-5px);
}

.card {
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    padding: 1rem;
    font-size: 1.25rem;
}

.form-control {
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.input-group-text {
    border-radius: 5px 0 0 5px;
    border-right: none;
}

.form-group label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.custom-checkbox .custom-control-label::before {
    border-radius: 3px;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background-color: #007bff;
    border-color: #007bff;
}


/*-------------------------*/

.report-header {
    background: linear-gradient(135deg, #007bff 0%, #007bff 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.export-buttons {
    margin-bottom: 1rem;
}

.btn-export {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.table-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #e0e6ed;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.summary-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.journal-table {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.period-btn {
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.period-btn.active {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

/* Right side panel styling */
.colvis-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: white;
    border-left: 2px solid #273c75 !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 9000;
    transition: right 0.4s ease-in-out;
    overflow-y: auto;
    font-family: Arial, sans-serif;
}

.colvis-panel.show {
    right: 0;
}

.panel-header {
    background: #273c75 !important;
    color: white;
    padding: 20px;
    position: relative;
}

.panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.panel-content {
    padding: 20px;
}

.column-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.column-item:hover {
    background-color: #f8f9fa;
}

.column-item:last-child {
    border-bottom: none;
}

.column-checkbox {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.column-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    flex: 1;
}

/* Panel overlay for mobile */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.panel-overlay.show {
    display: block;
    opacity: 1;
}

.external-colvis-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.external-colvis-btn:hover {
    background-color: #0056b3;
}

/* Responsive design */
@media (max-width: 768px) {
    .colvis-panel {
        width: 280px;
        right: -300px;
    }
}

.report-main-sidebar {
  border-radius: 10px;
  padding: 10px 0.5rem;
}