@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --safe-bottom: env(safe-area-inset-bottom, 0);
    --viewport-inset: 0px;
    --min-bottom-gap: 24px;
    --bottom-offset: max(var(--safe-bottom), var(--viewport-inset), var(--min-bottom-gap));
    --header-height: 110px;
    --primary-color: #00348E;
    --primary-color-hover: #2F528E;
    --secondary-color: #347CB2;
    --secondary-color-hover: #3987C2;
    --accent-color: #EDAA00;
    --accent-color-hover: #EDBE47;
    --color-vz-blue: #00348e; /* Primary Bleu Vizco */
    --color-vz-blue-light: #347cb2; /* Bleu Clair Vizco */
    --color-vz-blue-dark: #00286e; /* Darker Vizco Blue */
    --color-vz-yellow: #EDAA00; /* Secondary - Jaune légèrement foncé */
    --color-vz-yellow-dark: #d99b00; /* Slightly darker Vizco Yellow */
    --color-vz-bg-light: #e6ecf5; /* Very light Vizco Blue for backgrounds */
    --color-vz-border-light: #ccd9eb; /* Light Vizco Blue for borders */
}

.detail-view-wrapper {
    padding: 0 16px 16px;
    height: 100%;
}

.current-version-number {
    word-break: break-word;
}

.current-version-number::before {
    content: "2026.01.07.004";
}

button {
    user-select: none;
}

label .required {
    color: #e53e3e;
    margin-left: 2px;
}

.action-btn {
    white-space: nowrap;
}

.action-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--color-vz-yellow);
    color: var(--color-vz-blue);
    font-weight: bold;
    border-radius: 50%;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 0;
    box-sizing: border-box;
    font-size: 10px !important;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    padding: 40px 20px;
    height: 100%;
}

.empty-state i {
    color: #cbd5e0;
    margin-bottom: 16px;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
    color: #718096;
}

.end-of-list {
    text-align: center;
    padding: 20px;
    color: #718096;
    font-size: 14px;
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fafafa;
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}


/* Bottom Actions - Using Sticky for Transform Compatibility */
.bottom-actions {
    position: sticky;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 12px;
    padding: 10px 16px 10px 16px;
    backdrop-filter: blur(8px);
    background-color: white;
    border-top: 1px solid #e0e0e0;
    z-index: 10;
    justify-content: space-between;
    /*box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);*/
    /*width: calc(100% + 32px);*/
    /*margin-top: auto; !* Push to bottom of container *!*!*/
}

.bottom-actions.edit-mode {
    justify-content: space-between;

}

.action-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.cancel {
    background-color: #f0f2f5;
    color: #666;
}

.action-btn.cancel:hover {
    background-color: #e0e0e0;
}

.action-btn.save {
    background-color: var(--color-vz-blue);
    color: white;
}

.action-btn.save:hover {
    background-color: var(--color-vz-blue-dark);
}

/* Loading/Saving States */
.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.action-btn.save:disabled {
    background-color: #a0aec0;
}


.full-page-modal-container {
    height: 100vh;
    height: 100dvh; /* iOS Safari fix */
    backdrop-filter: blur(1px);
    align-content: end;
}

.tab-header-wrapper {
    z-index: 100;
    box-shadow: rgba(0, 0, 0, 0.10) 0px 3px 5px;
    border-radius: 0 0 12px 12px;
}

.tab-header-wrapper .tab-header {
    flex-shrink: 0;
    display: flex;
    padding: 16px 16px 8px 16px;
    justify-content: space-between;
    align-items: center;
}

.tab-header {
    flex-shrink: 0;
    display: flex;
    padding: 16px;
    justify-content: space-between;
    align-items: center;
}

.tab-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-vz-blue);
    user-select: none;
}

.header-actions {
    display: flex;
    gap: 8px;
}


input:disabled,
textarea:disabled,
select:disabled,
input[readonly],
textarea[readonly],
select[readonly] {
    background-color: #e9ecef !important;
    opacity: 1 !important; /* Override browser default opacity */
    cursor: not-allowed !important;
    color: #6c757d !important;
    border: 1px solid #ced4da !important;
}


html, body {
    background-color: transparent;
}


.filter-panel {
    flex-shrink: 0;
    background-color: transparent;
    padding: 12px 16px;
    animation: slideDown 0.2s ease-out;
}

.filter-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

.sort-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--color-vz-yellow);
    color: var(--color-vz-blue);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sort Panel */
.sort-panel-advanced {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 12px 12px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Current Sort Display */
.current-sort-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
}

.current-sort-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.current-sort-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-vz-blue);
    font-weight: 600;
}

/* Mobile-first styles for clickable current sort display */
.current-sort-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, transform 0.1s ease;
    min-height: 44px; /* iOS touch target recommendation */
}

/* Active state for touch feedback */
.current-sort-value:active {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(0.98);
}

/* Arrow animation when direction changes */
.current-sort-value .fa-arrow-up,
.current-sort-value .fa-arrow-down {
    transition: transform 0.2s ease;
}

/* Sort Pills Grid */
.sort-pills-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.sort-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47%;
    gap: 6px;
    padding: 5px 6px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.sort-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sort-pill.active {
    background: var(--color-vz-blue);
    color: white;
    border-color: var(--color-vz-blue);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Clear Sort Button */
.clear-sort-btn {
    width: 100%;
    padding: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.clear-sort-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}


.filter-row {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) auto;
    gap: 6px;
    align-items: end;
}


