.table thead th {
    font-weight: 600;
}

.btn.btn-sm {
    padding: 0.40625rem 0.5rem;
}

fieldset {
    border-radius: 5px;
    border: 1px solid #3c8dbc;
    padding: 20px;
    width: 100%;
}

legend {
    border: none;
    padding: 5px;
    background-color: none !important;
    margin-left: 35px;
    margin-bottom: 0;
    box-shadow: none !important;
    font-size: 15px;
    width: auto;
    color: #3c8dbc;
    font-weight: bold;
}


.rtl .box-dash span:first-of-type {
    right: 10px;
}

.box-dash span:first-of-type {
    font-size: 2.6em;

}

.select2-container--default .select2-selection--single {
    -webkit-appearance: auto;
    height: calc(2.6rem + 2px);
    border-radius: 0.65rem;
    box-shadow: 0 0 0px 1px #cecece inset;
    padding-top: 5px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-block !important;
}
.rtl .table.dataTable thead th{
    text-align: right !important;
}
.ltr .table.dataTable thead th{
    text-align: left !important;
}

.jumbotron {
    padding: 1rem;
}
label.form-check-label{
    color:#000 !important;
    font-size: 1rem;
}

.down {
    color: #ff0018 !important;
}
.up {
    color: #418341 !important;
}
.equal {
    color: #F1C30B !important;
}


@media print{

    .bmd-layout-drawer{
        display: none;
    }
    .bmd-layout-content{
        padding-right: 0px !important;
        margin-right: 0px !important;
    }
}
.swal-overlay{
    text-align: center !important;
}
.swal-modal{
    text-align: center !important;
}



.side-logo{
    height: auto;
    max-height: 200px;
}

.jsitems li{
    list-style: none;
}
.modal.fade.show {
    z-index: 50 !important;
}

.modal-dialog {
    max-width: 800px;
}


.side.a-collapse a {
    font-size: .9em !important;
}

.jumbotron.shade{
    min-height: 370px;
}


.swal2-popup{
    position:inherit !important;
}


@media print {
    #datatable-report tfoot {
        display: table-row-group; /* By default, tfoot is hidden */
    }

    #dw-s1.bmd-layout-drawer{
        background: none !important;
    }

    .bmd-layout-drawer{
        background: white !important;
    }
    @page {
        /* Hide tfoot on all pages except the last one */
        @bottom-center {
            content: " "; /* Add empty content to override the footer */
        }
    }
}
/* Fix SweetAlert centering */
.swal2-container {
    z-index: 10000 !important;
}

.swal2-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

/* If using older SweetAlert version */
.sweet-alert {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}
#chart-container {
    position: relative;
    height: 420px;
    border: 1px solid #aaa;
    margin: 0.5rem;
    overflow: auto;
    text-align: center;
  }
.line-through{
    text-decoration: line-through;
}
.no-wrap{
    white-space: nowrap;
}

.form-control, .select2-selection{
    margin-bottom: 0.5rem !important;
}
.fs-1{
    font-size: 15px !important;
}


/* Opening index, comparison modal  */


/* Start hidden/translated */
.modal.fade .modal-dialog {
    transform: translateY(100px);
    transition: transform 0.35s ease-out;
}

/* Animate to normal position */
.modal.fade.show .modal-dialog {
    transform: translateY(0);
}

/* Style for comparison tables */
.comparison-table {
    font-size: 0.85rem;
    border-collapse: separate;
    border-spacing: 0;
}
.comparison-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}
.comparison-table td, .comparison-table th {
    padding: 0.5rem;
    vertical-align: middle;
}
.comparison-table tbody tr:hover {
    background-color: rgba(0,0,0,.02);
}
.diff-positive {
    color: #28a745;
    font-weight: bold;
}
.diff-negative {
    color: #dc3545;
    font-weight: bold;
}
.diff-zero {
    color: #6c757d;
    font-weight: normal;
}
.comparison-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}
.comparison-section {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.comparison-section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
}
.comparison-section-body {
    background-color: white;
    padding: 1rem;
}
.summary-card {
    background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    border-left: 4px solid #28a745;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}
.opening-row {
    background: linear-gradient(327deg, #9ff4ff, #2ea8b8) !important;
}
.closing-row {
    background-color: rgba(0, 123, 255, 0.05) !important;
}
.difference-row {
    background-color: rgba(108, 117, 125, 0.05) !important;
    font-weight: 600;
}
.comparison-toggle-btn {
    transition: all 0.3s ease;
    border-radius: 20px;
}
.comparison-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* Modal specific styles */
.comparison-modal .modal-dialog {
    max-width: 95%;
}
.comparison-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.comparison-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1.25rem 1.5rem;
}
.comparison-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}


.action-group{
    height: 38px;
}

.action-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    min-width: 38px;
    padding: 0 12px;
    border-radius: 0;
}

.action-text{
    min-width: auto;
    padding-left: 14px;
    padding-right: 14px;
}

.action-group .btn:not(:last-child){
    border-right: 1px solid rgba(255,255,255,.25);
}

/* Opening index, comparison modal  */
