.cursor-pointer {
    cursor: pointer;
}

.primary-color {
    color: #1330C5;
}

.primary-background {
    background-color: #1330C5;
    color: white;
}

.secondary-color {
    color: #E63946;
}

.secondary-background {
    background-color: #E63946;
    color: white;
}

.search-button {
    background-color: #1330C5;
    color: white;
}

.search-button:hover {
    background-color: white;
    border: 1px solid #1330C5;
    color: #1330C5;
    ;
}

.print-button {
    background-color: #E63946;
    color: white;
}

.print-button:hover {
    background-color: white;
    border: 1px solid #E63946;
    color: #E63946;
}

.metric-change.positive {
    color: #28a745 !important;
    /* Green for positive */
}

.metric-change.negative {
    color: #dc3545 !important;
    /* Red for negative */
}

.metric-change.positive i {
    color: #28a745 !important;
}

.metric-change.negative i {
    color: #dc3545 !important;
}


.dropdown-item:hover,
.dropdown-item.active {
    background-color: #f8f9fa;
    border-left: 3px solid #1330C5;
    padding-left: calc(0.75rem - 3px);
}

.dropdown-item mark {
    padding: 0.1em 0.2em;
    border-radius: 0.2em;
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.dropdown-item i {
    transition: transform 0.2s ease;
}

.dropdown-item:hover i {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    #searchResults {
        left: 0;
        transform: none;
        width: 100% !important;
        max-width: none !important;
    }
}

/* hide scroll bar  */
.hide-scrollbar {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* input field style  */
.form-control,
.form-select {
    background-color: #E6E6E8 !important;
    /* Light gray background */
    border: none;
    padding: 8px 15px !important;
    border-radius: 8px !important;
    font-size: 14px;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid black !important;
    background-color: transparent !important;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    outline: none;
}

/* Remove blue highlight on click/focus */
input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
}

/* Custom black checkmark */
input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.upload-area {
    background-color: #e9ecef;
    border: 2px dashed #ced4da;
    border-radius: 4px;
    padding: 40px;
    position: relative;
    text-align: center;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

#uploadContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.upload-area:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

/* table style  */
.status-badge {
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.status-inactive {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.serial-number {
    font-weight: 500;
    color: #6c757d;
}




.time-tabs .nav-pills .nav-link {
    border-radius: 25px;
    padding: 8px 64px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e9ecef;
    color: #6c757d;
    background: white;
    margin-right: 15px;
    border: 1px solid #E63946;
}

.time-tabs .nav-pills .nav-link:hover {
    background-color: #E63946;
    transform: scale(1.05);
    color: white;
}

.time-tabs .nav-pills .nav-link.active {
    background: linear-gradient(135deg, #E63946, #E63946);
    border-color: #E63946;
    color: white;
}

.metrics-container {
    background: linear-gradient(135deg, #1330C5, #4f7de2);
    border-radius: 20px;
    padding: 30px 20px;
    color: white;
    margin-top: 20px;
}

.metric-card {
    text-align: center;
    padding: 0 10px;
}

.metric-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.metric-change {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.metric-change.positive {
    color: #4ade80;
}

.divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    height: 60px;
    margin: 0 auto;
}

/* main layout design start */
@media (min-width: 992px) {
    .large-margin {
        margin-left: 320px;
    }
}

/* stock summary design start  */
.currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.currency-card {
    border: 1px solid #e0e0e0;
    padding: 16px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.currency-header {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.table-container {
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    min-width: 200px;
}

/* stock summary design end */

/* main layout design end */

/* pdf design start  */
/* PDF design - Single Page Fix */
@media print {

    /* Remove browser headers/footers */
    ::-webkit-print-header,
    ::-webkit-print-footer {
        display: none !important;
    }

    /* Page setup with proper margins */
    @page {
        size: A4;
        margin: 15mm 10mm 10mm 10mm;
        /* top, right, bottom, left */

        /* Remove default header/footer content */
        /* The following at-rules are not standard CSS and have been removed to prevent errors */
    }

    /* Reset body and html */
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Hide everything except print area */
    body * {
        visibility: hidden !important;
    }

    #print-area,
    #print-area * {
        visibility: visible !important;
    }

    /* Print area positioning */
    #print-area {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
        z-index: 9999 !important;
        box-sizing: border-box !important;

        /* Prevent page breaks */
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }

    /* Print header styling */
    .print-header {
        text-align: center;
        margin-bottom: 20px;
        page-break-inside: avoid !important;
        page-break-after: avoid !important;
    }

    .print-header img {
        max-width: 60px;
        height: auto;
        margin-bottom: 8px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .print-header h1 {
        font-size: 20px !important;
        font-weight: bold !important;
        margin: 8px 0 4px 0 !important;
        color: #333 !important;
        line-height: 1.2 !important;
    }

    .print-header h2 {
        font-size: 14px !important;
        margin: 4px 0 !important;
        color: #666 !important;
        line-height: 1.2 !important;
    }

    .print-header h3 {
        font-size: 16px !important;
        font-weight: bold !important;
        margin: 12px 0 4px 0 !important;
        color: #333 !important;
        line-height: 1.2 !important;
    }

    .print-header p {
        font-size: 12px !important;
        margin: 4px 0 !important;
        color: #666 !important;
        line-height: 1.2 !important;
    }

    /* Table styling */
    .table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-top: 15px !important;
        font-size: 12px !important;
        page-break-inside: auto !important;
    }

    .table th,
    .table td {
        border: 1px solid #ddd !important;
        padding: 6px 4px !important;
        text-align: center !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    .table th {
        background-color: #f8f9fa !important;
        font-weight: bold !important;
        font-size: 11px !important;
    }

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

    /* Hide the Options column */
    .table th:last-child,
    .table td:last-child {
        display: none !important;
    }

    /* Hide print button */
    #print-button {
        display: none !important;
    }

    /* Remove any fixed/absolute positioned elements that might cause issues */
    div[style*="position: fixed"],
    div[style*="position: absolute"]:not(#print-area) {
        display: none !important;
    }

    /* Force color adjustment */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Additional page break controls */
    .card {
        page-break-inside: avoid !important;
    }

    tbody tr {
        page-break-inside: avoid !important;
    }

    /* Ensure no extra spacing */
    .mt-5,
    .mt-2,
    .mb-3,
    .mb-2 {
        margin: 0 !important;
    }

    .p-3 {
        padding: 0 !important;
    }

}

/* pdf design end */

/* preloader design start  */
.loader-overlay {
    position: relative;
    min-height: 120px;
}

.loader-overlay::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    width: 3rem;
    height: 3rem;
    border: 0.35rem solid #dee2e6;
    border-top: 0.35rem solid #0d6efd;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    z-index: 10;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* preloader design end */