.panel-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.panel-item label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.filter-input,
.filter-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--color-vz-blue);
    box-shadow: 0 0 0 3px rgba(0, 52, 142, 0.1);
}

.panel-actions {
    display: flex;
    align-items: flex-end;
}

.clear-panel-btn {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.clear-panel-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.active-filters-summary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
}

.filter-count {
    font-weight: 600;
    color: var(--color-vz-blue);
}


.filter-button {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: var(--color-vz-blue);
    color: var(--color-vz-blue);
    border: 1px solid #e2e8f0;
}

.filter-button:hover {
    background: #f8fafc;
    border-color: var(--color-vz-blue);
}

.filter-button.panel-open {
    background: var(--color-vz-blue);
    color: var(--color-vz-blue);
    border-color: var(--color-vz-blue);
}

.filter-button.panel-open:hover {
    background: #003670; /* Darker blue */
}

.filter-button.has-active-filters:not(.panel-open) {
    color: var(--color-vz-blue);
    border-color: var(--color-vz-blue);
    background: rgba(0, 52, 142, 0.05);
}

.filter-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--color-vz-yellow);
    color: var(--color-vz-blue);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.panel-action-buttons {
    display: flex;
    gap: 8px;
}

.clear-panel-btn,
.collapse-panel-btn {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.clear-panel-btn:hover,
.collapse-panel-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}


.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    display: none !important;
}

.toggle-slider {
    width: 36px;
    height: 20px;
    background-color: #cbd5e0;
    border-radius: 20px;
    position: relative;
    transition: background-color 0.2s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #3182ce;
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(16px);
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.btn-group-custom span {
    font-size: 1.2rem;
}

.cancel-save-btn-group {
    column-gap: 10px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.skeleton-card {
    height: 140px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}


@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* ≈ .gap-1 */
    margin-bottom: 0.5rem; /* ≈ .mb-4 */
}

.input-group label {
    font-size: 0.875rem; /* .text-sm */
    font-weight: 500; /* .font-medium */
    color: #374151; /* .text-gray-700 */
}

.input-group input,
.input-group textarea,
.input-group select {
    padding: 0.5rem 0.75rem; /* .py-2 .px-3 */
    border: 1px solid #d1d5db; /* .border-gray-300 */
    border-radius: 0.375rem; /* .rounded-md */
    background: #fff; /* .bg-white */
    color: #111827; /* .text-gray-900 */
    font-size: 0.875rem; /* keep consistency */
    width: 100%;
    box-sizing: border-box;
    margin-left: 0px;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); /* .ring-2 .ring-blue-500 */
    border-color: #3b82f6; /* .border-blue-500 */
}


/* Small Input Groups */
.input-group-small {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-group-small input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: #fff;
    color: #111827;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
}


.input-group-small label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-bottom: 0;
}

.input-group-small .form-control-sm {
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    transition: all 0.2s;
}

.input-group-small .form-control-sm:focus {
    outline: none;
    border-color: var(--color-vz-blue);
    box-shadow: 0 0 0 2px rgba(0, 52, 142, 0.1);
}


.communication-btn {
    position: relative;
    height: 50px;
    width: 50px;
    border-radius: 15px;
    background-color: #a7aaa7;
    text-align: end;
    float: right;
}

.messages-btn {
    position: relative;
    height: 50px;
    width: 50px;
    padding-right: 14px;
    padding-top: 8px;
    border-radius: 15px;
    background-color: #a7aaa7;
    text-align: end;
    float: right;
    clear: right;
}

.btn-no-style {
    background: none !important;
    border: none !important;
}

/* Floating Action Button */
.fab {
    position: fixed;
    float: right;
    bottom: calc(24px + var(--bottom-offset));
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-vz-blue, #00348e);
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
    z-index: 100;
}

.fab::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    /* Debug: uncomment to see the actual clickable area */
    /* background: rgba(255, 0, 0, 0.2); */
}



/*.fab:hover {*/
/*    transform: scale(1.1);*/
/*    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);*/
/*}*/

/*.fab:active {*/
/*    transform: scale(0.95);*/
/*}*/

.action-icon {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.action-icon:hover {
    background: var(--color-vz-blue);
    border-color: var(--color-vz-blue);
    color: white;
}

/* Base Layout */
.crm-mobile-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa;
    font-family: var(--font-source-sans);
    position: relative;
    overflow-x: hidden;
}

.auth-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa;
}

/* Top Navigation Bar */
.crm-top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    align-items: center;
}

.navbar-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-vz-blue);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo-small {
    width: 40px;
    height: 40px;
}

.navbar-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: var(--fw-semibold);
    color: var(--color-vz-blue);
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-button {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    color: var(--color-vz-blue);
    transition: background-color 0.2s;
}

.icon-button:hover {
    background-color: rgba(0, 52, 142, 0.1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-vz-yellow);
    color: var(--color-vz-blue);
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.notification-badge-bottom-right {
    position: absolute;
    bottom: 0; /* instead of top */
    right: 0;
    transform: translate(25%, 25%); /* nudge it outside the corner */
    background-color: var(--color-vz-yellow);
    color: var(--color-vz-blue);
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}


/* Side Drawer */
.side-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.side-drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background-color: white;
    z-index: 201;
    transform: translateX(-100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.side-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    background-color: var(--color-vz-bg-light);
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.drawer-logo {
    width: 120px;
    margin-bottom: 16px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--color-vz-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.user-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: var(--fw-semibold);
    color: var(--color-vz-blue);
}

.user-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.drawer-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    position: relative;
}

.drawer-item:hover {
    background-color: var(--color-vz-bg-light);
}

.drawer-item.active {
    background-color: rgba(0, 52, 142, 0.1);
    color: var(--color-vz-blue);
    font-weight: var(--fw-semibold);
}

.drawer-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-vz-yellow);
}

