/**
 * ============================================================================
 * 🎨 CONTAINER WORKFLOW STYLES
 * ============================================================================
 * Issue #973: Container Storage & Guarantee Workflow
 *
 * Comprehensive styling for the container storage and guarantee workflow.
 * Includes responsive design, animations, and component-specific styles.
 * ============================================================================
 */

/* ========== ROOT VARIABLES ========== */
:root {
    --termont-blue: #0056b3;
    --termont-dark-blue: #003d82;
    --termont-light-blue: #4a90e2;
    --termont-orange: #fd7e14;
    --termont-green: #28a745;
    --termont-red: #dc3545;
    --termont-yellow: #ffc107;
    --termont-gray: #6c757d;
    --termont-light-gray: #f8f9fa;
    --termont-white: #ffffff;
    --transition-speed: 0.3s;
    --border-radius: 0.5rem;
    --border-radius-sm: 0.25rem;
    --border-radius-lg: 1rem;
    --box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    --box-shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --box-shadow-active: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--termont-light-gray);
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    position: relative;
    min-height: 100vh;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    color: var(--termont-dark-blue);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

/* ========== NAVIGATION ENHANCEMENTS ========== */
.navbar {
    transition: all var(--transition-speed);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    transition: all var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--termont-orange);
    transition: all var(--transition-speed);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========== ACCORDION ENHANCEMENTS ========== */
.accordion {
    border-radius: var(--border-radius);
    overflow: visible;
    background: transparent;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
    transition: all var(--transition-speed);
    background: white;
    box-shadow: var(--box-shadow);
}

.accordion-item:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.accordion-item.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.accordion-button {
    background: white;
    color: var(--termont-dark-blue);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem;
    border: none;
    position: relative;
    transition: all var(--transition-speed);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--termont-blue), var(--termont-light-blue));
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0,86,179,0.25);
    border-color: var(--termont-blue);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230056b3'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 2rem;
    background: white;
}

