:root {
    /* Color Scheme */
    --primary: #0a2342;
    /* Deep Navy */
    --secondary: #2ca58d;
    /* Teal */
    --accent: #84bc9c;
    /* Sage Green */
    --warning: #f2a65a;
    /* Amber */
    --danger: #c75146;
    /* Rust Red */
    --light: #f8f9fa;
    --dark: #212529;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-light: #e9ecef;

    /* Typography */
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
    font-family: var(--font-family-sans-serif);
    background-color: var(--light);
    color: var(--dark);
    min-height: 100vh;
}

/* Navbar styling */
.navbar {
    background-color: var(--primary);
    color: var(--white);
}

.navbar-brand {
    color: var(--white);
    font-weight: bold;
}

/* Button styling */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Card styling */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    width: 100%;
}

.card-header {
    background-color: var(--primary);
    color: var(--white);
    font-weight: bold;
}

/* Form styling */
.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(44, 165, 141, 0.25);
}

/* Login page specific */
.login-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    color: var(--primary);
    font-weight: bold;
}

/* Modal styling */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: var(--primary);
    color: var(--white);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Dashboard styling */
.dashboard-card {
    transition: transform 0.2s;
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Utility classes */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

/* Ensure both sections have equal constrained width */
.equal-width-section {
    width: 100%;
    max-width: 100%;
}

/* Constrain tables to their container */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Optional: Add visual consistency */
.accordion-body {
    padding: 1.5rem;
}


/* Voice Recording Styles */
.voice-record-form {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.voice-record-form i {
    font-size: 0.9rem;
}

.recording-indicator {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.recording-indicator.recording-active {
    background-color: #dc3545;
    animation: pulse 1.5s infinite;
}

.recording-indicator.recording-active i {
    color: white;
}

.recording-timer {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Incomplete form indicator */
.form-incomplete-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #ffc107;
    color: #212529;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}




/* Mobile form cards styling */
#mobile-cards-container {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem;
}

.mobile-form-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.75rem;
}

.mobile-form-card .card {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.mobile-form-card .card-header {
    padding: 0.5rem 0.75rem;
    background-color: var(--primary);
    color: var(--white);
}

.mobile-form-card .form-type-label {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.mobile-form-card .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.mobile-form-card .card-body {
    padding: 0.75rem;
    font-size: 0.9rem;
}

.mobile-form-card .card-body strong {
    display: inline-block;
    width: 4.5rem;
    /* Fixed width for labels to align content */
    font-weight: 600;
}

.mobile-form-card .action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.mobile-form-card .action-buttons .btn {
    flex: 1;
    padding: 0.25rem 0.5rem;
    max-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table adjustments for mobile */
@media (max-width: 992px) {
    .table-responsive {
        border: none;
        margin-bottom: 0;
        overflow-x: visible;
    }

    .table {
        margin-bottom: 0;
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed;
    }

    .table> :not(caption)>*>* {
        border-bottom-width: 0;
        padding: 0;
    }

    /* Force container to be 100% width */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: hidden;
    }

    /* Ensure the table doesn't overflow */
    #forms-table-body {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ensure the mobile cards container doesn't overflow */
    #mobile-cards-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
}

/* Desktop table column styling */
@media (min-width: 993px) {
    .table th {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .table td {
        vertical-align: middle;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Adjust column widths */
    .table th:nth-child(1) {
        width: 15%;
    }

    /* Form Type */
    .table th:nth-child(2) {
        width: 15%;
    }

    /* Date */
    .table th:nth-child(3) {
        width: 12%;
    }

    /* Completed By */
    .table th:nth-child(4) {
        width: 12%;
    }

    /* Item/Unit */
    .table th:nth-child(5) {
        width: 12%;
    }

    /* Supplier/Temp */
    .table th:nth-child(6) {
        width: 10%;
    }

    /* Status */
    .table th:nth-child(7) {
        width: 24%;
    }

    /* Actions - increased width */

    /* Action buttons in desktop view */
    .table .action-buttons-desktop {
        display: flex;
        gap: 5px;
        flex-wrap: nowrap;
        width: 100%;
    }

    .table .action-buttons-desktop .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}



/* Tab styling */
.tab-content>.tab-pane:not(.active) {
    display: none;
}

.tab-content>.active {
    display: block;
}

/* Sticky save button */
.sticky-bottom {
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Tab validation styling */
.nav-link.text-danger {
    color: #dc3545 !important;
    font-weight: bold;
}


/* Accordion styling for hygiene inspection form */
.hygiene-inspection-accordion .accordion-button {
    background-color: var(--warning-light);
    color: var(--dark);
    font-weight: 500;
    transition: all 0.2s ease;
}

.hygiene-inspection-accordion .accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: var(--white);
}

.hygiene-inspection-accordion .accordion-button:hover {
    background-color: var(--warning);
    color: var(--dark);
}

.hygiene-inspection-accordion .accordion-button:not(.collapsed):hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Error state for accordion headers */
.hygiene-inspection-accordion .accordion-button.has-error {
    border-left: 4px solid var(--danger);
}

.hygiene-inspection-accordion .accordion-button.has-error:not(.collapsed) {
    background-color: var(--danger-light);
    color: var(--danger);
}

/* Completed state for accordion headers */
.hygiene-inspection-accordion .accordion-button.is-complete {
    border-left: 4px solid var(--success);
}

/* Add these color variables to the root */
:root {
    /* Existing colors... */
    --primary-dark: #081c36;
    --warning-light: #fff8ee;
    --danger-light: #fff5f5;
    --success-light: #f0fff4;
}

/* Improve the accordion content area */
.hygiene-inspection-accordion .accordion-body {
    background-color: var(--white);
    padding: 1.5rem;
}

/* Add a subtle shadow to make the accordion stand out */
.hygiene-inspection-accordion .accordion-item {
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.question-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
}

.question-row:last-child {
    border-bottom: none;
}

.answer-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    margin: 0.5rem 0;
}

.answer-group .form-check {
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
}

.toggle-details-btn {
    padding: 0.25rem 0.5rem;
    color: var(--secondary);
    font-size: 0.875rem;
}

.toggle-details-btn:hover {
    color: var(--primary);
}

.details-field {
    margin-top: 0.5rem;
    display: none;
}

.details-field.show {
    display: block;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .answer-group {
        display: flex;
        justify-content: space-between;
        /* Spread items across the width */
        width: 100%;
    }

    .answer-group .form-check {
        margin-right: 0;
        /* Remove right margin */
        flex: 1;
        /* Make each item take equal space */
        justify-content: center;
        /* Center the radio buttons */
    }

    .toggle-details-btn {
        flex: 0 0 auto;
        /* Don't let the button grow */
    }
}



/* Add these styles to the end of your main.css file */
.accordion-button:not(.collapsed) {
    position: relative;
    z-index: 3;
    /* Ensure the expanded header stays above other content */
}

/* Ensure accordion items don't have unexpected margins that affect scrolling */
.accordion-item {
    margin-bottom: 0.5rem !important;
}

/* SC4 Forms Table specific styles */
#sc4-forms-table-container table th,
#sc4-forms-table-container table td {
    font-size: smaller;
    /* Or use a specific pixel value like 13px if you prefer */
}

/* Improve mobile scrolling behavior */
@media (max-width: 768px) {

    html,
    body {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        /* Improve scrolling on iOS */
    }

    /* Ensure the accordion header is clearly visible */
    .accordion-button:not(.collapsed) {
        position: sticky;
        top: 0;
        z-index: 1030;
        /* Bootstrap's navbar z-index */
    }
}


/* Touch-friendly form styles for mobile and tablet */
.touch-friendly-form .form-control,
.touch-friendly-form .form-select,
.touch-friendly-form .btn {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    min-height: 3rem;
}

.touch-friendly-form .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.25rem;
}

.touch-friendly-form .form-check-label {
    padding-left: 0.5rem;
    font-size: 1.1rem;
}

.touch-friendly-form .form-label {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Improve spacing in mobile forms */
.touch-friendly-form .mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Make buttons more touch-friendly on mobile */
@media (max-width: 992px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    /* Larger buttons in the forms list for better touch targets */
    #mobile-cards-container .action-buttons .btn {
        min-width: 44px;
        min-height: 44px;
    }

    /* Improve form filter dropdown */
    #form-type-filter {
        padding: 0.75rem;
        font-size: 1.1rem;
        height: auto;
    }

    /* Improve tab navigation */
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }

    /* Make mobile cards more touch-friendly */
    .mobile-form-card .card-header {
        padding: 0.75rem 1rem;
    }

    .mobile-form-card .card-body {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Improve mobile form cards layout */
    .mobile-form-card .form-type-label {
        font-size: 1rem;
    }

    .mobile-form-card .badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }
}

/* Adjust mobile form cards for different screen sizes */
@media (max-width: 576px) {

    /* For very small screens */
    .mobile-form-card .action-buttons .btn {
        flex: 1;
    }
}

/* Ensure buttons on mobile cards have enough space */
.mobile-form-card .action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.mobile-form-card .action-buttons .btn {
    flex: 1;
    min-width: 60px;
    /* Ensure minimum width for readability */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

/* Make button text visible on all screen sizes */
.mobile-form-card .action-buttons .btn i {
    margin-right: 0.25rem;
}

/* For larger tablets, ensure the buttons have enough space */
@media (min-width: 768px) and (max-width: 992px) {
    .mobile-form-card .action-buttons .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}


/* Mobile form cards styling */
#mobile-cards-container {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem;
}

.mobile-form-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.75rem;
}

