
#enta-container { background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); overflow: hidden; margin: 20px 5px; }
.enta-header { background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%); color: white; padding: 5px 20px; display: flex; justify-content: space-between; align-items: center; }
.enta-header h1 { font-size: 1.3rem; font-weight: 600; margin: 0; }
.enta-tab-buttons { display: flex; gap: 10px; }
.enta-tab-button { background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); color: white; padding: 4px 8px; border-radius: 5px; cursor: pointer; font-size: 0.7rem; font-weight: 500; transition: all 0.3s ease; }
.enta-tab-button:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.enta-tab-button.active { background: white; color: #667eea; font-weight: 600; }
.enta-table-container { overflow-x: auto; overflow-y: auto; border-radius: 0 0 12px 12px; position: relative; }
.enta-table { width: 100%; border-collapse: collapse; font-size: 0.85rem;  }
.enta-table th { background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); color: white; padding: 6px 4px; text-align: center; font-weight: 600; font-size: 0.8rem; white-space: nowrap; position: sticky; top: 0; z-index: 10; border-right: 1px solid #2d3748; }
.enta-table th.col-tanim { max-width: 200px; }
.enta-table td { padding: 4px 3px; border-bottom: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; white-space: nowrap;  vertical-align: middle; text-align: center; }
.enta-table td.col-tanim { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; position: relative; }
.enta-table td.col-tanim:hover { background-color: #e2e8f0; }
.enta-table tr:nth-child(even) { background-color: #f8fafc; }
.enta-table tr:hover { background-color: #edf2f7; }
.enta-rev-cell { cursor: pointer; font-weight: 600; color: #4a5568; transition: all 0.3s ease; border-radius: 4px; text-align: center; padding: 6px 8px; }
.enta-rev-cell:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.enta-rev-cell.completed { background-color: #c6f6d5; color: #22543d; font-weight: 700; }
.enta-rev-cell.pending { background-color: #fed7d7; color: #742a2a; font-weight: 700; }
.enta-remaining-days { font-weight: 600; padding: 4px 8px; border-radius: 4px; text-align: center; font-size: 0.8rem; }
.enta-remaining-days.overdue { background-color: #fed7d7; color: #742a2a; }
.enta-remaining-days.today { background-color: #fef4c7; color: #92400e; }
.enta-remaining-days.upcoming { background-color: #c6f6d5; color: #22543d; }
.enta-percentage { font-weight: 600; padding: 4px 8px; border-radius: 4px; text-align: center; display: inline-block; width: 100%; transition: all 0.5s ease; }
.enta-loader { border: 5px solid #f3f3f3; border-radius: 50%; border-top: 5px solid #667eea; width: 50px; height: 50px; animation: enta-spin 1s linear infinite; margin: 50px auto; }
@keyframes enta-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.enta-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.enta-modal-overlay.visible { opacity: 1; visibility: visible; }
.enta-modal-container { background: white; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.2); width: 90%; max-width: 1200px; max-height: 90vh; transform: scale(0.95); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.enta-modal-overlay.visible .enta-modal-container { transform: scale(1); }
.enta-modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; padding: 15px 25px 10px 25px; margin-bottom: 0; flex-shrink: 0; }
.enta-modal-body { padding: 20px 25px 25px 25px; overflow-y: auto; flex: 1; }
.enta-modal-close-button { background: transparent; border: none; font-size: 1.8rem; cursor: pointer; color: #718096; transition: color 0.2s ease; }
.enta-revision-item { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #f1f5f9; }
.enta-revision-header { display: flex; align-items: center; margin-bottom: 12px; }
.enta-revision-header h3 { background: linear-gradient(135deg, #a0aec0 0%, #718096 100%); color: white; padding: 6px 12px; border-radius: 6px; font-size: 1rem; margin-right: 15px; }
.enta-revision-item.completed .enta-revision-header h3 { background: linear-gradient(135deg, #48bb78 0%, #38a169 100%); }
.enta-revision-details p { line-height: 1.6; margin: 0; }
.enta-image-gallery { margin-top: 15px; }
.enta-image-gallery h4 { color: #4a5568; margin-bottom: 10px; font-size: 0.9rem; }
.enta-image-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 15px; }
.enta-image-thumbnail { cursor: pointer; border-radius: 8px; overflow: hidden; transition: all 0.2s ease; border: 2px solid #e2e8f0; background: #f8fafc; }
.enta-image-thumbnail:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-color: #667eea; }
.enta-image-thumbnail img { width: 100%; height: 200px; object-fit: cover; display: block; }
.enta-image-filename { padding: 6px 8px; font-size: 0.75rem; color: #4a5568; text-align: center; background: white; border-top: 1px solid #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enta-upload-controls { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.enta-upload-btn { padding: 8px 16px; background: #667eea; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: all 0.3s ease; }
.enta-upload-btn:hover { background: #5a67d8; transform: translateY(-1px); }
.enta-upload-btn.camera { background: #38a169; }
.enta-upload-btn.camera:hover { background: #2f855a; }
.enta-success-message { background: #d4edda; color: #155724; padding: 8px; border-radius: 4px; margin: 5px 0; text-align: center; }
.enta-popover { position: absolute; background: #2d3748; color: white; padding: 10px 15px; border-radius: 8px; font-size: 0.9rem; max-width: 300px; white-space: normal; word-wrap: break-word; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.3); border: 1px solid #4a5568; }
.enta-popover::before { content: ""; position: absolute; top: -6px; left: 20px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #2d3748; }
.enta-filter-row th { 
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); 
    padding: 0px; 
    vertical-align: middle; 
}
.enta-filter-input {
    width: 100%;
    max-width: 80px;
    padding: 6px 8px;
    border: 1px solid #cbd5e000;
    /* border-radius: 6px; */
    font-size: 0.75rem;
    background: #ffffff00;
    transition: all 0.2s ease;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
}
.enta-filter-input:focus { 
    outline: none; 
    border-color: #667eea; 
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 1px 3px rgba(0,0,0,0.1); 
    transform: translateY(-1px);
}
.enta-filter-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

#enta-container.dynamic-height{
    height:90vh;
    display:flex;
    flex-direction:column;
}

#enta-container.dynamic-height .enta-table-container{
    flex:1;
    overflow-y:auto;
}

.enta-image-modal-container { position: relative; max-width: 90vw; max-height: 90vh; background: white; border-radius: 12px; padding: 20px; }
.enta-image-nav-button { position: absolute; top: 50%; background: rgba(0,0,0,0.7); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 10; transform: translateY(-50%); transition: all 0.3s ease; }
.enta-image-nav-button:hover { background: rgba(0,0,0,0.9); transform: translateY(-50%) scale(1.1); }
.enta-image-nav-button.prev { left: -25px; }
.enta-image-nav-button.next { right: -25px; }
#enta-image-display { max-width: 100%; max-height: 70vh; display: block; margin: 0 auto; border-radius: 8px; }
#enta-image-counter { text-align: center; margin-top: 15px; color: #4a5568; font-weight: 600; }

@media (max-width: 768px) { 
    .enta-page-container { padding: 3px !important;  }
    .enta-header {   text-align: center; } 
    .enta-table { font-size: 0.75rem; }
    .enta-filter-input { font-size: 0.7rem; padding: 3px 5px; }
    .enta-image-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .enta-image-thumbnail img { height: 110px; }
    .enta-upload-controls { justify-content: center; }
    .enta-image-nav-button.prev { left: 10px; }
    .enta-image-nav-button.next { right: 10px; }
}

.enta-table th:first-child { position: sticky; left: 0; z-index: 11; background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); width: 55px; }
.enta-table td:first-child { position: sticky; left: 0; z-index: 5; background: white; width: 55px; }
.enta-table tr:nth-child(even) td:first-child { background-color: #f8fafc; }
.enta-table tr:hover td:first-child { background-color: #edf2f7; }

.selected-ie-row { background-color: #fef08a !important; }
.selected-ie-row:hover { background-color: #fcd34d !important; }
.selected-ie-row td:first-child { background-color: #fef08a !important; }
.selected-ie-row:hover td:first-child { background-color: #fcd34d !important; }
.enta-select-button { 
    background: #f59e0b; 
    border: 1px solid #d97706; 
    color: white; 
    padding: 4px 8px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 0.7rem; 
    font-weight: 500; 
    transition: all 0.3s ease;
    margin-right: 10px;
}
.enta-select-button:hover { 
    background: #d97706; 
    transform: translateY(-1px); 
}
.enta-select-button:disabled {
    background: #9ca3af;
    border-color: #6b7280;
    cursor: not-allowed;
    transform: none;
}

.enta-page-container { 
min-height: 95vh !important; 
padding: 3px !important;
max-width: 100%; 
margin: 0 auto; }