
.misc-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 1.875rem * 2);
  text-align: center;
}

/* Small Loader */
/* .loader-widget {
    background: rgb(255, 255, 255);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: slideInRight 0.5s ease;
    width: 20%;
} */

.loader-widget {
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: -20px 8px 50px rgba(0,0,0,0.5);
    animation: slideInRight 0.2s ease;
    position: fixed;
    display: none;
    top: 50px;
    right: 10px;
    z-index: 1000;
    min-width: 250px;
}

.loader-widget.active {
    display: block;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.loader-header {
    text-align: center;
    margin-bottom: 0px;
}

.loader-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin: 0 auto 15px; */
    height: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #3498db;
    border-radius: 50%;
    margin: 0 4px;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

.dot:nth-child(3) {
    animation-delay: 0s;
}

.dot:nth-child(4) {
    animation-delay: 0.16s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loader-spinner-small {
    width: 30px;
    height: 30px;
    border: 2px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text-small {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
    text-align: center;
}

.custom-dropdown{
    position: absolute;
    display: block;
    width: 100%;
    max-height: 480px;
    overflow-y: scroll;
    background-color: #fff;
    cursor: pointer;
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
.custom-dropdown::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.custom-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1; /* Background of the scrollbar track */
}

.custom-dropdown::-webkit-scrollbar-thumb {
    background-color: #b1b1b1; /* Scrollbar color */
    border-radius: 10px; /* Round scrollbar edges */
    border: 2px solid #f1f1f1; /* Adds some space between scrollbar and track */
}

.custom-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555; /* Color when hovered */
}

.custom-scroll {
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #c0c0c0 transparent;
}

/* Chrome, Edge, Safari */
.custom-scroll::-webkit-scrollbar {
    width: 3px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background-color: #b0b0b0;
    border-radius: 2px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #888;
}

.vertical-line {
    width:2px;
    height: 13px;
    background-color: #307ECC;
}

.label-sm{
    padding: 1px;
    margin-bottom: -1px;
    width:100%;
}

.dropdown-results {
    display: block;
    position: relative;
    z-index: 1050;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#visit-summary-header {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 270px;
    z-index: 9998;
    cursor: pointer;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: background-color 0.4s ease-in-out;
    /* position: fixed; right: 0; width: 330px; z-index: 9999; cursor: pointer; border-top-left-radius: 10px; border-top-right-radius: 10px; */
}

#visit-overlay {
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.4); 
    z-index: 9997; 
    display: none;
}

#visit-summary-content {
    overflow-y: auto; 
    max-height: calc(1000px - 72px);
}

#visit-summary-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 700px;
    height: 100%;
    background-color: #ffffff;
    z-index: 9998;
    overflow-y: auto;
    border-left: 1px solid #ddd;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

#visit-summary-panel.open {
    transform: translateY(0);
}

#doctor-ai-header {
    position: fixed;
    bottom: 0px;
    right: 280px;
    width: 305px;
    z-index: 9997;
    cursor: pointer;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #296fa9d6;
    transition: background-color 0.4s ease-in-out;
}

#doctor-ai-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9997;
    display: none;
}

#doctor-ai-content {
    overflow-y: auto;
    max-height: calc(1000px - 72px);
}

#doctor-ai-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 700px;
    height: 100%;
    background-color: #ffffff;
    z-index: 9998;
    overflow-y: auto;
    border-left: 1px solid #ddd;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

#doctor-ai-panel.open {
    transform: translateY(0);
}

.page-break {
    page-break-after: always;
}

@media print {
    /* body * {
        visibility: hidden;
    } */
    .printed-wrapper, .printed-wrapper * {
        visibility: visible;
    }
    .printed-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

.icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9em;
}
.zhover-card {
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 2px solid #e74c3c;
    backdrop-filter: blur(10px);
}

.zhover-card:hover {
    background: rgba(238, 235, 235, 0.8);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-left-color: #27ae60;
}

.zcard-selected {
    /* background: rgba(238, 235, 235, 0.8);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); */
    border-left-color: #27ae60;
    /* border-left-color: #f39c12; */
    background: linear-gradient(135deg, rgba(243,156,18,0.05), rgba(255,255,255,0.9));
}

.zsection-header {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.3rem 0.2rem;
    border-radius: 0.20rem;
    /* margin-bottom: 1rem; */
}
/* .zitem-card {
    border: 1px solid #f8f9fa;
    cursor: ew-resize;
    transition: all 0.3s ease;
    position: relative;
}

.zitem-card:hover {
    border-color: #4facfe;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.2);
    background: linear-gradient(135deg, rgba(243, 157, 18, 0.103), rgba(255,255,255,0.9));
} */





/* Enhanced styles for Insurance Item Mapping */

/* Live search input styling */
/* #live-search-items {
    border: 2px solid #e3e6f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
} */

/* #live-search-items:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    outline: none;
} */

/* Item card hover and selection effects */
.zitem-card {
    transition: all 0.3s ease;
    border: 1px solid #e3e6f0;
    position: relative;
    overflow: hidden;
}

.zclinic-card {
    transition: all 0.3s ease;
    border: 1px solid #e3e6f0;
    position: relative;
    overflow: hidden;
}

.zitem-card::before .zclinic-card::before {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: left 0.5s;
}