.mobile-form-card .card {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.mobile-form-card .card-header {
    padding: 0.5rem 0.75rem;
    background-color: var(--primary);
    color: var(--white);
}

.mobile-form-card .form-type-label {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.mobile-form-card .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.mobile-form-card .card-body {
    padding: 0.75rem;
    font-size: 0.9rem;
}

.mobile-form-card .card-body strong {
    display: inline-block;
    width: 4.5rem;
    /* Fixed width for labels to align content */
    font-weight: 600;
}

.mobile-form-card .action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.mobile-form-card .action-buttons .btn {
    flex: 1;
    padding: 0.25rem 0.5rem;
    max-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table adjustments for mobile */
@media (max-width: 992px) {
    .table-responsive {
        border: none;
        margin-bottom: 0;
        overflow-x: visible;
    }

    .table {
        margin-bottom: 0;
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed;
    }

    .table> :not(caption)>*>* {
        border-bottom-width: 0;
        padding: 0;
    }

    /* Force container to be 100% width */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: hidden;
    }

    /* Ensure the table doesn't overflow */
    #forms-table-body {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ensure the mobile cards container doesn't overflow */
    #mobile-cards-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    /* Make buttons more readable on mobile/tablet */
    .mobile-form-card .action-buttons {
        margin-top: 1rem;
    }

    .mobile-form-card .action-buttons .btn {
        max-width: none;
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .mobile-form-card .action-buttons .btn i {
        margin-right: 0.25rem;
    }
}



.trial-status-indicator {
    padding: 0.5rem 0;
}

.trial-status-indicator .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

/* Style for promo code tabs */
#subscriptionTabs .nav-link,
#subscriptionModalTabs .nav-link {
    color: #495057;
}

#subscriptionTabs .nav-link.active,
#subscriptionModalTabs .nav-link.active {
    color: #0d6efd;
    font-weight: 500;
}



/* Certificate cards styling */
.certificate-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.certificate-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Expiry status styling */
.expiry-status-expired {
    color: #dc3545;
}

.expiry-status-expiring-soon {
    color: #ffc107;
}

.expiry-status-valid {
    color: #28a745;
}

/* Product Configuration Table - Mobile/Tablet Optimizations */
@media (max-width: 992px) {

    /* Target the product configuration table specifically */
    .card-header h5:contains("Configure Products")~.card-body .table-responsive,
    .table-responsive:has(.product-config) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Product configuration table styling */
    .table:has(.product-config) {
        table-layout: fixed;
        width: 100%;
        min-width: 100%;
    }

    /* Column width distribution for product configuration */
    .table:has(.product-config) th:nth-child(1),
    .table:has(.product-config) td:nth-child(1) {
        width: 33.33% !important;
        word-wrap: break-word;
        white-space: normal;
        vertical-align: middle;
        padding: 1rem 0.75rem;
    }

    .table:has(.product-config) th:nth-child(2),
    .table:has(.product-config) td:nth-child(2),
    .table:has(.product-config) th:nth-child(3),
    .table:has(.product-config) td:nth-child(3),
    .table:has(.product-config) th:nth-child(4),
    .table:has(.product-config) td:nth-child(4) {
        width: 22.22% !important;
        text-align: center;
        vertical-align: middle;
        padding: 1rem 0.5rem;
    }

    /* Minimum row height for touch-friendly interaction */
    .table:has(.product-config) tr {
        min-height: 60px;
    }

    .table:has(.product-config) td {
        min-height: 60px;
        vertical-align: middle;
        line-height: 1.4;
    }

    /* Product name styling */
    .table:has(.product-config) td:nth-child(1) strong {
        font-size: 1rem;
        line-height: 1.3;
        display: block;
    }

    /* Checkbox styling for better touch interaction */
    .table:has(.product-config) .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        margin: 0 auto;
        cursor: pointer;
        transform: scale(1.2);
    }

    /* Header text adjustments */
    .table:has(.product-config) th {
        font-size: 0.9rem;
        font-weight: 600;
        padding: 0.75rem 0.5rem;
        line-height: 1.2;
        vertical-align: middle;
    }

    .table:has(.product-config) th:nth-child(1) {
        padding: 0.75rem;
    }
}

