/* ADDED BY BHUMITA ON 09/01/2026 */
.navbar .dropdown-toggle::after {
  display: none !important;
}
.navbar li {
    margin-right:10px;
}
/* ADDED BY MANSI ON 25/02/2026 */
.navbar .nav-link {
  padding-top: .65rem;  
  padding-bottom: .10rem;
}
/* \ADDED BY MANSI ON 25/02/2026 */
table.dataTable td, table.dataTable th {
    white-space: nowrap;   /* keep everything in one line */
}
table.dataTable td, table.dataTable th {
    padding: 5px !important;
    line-height: 1;
}
.dt-scroll {
    width: 100% !important;
    overflow: auto !important;
}
#searchMaster thead th.dt-no-sort .dt-column-order,
.dt-scroll-head th.dt-no-sort .dt-column-order {
   display: none !important;
}
table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order::before {
     bottom:80%;
}
table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order::after {
     top:20%;
}
th.dt-no-sort {
    pointer-events: none !important;
    cursor: default !important;
    background-image: none !important;
}
table.dataTable.ui.table th.dt-type-numeric, 
table.dataTable.ui.table th.dt-type-date {
    text-align:left;
}
.srchInput.form-control {
    height:25px;
    padding:0 5px;
    font-size:12px;
    /* ADDED BY BHUMITA ON 17/02/2026 */
    z-index:99;
    position:relative;
    /* \ADDED BY BHUMITA ON 17/02/2026 */
}
/* COMMENTED BY MANSI ON 12/02/2026  
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus {
  border: 1px solid #3c8dbc;
  box-shadow: none;
  outline:none;
}
.select2-container--default .select2-selection.is-invalid {
    border-color: #dc3545 !important;
} */

/* ADDED BY HETANHSREE PLACEHOLDER LIGHT GREY COLOUR ON 06/03/2026 */
input::placeholder,
textarea::placeholder {
  color: #b0b0b0 !important;
  opacity: 1; 
}
/* \ADDED BY HETANHSREE PLACEHOLDER LIGHT GREY COLOUR ON 06/03/2026 */

/* ADDED BY MANSI ON 12/02/2026 */
.form-select {
    border-radius: 0;
}
.ts-wrapper.is-invalid .ts-control {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 .25rem rgba(220,53,69,.25) !important;
}
select.tomselect.is-invalid ~ .invalid-feedback {
  display: block;
}
/* ADDED BY HETANSHREE DISABLE FILED DROPDOWN ON 27/02/2026 */
.tomselect.ts-disabled,
.ts-disabled.tomselect {
    pointer-events: none;
    opacity: 0.8;
    background-color: #e9ecef !important;
}
/* \ADDED BY HETANSHREE DISABLE FILED DROPDOWN ON 27/02/2026 */
.add_detail_modal_icon {
  display: flex;
  flex-wrap: wrap;   
  align-items: center;
  gap: 6px;
}
/* \ADDED BY MANSI ON 12/02/2026 */

.box-body:has(.box-detail,.dt-container) {
    padding:0 10px;
}
.content-header {
    padding-top:5px;
}
.content {
    padding-top:10px;
}
/* \ADDED BY BHUMITA ON 09/01/2026 */
/* ADDED BY MANSI ON 04/02/2026 */
.login-box-body.login-form form .form-group {
    margin-bottom: 5px;  
}
/*Mansi-username password pending*/
/*.form-group {
    margin-bottom: 15px; 
} /* COMMENTED BY BHUMITA ON 16/01/2026 */
/*Mansi-login form */
/*Mansi-margin box-body*/
/*.box-body{
    margin:10px;
}
.detail-modal .box-body.container-fluid {
    padding: 10px;
    margin: 0;
}
.boxheader{
    font-size:16px;
}
.box-footer{
    margin:10px;
}*/ /* COMMENTED BY BHUMITA ON 16/01/2026 */
.login-box-body {
    background: #fff;
    padding: 30px !important;
    border-top: 0;
    color: #666;
    position: relative;
}
/*Mansi-current year*/ 
.year-range {
    color: white; 
    font-size: 15px; 
    font-weight: 600; 
    margin-right: 15px;
}
/*done*/
/* .form-control {
    font-size: 12px;
    line-height: 1.2;
}  COMMENTED BY BHUMITA  */