/* ========== FORM STYLES ========== */
.form-label {
    font-weight: 600;
    color: var(--termont-dark-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label .required {
    color: var(--termont-red);
    font-weight: 700;
}

.form-label .help-icon {
    color: var(--termont-gray);
    cursor: help;
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

.form-label .help-icon:hover {
    color: var(--termont-orange);
}

/* High-specificity selectors to override WordPress theme CSS (logistik theme) */
.container-workflow-main .form-control,
.container-workflow-main .form-select,
.container-workflow-main input[type="date"],
.container-workflow-main input[type="text"],
.container-workflow-main input[type="email"],
.container-workflow-main input[type="tel"],
.container-workflow-main input[type="number"],
.container-workflow-main textarea,
.container-workflow-main select {
    /* Override theme's aggressive styling (height: 55px, padding: 0 25px, border-radius: 0, border: #000) */
    border: 2px solid #e9ecef !important;        /* Override theme's #000 black */
    border-radius: var(--border-radius) !important;  /* Override theme's 0 */
    padding: 0.75rem !important;                  /* Override theme's 0 25px */
    height: auto !important;                      /* Override theme's 55px */
    transition: all var(--transition-speed);
    background-color: white;
}

/* ========== CHECKBOX OVERRIDE (MILESTONE-13) ========== */
/* Theme (logistik/assets/sass/reset/_input.scss) hides all checkboxes globally.
 * This override restores visibility for checkboxes within our plugin container. */

.container-workflow-main input[type="checkbox"] {
    visibility: visible !important;      /* Override theme's hidden */
    opacity: 1 !important;               /* Override theme's 0 */
    display: inline-block !important;    /* Override theme's none */
    width: 1rem !important;              /* Override theme's 0 - Bootstrap 5 default */
    height: 1rem !important;             /* Override theme's 0 - Bootstrap 5 default */
    margin-top: 0.25rem !important;      /* Bootstrap 5 default alignment */
    margin-right: 0.5rem !important;     /* Spacing between checkbox and label */
    vertical-align: top !important;      /* Bootstrap 5 default */
    background-color: #fff !important;   /* White background */
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    border: 1px solid #dee2e6 !important; /* Bootstrap 5 default border */
    appearance: auto !important;          /* Use browser's default checkbox appearance */
    -webkit-appearance: checkbox !important; /* Safari/Chrome */
    -moz-appearance: checkbox !important;    /* Firefox */
    cursor: pointer !important;
}

/* Checkbox Focus State */
.container-workflow-main input[type="checkbox"]:focus {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Checkbox Checked State */
.container-workflow-main input[type="checkbox"]:checked {
    background-color: #0d6efd !important; /* Bootstrap 5 primary blue */
    border-color: #0d6efd !important;
}

/* Checkbox Disabled State */
.container-workflow-main input[type="checkbox"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ========== FORM-CHECK LAYOUT OVERRIDE (MILESTONE-13) ========== */
/* Bootstrap 5's .form-check uses padding-left + float which creates:
 * 1. Checkbox pushed too far left
 * 2. Large clickable zone from full-width label
 * This override uses flexbox for proper alignment and content-width label */

.container-workflow-main .form-check {
    padding-left: 0 !important;        /* Remove Bootstrap's 1.5em padding */
    display: inline-flex !important;   /* Flex layout, inline to not take full width */
    align-items: center !important;    /* Vertically center checkbox and label */
    gap: 0.5rem !important;            /* Space between checkbox and label */
    margin-bottom: 0.5rem !important;  /* Spacing below the checkbox row */
}

.container-workflow-main .form-check-input {
    float: none !important;            /* Remove Bootstrap's float: left */
    margin-left: 0 !important;         /* Remove Bootstrap's -1.5em margin */
    margin-top: 0 !important;          /* Remove Bootstrap's top margin */
    margin-right: 0 !important;        /* Remove any right margin */
    position: static !important;       /* Reset positioning (no absolute) */
    flex-shrink: 0 !important;         /* Prevent checkbox from shrinking */
}

.container-workflow-main .form-check-label {
    display: inline !important;        /* Inline - only as wide as content */
    width: auto !important;            /* Not full width */
    cursor: pointer !important;        /* Show pointer on hover */
    margin-bottom: 0 !important;       /* Remove bottom margin */
    padding-left: 0 !important;        /* Remove any left padding */
}

/* ========== TEXTAREA HEIGHT OVERRIDE (MILESTONE-10) ========== */
/* Issue #973 - Textareas should auto-resize based on content
 * REMOVED fixed height - let content and JavaScript control height */

.container-workflow-main textarea.form-control {
    height: auto !important;       /* Auto-height based on content */
    min-height: 60px !important;   /* Prevent collapse */
    max-height: 200px !important;  /* Prevent excessive expansion */
    resize: vertical !important;   /* Allow user to resize vertically */
    overflow-y: auto !important;   /* Scroll if content exceeds height */
}

/* Container numbers input - resizable for multiple container entry */
.container-workflow-main #containerNumbers {
    /* NUCLEAR FIX: Remove ALL height constraints to enable manual resize */
    height: auto !important;          /* Start with auto height */
    min-height: 55px !important;      /* Minimum height */
    max-height: none !important;      /* NO MAXIMUM - let user control */
    resize: vertical !important;      /* Enable manual drag resize */
    overflow-y: auto !important;      /* Add scrollbar when needed */

    /* Modern browsers: auto-grow with content (Chrome 123+, Safari 18.2+) */
    field-sizing: content;
    -webkit-field-sizing: content;

    /* Prevent inline styles from blocking resize */
    box-sizing: border-box !important;
}

/* Hover State */
.container-workflow-main .form-control:hover,
.container-workflow-main .form-select:hover,
.container-workflow-main input:hover,
.container-workflow-main textarea:hover,
.container-workflow-main select:hover {
    border-color: var(--termont-light-blue) !important;
}

/* Focus State */
.container-workflow-main .form-control:focus,
.container-workflow-main .form-select:focus,
.container-workflow-main input:focus,
.container-workflow-main textarea:focus,
.container-workflow-main select:focus {
    border-color: var(--termont-blue) !important;
    box-shadow: 0 0 0 0.25rem rgba(0,86,179,0.1);
    background-color: white;
    outline: none;
}

/* Validation States */
.container-workflow-main .form-control.is-valid,
.container-workflow-main input.is-valid,
.container-workflow-main textarea.is-valid,
.container-workflow-main select.is-valid {
    border-color: var(--termont-green) !important;
    background-image: none;
}

.container-workflow-main .form-control.is-valid:focus,
.container-workflow-main input.is-valid:focus,
.container-workflow-main textarea.is-valid:focus {
    box-shadow: 0 0 0 0.25rem rgba(40,167,69,0.1);
}

.container-workflow-main .form-control.is-invalid,
.container-workflow-main input.is-invalid,
.container-workflow-main textarea.is-invalid,
.container-workflow-main select.is-invalid {
    border-color: var(--termont-red) !important;
    background-image: none;
}

.container-workflow-main .form-control.is-invalid:focus,
.container-workflow-main input.is-invalid:focus,
.container-workflow-main textarea.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220,53,69,0.1);
}

/* Input Group Styling */
.container-workflow-main .input-group-text {
    background: var(--termont-light-gray);
    border: 2px solid #e9ecef !important;
    border-right: none;
    color: var(--termont-gray);
}

.container-workflow-main .input-group .form-control:focus ~ .input-group-text {
    border-color: var(--termont-blue) !important;
}

/* ========== BADGE STYLES (Override WordPress Theme) ========== */
/* WordPress theme (logistik) forces badges to be circular, absolute positioned
   This section overrides theme CSS to implement Metronic 8 badge system */

/* Base Badge - Override theme's absolute positioning and circular shape */
.container-workflow-main .badge {
    position: relative !important;          /* Override theme's absolute */
    display: inline-block !important;       /* Override theme */
    vertical-align: baseline !important;
    padding: 0.35em 0.65em !important;      /* Bootstrap 5 default */
    font-size: 0.75em !important;           /* Bootstrap 5 default */
    font-weight: 600 !important;            /* Metronic style */
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    border-radius: 0.375rem !important;     /* Rounded corners, NOT circle */
    transition: all 0.15s ease-in-out !important;
    top: auto !important;                   /* Override theme's top: 8px */
    right: auto !important;                 /* Override theme's right: 8px */
    width: auto !important;                 /* Override theme's fit-content */
}

/* Color Variants - Metronic 8 Design System */

/* Light */
.container-workflow-main .badge-light,
.container-workflow-main .badge.bg-light {
    background-color: #f5f8fa !important;
    color: #7e8299 !important;
}

/* Primary (Termont Blue) */
.container-workflow-main .badge-primary,
.container-workflow-main .badge.bg-primary {
    background-color: var(--termont-blue) !important;  /* #0056b3 */
    color: #ffffff !important;
}

/* Secondary */
.container-workflow-main .badge-secondary,
.container-workflow-main .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

/* Success */
.container-workflow-main .badge-success,
.container-workflow-main .badge.bg-success {
    background-color: var(--termont-green) !important;  /* #28a745 */
    color: #ffffff !important;
}

/* Info */
.container-workflow-main .badge-info,
.container-workflow-main .badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000000 !important;
}

/* Warning */
.container-workflow-main .badge-warning,
.container-workflow-main .badge.bg-warning {
    background-color: var(--termont-orange) !important;  /* #fd7e14 */
    color: #000000 !important;
}

/* Danger */
.container-workflow-main .badge-danger,
.container-workflow-main .badge.bg-danger {
    background-color: var(--termont-red) !important;  /* #dc3545 */
    color: #ffffff !important;
}

/* Dark */
.container-workflow-main .badge-dark,
.container-workflow-main .badge.bg-dark {
    background-color: #212529 !important;
    color: #ffffff !important;
}

/* ========== BADGE VARIANTS ========== */

/* Circle Badges (Pill/Notification Style) */
.container-workflow-main .badge-circle {
    border-radius: 50% !important;          /* Perfect circle */
    width: 1.75rem !important;              /* Fixed size for perfect circle */
    height: 1.75rem !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
}

/* Outline Badges (Border-only style) */
.container-workflow-main .badge-outline {
    background-color: transparent !important;
    border: 1.5px solid currentColor !important;
    padding: 0.25em 0.55em !important;
}

/* Outline Color Variants */
.container-workflow-main .badge-outline.badge-light {
    color: #7e8299 !important;
    border-color: #7e8299 !important;
}

.container-workflow-main .badge-outline.badge-primary {
    color: var(--termont-blue) !important;
    border-color: var(--termont-blue) !important;
}

.container-workflow-main .badge-outline.badge-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
}

