/* style-ou.css */
.cp78-container {
    font-family: 'Calibri', 'Arial', sans-serif;
    max-width: 1600px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #aaa;
    padding: 10px;
}
.cp78-container h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    font-weight: 600;
    color: #333;
    text-align: center;
}
.cp78-section {
    margin-bottom: 30px;
}
.cp78-section-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #333;
    background: #f0f0f0;
    padding: 5px 10px;
    border: 1px solid #aaa;
    border-bottom: none;
}
.cp78-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    border: 1px solid #aaa;
}
.cp78-table th {
    background: #e0e0e0;
    border: 1px solid #aaa;
    padding: 4px 6px;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}
.cp78-table td {
    border: 1px solid #aaa;
    padding: 4px 6px;
    text-align: center;
    vertical-align: middle;
}
.cp78-table tbody tr:nth-child(even) {
    background-color: #f5f5f5;
}
/* Ειδικό background για patterns που συνεχίζονται στο επόμενο μήκος */
.cp78-table tbody tr.has-continuation {
    background-color: #fff3cd !important; /* ανοιχτό κίτρινο */
}
.cp78-table tbody tr.has-continuation:nth-child(even) {
    background-color: #ffeb9c !important; /* λίγο πιο έντονο για εναλλάξ */
}
.pat-char {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-weight: 700;
    border: 1px solid #888;
    margin: 0 1px;
    background: #fff;
}
.pat-char.rO { background: #c6efce; color: #006100; border-color: #006100; }  /* Πράσινο για OVER */
.pat-char.rU { background: #f8d7da; color: #a80000; border-color: #a80000; }  /* Κόκκινο για UNDER */
.code-badge {
    display: inline-block;
    background: #f0f0f0;
    border: 1px solid #888;
    padding: 2px 6px;
    margin: 2px;
    font-size: 11px;
    border-radius: 0;
    white-space: nowrap;
}
.result-badge {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-weight: 700;
    border-radius: 0;
    margin-left: 4px;
    background: #fff;
}
.result-badge.rO { background: #c6efce; color: #006100; border: 1px solid #006100; }
.result-badge.rU { background: #f8d7da; color: #a80000; border: 1px solid #a80000; }
.codes-cell {
    max-width: 300px;
    white-space: normal;
    word-break: break-word;
}
.per-high { font-weight: 700; color: #1e7e34; }
.per-medium { font-weight: 600; color: #b45f06; }
.per-low { font-weight: 400; color: #a80000; }
.cp78-error {
    border: 1px solid #aaa;
    padding: 15px;
    background: #f9f9f9;
    color: #333;
}