/*
  Developed by Loncey Tech
  Website: https://www.lonceytech.com
  All rights reserved.
  Year: 2025
*/

:is([data-layout="vertical"], [data-layout="semibox"])[data-sidebar-size="sm"]
    .menu-search {
    display: none;
}

.table-responsive .dropdown,
.table-responsive .btn-group,
.table-responsive .btn-group-vertical {
    position: static;
}

.table-responsive {
    overflow-y: visible !important;
}

.auth-logo img {
    max-width: 100%;
}

.navbar-menu .navbar-nav .nav-link.active {
    font-weight: 600;
}

.header-datetime {
    background-color: #ececec73;
    padding: 3px 5px;
    font-size: 14px;
    border-radius: 6px;
    border: dashed 1px;
}

/*text editor - summernote */
.note-editor.note-frame {
    border: 1px solid #e2e5ec;
    box-shadow: none;
    /* background: #f7f8fa; */
    font-family: "Poppins", sans-serif;
}
.note-editor.note-frame .panel-heading.note-toolbar {
    background: #f7f8fa;
}
.note-editor .card-header.note-toolbar {
    padding: 5px 10px 10px 10px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    display: block;
    min-height: auto;
}
.note-editor.note-frame .note-statusbar {
    border-color: #e2e5ec;
    background-color: #f7f8fa;
}
.note-editor.note-airframe .note-statusbar .note-resizebar .note-icon-bar,
.note-editor.note-frame .note-statusbar .note-resizebar .note-icon-bar {
    border-color: #afafb9;
}
.note-toolbar .note-btn {
    border-color: #e2e5ec;
}
.note-popover
    .popover-content
    .note-color
    .note-dropdown-menu
    .note-palette
    .note-color-reset:hover,
.note-popover
    .popover-content
    .note-color
    .note-dropdown-menu
    .note-palette
    .note-color-select:hover,
.note-toolbar
    .note-color
    .note-dropdown-menu
    .note-palette
    .note-color-reset:hover,
.note-toolbar
    .note-color
    .note-dropdown-menu
    .note-palette
    .note-color-select:hover {
    background-color: var(--primary);
    color: var(--white);
}
.note-popover .popover-content .note-btn-group .note-table,
.note-toolbar .note-btn-group .note-table,
.note-editor .note-toolbar .dropdown-menu {
    min-width: 190px;
}
.note-popover .popover-content .note-color-all .note-dropdown-menu,
.note-toolbar .note-color-all .note-dropdown-menu {
    min-width: 340px;
}
.note-dropdown-menu .dropdown-item > * {
    padding: 0 !important;
}
.note-dropdown-menu .dropdown-item h1 {
    font-size: 2rem;
}
.note-dropdown-menu .dropdown-item h2 {
    font-size: 1.75rem;
}
.note-dropdown-menu .dropdown-item h3 {
    font-size: 1.5rem;
}
.note-dropdown-menu .dropdown-item h4 {
    font-size: 1.25rem;
}
.note-dropdown-menu .dropdown-item h5 {
    font-size: 1rem;
}
.note-dropdown-menu .dropdown-item h6 {
    font-size: 0.875rem;
}
.note-modal .note-group-select-from-files {
    display: none !important;
}
@media (max-width: 575px) {
    .note-video-clip {
        max-width: 100%;
        height: auto;
    }
}

.file-preview {
    margin-top: 10px;
    padding: 8px;
    border: 1px dashed #9c9c9d;
    border-radius: 0.25rem;
    text-align: center;
    display: inline-block;
    background-color: #fff;
}

.file-preview.sm {
    width: auto;
    max-width: 100px; /* Restrict the maximum width */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Crop overflow content */
}

.file-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures the image fits within the preview area */
    border-radius: 0.25rem;
    background-color: #fff;
}

.form-heading {
    font-size: 16px;
    padding: 10px;
    background-color: var(--vz-primary);
    color: var(--vz-white);
    border-radius: 0.375rem;
    border-left: 5px solid var(--vz-gray-600);
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 7px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}



/* Store css */

  /* Product Card Styling */
  .product-card {
    display: none;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 80%;
    margin: 20px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for the product card */
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Product Name */
.product-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

/* Product Brand */
.product-brand {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-align: center;
    margin-bottom: 10px;
}

/* Product Description */
.product-description {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 20px;
}

/* Product Quantity */
.product-quantity {
    font-size: 16px;
    font-weight: 600;
    color: #3e8e41;
    /* Green color for availability */
    text-align: center;
    padding: 10px;
    background-color: #e8f5e9;
    border-radius: 5px;
    margin: 0;
}

.error-feedback {
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
    color: var(--vz-form-invalid-color);
}

.custom-css-setting .code-textarea {
    font-family: "Fira Code", monospace;
    font-size: 14px;
}

.primary-section-card {
    position: relative; /* for badge placement */
    background-color: var(--vz-primary);
    color: var(--vz-white);
    min-height: 100px; /* auto height by default, so no need height:auto */
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: transform .2s ease, box-shadow .2s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.primary-section-card h4 {
    margin: 0;
    line-height: 1.25;
    padding: 0 8px;
    white-space: normal;     /* allow wrapping */
    word-break: break-word;  /* break long words */
    min-width: 0;            /* flex fix for wrapping */
}

.primary-section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 18px rgba(0,0,0,0.2);
    cursor: pointer;
}

.primary-section-card .status-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