.container-workflow-main .badge-outline.badge-success {
    color: var(--termont-green) !important;
    border-color: var(--termont-green) !important;
}

.container-workflow-main .badge-outline.badge-info {
    color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
}

.container-workflow-main .badge-outline.badge-warning {
    color: var(--termont-orange) !important;
    border-color: var(--termont-orange) !important;
}

.container-workflow-main .badge-outline.badge-danger {
    color: var(--termont-red) !important;
    border-color: var(--termont-red) !important;
}

.container-workflow-main .badge-outline.badge-dark {
    color: #212529 !important;
    border-color: #212529 !important;
}

/* ========== BADGE HOVER STATES ========== */

.container-workflow-main .badge:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container-workflow-main .badge-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ========== ACCORDION BUTTON BADGES ========== */
/* Special styling for badges inside accordion buttons */

.container-workflow-main .accordion-button .badge {
    margin-left: auto !important;           /* Push badge to right */
    font-size: 0.7rem !important;
    padding: 0.25em 0.5em !important;
}

/* ========== INFO CARDS ========== */
.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--termont-orange);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow-hover);
}

.info-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.info-card-title {
    font-weight: 600;
    color: var(--termont-dark-blue);
    margin: 0;
}

.info-card-icon {
    color: var(--termont-orange);
    font-size: 1.5rem;
}

