/* Title Code Plugin - Modern Grid Design */

.title-code-container {
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    max-width: 100%;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Dark theme variant */
.title-code-container.theme-dark {
    background: #2b2b2b;
    color: #f5f5f5;
}

/* Title and search area */
.title-code-heading {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.theme-dark .title-code-heading {
    color: #f5f5f5;
}

.title-code-search {
    margin-bottom: 24px;
    position: relative;
}

/* Grid Layout for results */
.title-code-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1px;
    background: #ced4da;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ced4da;
}

.grid-header, .grid-data {
    padding: 15px;
    background: #fff;
}

.grid-header {
    font-weight: 600;
    background: #f7f7f7;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.grid-data {
    font-size: 0.85rem;
}

.theme-dark .grid-header {
    background: #333;
}

.theme-dark .grid-data {
    background: #2b2b2b;
}

.theme-dark .title-code-grid {
    background: #444;
}

/* Cell-specific styling */
.title-cell {
    font-weight: 500;
}

.urgent-cell, .normal-cell {
    text-align: center;
}

/* Status indicators */
.status-approved {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    font-weight: 600;
}

.lucide-circle-check {
    width: 20px;
    height: 20px;
    stroke: #28a745;
    margin-right: 6px;
    vertical-align: middle;
}

.status-text {
    font-size: 0.9rem;
}

/* Utility classes */
.d-none {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .title-code-container {
        padding: 15px;
    }
    
    .title-code-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-header {
        display: none;
    }
    
    .grid-data.urgent-cell,
    .grid-data.normal-cell {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        text-align: right;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .grid-data.urgent-cell:before,
    .grid-data.normal-cell:before {
        content: attr(data-label);
        font-size: 0.9rem;
        opacity: 0.7;
        text-align: left;
    }
    
    .grid-data.title-cell {
        background: #f7f7f7;
        font-weight: 600;
        text-align: center;
        font-size: 1.1rem;
        padding: 10px 15px;
    }
    
    .theme-dark .grid-data.title-cell {
        background: #333;
    }
    
    .status-approved {
        margin-left: auto;
    }
}

/* Select2 basic styling fixes */
.select2-container {
    width: 100% !important;
}

.select2-selection {
    height: 38px !important;
    padding: 4px !important;
    border: 1px solid #ced4da !important;
}

.select2-selection__arrow {
    height: 38px !important;
}