/*Mansi-seasonal start date, end date*/ 
#seasonal_start_date.form-control,
#seasonal_end_date.form-control {
    padding: .375rem .15rem;
}
/* ADDED BY BHUMITA */
.form-group {
    position: relative;
}
.form-group .bi {
    position: absolute;
    top: 50%;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
    transform: translateY(-50%);
    color:gray;
}
.form-group .bi.bi-plus {
    position: absolute;
    top: 45%;
    right:-12px;
    font-size:26px;
    cursor: pointer;
    transform: translateY(-45%);
    color: #3c8dbc;
}
.form-group .add_modal_icon {
    position:relative;
    display: flex;
    flex-wrap: wrap;   
    align-items: center;
    gap: 6px;
}
/* \ADDED BY BHUMITA */
.form-group .add_detail_modal_icon .bi.bi-plus {
    right: -21px;
}
/*Mansi-Log in button */
.btn-block {
    width: 100%;
    max-width: 100%;
}
.login-box{
    width: 360px;
    margin: 12% auto;
}
/*Mansi-Bootstrap default white */
.btn-logout{
    background-color: #fff !important; 
    border-color: #fff !important;
    color: #000 !important; 
}
.btn-logout i {
    font-size: 15px !important; 
    color: #000 !important; 
}
.hidden-xs {
    color: #fff !important; 
}
/*Done by Mansi*/
/* ADDED BY MANSI ON 17/02/2026 */
.company-name {
    font-size: 18px;
    font-weight: 600;
}
/* \ADDED BY MANSI ON 17/02/2026 */
/*old script starting */
.form-group .has-feedback{
    position: relative;
    margin-bottom: 15px;
}
.has-error span.error {
    color:red;
}
/*input[type="checkbox"], input[type="radio"] {
    height:30px;
}*/ /* COMMENTED BY BHUMITA */
textarea {
    max-width: 100%;
}
label {
        line-height:1.5;
}

/* ADDED BY BHUMITA ON 29/07/2025 */
#gridContainer #searchDetail tr td:first-of-type {
    width:auto;
}
/* \ADDED BY BHUMITA ON 29/07/2025 */
#searchMaster th {
    cursor:move;
}
#searchMaster th input,
#searchMaster th .dt-column-order {
    pointer-events: auto; 
}
/** Detail table **/
.box-detail {
    width:100%;
    margin: 0 auto;
    overflow-x: auto;
}
.box-detail .add {
    margin-bottom:20px;
}
#detailform thead.table-dark,
#detailform thead.table-dark th{
    background-color: #3c8dbc;
    color: #fff;
}
.detail_edit { 
    padding-right:10px;
    display:inline-block;
}
.row .field {
    margin-top: 15px;
}
#searchDetail_wrapper  .row{
    margin-right:0;
}
/** \Detail table **/

/* Hetasvi start */
hr{
 margin: 0;
padding: 0.35rem 1rem;
}
.navbar .dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.35rem 1rem;
}
.navbar .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa; /* Or tamari theme pramane */
}
.dropdown-menu > li > a:hover {
    background-color: transparent !important;  /* Removes the background color change on hover */
    color: #212529 !important;  /* Keeps the text color to dark gray on hover */
    text-decoration: none !important; /* Removes any underline effect on hover */
}
.dropdown-item:active {
    background-color: transparent; /* or none */
}

/* Hetasvi Done */
.btn_add_master_record {
    display:inline-block;
    
}
/*Mansi- scrollerbar vertical search master*/
.dataTables_scrollBody {
    overflow-y: auto !important;
}
/*done*/
/*Mansi - customer button */
/*
#customer {
    width: 100%;
    min-width: 210px;
}
*/

/*Mansi Done*/
/*
#gridContainer {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
}
*/
/* ADDED BY MANSI ON 02/03/2026 FOCUS OUTWARD SELECT INWARD ON POPUP OPEN */
.popup-ok-focused {
    border: 2px solid #0a58ca !important;
    box-shadow: 0 0 0 3px rgba(13,110,253,.35) !important;
    outline: none !important;
}
/* \ADDED BY MANSI ON 02/03/2026 FOCUS OUTWARD SELECT INWARD ON POPUP OPEN */
#generatedInvoiceTableBody tr.gracedaysRow,
#generatedInvoiceTableBody tr.gracedaysRow td {
    display: none !important;
}
#gridContainer table {
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
    
}

#gridContainer th, #gridContainer td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

#gridContainer th {
    background-color: #fff;
    font-weight: bold;
}

#gridContainer tr:nth-child(even) {
    background-color: #f9f9f9;
}

