/**
 * measurement-display.css
 * Styles for the measurement display plugin
 */
 
 @media (max-width: 768px) {
    /* Adjust the table on mobile screens */
    .measurement-header div{
		justify-content: center;
	}
		
    .measurement-display-table {
        font-size: 12px; /* smaller text */
    }

    .measurement-display-table th,
    .measurement-display-table td {
        padding: 6px; /* tighter spacing */
        word-break: break-word; /* allow breaking long words */
        white-space: normal; /* allow normal wrapping */
    }

    /* Optional: make table cells stack vertically if needed */
    .measurement-display-table th,
    .measurement-display-table td {
        min-width: 3em; /* prevent cells from becoming too tiny */
    }
    
    .measurement-content {
        text-align: center; /* Centers text */
    }

    /* Prevent table from being centered */
    .measurement-content table {
        text-align: left; /* Ensures table text is left-aligned */
        margin: 0 auto; /* Optional: Prevents table from being centered */
    }
    .expand-btn {
        width: 100%; /* Makes the button full width */
        display: block; /* Ensures the button is block-level */
        margin: 0; /* Optional: Removes any extra margin if needed */
    }
}

/* Make sure the wrapper still allows scrolling if absolutely necessary */
.measurement-display-container {
    overflow-x: auto;
}

/* You can even force hyphens to break better if needed */
.measurement-display-table td {
    hyphens: auto;
}


#fail {
	font-weight: bold;
}

.measurement-display-container {
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.measurement-display-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.measurement-display-table th,
.measurement-display-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.measurement-display-table th {
    background-color: #000000;
    font-weight: bold;
    color: white;
    position: sticky; 
    top: 0;
    z-index: 1;
}

.measurement-display-table tr:hover {
    background-color: #f0f0f0;
}


.measurement-row.status-0 {
    background-color: #ffccd4;
}

.measurement-row.status-1 {
    background-color: #b8e0bc;
}
.measurement-row.status-10{
    background-color: #dddddd;
}
.measurement-row.status-102,.measurement-row.status-101 {
    background-color: #d0d0d0;
}
.measurement-row.status-103{
	background-color: #FFE5B4;
}

.measurement-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    text-align: center;
}

.measurement-header {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.measurement-header div{
	display: flex; align-items: center; max-width: 1150px; margin: 0.1em auto;
}

.measurement-header-container,
.measurement-content,
.measurement-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.measurement-header h1 {
    margin: 0 0 10px;
}

.measurement-footer {
    margin-top: 40px;
    padding: 20px 0;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    text-align: center;
}

.measurement-error {
    padding: 15px;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #b71c1c;
}

/* Test status styling */
.test-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    margin: 0em 0em -1em 0em;
}

/* Line break on mobile */
@media (max-width: 768px) {
    .test-status {
        display: block;  /* Forces a line break */
        margin-top: 1em; /* Optional: Adds space above the element */
    }
}


.test-passed {
    background-color: #e0f2e9;
    color: #2c7c54;
    border: 2px solid #a3d9c3;
}

.test-failed {
    background-color: #feeaea;
    color: #d32f2f;
    border: 2px solid #ffcdd2;
}

.test-error {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

/* Expandable table styling */
.expand-btn {
    background-color: #00B300;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
    justify-content: center; /* Ensure button text is centered */
}

.expand-btn:hover {
    background-color: #00B300;
    color: white;
}

.expand-icon {
    margin-left: 10px;
    transition: transform 0.5s ease;
}

.rotate {
    transform: rotate(180deg);
}

.table-wrapper {
    overflow: hidden;
    transition: height 0.5s ease;
    margin-top: 10px;
}

#tableContent {
    padding-bottom: 5px;
}