/* ========== STORAGE DETAILS GRID ========== */
.storage-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.storage-detail-card {
    background: linear-gradient(135deg, var(--termont-light-gray), white);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    text-align: center;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.storage-detail-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--termont-orange);
}

.storage-detail-icon {
    font-size: 2rem;
    color: var(--termont-orange);
    margin-bottom: 0.75rem;
}

.storage-detail-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--termont-dark-blue);
    margin-bottom: 0.25rem;
}

.storage-detail-label {
    color: var(--termont-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== PAYMENT METHODS ========== */
.payment-method-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method {
    padding: 1.5rem;
    border: 2px solid var(--termont-light-gray);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    background: white;
}

.payment-method:hover {
    border-color: var(--termont-orange);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.payment-method.selected {
    border-color: var(--termont-blue);
    background: linear-gradient(135deg, rgba(0,86,179,0.05), rgba(0,86,179,0.1));
}

.payment-method.selected::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: var(--termont-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* ========== CREDIT CARD PREVIEW ========== */
.credit-card-preview {
    background: linear-gradient(135deg, var(--termont-dark-blue), var(--termont-blue));
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    min-height: 200px;
    box-shadow: var(--box-shadow-hover);
    overflow: hidden;
}

.credit-card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

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

.card-chip {
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 0.125rem;
    transform: translate(-50%, -50%);
}

/* ========== SIGNATURE PAD ========== */
.signature-pad-container {
    background: white;
    border: 2px solid var(--termont-light-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 2rem 0;
}

#signaturePad {
    border: 2px dashed var(--termont-gray);
    border-radius: var(--border-radius);
    cursor: crosshair;
    display: block;
    width: 100%;
    touch-action: none;
    background: white;
    transition: border-color var(--transition-speed);
}

#signaturePad:hover {
    border-color: var(--termont-orange);
}

#signaturePad.signing {
    border-color: var(--termont-blue);
    border-style: solid;
    background: linear-gradient(to bottom, white 95%, #f8f9fa 100%);
}

/* ========== BUTTONS ========== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--termont-blue), var(--termont-dark-blue));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--termont-dark-blue), var(--termont-blue));
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.btn-success {
    background: linear-gradient(135deg, var(--termont-green), #1e7e34);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--termont-orange), #e56a00);
    color: white;
}

.btn-outline-primary {
    background: white;
    color: var(--termont-blue);
    border: 2px solid var(--termont-blue);
}

.btn-outline-primary:hover {
    background: var(--termont-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ========== ALERTS ========== */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInDown 0.3s ease;
}

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

.alert-icon {
    font-size: 1.5rem;
}

/* ========== MODALS ========== */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow-hover);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--termont-blue), var(--termont-dark-blue));
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border: none;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 2px solid var(--termont-light-gray);
    padding: 1.5rem;
}

