/* Permit styles */
.permit-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.permit-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.permit-subtitle {
    font-size: 1rem;
    color: #666;
}

.permit-section {
    margin-bottom: 2rem;
}

.permit-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #495057;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.permit-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.permit-card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}

.permit-card-body {
    padding: 1.25rem;
}

.permit-info-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.permit-info-label {
    font-weight: 600;
    min-width: 150px;
    color: #495057;
}

.permit-info-value {
    flex: 1;
}

.permit-status-badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.permit-status-submitted {
    color: #fff;
    background-color: #6c757d;
}

.permit-status-approved-bendahara {
    color: #212529;
    background-color: #ffc107;
}

.permit-status-approved-labhead-partial {
    color: #212529;
    background-color: #17a2b8;
}

.permit-status-approved {
    color: #fff;
    background-color: #28a745;
}

.permit-status-rejected {
    color: #fff;
    background-color: #dc3545;
}

.permit-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.permit-action-button {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.permit-history-item {
    border-left: 3px solid #007bff;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.permit-history-date {
    font-weight: 600;
    color: #495057;
}

.permit-history-description {
    color: #6c757d;
}

/* Autocomplete styles */
.autocomplete-dropdown {
    position: absolute;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    width: 100%;
    display: none;
}

.autocomplete-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: #f5f5f5;
}