/* Grace Period Banner Styling */
/* Base Banner Styling */
.grace-period-banner {
    background-color: #fff3cd;
    border-bottom: 1px solid #ffeeba;
    color: #856404;
    padding: 12px 20px;
    width: 100%;
    position: relative;
    z-index: 9999;
    animation: slideDown 0.5s ease-out;
}

/* Danger Variant Overrides */
.grace-period-danger {
    background-color: #f8d7da;
    border-bottom: 1px solid #f5c6cb;
    color: #721c24;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
}

.banner-icon {
    font-size: 18px;
}

/* Base Button Styling */
.banner-action-btn {
    background-color: #856404;
    color: #ffffff !important;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    pointer-events: auto; /* Ensure clickability */
}

.banner-action-btn:hover {
    background-color: #6d5205;
    text-decoration: none;
}

/* Danger Button Override */
.banner-btn-danger {
    background-color: #721c24;
}

.banner-btn-danger:hover {
    background-color: #55151b;
}

/*end banner*/

/*Barcode Scanner styling*/
/* Ensure the scanner viewport handles the canvas overlay scaling matrix correctly */
#interactiveScannerView {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

#interactiveScannerView video, #interactiveScannerView canvas.drawingBuffer {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 4px;
}

#interactiveScannerView canvas.drawingBuffer {
    position: absolute;
    top: 0;
    left: 0;
}



/* Smooth entry animation */
 /* Breadcrumb styling */
 .breadcrumb {
     font-size: 0.9rem;
     flex-wrap: wrap;
 }

 .breadcrumb-item {
     display: flex;
     align-items: center;
 }

 .breadcrumb-item a:hover {
     text-decoration: underline;
 }

 .breadcrumb-item.active {
     font-weight: 600;
     color: #343a40;
 }

 /* Arrow separators */
 .breadcrumb-item .mx-2 {
     font-size: 0.85rem;
 }

 /* Home icon styling */
 .breadcrumb-item i.bi-house-door {
     font-size: 0.9rem;
 }


/* --- Approval Journey Timeline Styles --- */
.approval-journey-list {
    position: relative;
    padding-left: 10px;
}

.journey-item {
    position: relative;
    padding-left: 20px; /* Space for the vertical line and marker */
}

/* The Vertical Connector Line */
.journey-info {
    border-left: 2px solid #dee2e6; /* Default Gray Line */
}

/* The Circular Marker */
.journey-marker {
    position: absolute;
    left: -10px; /* Align precisely on the border-left of .journey-info */
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
    color: #adb5bd;
}

/* --- State: COMPLETED (Green) --- */
.item-done .journey-info {
    border-left-color: #198754; /* Success Green */
}
.item-done .journey-marker {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

/* --- State: ACTIVE/CURRENT (Blue) --- */
.item-active .journey-info {
    border-left-color: #0d6efd; /* Primary Blue */
}
.item-active .journey-marker {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15); /* Pulse effect */
}

/* Remove border from the last item so the line doesn't hang */
.journey-item:last-child .journey-info {
    border-left-color: transparent !important;
}


 /* ===== MOBILE FIRST FIXES ===== */

 /* FIX: Wrap this in a min-width media query so it doesn't break Gentelella's 70px nav-sm toggle state */
 @media (min-width: 768px) {
     body.nav-md .left_col {
         width: 230px;
         min-height: 100vh;
         background: #2A3F54;
     }
 }

 /* Mobile sidebar (hidden by default under 767px viewports) */
 @media (max-width: 767px) {
     .left_col {
         position: fixed;
         top: 0;
         left: -230px;
         z-index: 9999;
         transition: all 0.3s ease;
         width: 230px;
         min-height: 100vh;
         background: #2A3F54;
     }

     .left_col.mobile-show {
         left: 0;
     }

     .right_col {
         padding: 10px !important;
     }

     .top_nav {
         padding: 10px;
     }
 }

/* ===== COMPACT UI ===== */

.right_col {
    padding: 15px;
}

.card, .x_panel {
    margin-bottom: 10px;
}

.table td, .table th {
    padding: 0.4rem;
    font-size: 0.85rem;
}

.btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.form-control {
    height: calc(1.8rem + 2px);
    font-size: 0.85rem;
}