.drawer-item i {
    font-size: 20px;
    width: 24px;
    margin-right: 16px;
}

.drawer-item span {
    flex: 1;
}

.item-badge {
    background-color: var(--color-vz-yellow);
    color: var(--color-vz-blue);
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
}

.drawer-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 8px 20px;
}

.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
}

.navigation-preference {
    font-size: 14px;
}

.navigation-preference label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.navigation-preference select {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background-color: white;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.accordion-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
}

.accordion-content {
    width: 100%;
    padding-top: 15px;
    overflow: hidden;
    padding-left: 1px;
}

.accordion-content .info-row {
    padding: 8px 0;
}

/* Main Content */
.crm-main-content {
    flex: 1;
    margin-top: 56px;
    overflow-y: auto;
    background-color: #f5f7fa;
}

.crm-main-content.with-bottom-nav {
    margin-bottom: 56px;
}

/* Bottom Navigation */
.crm-bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: white;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.bottom-nav-item:hover {
    color: var(--color-vz-blue);
}

.bottom-nav-item.active {
    color: var(--color-vz-blue);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background-color: var(--color-vz-yellow);
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.bottom-nav-item span {
    font-size: 11px;
    font-weight: var(--fw-medium);
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 20px);
    background-color: var(--color-vz-yellow);
    color: var(--color-vz-blue);
    font-size: 10px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

/* Floating Action Button */
.crm-fab {
    position: fixed;
    bottom: 76px;
    right: 20px;
    z-index: 90;
}

.bottomonly-nav .crm-fab {
    bottom: 76px;
}

.sidedrawer-nav .crm-fab {
    bottom: 20px;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-vz-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s, background-color 0.2s;
}

.fab-main:hover {
    background-color: var(--color-vz-blue-dark);
}

.crm-fab.expanded .fab-main {
    transform: rotate(45deg);
    background-color: var(--color-vz-yellow);
    color: var(--color-vz-blue);
}

.fab-actions {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.fab-action {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    color: var(--color-vz-blue);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fab-action:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Dark Mode */
.dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
}

.dark-mode .crm-top-navbar,
.dark-mode .side-drawer,
.dark-mode .crm-bottom-navbar {
    background-color: #2d3748;
    color: #e2e8f0;
}

.dark-mode .drawer-header {
    background-color: #1a202c;
    border-color: #4a5568;
}

.dark-mode .drawer-item {
    color: #e2e8f0;
}

.dark-mode .drawer-item:hover {
    background-color: #4a5568;
}

.dark-mode .drawer-item.active {
    background-color: rgba(52, 124, 178, 0.2);
    color: var(--color-vz-blue-light);
}

.dark-mode .crm-main-content {
    background-color: #1a202c;
}

/* Loading container - centered loading state */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    height: inherit;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .crm-top-navbar {
        height: 64px;
    }

    .crm-main-content {
        margin-top: 64px;
    }

    .side-drawer {
        width: 320px;
    }

    .navbar-title {
        font-size: 20px;
    }
}

@media (min-width: 1024px) {
    /* For desktop, default to side drawer always visible */
    .sidedrawer-nav .side-drawer {
        position: relative;
        transform: translateX(0);
        box-shadow: none;
        border-right: 1px solid #e2e8f0;
    }

    .sidedrawer-nav .side-drawer-overlay {
        display: none;
    }

    .sidedrawer-nav .hamburger-btn {
        display: none;
    }

    .sidedrawer-nav .crm-main-content {
        margin-left: 320px;
    }

    .sidedrawer-nav .crm-top-navbar {
        left: 320px;
    }

    .content {
        max-width: 35vw;
        min-width: 35vw;
    }


    .loading-progress {
        position: relative;
        display: block;
        width: 8rem;
        height: 8rem;
        margin: 1vh auto 1rem auto;
    }

    .loading-progress-text {
        position: absolute;
        text-align: center;
        font-weight: bold;
        inset: calc(1vh + 3.25rem) 0 auto 0.2rem;
    }

    body {
        display: grid;
        place-items: center;
        min-height: 100vh;
        min-width: 45vw;
    }

    .contact-us {
        width: 50vw;
    }

    .product-image-expanded {
        max-width: 35vw;
        height: 80vh;
        object-fit: contain;
        object-position: center;
    }
}


.section-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.section-title i {
    margin-right: 8px;
    color: #007bff;
}

.daily-deliveries-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
}


.sticky-attachment-header {
    position: sticky;
    top: -1rem;
    background-color: #ffffffd1;
    padding: 10px 0;
    z-index: 1000;
}

.modal-body {
    border-radius: 15px !important;
}

.modal-body.empty .add-attachment-container {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
}

.modal-close-badge {
    position: absolute;
    content: "\f00d";
    background-color: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    border-radius: 50%;
    top: -10px;
    right: -10px;
    padding: 2px 8px;
    border-style: none;
    z-index: 1200;
}

.btn-refresh {
    color: var(--color-vz-blue-light) !important;
}

.icon-button {
    background: none; /* remove default bg */
    border: none; /* remove default border */
    padding: 0.5rem; /* adjust click area */
    cursor: pointer; /* pointer on hover */
    display: inline-flex; /* center icon */
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
}

.icon-button:focus {
    outline: 2px solid Highlight; /* visible focus for accessibility */
}