.zitem-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #4e73df;
    background: linear-gradient(135deg, rgba(243, 157, 18, 0.103), rgba(255,255,255,0.9));
}

.zclinic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #085b92;
    background: linear-gradient(135deg, rgba(243, 157, 18, 0.103), rgba(255,255,255,0.9));
}

.zitem-card:hover::before {
    left: 100%;
}

/* Selected item styling */
.zitem-card.selected-for-mapping {
    border: 1px solid #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.zitem-card.selected-for-mapping::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    color: #28a745;
    font-size: 16px;
    z-index: 10;
}

/* Selection feedback styling */
.selection-feedback {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search not found message */
.search-not-found {
    padding: 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px dashed #dee2e6;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-not-found i {
    color: #6c757d;
}

/* Custom scroll styling */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading state */
.mapping-in-progress {
    pointer-events: none;
    opacity: 0.7;
}

.mapping-in-progress .zitem-card {
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .zitem-card {
        margin-bottom: 1rem;
    }
    
    .selection-feedback {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    #live-search-items {
        margin-bottom: 1rem;
    }
}

/* Animation for successful mapping */
.mapping-success {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ql-editor p {
    margin: 0;
}
.ql-editor {
    line-height: 1.4; /* customize this if needed */
}
.ql-editor ul,
.ql-editor ol {
    padding-left: 0.25em;
    margin: 0;
}

.ql-editor li {
    margin: 0.1em 0;
}

.ql-editor {
    padding: 0.5rem 0.75rem;
    overflow-y: hidden; /* hide scrollbars */
}

.ql-container {
    height: auto !important;
    min-height: 50px; 
    max-height: 400px;
}
/* Custom line height styles for CKEditor content */
.ck-content {
    line-height: 1.3; /* Default line height for editor content */
}

.ck-content .line-height-tight {
    line-height: 0.8 !important;
}

.ck-content .line-height-very-tight {
    line-height: 0.6 !important;
}

.ck-content .line-height-extremely-tight {
    line-height: 0.4 !important;
}

/* Custom paragraph spacing */
.ck-content p {
    margin-bottom: 0.5em;
}

.ck-content p.tight-spacing {
    margin-bottom: 0.2em;
    line-height: 1.3;
}

/* For specific elements */
.ck-content h1, .ck-content h2, .ck-content h3, .ck-content h4, .ck-content h5, .ck-content h6 {
    line-height: 1.1;
    margin-top: 0.5em;
    margin-bottom: 0.3em;
}

/* Override CKEditor's default line height styles */
.ck-content[style*="line-height: 0.5"] {
    line-height: 0.5 !important;
}

.ck-content[style*="line-height: 0.75"] {
    line-height: 0.75 !important;
}

/* Custom dropdown styling for line height */
.ck.ck-dropdown .ck-dropdown__panel .ck-list__item:hover {
    background-color: #f0f0f0;
}

/* Make line height more visible in editor */
.ck-editor__editable .ck-widget {
    line-height: inherit;
}

.nav-link.zfuture-tab {
    border-radius: 25px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.nav-link.zfuture-tab:hover {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
    transition: all 0.3s ease-in-out;
}

.nav-link.zfuture-tab.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    /* transition: all 0.3s ease-in-out; */
}

@keyframes rowBlink {
    0%, 100% { background-color: #f7c65e; }
    50% { background-color: #f77f47fd; }
}

.bg-danger-flash {
    animation: rowBlink 1.5s infinite;
    animation-timing-function: ease-in-out;
}

.zcategory-item {
    background: #f3f8fc;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.zcategory-item:hover {
    color: white !important;
    background: #9bd2fa;
    transform: translateX(5px);
}

.zcategory-item.active {
    color: white !important;
    background: linear-gradient(135deg, #7ec2fa 0%, #3193f5 100%);
    box-shadow: 0 3px 10px rgba(33,150,243,0.3);
    border-color: #7ec2fa;
    transform: translateX(5px);
}

.zpatient-card {
    /* background: #f8f9fa; */
    transition: all 0.3s ease;
    border: 1px solid #49556366;
}

.zpatient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #2196f3;
}

.zpatient-card.active {
    color: white !important;
    background: linear-gradient(135deg, #7ec2fa 0%, #3193f5 100%);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #7ec2fa;
    transform: translateX(5px);
}

.ztest-card {
    background: white;
    border: 2px solid #8d8d8d;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.ztest-card:hover {
    border-color: #2196f3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.zimage-preview {
    background: #e9ecef;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #49556366;
    overflow: hidden;
}

.zimage-preview:hover {
    transform: scale(1.05);
}

.alternative-locations {
    background-color: #fff8e1;
    border-radius: 8px;
    border-left: 2px solid #ff9800;
}

.card.border-warning {
    border-color: #ffc107 !important;
    transition: all 0.3s ease;
}

.card.border-warning:hover {
    border-color: #ff9800 !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.fulfillment-status {
    font-size: 0.85em;
    padding: 4px 8px;
}

.status-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.progress-bar {
    transition: width 0.6s ease;
}

.selected-consumable {
    background-color: #e8f4ff;
    border-left: 2px solid #007bff;
    padding: 6px;
    margin-bottom: 5px;
    border-radius: 5px;
}