/* ========== FLOATING HELP BUTTON ========== */
.floating-help {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.help-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--termont-orange), #e56a00);
    color: white;
    border: none;
    box-shadow: var(--box-shadow-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    animation: pulse 2s infinite;
}

.help-button:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(253,126,20,0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(253,126,20,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(253,126,20,0);
    }
}

/* ========== LOADING STATES ========== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========== TOOLTIPS ========== */
.tooltip-inner {
    background: var(--termont-dark-blue);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.75rem;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--termont-dark-blue);
}

/* ========== CONTAINER WIDTH OVERRIDE ========== */
/*
 * Override WordPress theme's Bootstrap container to match header layout.
 * Header uses: .header-layout3 .sticky-wrapper { max-width: 1520px; margin: 0px auto 0 auto }
 * Scoped selector (.container-workflow-main.container) provides higher specificity.
 */
.container-workflow-main.container {
    max-width: 1520px;
    margin: 0 auto;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .container-workflow-main.container {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero-section {
        padding: 3rem 0;
    }

    .storage-details-grid {
        grid-template-columns: 1fr;
    }

    .payment-method-selector {
        grid-template-columns: 1fr;
    }

    .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }

    .floating-help {
        bottom: 1rem;
        right: 1rem;
    }

    .help-button {
        width: 50px;
        height: 50px;
    }

    .credit-card-preview {
        padding: 1.5rem;
    }

    #signaturePad {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .info-card {
        padding: 1rem;
    }

    .accordion-body {
        padding: 1.5rem;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    body {
        background: white;
    }

    .navbar,
    .floating-help,
    .hero-section,
    .workflow-progress,
    .btn:not(.d-print-block),
    .signature-controls {
        display: none !important;
    }

    .accordion-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .accordion-button {
        background: white !important;
        color: black !important;
    }

    .accordion-collapse {
        display: block !important;
    }

    .info-card {
        border: 1px solid #dee2e6;
        box-shadow: none;
    }
}

/* ========== ANIMATIONS ========== */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rotate-in {
    animation: rotateIn 0.5s ease;
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
    }
    to {
        transform: rotate(0) scale(1);
    }
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--termont-light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--termont-gray);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--termont-dark-blue);
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

*:focus-visible {
    outline: 3px solid var(--termont-orange);
    outline-offset: 2px;
}

/* ========== UTILITY CLASSES ========== */
.text-termont-blue { color: var(--termont-blue) !important; }
.bg-termont-blue { background-color: var(--termont-blue) !important; }
.text-termont-orange { color: var(--termont-orange) !important; }
.bg-termont-orange { background-color: var(--termont-orange) !important; }

.shadow-sm { box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important; }
.shadow-md { box-shadow: var(--box-shadow) !important; }
.shadow-lg { box-shadow: var(--box-shadow-hover) !important; }

.transition-all {
    transition: all var(--transition-speed) !important;
}

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