#gridContainer tr:hover {
    background-color: #f1f1f1;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-color-type: var(--bs-table-striped-color);
    --bs-table-bg-type: rgb(239, 235, 235, 0.05);
}
/* date disable */
input.disabled-look[readonly] {
    background-color: #e9ecef;
    opacity: 1;    
    cursor: not-allowed;   
}
/*Mansi- button select inward*/
.light-bg {
    background-color: #f0f0f0;
}
#btn_inward {
    white-space: nowrap;
    padding: 5px;
    color: white;
    background-color: #3c8dbc;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
/*done*/
/*Mansi-pending stock color*/
.selected-inward-row {
    --bs-table-bg: #cbe7ff !important;
}
.full-inward-qty {
    --bs-table-bg: #da9bad !important;
}
/*Done*/

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0; 
}
input[type=number] { -moz-appearance: textfield; }

/* Party Wise Inward Balance Print Preview */

/* Container and basic styles */
.pwib-body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    background: #fff;
    margin: 0;
    padding: 10px;
}

.pwib-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.pwib-header-left {
    font-size: 16px;
    text-align: left;
    width: 33%;
}
.pwib-header-center {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    width: 34%;
}
.pwib-header-right {
    font-size: 16px;
    text-align: right;
    width: 33%;
}

.pwib-title-divider {
    border: 0;
    border-top: 2px solid #000;
    margin: 0 0 5px 0;
}

.pwib-report-title {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    margin: 5px 0;
}

.pwib-button-container {
    text-align: right;
    margin-bottom: 10px;
}
.pwib-button-container button {
    margin-left: 5px;
    padding: 5px 15px;
    font-size: 16px;
    cursor: pointer;
}

/* Table styles */
.pwib-report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}
.pwib-report-table th,
.pwib-report-table td {
    border: none;
    padding: 5px 8px;
    text-align: center;
    font-size: 14px;
}
.pwib-report-table th {
    background: #f4f4f4;
}
.pwib-party-header {
    font-weight: bold;
    text-align: left;
}
.pwib-party {
    text-align: right !important;
}
.pwib-party-total {
    font-weight: bold;
}
.pwib-grand-total {
    font-weight: bold;
}
.pwib-text-right {
    text-align: right;
}

/* Invoice GST Summary Custom Table Styles - hetasvi-patel */
.invoice-gst-summary-table {
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
}

.invoice-gst-summary-table th,
.invoice-gst-summary-table td {
    border: none;
    padding: 2px 5px;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
}

.invoice-gst-summary-table th {
    background: #fafafa;
    font-weight: bold;
    cursor: move;
}

.invoice-gst-summary-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.invoice-gst-summary-table tr:hover {
    background-color: #f1f1f1;
}

/* Search filter row style for invoice gst summary */
.invoice-gst-summary-search-row {
    margin-bottom: 12px;
}

/* Remove height for search boxes */
.invoice-gst-summary-search-input,
.invoice-gst-summary-dropdown {
    width: 170px;
    min-width: 170px;
    /* height removed */
}

/* Location Detail Module Styles - hetasvi */

.location-detail-form-wrapper {
    margin-bottom: 20px;
}
.location-detail-unit-type label {
    margin-right: 10px;
    margin-bottom: 8px;
    font-size: 15px;
}
.location-detail-btn-row {
    margin-bottom: 12px;
}
.location-detail-btn-excel {
    margin-right: 8px;
}
.location-detail-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.location-detail-chamber-search,
.location-detail-floor-search {
    min-width: 120px;
}

/* --- LEGEND ROW: ALL ITEMS IN ONE HORIZONTAL LINE --- */
.location-detail-legend-row {
    margin-bottom: 8px;
    display: flex;
    flex-direction: row;    
    gap: 18px;             
    align-items: center;
}
.legend-item {
    display: flex;
    align-items: center;
}
.legend-color {
    width: 33px;
    height: 18px;
    display: inline-block;
    border: 1px solid #999;
    margin-right: 8px;
}
.legend-full {
    background: #5fd7b0;
}
.legend-partial {
    background: #e25e5e;
}
.legend-norack {
    background: #c3c3c3;
}
.legend-label {

    color: #222;
    font-size: 15px;
    line-height: 18px;
}

.location-detail-legend {
    padding: 4px 10px;
    margin-right: 8px;
    border-radius: 3px;
    font-size: 13px;
    display: inline-block;
}
.location-detail-legend-full {
    background: #5fd7b0;
    color: #000;
}
.location-detail-legend-partial {
    background: #e25e5e;
    color: #fff;
}
.location-detail-legend-norack {
    background: #c3c3c3;
    color: #000;
}
.location-detail-table-scroll-x {
    overflow-x: auto;
    width: 100%;
}
.location-detail-table-scroll-y {
    max-height: 440px;
    overflow-y: auto;
}
.location-detail-custom-grid {
    background: #eee;
    border-collapse: collapse;
    width: auto;
    font-family: Arial, sans-serif;
    font-size: 15px;
    min-width: 600px;
}