/* Mirror horizontally */
.mirror {
    transform: scaleX(-1); /* flips on the vertical axis */
    /* transform-origin defaults to center; adjust if needed */
}

/* Mirror vertically, if desired */
.mirror-vertical {
    transform: scaleY(-1); /* flips on the horizontal axis */
}

/*!* leave space for the icon inside the input *!*/
/*.password-field {*/
/*    padding-right: 2.75rem;*/
/*}*/

/*!* centre the icon vertically & pin it to the right edge *!*/
/*.password-toggle {*/
/*    z-index: 200;*/
/*    position: absolute;*/
/*    top: 0;*/
/*    bottom: 0;*/
/*    right: .75rem;*/
/*    display: flex; !* flex‑box handles vertical centring*!*/
/*    align-items: center;*/
/*    cursor: pointer;*/
/*    line-height: 0;*/
/*    color: #6c757d;*/
/*}*/

/*.password-toggle:hover {*/
/*    color: #000;*/
/*}*/

/*textarea:focus-visible {*/
/*    outline: none;*/
/*}*/

.reason-textarea {
    width: 100%;
    resize: none;
    border-radius: 10px;
    padding: 0.35rem;
}

.char-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: rgb(102, 102, 102);
    display: inline;
    font-weight: bold;
}

.swal2-confirm {
    border-radius: 20px !important;
}

.swal2-cancel {
    border-radius: 20px !important;
}

.swal2-deny {
    border-radius: 20px !important;
}

/* red danger confirm */
.btn-danger-confirm {
    font-weight: bold !important;
    cursor: pointer !important;
    border-radius: 15px !important;
    background: rgba(192, 14, 14, 1) !important; /* red */
    color: #fff !important;
    border: none !important;
    font-family: inherit !important;
}

.btn-danger-confirm:hover {
    cursor: pointer !important;
    background: #b50e1f !important; /* darker red */
}

/* neutral grey cancel */
.btn-neutral-cancel {
    font-weight: bold !important;
    border-radius: 15px !important;
    background: #6c757d !important; /* grey */
    color: #fff !important;
    border: none !important;
}

.btn-neutral-cancel:hover {
    cursor: pointer !important;
    background: #5a6268 !important; /* darker grey */
}

.margin-left-btn {
    margin-left: 2rem !important;
}


.is-invalid {
    box-shadow: inset 0 0 .4rem rgba(220, 53, 69, 1);
}

.is-valid {
    box-shadow: inset 0 0 .4rem rgba(25, 135, 84, 1);
}