/* Phone-specific optimizations */
@media (max-width: 768px) {

    /* Slightly smaller text for very small screens */
    .table:has(.product-config) th {
        font-size: 0.85rem;
        padding: 0.5rem 0.25rem;
    }

    .table:has(.product-config) th:nth-child(1) {
        padding: 0.5rem 0.5rem;
    }

    .table:has(.product-config) td {
        padding: 0.75rem 0.25rem;
    }

    .table:has(.product-config) td:nth-child(1) {
        padding: 0.75rem 0.5rem;
    }

    /* Ensure checkboxes remain easily tappable */
    .table:has(.product-config) .form-check-input {
        width: 1.5rem;
        height: 1.5rem;
        transform: scale(1);
    }
}

/* Fallback for browsers that don't support :has() selector */
.product-config-table {
    table-layout: fixed;
    width: 100%;
}

@media (max-width: 992px) {

    .product-config-table th:nth-child(1),
    .product-config-table td:nth-child(1) {
        width: 33.33% !important;
        word-wrap: break-word;
        white-space: normal;
        vertical-align: middle;
        padding: 1rem 0.75rem;
    }

    .product-config-table th:nth-child(2),
    .product-config-table td:nth-child(2),
    .product-config-table th:nth-child(3),
    .product-config-table td:nth-child(3),
    .product-config-table th:nth-child(4),
    .product-config-table td:nth-child(4) {
        width: 22.22% !important;
        text-align: center;
        vertical-align: middle;
        padding: 1rem 0.5rem;
    }

    .product-config-table tr {
        min-height: 60px;
    }

    .product-config-table td {
        min-height: 60px;
        vertical-align: middle;
        line-height: 1.4;
    }

    .product-config-table .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        margin: 0 auto;
        cursor: pointer;
        transform: scale(1.2);
    }
}