.location-detail-custom-grid th,
.location-detail-custom-grid td {
    border: none;
    text-align: center;
    vertical-align: middle;
}
/* MODIFIED BY MANSI ON 27/02/2026 */
.location-detail-custom-grid td.grid-cell-partial,
.location-detail-custom-grid td.grid-cell-partial .grid-cell-value {
    background-color: #e25e5e !important; /* red */
    color: #fff !important;
}

.location-detail-custom-grid td.grid-cell-outwarded,
.location-detail-custom-grid td.grid-cell-outwarded .grid-cell-value {
    background-color: #5fd7b0 !important; /* green */
    color: #006d6d !important;
}

.location-detail-custom-grid td.grid-cell-empty,
.location-detail-custom-grid td.grid-cell-empty .grid-cell-value {
    background-color: #eee !important;
    color: #222 !important;
}
/* \MODIFIED BY MANSI ON 27/02/2026 */
.location-detail-custom-grid .grid-cell-value {
    background: #f9f9f9;
    color: #222;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 10px;
    white-space: nowrap;
}
.location-detail-grid-header-chamber,
.location-detail-grid-header-floor {
    background: #eee;
    color: #222;
    font-weight: bold;
}

.location-detail-grid-header-rack {
    background: #fff;
    color: #222;
    font-weight: bold;
}

.location-detail-grid-chamber,
.location-detail-grid-floor {
    background: #f4f4f4;
    color: #222;
    padding: 2px 8px;
    
}

.location-detail-grid-cell {
    min-width: 65px;
    height: 32px;
    padding: 0;
    position: relative;
}
.grid-cell-value {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 32px;
   
    border-radius: 3px;
}

.grid-cell-partial {
    background: #e25e5e;
    color: #fff;
}

.grid-cell-outwarded {
    background: #5fd7b0;
    color: #006d6d;
}

.grid-cell-empty {
    background: #eee;
}
/* End of Location Detail Module Styles - hetasvi */

/* ADDED BY HETANSHREE INWARD DETAIL + ICON */
/*.modal-backdrop {
    z-index: 1050 !important;
    opacity: 0.5 !important; 
    transition: opacity 0.3s ease;
}

.modal-backdrop.fade {
    opacity: 0 !important;
}

#modalDialog {
    z-index: 1055 !important;
}

#addItemModal, #addCustomerModal, #addPackingUnitModal, #addChamberModal, #addFloorModal {
    z-index: 1070 !important;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
}


#modalDialog.stacked-base ~ .modal-backdrop {
    opacity: 0.4 !important;
}


body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important; 
}*/

/* Print styles */
@media print {
    .pwib-button-container {
        display: none;
    }
    .pwib-body {
        padding: 0;
        font-size: 12px;
    }

    /* PRINT-ONLY Outward Summary Columns - HETASVI CUSTOM */
    #searchMaster th, #searchMaster td {
        display: none !important;
    }
    #searchMaster th.printout-col, #searchMaster td.printout-col {
        display: table-cell !important;
    }
    /* ADDED BY HETANSHREE INWARD DETAIL + ICON */
}


/* --- RESPONSIVE MOBILE & TABLET: FULLY RESPONSIVE GRID TABLE --- */
@media (max-width: 1100px) {
    .location-detail-custom-grid {
        min-width: 400px;
        font-size: 13px;
    }
    .location-detail-custom-grid th,
    .location-detail-custom-grid td {
        padding: 4px 4px;
        font-size: 13px;
    }
    .grid-cell-value {
        font-size: 13px;
        line-height: 26px;
        height: 26px;
    }
    .legend-label {
        font-size: 13px;
    }
}

