/*
  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(--vz-primary);
    color: var(--vz-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);
}


/* ==========================================================================
   LIGHT BLUE THEME
   --------------------------------------------------------------------------
   custom.min.css is <link>ed after bootstrap.min.css and app.min.css in every
   admin layout (mainhead, auth, error), so these :root overrides win on source
   order -- all the competing selectors are specificity (0,1,0).
   Velzon's own stylesheets are left untouched so the template stays upgradable.
   ========================================================================== */

:root,
[data-bs-theme="light"] {
    /* ---- brand ramp: single source of truth ---------------------------- */
    --bms-blue-50:    #f2f7fb;  /* page canvas                               */
    --bms-blue-100:   #e2f0fa;  /* subtle fills, soft buttons, alert bg      */
    --bms-blue-150:   #dceefb;  /* TOP BARS                                  */
    --bms-blue-200:   #b7daf0;  /* bar dividers, hairlines                   */
    --bms-blue-300:   #9fc7e1;  /* subtle borders                            */
    --bms-blue-500:   #0f72b4;  /* PRIMARY   -- white on it = 5.14:1   AA    */
    --bms-blue-700:   #0b5c91;  /* hover/active + BOLD TITLES  = 7.11:1 AAA  */
    --bms-blue-900:   #0c4a6e;  /* top bar ink on blue-150     = 7.96:1 AAA  */
    --bms-blue-muted: #3f6b87;  /* top bar sub-ink on blue-150 = 4.82:1 AA   */

    /* ---- semantic accents (white text on each passes AA) --------------- */
    --bms-success: #0e7a55;
    --bms-danger:  #d92d20;
    --bms-warning: #b54708;

    /* ---- Bootstrap 5.3 primary ----------------------------------------- */
    --vz-primary:               var(--bms-blue-500);
    --vz-primary-rgb:           15, 114, 180;   /* must stay bare numbers */
    --vz-primary-text-emphasis: var(--bms-blue-700);
    --vz-primary-bg-subtle:     var(--bms-blue-100);
    --vz-primary-border-subtle: var(--bms-blue-300);

    --vz-link-color:            var(--bms-blue-500);
    --vz-link-color-rgb:        15, 114, 180;
    --vz-link-hover-color:      var(--bms-blue-700);
    --vz-link-hover-color-rgb:  11, 92, 145;

    /* ---- canvas -------------------------------------------------------- */
    --vz-body-bg:     var(--bms-blue-50);
    --vz-body-bg-rgb: 242, 247, 251;

    /* ---- TOP BAR 1: #page-topbar (logo / clock / bell / user) ----------
       On the main + livewire layouts these tokens are currently UNDEFINED:
       every --vz-header-* block in app.min.css sits inside [data-theme="..."]
       and mainhead.blade.php sets no data-theme attribute. */
    --vz-header-bg:             var(--bms-blue-150);
    --vz-header-border:         var(--bms-blue-200);
    --vz-header-item-color:     var(--bms-blue-900);
    --vz-header-item-sub-color: var(--bms-blue-muted);
    --vz-header-item-bg:        rgba(15, 114, 180, 0.14);
    --vz-topbar-user-bg:        rgba(255, 255, 255, 0.55);
    --vz-topbar-search-bg:      rgba(255, 255, 255, 0.65);
    --vz-topbar-search-color:   var(--bms-blue-900);

    /* ---- TOP BAR 2: horizontal menu strip (.navbar-menu) ---------------
       Active colour is blue-700 not blue-500: blue-500 on the bar tint is
       only 4.32:1, blue-700 is 5.98:1. */
    --vz-topnav-bg:                var(--bms-blue-150);
    --vz-topnav-item-color:        var(--bms-blue-muted);
    --vz-topnav-item-active-color: var(--bms-blue-700);
}

/* Keep the horizontal fly-out submenus white -- app.min.css paints
   [data-layout="horizontal"] .menu-dropdown with var(--vz-topnav-bg), which
   would otherwise make them the same tint as the bar they hang off. */
[data-layout="horizontal"] .menu-dropdown {
    background-color: var(--vz-secondary-bg);
    border: 1px solid var(--bms-blue-200);
}

/* ---- BOLD TITLE TEXTS -------------------------------------------------
   .card-title inside `card-header bg-primary` keeps its white .text-light:
   Bootstrap text utilities carry !important, so they beat these rules. */
.page-title-box h4 {
    color: var(--bms-blue-700);
}

.card-title {
    color: var(--bms-blue-700);
    font-weight: 600;
}

/* Top bar icon buttons (bell, fullscreen, apps, ...) carry btn-ghost-secondary,
   which resolves to the indigo --vz-secondary and clashes with the blue bar.
   Re-point them at the bar's own ink. */
#page-topbar .btn-topbar,
#page-topbar .topnav-hamburger {
    --vz-btn-color: var(--bms-blue-900);
    --vz-btn-hover-color: var(--bms-blue-700);
    --vz-btn-hover-bg: rgba(255, 255, 255, 0.65);
    --vz-btn-active-color: var(--bms-blue-700);
    --vz-btn-active-bg: rgba(255, 255, 255, 0.8);
}

/* Top bar clock pill: neutralise the grey chip and the indigo .text-secondary
   that header.blade.php puts inside it, so it sits on the blue bar. */
.header-datetime {
    background-color: rgba(255, 255, 255, 0.6);
    border-color: var(--bms-blue-300);
    color: var(--bms-blue-900);
}

.header-datetime .text-secondary {
    color: var(--bms-blue-muted) !important;
}

.header-datetime .text-dark {
    color: var(--bms-blue-900) !important;
}

/* ---- NOTIFICATION TOASTS (Notyf) --------------------------------------
   Toast body is brand blue (set from JS via the `types` array in the admin
   layouts); the semantic signal is carried by a coloured left bar and the
   icon glyph, so success/error/warning stay distinguishable at a glance.
   Notyf writes the icon colour as an inline style, hence !important. */
.notyf__toast.bms-toast {
    border-left: 6px solid var(--bms-blue-700);
}

.bms-toast--success {
    border-left-color: var(--bms-success);
}

.bms-toast--success .notyf__icon--success {
    color: var(--bms-success) !important;
}

.bms-toast--error {
    border-left-color: var(--bms-danger);
}

.bms-toast--error .notyf__icon--error {
    color: var(--bms-danger) !important;
}

.bms-toast--warning {
    border-left-color: var(--bms-warning);
}

.bms-toast--warning .notyf__icon--error {
    color: var(--bms-warning) !important;
}

.bms-toast--info {
    border-left-color: var(--bms-blue-200);
}

.bms-toast--info .notyf__icon--success {
    color: var(--bms-blue-500) !important;
}
