/* Stage 1 CSS */

.editable-cell {
    cursor: pointer;
    transition: background-color 0.3s;
}

.editable-cell:hover {
    background-color: #f0f0f1;
    outline: 1px solid #ccc;
}

.editable-cell:focus {
    background-color: #fff;
    outline: 2px solid #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* A4 Layout Styles */
.a4-page {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    margin-top: 20px;
    font-family: "MingLiU", "PMingLiU", serif;
}

.page-header {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-notes {
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.a4-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.a4-table th,
.a4-table td {
    border: 1px solid black;
    padding: 5px;
    text-align: center;
    vertical-align: middle;
}

.a4-table th {
    background-color: #f0f0f0;
}

.bg-green {
    background-color: #d4edda !important;
}

.bg-red {
    background-color: #f8d7da !important;
}

/* Column Widths */
.col-microchip {
    width: 15%;
}

.col-source-microchip {
    width: 15%;
}

.col-birth {
    width: 10%;
}

.col-source {
    width: 10%;
}

.col-date {
    width: 10%;
}

.col-owner {
    width: 10%;
}

.col-id {
    width: 10%;
}

.col-contact {
    width: 20%;
}