.hover-lift:hover {
    transform: translateY(-5px);
}
/* ===================================================================
 * PROGRESSIVE STEP UNLOCKING - Issue #2034
 * Workflow enhancement for locked step alerts and progressive unlocking
 * =================================================================== */

/* Step Locked Visual State */
.accordion-button.step-locked {
    opacity: 0.6;
    cursor: not-allowed !important;
    background-color: #f8f9fa;
    pointer-events: auto; /* Enable click to show alert */
}

.accordion-button.step-locked:hover {
    background-color: #f8f9fa;
}

.accordion-button.step-locked .accordion-button-badge {
    background-color: #6c757d !important;
}

/* Step Unlocked/Ready */
.accordion-button.step-ready {
    cursor: pointer;
}

.accordion-button.step-ready .accordion-button-badge {
    background-color: #0d6efd !important;
}

/* Progress Step Clickable States */
.progress-step {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.progress-step:hover {
    transform: scale(1.05);
}

.progress-step.pending {
    cursor: not-allowed;
    opacity: 0.6;
}

.progress-step.pending:hover {
    transform: none;
}

.progress-step.completed,
.progress-step.active {
    cursor: pointer;
}

.progress-step.completed:hover,
.progress-step.active:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* SweetAlert Custom Styling for Step Locked Alerts */
.step-locked-alert {
    text-align: left;
}

.step-locked-alert .alert-info {
    background-color: #e7f3ff;
    border-left: 4px solid #0056b3;
    padding: 0.75rem;
    margin: 0.5rem 0;
}

.step-locked-alert p {
    margin-bottom: 0.5rem;
}

.step-locked-alert strong {
    color: #0056b3;
}
/* ========================================================================== */
/* ADMIN PANEL - MILESTONES DATATABLE STYLING (Issue #2034 Step 4)          */
/* ========================================================================== */

/* Accordion Container */
#adminAccordion {
    margin-top: 1rem;
}

/* Accordion Buttons */
#adminAccordion .accordion-button {
    font-weight: 600;
    font-size: 1.1em;
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    color: #212529;
}

#adminAccordion .accordion-button:not(.collapsed) {
    background-color: #0d6efd;
    color: white;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

#adminAccordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

#adminAccordion .accordion-button::after {
    margin-left: auto;
}

/* Accordion Items */
#adminAccordion .accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

#adminAccordion .accordion-body {
    padding: 1.5rem;
}

/* Filter Controls Row */
#collapseMilestones .row.mb-3.bg-light {
    background-color: #f8f9fa !important;
    padding: 1rem !important;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem !important;
    border: 1px solid #dee2e6;
}

#collapseMilestones .form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
}

#collapseMilestones .form-select-sm,
#collapseMilestones .form-check-input {
    border-color: #ced4da;
}

#collapseMilestones .form-select-sm:focus,
#collapseMilestones .form-check-input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* DataTable Styling */
#milestonesTable {
    font-size: 0.9rem;
    width: 100% !important;
}

#milestonesTable thead th {
    background-color: #343a40;
    color: white;
    font-weight: 600;
    border-color: #454d55;
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

#milestonesTable tbody tr {
    transition: background-color 0.15s ease-in-out;
}

#milestonesTable tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
    cursor: pointer;
}

#milestonesTable tbody td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
    border-color: #dee2e6;
}

/* Progress Bars in DataTable */
#milestonesTable .progress {
    height: 20px;
    border-radius: 4px;
    background-color: #e9ecef;
}

#milestonesTable .progress-bar {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
}

/* Badges in DataTable */
#milestonesTable .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 600;
}

/* DataTable Controls (Search, Pagination, etc.) */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.dataTables_wrapper .dataTables_filter label {
    font-weight: 600;
    color: #495057;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 0.5rem;
}

/* DataTable Pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.375rem 0.75rem;
    margin-left: 2px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    color: #0d6efd;
    background-color: white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0a58ca;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #6c757d;
    cursor: not-allowed;
    background-color: white;
    border-color: #dee2e6;
}

/* DataTable Info Text */
.dataTables_wrapper .dataTables_info {
    padding-top: 0.85em;
    color: #6c757d;
    font-size: 0.875rem;
}

