/* Machine Maintenance Checklist - EECOL Wire Tools Suite */

/* Defined EECOL Blue */
.eecol-blue-bg {
    background-image: linear-gradient(to bottom, var(--eecol-blue) 20%, white 80%);
}

/* Custom gradient for the header text */
.header-gradient {
    background-image: linear-gradient(90deg, var(--eecol-blue), #004a99);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Custom blue for the card border */
.card-border-blue {
    border-left-color: var(--eecol-blue);
}

/* Header labels for OK and Not OK alignment */
.header-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.ok-label {
    flex: 40%;
    text-align: left;
}
.nok-label {
    flex: 25%;
    text-align: right;
}

/* Checklist table styling */
.checklist-table {
    border-collapse: collapse;
    width: 100%;
}
.checklist-table th,
.checklist-table td {
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    text-align: left;
}
.checklist-table th {
    background-color: #f3f4f6;
    font-weight: 600;
    text-align: left;
}
.checkbox-cell {
    width: 40px;
    text-align: center;
}
.item-cell {
    font-weight: 500;
}

/* Print styles */
@media print {
    @page {
        size: A4 portrait;
        margin: 0.2cm;
    }
    body * {
        visibility: hidden;
    }
    #printableContent, #printableContent * {
        visibility: visible;
    }
    #printableContent {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: none;
        padding: 0;
    }
    .no-print {
        display: none !important;
    }
    .machine-section {
        break-inside: avoid;
        margin-bottom: 15px;
    }
    h1 {
        font-size: 18px;
        margin-bottom: 2px;
    }
    p.mb-5 {
        margin-bottom: 8px;
        font-size: 8px;
    }
    .mb-6 {
        margin-bottom: 8px;
    }
    .mt-4 {
        margin-top: 4px;
        page-break-before: avoid;
    }
    .checklist-table {
        font-size: 5px;
    }
    .checklist-table th,
    .checklist-table td {
        padding: 1px 2px;
    }
    input[type="text"], input[type="date"] {
        font-size: 5px;
        padding: 1px;
    }
    textarea {
        font-size: 5px;
        padding: 1px;
    }
    input[type="checkbox"] {
        width: 6px;
        height: 6px;
    }
}

/* Compact styles for main table */
.checkbox-group {
    display: flex;
    justify-content: space-around;
    gap: 1px;
}
input[type="checkbox"] {
    width: 12px;
    height: 12px;
    margin: 0;
    vertical-align: top;
}
.checklist-table th,
.checklist-table td {
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    text-align: left;
}
.checkbox-cell {
    text-align: center;
}
.item-cell {
    font-weight: 500;
    text-align: left;
}
.bottom-inputs table {
    margin-top: 10px;
}
.bottom-inputs td {
    border: none;
    padding: 0 2px;
}
.bottom-inputs input[type="text"], .bottom-inputs input[type="date"] {
    width: 100%;
    text-align: center;
    padding: 2px;
}
.comments-row textarea {
    width: 100%;
    box-sizing: border-box;
}