@media (max-width: 768px) {
    .product-config-table th {
        font-size: 0.85rem;
        padding: 0.5rem 0.25rem;
    }

    .product-config-table th:nth-child(1) {
        padding: 0.5rem 0.5rem;
    }

    .product-config-table td {
        padding: 0.75rem 0.25rem;
    }

    .product-config-table td:nth-child(1) {
        padding: 0.75rem 0.5rem;
    }

    .product-config-table .form-check-input {
        width: 1.5rem;
        height: 1.5rem;
        transform: scale(1);
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .certificate-cards {
        grid-template-columns: 1fr;
    }

    .touch-friendly-form {
        padding: 0.75rem;
        font-size: 1.1rem;
    }

    .touch-friendly-btn {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* For smooth scrolling on iOS */
    }
}


.signature-pad-container {
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
    background: #fff;
}

.signature-canvas {
    width: 100%;
    height: 150px;
    border: 1px dashed #adb5bd;
    border-radius: 0.25rem;
    cursor: crosshair;
    touch-action: none;
}

.signature-pad-unsigned {
    border-color: #fd7e14 !important;
    /* Orange */
}

.signature-pad-signed {
    border-color: #198754 !important;
    /* Green */
}

/* Responsive Card-based Table Styles for Tablets and below */
@media (max-width: 992px) {
    .table-responsive-cards {
        border: 0;
    }

    .table-responsive-cards thead {
        display: none;
        /* Hide table headers on small screens */
    }

    .table-responsive-cards tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: .25rem;
    }

    .table-responsive-cards td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .75rem;
        border: 0;
        border-bottom: 1px solid #dee2e6;
    }

    .table-responsive-cards td:last-child {
        border-bottom: 0;
    }

    .table-responsive-cards td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 1rem;
    }
}

/* Hybrid Input & Keypad Styles */
.input-wrapper {
    position: relative;
}

.input-wrapper .input-group {
    position: relative;
    z-index: 1;
}

.fake-cursor {
    display: none;
    position: absolute;
    top: 50%;
    left: 12px;
    /* Should match the input's left padding */
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background-color: var(--primary);
    z-index: 2;
    animation: blink 1s step-end infinite;
}

.text-ruler {
    position: absolute;
    visibility: hidden;
    white-space: pre;
    z-index: -1;
}

.input-wrapper.is-active .fake-cursor {
    display: block;
}

@keyframes blink {

    from,
    to {
        background-color: transparent;
    }

    50% {
        background-color: var(--primary);
    }
}