/* DataTable Empty State */
.dataTables_wrapper .dataTables_empty {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #adminAccordion .accordion-button {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    #collapseMilestones .row.mb-3 {
        padding: 0.75rem !important;
    }

    #collapseMilestones .col-md-3 {
        margin-bottom: 0.75rem;
    }

    #milestonesTable {
        font-size: 0.8rem;
    }

    #milestonesTable thead th,
    #milestonesTable tbody td {
        padding: 0.5rem 0.25rem;
    }
}

/* Smooth transitions */
#adminAccordion .accordion-collapse {
    transition: height 0.35s ease;
}

#adminAccordion .accordion-button {
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

/* ============================================================================
   EASTER EGG DOTS - HIDDEN DEVELOPER TOOLS ACCESS
   ============================================================================
   Issue #2034 - Step-07 Enhancement: Easter Egg Developer Tools Links
   Hidden dots at end of workflow banner text linking to dev tools
   ============================================================================ */

.wcp-easter-egg-dot {
    color: inherit;
    text-decoration: none;
    opacity: 0.3; /* Very subtle - 30% opacity */
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: inherit;
    line-height: inherit;
}

.wcp-easter-egg-dot:hover {
    opacity: 1; /* Full opacity on hover */
    color: #007bff; /* Bootstrap primary blue */
    text-decoration: none;
}

.wcp-easter-egg-dot:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    opacity: 1;
}

/* Active state (when parameter is already set) */
.wcp-easter-egg-dot.active {
    opacity: 0.6; /* More visible when active */
    color: #28a745; /* Bootstrap success green */
}

/* ========== ACCORDION TOGGLE LINKS ========== */
/* Bootstrap 5 collapse toggle styling with chevron rotation */

.container-workflow-main .accordion-toggle-link {
    display: inline-block;
    cursor: pointer;
    transition: color 0.3s ease;
}

.container-workflow-main .accordion-toggle-link:hover {
    color: var(--termont-blue);
}

.container-workflow-main .accordion-toggle-link .chevron-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Bootstrap 5 uses .collapsed class, not aria-expanded attribute */
.container-workflow-main .accordion-toggle-link:not(.collapsed) .chevron-icon {
    transform: rotate(-180deg);
}

.container-workflow-main .accordion-toggle-link.collapsed .chevron-icon {
    transform: rotate(0deg);
}

/* ========== MILESTONE-13: AI AGENT MODE STYLING ========== */

/* AI Agent Mode Checkbox */
.form-check-input#aiAgentModeCheckbox {
    cursor: pointer;
}

.form-check-label[for="aiAgentModeCheckbox"] {
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
}

.form-check-label[for="aiAgentModeCheckbox"] .fa-robot {
    font-size: 1.1rem;
    margin-right: 0.25rem;
}

/* AI Agent Active Textarea */
.form-control.ai-agent-active {
    border-color: #28a745 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background-image: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
}

.form-control.ai-agent-active:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.3rem rgba(40, 167, 69, 0.35);
}

/* AI Agent Modal Styling */
#aiAgentConfirmModal .modal-header {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    color: white !important;           /* Force white text color */
}

#aiAgentConfirmModal .modal-title {
    color: white !important;           /* Ensure title is white */
}

#aiAgentConfirmModal .modal-body {
    font-size: 15px;
    line-height: 1.6;
}

#aiAgentConfirmModal .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

#aiAgentConfirmModal .alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
}

#aiAgentConfirmModal .alert-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Robot Icon Animation */
@keyframes pulse-robot {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.input-group-text .fa-robot {
    animation: pulse-robot 2s ease-in-out infinite;
}

/* AI Agent Success Badge */
.ai-parse-success-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* AI Mode Loading State */
textarea.form-control[disabled].ai-agent-active {
    opacity: 0.6;
    cursor: wait;
}

/* ========== MILESTONE-15: NOTIFICATION PREFERENCES ========== */

/* Notification checkbox visibility */
.container-workflow-main #receiveNotifications {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
    width: 1rem !important;
    height: 1rem !important;
}