/*Animation company identifier */
.shake-animation {
    animation: shake 0.8s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

.my-floating-cardV2 {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    border-radius: 15px;
    align-content: center;
    place-items: center;
    margin-top: 2rem;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-info {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-info:hover {
    background-color: var(--secondary-color-hover);
    border-color: var(--secondary-color);
    color: white;
}


.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    color: white;
}

.search-deliveries-btn {
    position: relative;
    margin-top: 3rem;
    float: right;
    z-index: 1000; /* Ensures the button stays on top of other elements */
}

:modal {
    background-color: beige;
    border: 2px solid burlywood;
    border-radius: 5px;
}

.btn.close {
    padding-top: 0px;
    padding-bottom: 0px;
    padding-right: 0px;
}

.delete-btn {
    background-color: red;
    width: 40px;
    height: 38px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.1em;
}

.delete-btn:hover {
    color: white;
}

.my-floating-card {
    margin-top: 10%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border-radius: 25px;
}

.my-floating-card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
}

.my-floating-card:active {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
}

.company-identifier-header {
    align-self: start;
}

.company-identifier-input-container {
    width: 100%;
    text-align: center;
}

.my-card-container {
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.input-group-text {
    background: transparent;
    border: none;
}


/* Style to ensure the password input aligns properly with the toggle button */
.password-field {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.input-file:hover {
    cursor: pointer;
}

.blazored-modal.size-small {
    border-radius: 25px !important;
}


.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.blazored-modal-delivery-attachments {
    width: 30vw;
    z-index: 105;
    justify-content: center;
}


.header-btn-group {
    float: right;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.header-btn-group .btn {
    margin-bottom: 10px;
}

.upload-btn {
    position: relative;
    color: #fff;
    width: 40px;
    height: 38px;
    background-color: #17a2b8;
    border-color: #17a2b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.1em;
    border-radius: 25%;
}

.upload-btn:hover {
    cursor: pointer;
}

.upload-btn::before {
    content: "+";
    position: absolute;
    top: 10px;
    right: -4px;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    font-weight: 600;
    color: white;
}

.download-btn {
    position: relative;
    color: #fff;
    width: 40px;
    height: 38px;
    background-color: #17a2b8;
    border-color: #17a2b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.1em;
}

.download-btn:hover {
    color: white;
}

.btn-attachment {
    position: relative;
    height: 50px;
    width: 50px;
    padding-right: 14px;
    padding-top: 8px;
    border-radius: 15px;
    background-color: rgb(0, 53, 239);
    text-align: end;
    float: right;
    clear: right;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn .badge {
    position: relative;
    top: -1px;
}

.badge-parent .badge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 5px 8px;
    border-radius: 50%;
    background: red;
    color: white;
}

.badge-parent .badge-bottom-right {
    position: absolute;
    bottom: -10px; /* instead of top */
    right: -10px;
    padding: 1px 8px;
    font-weight: 600;
    border-radius: 50%;
    background: red;
    color: white;
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
    max-width: 100vw;
}

.rounded-typeahead .blazored-typeahead__input {
    border-radius: 25px !important;
    font-size: 1.4rem !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 15px !important;
    padding-right: 0px !important;
    letter-spacing: 4px !important;
    max-width: 88% !important;
}

.rounded-typeahead .blazored-typeahead__input-icon {
    border-radius: 25px !important;
}

.rounded-typeahead .blazored-typeahead {
    border-radius: 25px !important;
}

.rounded-typeahead .blazored-typeahead__input {
    border-radius: 25px !important;
    font-size: 1.4rem !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 15px !important;
    padding-right: 0px !important;
    letter-spacing: 4px !important;
}

.rounded-typeahead .blazored-typeahead__result {
    font-size: 1.2rem !important;
    z-index: 2000 !important;
}

.rounded-typeahead .blazored-typeahead__results {
    border-radius: 10px 10px 25px 25px !important;
    z-index: 2000 !important
}

.rounded-typeahead .typeahead-container {
    margin-bottom: 15px;
}

.rounded-typeahead .blazored-typeahead__controls {
    position: relative;
    cursor: text;
    display: flex;
    justify-content: space-between;
}

.valid.modified:not([type=checkbox]):not([type=password]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/*BLAZORED MODAL START*/
.blazored-modal-container {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.blazored-modal-overlay {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    top: 0;
    left: 0;
}

.blazored-modal {
    display: flex;
    z-index: 11;
    flex-direction: column;
    background-color: #fff;
    border-radius: 15px;
    border: 0px solid #fff !important;
    padding: 0.0rem !important;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .25);
    margin: 1rem auto;
    max-height: calc(100vh - var(--bottom-offset) - 2rem); /* -2rem for margin */
    max-height: calc(100dvh - var(--bottom-offset) - 2rem);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 10px 16px 10px 16px;
    background-color: white;
    border-top: none !important;
    flex-shrink: 0;
}

.modal-content {
    border-radius: 15px !important;
}

.blazored-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 0 2rem 0;
}

.blazored-modal-title {
    margin-bottom: 0;
}

.blazored-modal-close {
    /* padding: 1rem;*/
    /*margin: -1rem -1rem -1rem auto;*/
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
}

.blazored-modal-center {
    align-items: center;
    justify-content: center;
}

.blazored-modal-topleft .blazored-modal {
    position: absolute;
    top: 32px;
    left: 32px;
}

.blazored-modal-topright .blazored-modal {
    position: absolute;
    top: 32px;
    right: 32px;
}

.blazored-modal-bottomleft .blazored-modal {
    position: absolute;
    bottom: 32px;
    left: 32px;
}

.blazored-modal-bottomright .blazored-modal {
    position: absolute;
    bottom: 32px;
    right: 32px;
}

.blazored-modal-scrollable {
    display: flex;
    max-height: calc(100% - 1rem);
}

.blazored-modal-scrollable .blazored-modal-content {
    overflow-y: auto;
}

.blazored-modal-scrollable .blazored-modal-footer, .blazored-modal-scrollable .blazored-modal-header {
    flex-shrink: 0;
}

/*BLAZORED MODAL END*/

.reason-input-line {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.swal2-icon-custom {
    border: none !important;
    background-color: transparent !important;
}

.reason-radio-btn {
    margin-right: 10px;
    height: 1.2rem;
    width: 1.2rem;
}

.reason-lbl {
    font-size: 1.2rem;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}


.page-header {
    display: grid;
    margin-bottom: 20px;
}

.logo-vizco {
    width: 160px;
}

.title {
    font-size: 1.85rem;
}

.progress-bar-placeholder {
    width: 350px;
    height: 88px;
    border-style: dashed;
}

.order-header {
}

#videoview {
    position: relative;
    width: 100%;
    height: 100vh;
}

#videoContainer {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: contain
}

.scanner-container {
    width: 100%;
    text-align: center;
    position: relative;
}

.video-player {
    width: 32vw;
}

.autocomplete {
    position: relative;
    width: 300px;
}

.suggestions {
    position: absolute;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #eee;
}

/*placeholder*/
.flash-toggle {
    display: none;
    height: 50px;
    width: 50px;
    border-radius: 15px;
    background-color: #c6c6c6;
    text-align: center;
    position: absolute;
    z-index: 1000;
    top: -10px;
    margin-left: -10px;
}

/*.flash-toggle.btn::before {
    content: "\f0e7";*/ /* Unicode for FontAwesome 'bolt' icon */
/*font-family: "FontAwesome";
    color: white;
    font-size: 1.5em;*/ /* Adjust size as needed */
/*}*/

.torch-on {
    height: 50px;
    width: 50px;
    border-radius: 15px;
    background-color: #f8fa42d6;
    text-align: center;
    position: absolute;
    z-index: 1000;
    top: -10px;
    margin-left: -10px;
}

.torch-on::before {
    content: "\f0e7"; /* Unicode for FontAwesome 'bolt' icon */
    font-family: "FontAwesome";
    color: black;
    font-size: 1.5em; /* Adjust size as needed */
}

.torch-off {
    height: 50px;
    width: 50px;
    border-radius: 15px;
    background-color: #c6c6c6;
    text-align: center;
    position: absolute;
    z-index: 1000;
    top: -10px;
    margin-left: -10px;
}

.torch-off::before {
    content: "\f0e7"; /* Unicode for FontAwesome 'bolt' icon */
    font-family: "FontAwesome";
    color: white;
    font-size: 1.5em; /* Adjust size as needed */
}

.inline-item {
    display: flex;
    justify-content: space-between;
}

.tax-detail {
    display: flex;
    font-style: italic;
    font-size: smaller;
    justify-content: space-between;
}

.total-price {
    text-decoration-line: underline;
    text-decoration-style: double;
    text-underline-offset: 0.3em;
}

.container-header {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.column {
    flex: 1;
    min-width: 50%;
}

.row {
}

.product-cards-container {
    display: flex;
    justify-content: center;
}

/*.product-card {*/
/*    width: 90%;*/
/*    border: solid 2px;*/
/*    border-radius: 25px;*/
/*    margin-bottom: 10px;*/
/*    padding: 5px;*/
/*    box-sizing: border-box;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    background-color: #fff;*/
/*    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.product-card:hover {*/
/*    box-shadow: 0 8px 6px rgba(0, 0, 0, 0.2);*/
/*    !*box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);*!*/
/*    !*transform: translateY(-5px);*!*/
/*}*/

/*.subproduct-card {*/
/*    position: relative;*/
/*    max-width: 40vw;*/
/*    margin-left: 50px;*/
/*    border: none;*/
/*    border-radius: 10px;*/
/*    display: flex;*/
/*    padding: 20px;*/
/*    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
/*}*/


.ban-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
}

.card-row {
    display: flex;
    width: 100%;
}

.card-column {
    flex: 1;
    padding: 5px;
    box-sizing: border-box;
    text-align: start;
    /*text-align: end;*/
}

.second-card-row {
    text-align: left;
}

/*CSS Loader*/
.lds-ring {
    display: block;
    position: relative;
    width: 80px;
    height: 80px;
    left: 36%;
    margin-top: 3em;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 6px solid rgb(35, 106, 242);
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: rgb(35, 106, 242) transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

.toggle-description {
    background-color: transparent;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
    text-decoration: none;
}

.toggle-description:hover {
    text-decoration: underline;
}


.product-card1 {
    width: 100%;
    font-family: Arial, sans-serif;
    border: 2px solid #ddd;
    border-radius: 25px;
    padding: 10px;
    padding-left: 20px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.product-card-container .product-card1:last-child {
    margin-bottom: 75px;
}


.subproduct-card-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.subproduct-card {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    width: 75%;
    border: 2px solid #ddd;
    border-radius: 25px;
    margin-left: 0px;
    padding: 10px;
    padding-left: 20px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.subproduct-index {
    font-weight: 600;
    margin-left: -5px;
}

.subproduct-barcode {
}

.quantity1 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-left: -5px; /* Small margin to align the text properly */
}

.product-image1 {
    float: left;
    width: 50px; /* Adjust size as needed */
    height: 50px; /* Adjust size as needed */
    margin-right: 10px; /* Space between the image and the description */
}

.product-details1 {
    font-size: 1.0rem;
    display: flex;
    align-items: center; /* Center-align the image and description vertically */
}

.product-description1 {
    font-size: 1.0rem;
    line-height: 1.2;
    flex-grow: 1; /* Allow the description to take up the remaining space */
}

.daily-summary-card {
    width: 100%;
    font-family: Arial, sans-serif;
    border: 2px solid #ddd;
    border-radius: 25px;
    padding: 10px;
    padding-left: 20px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.daily-summary-details {
    font-size: 1.0rem;
    display: flex;
    align-items: center; /* Center-align the image and description vertically */
}

.daily-summary-description {
    font-size: 1.0rem;
    line-height: 1.2;
    flex-grow: 1; /* Allow the description to take up the remaining space */
}

.daily-summary-card-container .daily-summary-card:last-child {
    margin-bottom: 75px;
}


.delivery-date {
    font-size: 1.1rem;
    font-weight: bold;
    margin-left: -5px; /* Small margin to align the text properly */
}

.delivery-note {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 10px;
}


@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.order-validate-btn {
    margin-top: 1em;
    float: right;
}

.contact-us {
    font-size: 1.2em;
    font-weight: 500;
    float: right;
    text-align: end;
    margin-bottom: 1em;
}

.order-number {
    margin-top: 10px;
    margin-bottom: -0.5rem;
}

.product-image {
    width: 150px;
}

.product-image:hover {
    cursor: pointer;
}

.product-image-expanded {
    max-width: 50vw;
    height: 80vh;
    object-fit: contain;
    object-position: center;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 50vw;
    text-align: center;
    /*border-radius: 25px;*/
    overflow: hidden;
    object-fit: contain;
}

.terminate-delivery-btn {
    position: relative;
    height: 50px;
    width: 50px;
    border-radius: 15px;
    background-color: rgba(192, 14, 14, 1);
    text-align: end;
    float: right;
}

.btn-complete-all {
    position: relative;
    height: 50px;
    width: 50px;
    padding-right: 14px;
    padding-top: 8px;
    margin-top: 10px;
    border-radius: 15px;
    background-color: #4CAF50;
    text-align: end;
    float: right;
    clear: right;
}


.complete-delivery-btn {
    width: 200px;
    height: 45px;
    border-radius: 25px;
    /* background-color: rgb(8, 202, 0);*/
    text-align: end;
    float: right;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cancel-btn {
    width: 135px;
    height: 45px;
    flex-shrink: 1;
    border-radius: 15px;
    background: #bc2222;
    white-space: nowrap;
}

.save-btn {
    width: 135px;
    height: 45px;
    flex-shrink: 1;
    border-radius: 15px;
    background: #4CAF50;
    white-space: nowrap;
}

.back-btn {
    width: 135px;
    height: 45px;
    flex-shrink: 1;
    border-radius: 15px;
    background: #2244BC;
    white-space: nowrap;
}

.arrived-btn {
    width: 200px;
    height: 45px;
    flex-shrink: 1;
    border-radius: 25px;
    background: #4BC38A;
    white-space: nowrap;
}

.notify-btn {
    height: 45px;
    flex-shrink: 1;
    border-radius: 25px;
    background: rgb(50 50 170 / 83%);
    white-space: nowrap;
}

.add-attachment-container {
    justify-self: center;
    position: relative;
}

.add-attachment-btn {
    position: relative;
    height: 40px;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow: hidden;
    display: inline-block;
    border-radius: 25px;
    background: var(--color-vz-blue);
    white-space: nowrap;
    color: white;
    place-content: center;
}

.add-attachment-btn:hover {
    cursor: pointer;
    color: white;
}

.add-attachment-btn:focus {
    color: white;
}

.add-attachment-btn .input-file {
    position: absolute; /* remove from normal flow */
    top: 0; /* align to parent top */
    left: 0; /* align to parent left */
    width: 100%; /* match parent width */
    height: 100%; /* match parent height */
    opacity: 0; /* hide the native input UI */
    cursor: pointer; /* show pointer over the button */
}

.icon-with-plus {
    position: relative;
}

/* draw the “+” at top‑right */
.icon-with-plus::after {
    content: '+';
    position: absolute;
    top: -6px;
    right: -7px;
    font-size: 10px;
    line-height: 1;
    pointer-events: none;
}

.file-cell {
    position: relative; /* establish containing block */
    padding-right: 2rem; /* space for the delete button */
    align-content: center;
}

.delete-attachment-btn {
    position: absolute; /* remove from flow */
    top: 0.25rem; /* adjust vertical offset */
    right: 0; /* adjust horizontal offset */
    background: none; /* transparent bg */
    border: none; /* no border */
    cursor: pointer; /* pointer on hover */
    padding: 0.25rem; /* clickable area */
}


.btn-group-custom {
    width: inherit;
    position: fixed;
    bottom: calc(10px + var(--bottom-offset)) !important;
    padding-bottom: var(--bottom-offset);
    display: inline-flex;
    padding-left: 10px;
    padding-right: 10px;
    justify-content: space-around;
    justify-self: center;
}

.label {
    font-size: 1.1rem;
    text-decoration: underline;
    font-weight: 600;
}

.field {
    font-size: 1.2rem;
}

.navigation-link {
    text-decoration: underline;
    color: #0071c1;
}

.navigation-link:hover {
    cursor: pointer;
}


.scan-btn-container {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.scan-btn {
    width: 200px;
    height: 50px;
    border-radius: 25px;
    flex-shrink: 0;
    background-color: rgba(26, 57, 165, 1);
    color: white;
    font-weight: 600;
    font-family: Roboto;
    font-size: 1.4rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

.scan-btn:hover {
    color: white;
    text-decoration: underline;
}


.page {
    height: 100vh;
    background-color: transparent;
}

.content {
    padding-top: 0;
}

/* Side Menu Overlay */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    animation: fadeIn 0.2s ease-out;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background-color: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1200;
    animation: slideIn 0.3s ease-out;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.side-menu-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--color-vz-blue, #00348e);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

.close-btn:hover {
    color: #333;
}

.side-menu-nav {
    padding: 16px 0;
}

.side-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.side-menu-nav a:hover {
    background-color: transparent;
}

.side-menu-nav a i {
    font-size: 20px;
    width: 24px;
    color: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Global adjustments */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

@media (min-width: 641px) {
    .blazored-modal {
        border-radius: 15px !important;
    }
}

/* Mobile - Vertical */
@media only screen and (min-width: 320px) and (max-width: 480px) and (orientation: portrait) {
    .blazored-modal {
        margin: 5px !important;
        border-radius: 15px !important;
    }

    .modal-content {
        border-radius: 15px !important;
    }

    .modal-close-badge {
        position: absolute;
        content: "\f00d";
        background-color: rgba(0, 0, 0, 0.9) !important;
        color: white !important;
        border-radius: 50%;
        top: -10px;
        right: -6px;
        padding: 2px 8px;
        border-style: none;
        z-index: 1200;
    }


    .login-header {
        width: 100vw;
    }

    .company-identifier-header {
        display: flex;
        align-self: start;
        margin-top: 20vh;
        margin-left: 0px;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .my-floating-cardV2 {
        box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
        border-radius: 15px;
        align-content: center;
        place-items: center;
        margin-top: 1rem;
    }

    .rounded-typeahead .blazored-typeahead__input {
        border-radius: 25px !important;
        font-size: 1.4rem !important;
        padding-top: 0px !important;
        padding-bottom: 0px !important;
        padding-left: 15px !important;
        padding-right: 0px !important;
        letter-spacing: 4px !important;
        max-width: 88% !important;
    }

    .order-container {
        min-width: 90vw;
    }

    .scanner-overlay {
        position: absolute;
        top: 35%;
        left: 10%;
        width: 80%;
        height: 30%;
        border: 4px dashed black;
        pointer-events: none;
    }

    .blazored-modal-delivery-attachments {
        width: auto;
        z-index: 105;
        justify-content: center;
    }


    .scanner-container {
        width: 100%;
        text-align: center;
        position: relative;
    }

    .video-player {
        width: 85vw;
    }

    /*  .product-image-expanded {
    width: 100%;
    height: auto;
  }*/
    .product-image-expanded {
        max-width: 80vw;
        height: 80vh;
        object-fit: contain;
        object-position: center;
    }

    .lightbox-modal-content {
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-width: 80vw;
        text-align: center;
        /* border-radius: 25px; */
        overflow: hidden;
        object-fit: contain;
    }

    .scanner-container {
        position: relative;
        width: 90vw; /* Same width as the video player */
    }

    .btn-group-custom {
        width: inherit;
        position: fixed;
        bottom: 1rem;
        left: 0;
        display: inline-flex;
        flex-direction: row;
        padding-left: 10px;
        padding-right: 10px;
        margin-left: auto;
        margin-right: auto;
        right: 0;
        justify-content: space-around;
        transition: bottom 0.2s ease;
        justify-self: center;
    }

    .scan-btn-container {
        width: 100%;
        text-align: center;
    }

    .scan-btn {
        width: 200px;
        height: 50px;
        border-radius: 25px;
        flex-shrink: 0;
        background-color: rgba(26, 57, 165, 1);
        color: white;
        font-weight: 600;
        font-family: Roboto;
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .scan-btn:hover {
        color: white;
        text-decoration: underline;
    }

    /* Add your styles for mobile vertical devices here */
}

/* Mobile - Horizontal */
@media only screen and (min-width: 481px) and (max-width: 1100px) and (orientation: landscape) {
    .content {
        max-width: 80vw;
    }

    .modal-content {
        border-radius: 15px !important;
    }

    .modal-close-badge {
        position: absolute;
        content: "\f00d";
        background-color: rgba(0, 0, 0, 0.9) !important;
        color: white !important;
        border-radius: 50%;
        top: -10px;
        right: -10px;
        padding: 2px 8px;
        border-style: none;
        z-index: 1200;
    }

    .scanner-container {
        width: 100%;
        text-align: center;
        position: relative;
    }

    .video-player {
        width: 50vw;
    }

    .scanner-overlay {
        position: absolute;
        top: 30%;
        left: 10%;
        width: 80%;
        height: 40%;
        border: 4px dashed black;
        pointer-events: none;
    }

    .cross-horizontal,
    .cross-vertical {
        position: absolute;
        background-color: black; /* Style as you like */
        width: 15%; /* Adjust as needed */
        height: 2px; /* Adjust as needed */
    }

    .cross-horizontal {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .cross-vertical {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .loading-progress {
        position: relative;
        display: block;
        width: 8rem;
        height: 8rem;
        margin: 1vh auto 1rem auto;
    }

    .loading-progress-text {
        position: absolute;
        text-align: center;
        font-weight: bold;
        inset: calc(1vh + 3.25rem) 0 auto 0.2rem;
    }
    body {
        display: grid;
        place-items: center;
        min-height: 100vh;
    }

    .product-image-expanded {
        max-width: 80vw;
        height: 80vh;
        object-fit: contain;
        object-position: center;
    }

    .lightbox-modal-content {
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-width: 80vw;
        text-align: center;
        /* border-radius: 25px; */
        overflow: hidden;
        object-fit: contain;
    }

    .btn-group-custom {
        width: inherit;
        margin-bottom: 10px;
        padding-left: 10px;
        display: flex;
        padding-right: 10px;
        flex-direction: row;
        align-content: flex-end;
        justify-content: space-around;
        justify-self: center;
    }
}

/* Tablet - Vertical */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /*  .content {
    max-width: 35vw;
  }*/
    .modal-content {
        border-radius: 15px !important;
    }

    .btn-group-custom {
        width: inherit;
        margin-bottom: 10px;
        padding-left: 10px;
        display: flex;
        padding-right: 10px;
        flex-direction: row;
        align-content: flex-end;
        justify-content: space-around;
        position: sticky;
        margin-top: 50%;
        justify-self: center;
        width: 100%;
    }

    .scanner-container {
        width: 100%;
        text-align: center;
        position: relative;
    }

    .video-player {
        width: 85vw;
    }
}

/* Tablet - Horizontal */
@media only screen and (min-width: 1025px) and (max-width: 1280px) and (orientation: landscape) {
    .content {
        max-width: 60vw;
    }

    .modal-content {
        border-radius: 15px !important;
    }

    .loading-progress {
        position: relative;
        display: block;
        width: 8rem;
        height: 8rem;
        margin: 1vh auto 1rem auto;
    }

    .loading-progress-text {
        position: absolute;
        text-align: center;
        font-weight: bold;
        inset: calc(1vh + 3.25rem) 0 auto 0.2rem;
    }

    body {
        display: grid;
        place-items: center;
        min-height: 100vh;
    }

    .btn-group-custom {
        width: inherit;
        margin-bottom: 10px;
        padding-left: 10px;
        display: flex;
        padding-right: 10px;
        flex-direction: row;
        align-content: flex-end;
        justify-content: space-around;
        position: sticky;
        margin-top: 50%;
        justify-self: center;
    }

    .scanner-container {
        width: 100%;
        text-align: center;
        position: relative;
    }

    .video-player {
        width: 50vw;
    }
}

/* Desktops */
@media only screen and (min-width: 1281px) {
    .full-page-modal-container {
        width: 40vw;
        max-width: 40vw;
        place-self: center;
    }
}

/* Fix for when iOS toolbar is minimized */
@media screen and (max-width: 768px) {
    .tab-content-container {
        /* Use dvh units for dynamic viewport height */
        /*min-height: calc(100dvh - var(--header-height));*/
        transition: height 0.3s ease;
    }
}



/* Optional: Add cursor pointer for desktop users */
@media (pointer: fine) {
    .current-sort-value {
        cursor: pointer;
    }
}