@media (max-width: 800px) {
    .location-detail-custom-grid {
        min-width: 300px;
        font-size: 12px;
    }
    .location-detail-custom-grid th,
    .location-detail-custom-grid td {
        padding: 2px 2px;
        font-size: 12px;
    }
    .grid-cell-value {
        font-size: 12px;
        line-height: 20px;
        height: 20px;
    }
    .location-detail-form-wrapper,
    .location-detail-legend-row {
        flex-direction: column;
        row-gap: 8px;
    }
    .legend-label {
        font-size: 12px;
    }
}
/*Mansi- responsive pending*/
@media (min-width: 691px) and (max-width: 800px) {
  .modal-body .table thead {
    display: none;
  }
  .modal-body .table,
  .modal-body .table tbody,
  .modal-body .table tr,
  .modal-body .table td {
    display: block;
    width: 100%;
  }
  .modal-body .table tr {
    margin-bottom: 1rem;
    border-bottom: 1px solid #ccc;
  }
  .modal-body .table td {
    text-align: left;
    position: relative;
    padding-left: 50%;
    min-height: 36px;
    box-sizing: border-box;
    border: 1px solid #dee2e6;
  }
  .modal-body .table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 0;
    width: 48%;
    padding-left: 10px;
    font-weight: bold;
    white-space: nowrap;
    background: #f8f9fa;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #dee2e6;
  }
}
/* For smaller screens */
@media (min-width: 768px) {
    .modal-dialog:not(".outward") {
       margin-top:-50px;
    }
}
/*done*/
@media (min-width: 691px) {
    /* ADDED BY BHUMITA ON 15/10/2025 */
    #searchDetail tr td:first-of-type,
    #searchMaster tr td:first-of-type {
        width:130px;
    }
    /* \ADDED BY BHUMITA ON 15/10/2025 */
}
/* Responsive styles */
@media screen and (max-width: 768px) {
    .pwib-header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .pwib-header-left,
    .pwib-header-center,
    .pwib-header-right {
        width: 100%;
        text-align: left;
        margin-bottom: 3px;
    }
    .pwib-report-table {
        font-size: 12px;
    }
    .pwib-report-table th,
    .pwib-report-table td {
        padding: 4px 6px;
    }
    .pwib-button-container button {
        padding: 4px 10px;
        font-size: 14px;
    }
}
@media screen and (max-width: 690px) {
    #searchDetail, #searchDetail thead, #searchDetail tbody, #searchDetail tr, #searchDetail th, #searchDetail td {
        display: block;
        width: 100%;
    }
    #searchDetail thead {
        display: none;
    }
    #searchDetail tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
        background: #fff;
    }
    #searchDetail td {
        border: none;
        border-bottom: 1px solid #e9ecef;
        position: relative;
        padding: 0.75rem 1rem 0.75rem 45%;
        min-height: 36px;
        text-align: left !important;
    }
    #searchDetail td[data-label]:before {
        content: attr(data-label) ': ';
        position: absolute;
        left: 1rem;
        width: 43%;
        min-width: 100px;
        font-weight: bold;
        color: #333;
        white-space: nowrap;
        padding-right: 10px;
    }

    /* Mansi -responsive tables */
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        /*position: absolute;
        top: -9999px;
        left: -9999px;*/
        display: none;
    }
    tr {
        margin: 0 0 1rem 0;
        border: 1px solid #ccc;
        padding: 10px;
    }

    td {
        border: none;
        padding-left: 50% !important;
        position: relative;
    }

    td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 15px;
        font-weight: bold;
        line-height:12px;
    }
    table.dataTable.ui.table td.dt-type-numeric {
        text-align:left;
    }
     /* \responsive tables */

     /* Responsive adjustments just for invoice gst summary table */
    .invoice-gst-summary-table, 
    .invoice-gst-summary-table thead, 
    .invoice-gst-summary-table tbody, 
    .invoice-gst-summary-table th, 
    .invoice-gst-summary-table td, 
    .invoice-gst-summary-table tr {
        display: block;
    }
    .invoice-gst-summary-table thead tr {
        display: none;
    }
    .invoice-gst-summary-table tr {
        margin: 0 0 1rem 0;
        border: none;
        padding: 10px;
    }
    .invoice-gst-summary-table td {
        border: none;
        padding-left: 50% !important;
        position: relative;
    }
    .invoice-gst-summary-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 15px;
        font-weight: bold;
    }
     /* END Responsive adjustments just for invoice gst summary table */

    /* --- Responsive: Stack legends vertically on mobile --- */
     .location-detail-legend-row {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
    .legend-label {
        font-size: 11px;
    }
    .legend-color {
        width: 28px;
        height: 13px;
        margin-right: 6px;
    }
    /* --- END Responsive: Stack legends vertically on mobile --- */
}
@media screen and (max-width: 480px) {
    .pwib-report-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .pwib-report-title {
        font-size: 15px;
    }
}


.modal-fullscreen .modal-dialog {
    z-index: 1050;  /* Ensure parent is above main content */
}

.modal-backdrop {
    z-index: 1040;  /* Standard Bootstrap */
}

/* When child modal opens, make parent content visible but dimmed */
.modal.show ~ .modal.show .modal-dialog {
    z-index: 1060;  /* Child higher than parent */
}