/* Email input slide-down animation */
.container-workflow-main #notificationEmailInput {
    animation: slideDown 0.3s ease-out;
}

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

/* Modal card hover effects */
.hover-shadow {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.hover-shadow-light {
    transition: all 0.3s ease;
}

.hover-shadow-light:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1) !important;
}

/* ========== MILESTONE-18: UI REORGANIZATION ========== */
/* By: Olivier RAVEAU (Oliv.Ai 🥷) - 2025-12-13 */

/* Additional Options in Step 3 - Card Style */
#additionalOptionsCard {
    border-left: 3px solid var(--termont-blue);
}

#additionalOptionsCard .card-header {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#additionalOptionsCard .card-header:hover {
    background-color: var(--termont-light-blue) !important;
}

/* Input group icons styling */
#additionalOptionsCard .input-group-text {
    background-color: rgba(0, 86, 179, 0.05);
    border-color: #dee2e6;
    color: var(--termont-blue);
}

/* Notification Preferences - Integrated Style */
#notificationPreferencesSection {
    background-color: rgba(0, 86, 179, 0.02);
    padding: 1rem;
    border-radius: 0.375rem;
}

#notificationPreferencesSection .border-top {
    border-color: rgba(0, 86, 179, 0.2) !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    #notificationPreferencesSection {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Stack Additional Options inputs on mobile */
    #additionalOptionsCard .row > div {
        margin-bottom: 1rem !important;
    }
}

/* ========== MILESTONE-17: LOGISTEC IDEMPOTENCY TESTER ========== */
/* By: Olivier RAVEAU (Oliv.Ai 🥷) - 2025-12-13 */

/* Logistec section header */
#logistecIdempotencySection .accordion-toggle-link {
    display: inline-block;
    cursor: pointer;
    transition: color 0.3s ease;
}

#logistecIdempotencySection .accordion-toggle-link:hover {
    color: var(--bs-info) !important;
}

#logistecIdempotencySection .accordion-toggle-link:hover .chevron-icon {
    color: var(--bs-info);
}

/* Logistec badge styling */
#logistecIdempotencySection .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    vertical-align: middle;
}

/* Logistec data cards */
#logistecIdempotencyResults .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease;
}

#logistecIdempotencyResults .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Code blocks styling */
#logistecIdempotencyResults .bg-dark pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#logistecIdempotencyResults .bg-dark code {
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

/* Tab navigation */
#logistecIdempotencyResults .nav-tabs .nav-link {
    color: #6c757d;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

#logistecIdempotencyResults .nav-tabs .nav-link:hover {
    color: var(--bs-info);
    border-color: #dee2e6 #dee2e6 #fff;
}

#logistecIdempotencyResults .nav-tabs .nav-link.active {
    color: var(--bs-info);
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Field comparison table */
#logistecIdempotencyResults .table code {
    background-color: #f8f9fa;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

#logistecIdempotencyResults .table .badge {
    font-size: 0.75rem;
}

/* Iframe modal styling */
#logistecIframeModal .modal-header {
    padding: 1.5rem;
}

#logistecIframeModal .modal-body {
    padding: 0;
    overflow: hidden;
}

#logistecIframeModal #logistecIframe {
    border: none;
    width: 100%;
    height: calc(100vh - 140px);
}

/* Alert messages */
#logistecIdempotency .alert {
    border-radius: 0.375rem;
}

#logistecIdempotency .alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.2);
    color: #0c5460;
}

#logistecIdempotency .alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
}

#logistecIdempotency .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
}

/* Loading spinner */
#logistecIdempotencyLoading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #logistecIdempotencyResults .card-header {
        padding: 1rem;
    }

    #logistecIdempotencyResults .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #logistecIdempotencyResults .nav-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.875rem;
    }

    #logistecIdempotencyResults .table {
        font-size: 0.875rem;
    }
}
